/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | instruction.cpp | 172 assert(words.size() == 1 && "expected the operand only taking one word"); in GetSingleWordOperand() 177 uint32_t size = 0; in NumInOperandWords() local 178 for (uint32_t i = TypeResultIdCount(); i < operands_.size(); ++i) in NumInOperandWords() 179 size += static_cast<uint32_t>(operands_[i].words.size()); in NumInOperandWords() 180 return size; in NumInOperandWords() 821 context()->grammar().target_env(), inst_binary.data(), inst_binary.size(), in PrettyPrint() 822 module_binary.data(), module_binary.size(), in PrettyPrint()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/ |
H A D | peeling_pass.cpp | 97 EXPECT_EQ(stats.peeled_loops_.size(), expected_peel_trace.size()); in BuildAndCheckTrace() 98 if (stats.peeled_loops_.size() != expected_peel_trace.size()) { in BuildAndCheckTrace() 212 EXPECT_EQ(stats.peeled_loops_.size(), 1u); in TEST_F() 213 if (stats.peeled_loops_.size() != 1u) in TEST_F() 579 EXPECT_EQ(stats.peeled_loops_.size(), 0u); in TEST_F() 680 expected_peel_trace, expected_peel_trace.size() + 1); in TEST_F()
|
/third_party/skia/third_party/externals/icu/source/tools/ctestfw/ |
H A D | ctest.c | 930 static void *U_CALLCONV ctest_libMalloc(const void *context, size_t size) { in ctest_libMalloc() argument 933 printf("Allocated %ld\n", (long)size); in ctest_libMalloc() 935 if (MINIMUM_MEMORY_SIZE_FAILURE <= size && size <= MAXIMUM_MEMORY_SIZE_FAILURE) { in ctest_libMalloc() 938 return malloc(size); in ctest_libMalloc() 940 static void *U_CALLCONV ctest_libRealloc(const void *context, void *mem, size_t size) { in ctest_libRealloc() argument 943 printf("Reallocated %ld\n", (long)size); in ctest_libRealloc() 945 if (MINIMUM_MEMORY_SIZE_FAILURE <= size && size <= MAXIMUM_MEMORY_SIZE_FAILURE) { in ctest_libRealloc() 949 return realloc(mem, size); in ctest_libRealloc() [all...] |
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | pkg_genc.cpp | 103 .size x,20 145 ".long ",".size %s, .-%s\n",HEX_0X 192 "\t.size Drodata.rodata,0\n" 890 int32_t i, entryLength, length, size, entryOffset=0, entryLengthOffset=0; in writeObjectCode() local 1169 size=T_FileStream_size(in); in writeObjectCode() 1220 sectionHeaders32[4].sh_size=(Elf32_Word)size; in writeObjectCode() 1222 symbols32[1].st_size=(Elf32_Word)size; in writeObjectCode() 1240 sectionHeaders64[4].sh_size=(Elf64_Xword)size; in writeObjectCode() 1242 symbols64[1].st_size=(Elf64_Xword)size; in writeObjectCode() 1279 objHeader.fileHeader.PointerToSymbolTable=IMAGE_SIZEOF_FILE_HEADER+2*IMAGE_SIZEOF_SECTION_HEADER+length+size; /* star in writeObjectCode() [all...] |
/third_party/skia/tests/ |
H A D | UtilsTest.cpp | 206 REPORTER_ASSERT(reporter, s1.size() == 3); in DEF_TEST() 271 REPORTER_ASSERT(reporter, e.size() == 2); in DEF_TEST() 279 REPORTER_ASSERT(reporter, e.size() == 2); in DEF_TEST() 287 REPORTER_ASSERT(reporter, e.size() == 2); in DEF_TEST() 305 for (size_t i = 0; i < s.size(); i++) { in DEF_TEST() 323 for (size_t i = 0; i < s.size(); i++) { in DEF_TEST() 341 for (size_t i = 0; i < s.size(); i++) { in DEF_TEST() 359 REPORTER_ASSERT(reporter, z.size() == 4); in DEF_TEST()
|
/third_party/skia/src/pdf/ |
H A D | SkPDFFont.cpp | 274 size_t size = stream->getLength(); in stream_to_data() local 278 return SkData::MakeWithProc(base, size, proc, stream.release()); in stream_to_data() 280 return SkData::MakeFromStream(stream.get(), size); in stream_to_data() 317 tmp->insertInt("Length1", SkToInt(subsetFontData->size())); in emit_subset_type0() 376 if (widths && widths->size() > 0) { in emit_subset_type0() 394 SkASSERT(SkToSizeT(font.typeface()->countGlyphs()) == glyphToUnicode.size()); in emit_subset_type0() 617 content.write(characterName.c_str(), characterName.size()); in emit_subset_type3() 654 SkASSERT(glyphToUnicode.size() == SkToSizeT(typeface->countGlyphs())); in emit_subset_type3()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | scheduler.cpp | 136 for (size_t i = 0; i < spinningWorkers.size(); i++) { in singleThreadedWorkers() 176 auto i = --nextSpinningWorkerIdx % spinningWorkers.size(); in enqueue() 218 auto idx = nextSpinningWorkerIdx++ % spinningWorkers.size(); in onBeginSpinning() 597 MARL_ASSERT(work.num == work.fibers.size() + work.tasks.size(), in waitForWork() 677 MARL_ASSERT(work.num == work.fibers.size() + work.tasks.size(), in runUntilIdle() 719 auto fiberId = static_cast<uint32_t>(workerFibers.size() + 1); in createWorkerFiber()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCallLowering.cpp | 166 assert(OrigArg.Regs.size() == SplitVTs.size()); in splitToValueTypes() 223 assert(DstRegs.size() > 1 && "Nothing to unpack"); in unpackRegsToOrigType() 236 for (int i = 0, e = DstRegs.size(); i != e; ++i) in unpackRegsToOrigType() 255 for (unsigned i = 0, e = DstRegs.size(); i != e; ++i, Offset += PartSize) in unpackRegsToOrigType() 472 OrigArgRegs.size() == 1 in lowerFormalArgumentsKernel() 478 if (OrigArgRegs.size() > 1) in lowerFormalArgumentsKernel() 638 for (int I = 0, E = VRegs[Idx].size(); I != E; ++I) in lowerFormalArguments()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/AsmParser/ |
H A D | WebAssemblyAsmParser.cpp | 155 OS << "BrList:" << BrL.List.size(); 430 Name = StringRef(NameLoc.getPointer(), Name.size()); 441 Name = StringRef(Name.begin(), Name.size() + Sep.getString().size()); 448 Name = StringRef(Name.begin(), Name.size() + Id.getString().size()); 603 if (ExpectBlockType && Operands.size() == 1) { 856 if (ErrorInfo >= Operands.size()) 885 // Automatically output a .size directive, so it becomes optional for the in onEndOfFunction()
|
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
H A D | utf_old.h | 12 * tab size: 8 (not used) 73 * were meaningful only in the framework of choosing the UTF size. 105 * The UTF-specific macros have the UTF size in the macro name prefixes (UTF16_...), while 362 #define UTF8_ARRAY_SIZE(size) ((5*(size))/2) 580 #define UTF16_ARRAY_SIZE(size) (size) 827 #define UTF32_ARRAY_SIZE(size) (size) 954 #define UTF_ARRAY_SIZE(size) UTF16_ARRAY_SIZ [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/ |
H A D | WireBufferMappingTests.cpp | 72 descriptor.size = kBufferSize; in SetupBuffer() 566 descriptor.size = 4; in TEST_F() 588 descriptor.size = 4; in TEST_F() 610 descriptor.size = 4; in TEST_F() 648 descriptor.size = 4; in TEST_F() 682 // Check that trying to create a buffer of size MAX_SIZE_T is an error handling in the client and 692 descriptor.size = kOOMSize; in TEST_F() 705 descriptor.size = kOOMSize; in TEST_F() 717 descriptor.size = kOOMSize; in TEST_F()
|
/third_party/spirv-tools/test/opt/loop_optimizations/ |
H A D | peeling_pass.cpp | 96 EXPECT_EQ(stats.peeled_loops_.size(), expected_peel_trace.size()); in BuildAndCheckTrace() 97 if (stats.peeled_loops_.size() != expected_peel_trace.size()) { in BuildAndCheckTrace() 211 EXPECT_EQ(stats.peeled_loops_.size(), 1u); in TEST_F() 212 if (stats.peeled_loops_.size() != 1u) in TEST_F() 578 EXPECT_EQ(stats.peeled_loops_.size(), 0u); in TEST_F() 679 expected_peel_trace, expected_peel_trace.size() + 1); in TEST_F()
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsBufferTestUtil.cpp | 55 VERIFY_QUAD_SIZE = 8, //!< Quad size in VertexArrayVerifier 246 DE_ASSERT(de::inBounds(offset, 0, (int)m_data.size()) && de::inRange(offset+numBytes, offset, (int)m_data.size())); in setSubData() 603 glBufferData (GL_ARRAY_BUFFER, (glw::GLsizeiptr)(positions.size()*sizeof(positions[0])), &positions[0], GL_STATIC_DRAW); 609 glBufferData (GL_ELEMENT_ARRAY_BUFFER, (glw::GLsizeiptr)(indices.size()*sizeof(indices[0])), &indices[0], GL_STATIC_DRAW); 810 glBufferData (GL_ARRAY_BUFFER, (glw::GLsizeiptr)(positions.size()*sizeof(positions[0])), &positions[0], GL_STREAM_DRAW); 814 glBufferData (GL_ARRAY_BUFFER, (glw::GLsizeiptr)(colors.size()*sizeof(colors[0])), &colors[0], GL_STREAM_DRAW); 827 glBufferData (GL_ARRAY_BUFFER, (glw::GLsizeiptr)(fetchedPos.size()*sizeof(fetchedPos[0])), &fetchedPos[0], GL_STREAM_DRAW); 831 glBufferData (GL_ARRAY_BUFFER, (glw::GLsizeiptr)(fetchedColor.size()*sizeof(fetchedColor[0])), &fetchedColor[0], GL_STREAM_DRAW);
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fVertexArrayTest.cpp | 511 << spec.arrays.size(); in getTestName() 581 << spec.arrays.size(); in getTestName() 583 for (int arrayNdx = 0; arrayNdx < (int)spec.arrays.size(); arrayNdx++) in getTestName() 599 for (int arrayNdx = 0; arrayNdx < (int)spec.arrays.size(); arrayNdx++) in addStorageCases() 684 << spec.arrays.size(); in getTestName() 686 for (int arrayNdx = 0; arrayNdx < (int)spec.arrays.size(); arrayNdx++) in getTestName() 775 << spec.arrays.size(); in getTestName() 777 for (int arrayNdx = 0; arrayNdx < (int)spec.arrays.size(); arrayNdx++) in getTestName()
|
/drivers/peripheral/audio/test/systemtest/common/hdi_common/src/ |
H A D | audio_hdi_common.cpp | 149 for (int i = flag.size() - 1; i >= 0; i--) { in StringToInt() 165 int portFlag, struct AudioPort *&audioPort, int size) in SwitchAdapter() 167 if (descs == nullptr || size > ADAPTER_COUNT) { in SwitchAdapter() 171 for (int index = 0; index < size; index++) { in SwitchAdapter() 259 int32_t GetAdapters(TestAudioManager *manager, struct AudioAdapterDescriptor **descs, int &size) in GetAdapters() argument 265 int32_t ret = manager->GetAllAdapters(manager, descs, &size); in GetAdapters() 273 size = 1; in GetAdapters() 286 (size))); in GetAdapters() 304 int size = 0; in GetLoadAdapter() local 310 ret = GetAdapters(manager, &descs, size); in GetLoadAdapter() 164 SwitchAdapter(struct AudioAdapterDescriptor *descs, const std::string &adapterNameCase, int portFlag, struct AudioPort *&audioPort, int size) SwitchAdapter() argument [all...] |
/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db.c | 212 uint32_t size = pinIndexLen * sizeof(PinIndexV1); in DelPinInDb() local 213 PinIndexV1 *pinIndex = (PinIndexV1 *)Malloc(size); in DelPinInDb() 218 (void)memset_s(pinIndex, size, 0, size); in DelPinInDb() 313 uint32_t size = (g_pinDbOp->pinIndexLen + 1) * sizeof(PinIndexV1); in AddPinInDb() local 314 PinIndexV1 *pinIndex = (PinIndexV1 *)Malloc(size); in AddPinInDb() 319 (void)memset_s(pinIndex, size, 0, size); in AddPinInDb() 321 if (memcpy_s(pinIndex, size, in AddPinInDb() 324 (void)memset_s(pinIndex, size, in AddPinInDb() [all...] |
/foundation/CastEngine/castengine_wifi_display/services/impl/wfd/wfd_source/ |
H A D | wfd_source_session.cpp | 377 if (ret.info.size() > 2 && ret.info.back() == '$') { // size at least bigger than 2 in OnServerReadData() 740 bool ret = session->Send(m1Req.c_str(), m1Req.size()); in SendM1Request() 761 bool ret = session->Send(m2Res.c_str(), m2Res.size()); in SendM2Response() 782 bool ret = session->Send(m3Req.c_str(), m3Req.size()); in SendM3Request() 808 bool ret = session->Send(m4Req.c_str(), m4Req.size()); in SendM4Request() 830 bool ret = session->Send(m5Req.c_str(), m5Req.size()); in SendM5Request() 853 bool ret = session->Send(m6Res.c_str(), m6Res.size()); in SendM6Response() 875 bool ret = session->Send(m7Res.c_str(), m7Res.size()); in SendM7Response() 896 bool ret = session->Send(m8Res.c_str(), m8Res.size()); in SendM8Response() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_item_pattern.cpp | 1155 bool ListItemPattern::ClickJudgeVertical(const SizeF& size, double xOffset, double yOffset) in ClickJudgeVertical() argument 1157 if (yOffset < 0 || yOffset > size.Height()) { in ClickJudgeVertical() 1163 } else if (endNodeSize_ && xOffset > size.Width() - endNodeSize_ && xOffset < size.Width()) { in ClickJudgeVertical() 1169 } else if (startNodeSize_ && xOffset > size.Width() - startNodeSize_ && xOffset < size.Width()) { in ClickJudgeVertical() 1191 auto size = geometryNode->GetFrameSize(); in ClickJudge() local 1195 return ClickJudgeVertical(size, xOffset, yOffset); in ClickJudge() 1197 if (xOffset > 0 && xOffset < size.Width()) { in ClickJudge() 1200 } else if (endNodeSize_ && yOffset > size in ClickJudge() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/ |
H A D | sheet_presentation_test_two_ng.cpp | 302 EXPECT_TRUE(sheetPattern->sheetDetentHeight_.size() <= 0); in HWTEST_F() 333 ASSERT_TRUE(sheetPattern->sheetDetentHeight_.size() > 0); in HWTEST_F() 335 auto maxDetentSize = sheetPattern->sheetDetentHeight_[sheetPattern->sheetDetentHeight_.size() - 1]; in HWTEST_F() 372 ASSERT_TRUE(sheetPattern->sheetDetentHeight_.size() > 0); in HWTEST_F() 374 auto maxDetentSize = sheetPattern->sheetDetentHeight_[sheetPattern->sheetDetentHeight_.size() - 1]; in HWTEST_F() 413 ASSERT_TRUE(sheetPattern->sheetDetentHeight_.size() > 0); in HWTEST_F() 415 auto maxDetentSize = sheetPattern->sheetDetentHeight_[sheetPattern->sheetDetentHeight_.size() - 1]; in HWTEST_F() 452 ASSERT_TRUE(sheetPattern->sheetDetentHeight_.size() > 0); in HWTEST_F() 454 auto maxDetentSize = sheetPattern->sheetDetentHeight_[sheetPattern->sheetDetentHeight_.size() - 1]; in HWTEST_F() 494 ASSERT_TRUE(sheetPattern->sheetDetentHeight_.size() > in HWTEST_F() [all...] |
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_window_manager.cpp | 53 HILOG_DEBUG("windowInfos size is %{public}zu", windowInfos.size()); in Init() 139 if (infos.size() == 0) { in OnWindowUpdate() 169 HILOG_DEBUG("a11yWindows[%{public}zu]", a11yWindows_.size()); in OnWindowUpdate() 292 HILOG_DEBUG("bundle name is [%{public}s] , touchHotAreas size(%{public}zu)", in UpdateAccessibilityWindowInfo() 293 windowInfo->bundleName_.c_str(), windowInfo->touchHotAreas_.size()); in UpdateAccessibilityWindowInfo() 422 HILOG_DEBUG("a11yWindows_ size[%{public}zu]", a11yWindows_.size()); in GetAccessibilityWindows() 594 windowInfo->touchHotAreas_.size() != accWindowInfo.GetTouchHotAreas().size()) { in EqualProperty() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/ |
H A D | installd_proxy.cpp | 201 LOG_E(BMS_TAG_INSTALLD, "createDirParams size is empty"); in CreateBundleDataDirWithVector() 204 INSTALLD_PARCEL_WRITE(data, Uint32, createDirParams.size()); in CreateBundleDataDirWithVector() 316 uint32_t uidSize = uids.size(); in GetAllBundleStats() 672 INSTALLD_PARCEL_WRITE(data, Int32, static_cast<int32_t>(dirMap.size())); in ExtractDriverSoFiles() 812 const auto size = extensionBundleDirs.size(); in RemoveExtensionDir() local 813 if (size > MAX_VEC_SIZE) { in RemoveExtensionDir() 814 APP_LOGE("fail to RemoveExtensionDir due to extensionBundleDirs size %{public}zu is too big", size); in RemoveExtensionDir() 817 INSTALLD_PARCEL_WRITE(data, Int32, size); in RemoveExtensionDir() [all...] |
/foundation/multimedia/audio_framework/services/audio_service/test/example/ |
H A D | audio_process_client_test.cpp | 237 bool IsFrameHigh(const int16_t *audioData, const int32_t size, int32_t threshold); 342 bool AudioProcessTestCallback::IsFrameHigh(const int16_t *audioData, const int32_t size, int32_t threshold) in IsFrameHigh() argument 345 for (int32_t i = 0; i < size; i++) { in IsFrameHigh() 391 if (bt != 0 && g_captureBeepTime_.size() < g_playBeepTime_.size()) { in CaptureToFile() 510 if (devices.size() != 1) { in SelectDevice() 511 std::cout << "GetDevices failed, unsupported size:" << devices.size() << std::endl; in SelectDevice() 976 int32_t playSize = g_playBeepTime_.size(); in CountLatencyTime() 977 if (g_playBeepTime_.size() ! in CountLatencyTime() [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | gpu_program_gles.cpp | 123 tmp.reserve(t.name.size() + iStr.size() + 2U); in ProcessUniformBlocks() 317 const auto afterType = view.substr(typeI + type.size()); 326 if (const char ch = afterType[t.name.size()]; 372 pos = view.find(SPECIAL_BINDING, pos + SPECIAL_BINDING.size())) { 479 bindinfos.reserve(samplers.size() + others.size()); 495 fragSource.insert(p + 1, extension.data(), extension.size()); 522 const auto value = vertSource.cbegin() + static_cast<ptrdiff_t>(pos + numViews.size() - 2U); 596 PLUGIN_ASSERT(list.size() < Gle [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_material_render_slot.cpp | 265 (!cameras.empty() && (currentScene_.cameraIdx < (uint32_t)cameras.size())) ? true : false; in ExecuteFrame() 281 const size_t submeshCount = sortedSlotSubmeshes_.size(); in RenderSubmeshes() 386 if ((!(currSubmesh.customResourcesIndex < static_cast<uint32_t>(customResourceHandles.size()))) || in RenderSubmeshes() 460 // NOTE: should be PipelineLayoutConstants::MAX_UBO_BIND_BYTE_SIZE or current size in UpdateSet01() 512 if (RenderHandleUtil::IsValid(descSetHandle) && (descBindings.size() == customResourceData.resourceHandleCount)) { in UpdateAndBindSet3() 517 CORE_ASSERT(idx < descBindings.size()); in UpdateAndBindSet3() 612 if (const auto cameras = dataStoreCamera.GetCameras(); cameraIdx < (uint32_t)cameras.size()) { in UpdateCurrentScene() 673 allShaderData_.defaultSpecilizationConstants.resize(sscv.constants.size()); in CreateDefaultShaderData() 674 for (uint32_t idx = 0; idx < (uint32_t)allShaderData_.defaultSpecilizationConstants.size(); ++idx) { in CreateDefaultShaderData() 678 Math::min(static_cast<uint32_t>(allShaderData_.defaultSpecilizationConstants.size()), in CreateDefaultShaderData() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | ext_decoder_test.cpp | 201 Size size;
in HWTEST_F() local 202 uint32_t ret = extDecoder->GetImageSize(index, size);
in HWTEST_F() 206 ret = extDecoder->GetImageSize(index, size);
in HWTEST_F() 569 uint32_t size = 0;
in HWTEST_F() local 570 ret = extDecoder->ModifyImageProperty(index, key, value, data, size);
in HWTEST_F() 708 size_t size = 128;
in HWTEST_F() local 710 bool ret = extWStream.write(buffer, size);
in HWTEST_F() 714 ret = extWStream.write(buffer, size);
in HWTEST_F() 807 size_t size = 0;
in HWTEST_F() local 809 size_t ret = extStream.read(buffer, size);
in HWTEST_F() [all...] |