/third_party/vk-gl-cts/framework/platform/ohos/ |
H A D | testmain.cpp | 108 if (deep >= namePath.size()) in GetCasePath() 124 for (uint32_t i = 0; i < children.size(); i++) in GetCasePath()
|
/third_party/vk-gl-cts/framework/randomshaders/ |
H A D | rsgShader.cpp | 100 for (int ndx = (int)m_globalStatements.size()-1; ndx >= 0; ndx--) in tokenize() 104 for (int ndx = (int)m_functions.size()-1; ndx >= 0; ndx--) in tokenize()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/fst/ |
H A D | fst_iface.h | 107 const u8 *buf, size_t size) in fst_iface_update_mb_ie() 109 i->iface_obj.update_mb_ie(i->iface_obj.ctx, addr, buf, size); in fst_iface_update_mb_ie() 105 fst_iface_update_mb_ie(struct fst_iface *i, const u8 *addr, const u8 *buf, size_t size) fst_iface_update_mb_ie() argument
|
/third_party/zlib/ |
H A D | gzguts.h | 121 extern voidp malloc(uInt size); 153 /* default i/o buffer size -- double this for output when reading (this and 179 unsigned size; /* buffer size, zero if not allocated yet */ member 180 unsigned want; /* requested buffer size, default is GZBUFSIZE */
|
/third_party/node/deps/v8/src/heap/ |
H A D | heap.cc | 241 // Compute the semi space size and cap it. in YoungGenerationSizeFromOldGenerationSize() 253 // Compute the old generation size and cap it. in HeapSizeFromPhysicalMemory() 272 // Initialize values for the case when the given heap size is too small. in GenerationSizesFromHeapSize() 275 // Binary search for the largest old generation size that fits to the given in GenerationSizesFromHeapSize() 283 // This size configuration fits into the given heap limit. in GenerationSizesFromHeapSize() 316 // Finch experiment: Increase the heap size from 2GB to 4GB for 64-bit in MaxOldGenerationSize() 423 bool Heap::CanExpandOldGeneration(size_t size) { in CanExpandOldGeneration() argument 425 if (OldGenerationCapacity() + size > max_old_generation_size()) return false; in CanExpandOldGeneration() 428 // the total allocated memory size over the maximum heap size in CanExpandOldGeneration() 432 CanExpandOldGenerationBackground(LocalHeap* local_heap, size_t size) CanExpandOldGenerationBackground() argument 442 CanPromoteYoungAndExpandOldGeneration(size_t size) CanPromoteYoungAndExpandOldGeneration() argument 756 UpdateAllocationsHash(size); global() variable 779 UpdateAllocationsHash(size); global() variable 1560 CompareWords(int size, HeapObject a, HeapObject b) CompareWords() argument 1576 ReportDuplicates(int size, std::vector<HeapObject>* objects) ReportDuplicates() argument 3310 CreateFillerObjectAtImpl(Heap* heap, Address addr, int size, ClearFreedMemoryMode clear_memory_mode) CreateFillerObjectAtImpl() argument 3360 CreateFillerObjectAt(Address addr, int size, ClearFreedMemoryMode clear_memory_mode) CreateFillerObjectAt() argument 3369 CreateFillerObjectAtBackground( Address addr, int size, ClearFreedMemoryMode clear_memory_mode) CreateFillerObjectAtBackground() argument 3376 CreateFillerObjectAt(Address addr, int size, ClearRecordedSlots clear_slots_mode) CreateFillerObjectAt() argument [all...] |
/foundation/multimodalinput/input/service/connect_manager/src/ |
H A D | multimodal_input_connect_proxy.cpp | 72 uint32_t size = 0; in ParseInputDevice() local 73 READUINT32(reply, size, IPC_PROXY_DEAD_OBJECT_ERR); in ParseInputDevice() 75 for (uint32_t i = 0; i < size; ++i) { in ParseInputDevice() 328 int32_t MultimodalInputConnectProxy::SetPointerSize(int32_t size) in SetPointerSize() argument 337 WRITEINT32(data, size, ERR_INVALID_VALUE); in SetPointerSize() 377 int32_t MultimodalInputConnectProxy::GetPointerSize(int32_t &size) in GetPointerSize() argument 395 READINT32(reply, size, IPC_PROXY_DEAD_OBJECT_ERR); in GetPointerSize() 698 WRITEINT32(data, pointerStyle.size, RET_ERR); in SetPointerStyle() 759 READINT32(reply, pointerStyle.size, IPC_PROXY_DEAD_OBJECT_ERR); in GetPointerStyle() 816 WRITEINT32(data, static_cast<int32_t>(keys.size())); in SupportKeys() 1384 int32_t size = 0; GetDisplayBindInfo() local 1417 int32_t size = 0; GetAllMmiSubscribedEvents() local [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | VertexAttributeTest.cpp | 398 static_cast<GLsizei>(quadVertices.size() * sizeof(quadVertices[0])); in InitQuadVertexBuffer() 409 static_cast<GLsizei>(quadVertices.size() * sizeof(quadVertices[0])); in InitQuadPlusOneVertexBuffer() 751 // when the type size is 3, alpha will be 1.0f by GLES driver in TEST_P() 805 // when the type size is 3, alpha will be 1.0f by GLES driver in TEST_P() 857 // when the type size is 3, alpha will be 1.0f by GLES driver in TEST_P() 912 // when the type size is 3, alpha will be 1.0f by GLES driver in TEST_P() 1074 glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(GLColor32F), vertices.data(), usage); in SetupColorsForUnitQuad() 1115 glBufferData(GL_ARRAY_BUFFER, quadVertices.size() * sizeof(Vector3), quadVertices.data(), in TEST_P() 1665 glBufferData(GL_ARRAY_BUFFER, inputData.size(), inputData.data(), GL_STATIC_DRAW); in TEST_P() 1718 glBufferData(GL_ARRAY_BUFFER, sizeof(GLushort) * data.size(), dat in TEST_P() 2674 GLint size; global() member [all...] |
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui.h | 139 struct ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. 340 // - For each independent axis of 'size': ==0.0f: use remaining host window size / >0.0f: fixed size / <0.0f: use remaining window size minus abs(size) / Each axis can use a different mode, e.g. ImVec2(0,400). 346 IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); 347 IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); 358 IMGUI_API ImVec2 GetWindowSize(); // get current window size 365 IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCon 1717 inline int size() const { return Size; } size() function 2111 int size() const { return Buf.Size ? Buf.Size - 1 : 0; } size() function [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fShaderStateQueryTests.cpp | 1569 GLint size = 0; in test() local 1571 glGetActiveUniform(program, uniformIndex, DE_LENGTH_OF_ARRAY(buffer), &written, &size, &type, buffer); in test() 1583 glGetActiveUniform(program, uniformIndex, 1, &written, &size, &type, buffer); in test() 1619 GLint size; in test() member 1719 verifyActiveUniformParam(m_testCtx, *this, program, uniformIndex, GL_UNIFORM_SIZE, uniformTypes[ndx].size); in test() 2033 GLint size = 0; in test() local 2035 glGetTransformFeedbackVarying(shaderProg, index, DE_LENGTH_OF_ARRAY(buffer), &written, &size, &type, buffer); in test() 2046 glGetTransformFeedbackVarying(shaderProg, index, 1, &written, &size, &type, buffer); in test() 2117 GLint size = 0; in test() local 2119 glGetActiveAttrib(program, attributeNdx, DE_LENGTH_OF_ARRAY(buffer), &written, &size, in test() 2143 GLint size = 0; test() local 2160 GLint size; global() member 2383 GLint size; test() member [all...] |
/third_party/vk-gl-cts/modules/gles3/performance/ |
H A D | es3pShaderCompilationCases.cpp | 77 // Texture size for the light shader and texture lookup shader cases. 96 while (firstLineEndNdx < (int)str.size() && str[firstLineEndNdx] != '\n') in strWithWhiteSpaceAndComments() 102 DE_ASSERT(firstLineEndNdx < (int)str.size()); in strWithWhiteSpaceAndComments() 142 for (int i = 0; i < (int)v.size(); i++) 144 return result / (float)v.size(); 153 return temp.size() % 2 == 0 154 ? 0.5f * ((float)temp[temp.size()/2-1] + (float)temp[temp.size()/2]) 155 : (float)temp[temp.size()/2]; 177 for (int i = 0; i < (int)v.size(); [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fDebugTests.cpp | 1003 for (int ndx = 0; ndx < int(m_errorFuncs.size()); ndx++) 1023 for (int ndx = 0; ndx < int(messages.size()); ndx++) 1048 const GLenum source = sources[rng.getInt(0, int(sources.size()-1))]; 1057 const GLenum type = types[rng.getUint32()%types.size()]; 1066 const GLenum severity = severities[rng.getUint32()%severities.size()]; 1075 const int start = rng.getInt(0, int(messageIds.size())); 1079 const MessageID& id = messageIds[(start+itr)%messageIds.size()]; 1098 for (size_t filterNdx = 0; filterNdx < filters.size(); filterNdx++) 1111 for (size_t ndx = 0; ndx < filter.ids.size(); ndx++) 1115 gl.debugMessageControl(filter.source, filter.type, filter.severity, GLsizei(filter.ids.size()), filte [all...] |
/third_party/vk-gl-cts/modules/gles2/performance/ |
H A D | es2pShaderCompilationCases.cpp | 77 // Texture size for the light shader and texture lookup shader cases. 96 while (firstLineEndNdx < (int)str.size() && str[firstLineEndNdx] != '\n') in strWithWhiteSpaceAndComments() 102 DE_ASSERT(firstLineEndNdx < (int)str.size()); in strWithWhiteSpaceAndComments() 142 for (int i = 0; i < (int)v.size(); i++) 144 return result / (float)v.size(); 153 return temp.size() % 2 == 0 154 ? 0.5f * ((float)temp[temp.size()/2-1] + (float)temp[temp.size()/2]) 155 : (float)temp[temp.size()/2]; 177 for (int i = 0; i < (int)v.size(); [all...] |
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nncompiler.cpp | 320 if (m_liteGraph->all_nodes_.size() == 0) { in IsOfflineModel() 326 if (m_liteGraph->all_nodes_.size() > 1) { in IsOfflineModel() 493 for (size_t i = 0; i < buffers.size(); ++i) { in ReleaseBuffer() 502 for (size_t i = 0; i < buffers.size(); ++i) { in ReleaseBufferByDevice() 606 size_t cacheNum = caches.size(); in RestoreFromCacheFile() 664 const size_t cacheNumber = caches.size(); in RestoreFromCacheFile() 679 for (size_t i = 0; i < modelCacheInfo.modelCheckSum.size(); ++i) { in RestoreFromCacheFile() 721 m_extensionConfig.modelName.assign(value.data(), value.data() + value.size()); in SetExtensionConfig()
|
/foundation/ai/neural_network_runtime/test/system_test/ |
H A D | end_to_end_test.cpp | 146 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F() 201 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F() 274 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F() 325 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F() 374 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F() 451 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F() 522 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F() 581 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/ |
H A D | wrap_layout_algorithm.cpp | 142 // and a item has main axis size differ than content height in Measure() 187 float WrapLayoutAlgorithm::GetMainAxisLengthOfSize(const SizeF& size) const in GetMainAxisLengthOfSize() 190 return size.Height(); in GetMainAxisLengthOfSize() 192 return size.Width(); in GetMainAxisLengthOfSize() 195 float WrapLayoutAlgorithm::GetCrossAxisLengthOfSize(const SizeF& size) const in GetCrossAxisLengthOfSize() 198 return size.Width(); in GetCrossAxisLengthOfSize() 200 return size.Height(); in GetCrossAxisLengthOfSize() 211 // if content cross axis size is larger than item cross axis size, in StretchItemsInContent() 212 // measure items again with content cross axis size a in StretchItemsInContent() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_split/ |
H A D | linear_split_layout_algorithm.cpp | 43 // Use idea size first if it is valid. in Measure() 54 if (!childrenDragPos_.empty() && childrenDragPos_.size() != static_cast<size_t>(visibleChildCount_) + 1U) { in Measure() 58 // measure self size. in Measure() 101 // Use idea size first if it is valid. in MeasureBeforeAPI10() 112 // measure self size. in MeasureBeforeAPI10() 317 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutRowSplit() 343 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutRowSplit() 368 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutColumnSplit() 395 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutColumnSplit() 405 if (static_cast<uint32_t>(index) >= childrenConstrains_.size()) { in ColumnSplitChildConstrain() 442 auto size = static_cast<float>(theme->GetLinearSplitChildMinSize()); GetLinearSplitChildMinSize() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/ |
H A D | grid_irregular_layout_algorithm.cpp | 81 // set self size in MeasureSelf() 82 auto size = CreateIdealSize(props->GetLayoutConstraint().value(), info_.axis_, props->GetMeasureType(), true); in MeasureSelf() local 83 wrapper_->GetGeometryNode()->SetFrameSize(size); in MeasureSelf() 85 // set content size in MeasureSelf() 88 MinusPaddingToSize(padding, size); in MeasureSelf() 90 size.AddHeight(info_.contentEndPadding_); in MeasureSelf() 91 wrapper_->GetGeometryNode()->SetContentSize(size); in MeasureSelf() 93 return size.MainSize(info_.axis_); in MeasureSelf() 121 info_.crossCount_ = static_cast<int32_t>(crossLens_.size()); in Init() 347 info_.avgLineHeight_ = info_.GetTotalLineHeight(0.0f) / static_cast<float>(info_.lineHeightMap_.size()); in UpdateLayoutInfo() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/accessibility/ |
H A D | js_third_provider_interaction_operation_test.cpp | 322 EXPECT_EQ(operatorCallback.mockInfos_.size(), 0); in HWTEST_F() 330 EXPECT_EQ(operatorCallback.mockInfos_.size(), in HWTEST_F() 331 ohAccessibilityProvider->providerMockResult_.elementInfosList_.size()); in HWTEST_F() 370 EXPECT_EQ(operatorCallback.mockInfos_.size(), in HWTEST_F() 371 ohAccessibilityProvider->providerMockResult_.elementInfosList_.size()); in HWTEST_F() 625 EXPECT_EQ(operatorCallback.mockInfos_.size(), in HWTEST_F() 626 ohAccessibilityProvider->providerMockResult_.elementInfosList_.size()); in HWTEST_F() 632 for (int32_t i = 0; i < operatorCallback.mockInfos_.size(); i++) { in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | button_modifier.cpp | 45 constexpr int32_t BORDER_RADIUS_SIZE = 12; // BorderRadius array size 224 if (fontStyle < 0 || fontStyle >= static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonFontStyle() 351 result < static_cast<int32_t>(TEXT_OVERFLOWS.size())) { in SetButtonValueParameters() 360 result < static_cast<int32_t>(HEIGHT_ADAPTIVE_POLICY.size())) { in SetButtonValueParameters() 365 result < static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonValueParameters() 383 if (fontFamilyResult.size() == 1 && in SetButtonStringParameters() 567 ControlSize size = ControlSize::NORMAL; in SetButtonControlSize() local 570 size = static_cast<ControlSize>(controlSize); in SetButtonControlSize() 572 ButtonModelNG::SetControlSize(frameNode, size); in SetButtonControlSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | multiple_paragraph_layout_algorithm.cpp | 36 auto size = layoutWrapper->GetGeometryNode()->GetFrameSize(); in GetContentOffsetY() local 45 offsetY += Alignment::GetAlignPosition(size, content->GetRect().GetSize(), align).GetY(); in GetContentOffsetY() 131 if (index >= placeholderIndex.size() || index < 0) { in Layout() 136 if (indexTemp >= static_cast<int32_t>(rectsForPlaceholders.size()) || indexTemp < 0) { in Layout() 353 auto size = layoutWrapper->GetGeometryNode()->GetFrameSize(); in SetContentOffset() local 355 MinusPaddingToSize(padding, size); in SetContentOffset() 366 contentOffset = Alignment::GetAlignPosition(size, content->GetRect().GetSize(), align) + paddingOffset; in SetContentOffset() 731 leadingMarginValue = paragraphStyle.leadingMargin->size.Width().ConvertToPxDistribute( in ApplyIndent()
|
/foundation/multimedia/av_codec/services/media_engine/filters/ |
H A D | demuxer_filter.cpp | 189 MEDIA_LOG_I_SHORT("trackCount: %{public}zu", trackInfos.size()); in DoPrepare() 190 if (trackInfos.size() == 0) { in DoPrepare() 210 for (size_t index = 0; index < trackInfos.size(); index++) { in HandleTrackInfos() 359 if (it != nextFiltersMap_.end() && it->second.size() == 1) { in PauseForSeek() 385 MEDIA_LOG_I_SHORT("ResumeForSeek in size: %{public}zu", nextFiltersMap_.size()); in ResumeForSeek() 387 if (it != nextFiltersMap_.end() && it->second.size() == 1) { in ResumeForSeek() 399 if (it != nextFiltersMap_.end() && it->second.size() == 1) { in ResumeForSeek() 640 if (mime.substr(0, MIME_IMAGE.size()).compare(MIME_IMAGE) == 0) { in ShouldTrackSkipped()
|
H A D | surface_encoder_adapter.cpp | 521 int32_t size = buffer->memory_->GetSize();
in TransCoderOnOutputBufferAvailable() local 524 avBufferConfig.size = size;
in TransCoderOnOutputBufferAvailable() 537 bufferMem->Write(buffer->memory_->GetAddr(), size, 0);
in TransCoderOnOutputBufferAvailable() 595 int32_t size = buffer->memory_->GetSize();
in OnOutputBufferAvailable() local 598 avBufferConfig.size = size;
in OnOutputBufferAvailable() 605 bufferMem->Write(buffer->memory_->GetAddr(), size, 0);
in OnOutputBufferAvailable()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | render_node_parser_util.cpp | 189 { RenderNodeGraphInputs::RenderNodeGraphGpuImageDesc::DependencyFlagBits::SIZE, "size" }, 240 if (pos->is_array() && pos->array_.size() == 4) { in FromJson() 245 "clearColor must be an array of length 4 : (" + string_view(asString.data(), asString.size()) + ")\n"; in FromJson() 249 if (pos->is_array() && pos->array_.size() == 2) { in FromJson() 255 string_view(asString.data(), asString.size()) + ")\n"; in FromJson() 263 string_view(asString.data(), asString.size()) + ")\n"; in FromJson() 268 string_view(asString.data(), asString.size()) + ")\n"; in FromJson() 310 if (pos->is_array() && pos->array_.size() == 2) { in FromJson() 398 if (pos->is_array() && pos->array_.size() == 2) { // 2 :size in ParseRenderpass() [all...] |
/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/ |
H A D | file_trash_n_exporter.cpp | 150 status = napi_create_array_with_length(env, result.size(), &fileInfoResultArray);
in CreateObjectArray() 156 for (size_t i = 0; i < result.size(); i++) {
in CreateObjectArray() 171 status |= napi_create_int64(env, tmpResult.size, &tmpVal);
in CreateObjectArray() 172 status |= napi_set_named_property(env, resultVal, "size", tmpVal);
in CreateObjectArray() 397 fileInfoEntity.size = static_cast<int64_t>(statEntity.stat_.st_size);
in GenerateFileInfoEntity() 439 for (size_t j = 0; j < dirents.size(); j++) {
in ListFile() 495 for (size_t j = 0; j < filePathList.size(); j++) {
in RecoverFilePart() 519 for (size_t j = 0; j < filterDirPathList.size(); j++) {
in MakeAndFindUpdateNameDir() 552 for (size_t j = 0; j < dirents.size(); j++) {
in RecoverDir()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_utils.cpp | 365 if (filePath.size() > (lastSlash + 1)) { in GetFileName() 572 if (filePath.size() >= PATH_MAX) { in CopyFileUtil() 573 MEDIA_ERR_LOG("File path too long %{public}d", static_cast<int>(filePath.size())); in CopyFileUtil() 790 size_t size = str.length(); in CheckStringSize() local 791 if (size == 0) { in CheckStringSize() 794 if (size > max) { in CheckStringSize() 1191 if (filePath.size() >= PATH_MAX) { 1192 MEDIA_ERR_LOG("File path too long %{public}d", (int)filePath.size()); 1308 if (filePath.size() >= PATH_MAX) { 1309 MEDIA_ERR_LOG("File path too long %{public}d", (int)filePath.size()); 1866 GetFileSize(const std::string& filePath, size_t& size) global() argument [all...] |