/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | waterflow_section_option.cpp | 29 waterFlowSectionOption->sections.resize(1); in OH_ArkUI_WaterFlowSectionOption_Create() 30 // 此时 sections 已经是空的 std::vector<Section>,无需额外操作 in OH_ArkUI_WaterFlowSectionOption_Create() 49 option->sections.resize(size); in OH_ArkUI_WaterFlowSectionOption_SetSize() 62 auto size = static_cast<int32_t>(option->sections.size()); in OH_ArkUI_WaterFlowSectionOption_SetItemCount() 64 option->sections.resize(static_cast<uint32_t>(index + 1)); in OH_ArkUI_WaterFlowSectionOption_SetItemCount() 65 option->sections[index].itemsCount = itemCount; in OH_ArkUI_WaterFlowSectionOption_SetItemCount() 67 option->sections[index].itemsCount = itemCount; in OH_ArkUI_WaterFlowSectionOption_SetItemCount() 81 auto size = static_cast<int32_t>(option->sections.size()); in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() 83 option->sections.resize(static_cast<uint32_t>(index + 1)); in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() 84 option->sections[inde in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() [all...] |
H A D | waterflow_section_option.h | 35 std::vector<ArkUIWaterFlowSection> sections; member
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_section_test.cpp | 87 auto sections = SECTION_7; in HWTEST_F() local 88 sections[3].crossCount = 5; in HWTEST_F() 89 s.ReplaceFrom(0, sections); in HWTEST_F() 92 ++sections[2].itemsCount; in HWTEST_F() 93 s.ReplaceFrom(0, sections); in HWTEST_F() 96 --sections[3].itemsCount; in HWTEST_F() 97 s.ReplaceFrom(0, sections); in HWTEST_F()
|
H A D | water_flow_segment_common_test.cpp | 35 * @tc.desc: Layout WaterFlow with empty sections. 237 * @tc.desc: Layout WaterFlow and then delete sections. 272 * @tc.desc: Layout WaterFlow and then delete sections. 311 * @tc.desc: Layout WaterFlow and then replace sections. 352 * @tc.desc: Layout WaterFlow and then replace sections. 585 auto sections = SECTION_7; in HWTEST_F() local 586 sections[3].onGetItemMainSizeByIndex = nullptr; in HWTEST_F() 587 secObj->ChangeData(0, 0, sections); in HWTEST_F() 615 auto sections = SECTION_7; in HWTEST_F() local 616 sections[ in HWTEST_F() 645 auto sections = SECTION_10; HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/lumeassetcompiler/src/ |
H A D | main.cpp | 170 IMAGE_SECTION_HEADER sections[1]; member 180 obj.coffHead.NumberOfSections = sizeof(obj.sections) / sizeof(IMAGE_SECTION_HEADER); 215 memcpy(&obj.sections[0].Name[0], secname.c_str(), secname.size()); 216 obj.sections[0].Misc.VirtualSize = 0; 217 obj.sections[0].VirtualAddress = 0; 218 obj.sections[0].SizeOfRawData = (uint32_t)size_of_section; // sizeof the data on disk. 219 obj.sections[0].PointerToRawData = 221 obj.sections[0].PointerToLinenumbers = 0; 222 obj.sections[0].NumberOfRelocations = 0; 223 obj.sections[ [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/ |
H A D | water_flow_layout_info_base.cpp | 51 const std::vector<WaterFlowSections::Section>& sections, const ScaleProperty& scale, float percentWidth) in InitMargins() 53 size_t n = sections.size(); in InitMargins() 59 if (sections[i].margin) { in InitMargins() 60 margins_[i] = ConvertToMarginPropertyF(*sections[i].margin, scale, percentWidth); in InitMargins() 50 InitMargins( const std::vector<WaterFlowSections::Section>& sections, const ScaleProperty& scale, float percentWidth) InitMargins() argument
|
H A D | water_flow_layout_info_base.h | 147 * @param sections section data. 150 virtual void InitSegments(const std::vector<WaterFlowSections::Section>& sections, int32_t start) = 0; 177 * @param sections vector of Sections info. 182 const std::vector<WaterFlowSections::Section>& sections, const ScaleProperty& scale, float percentWidth); 185 virtual void InitSegmentsForKeepPositionMode(const std::vector<WaterFlowSections::Section>& sections,
|
H A D | water_flow_layout_utils.cpp | 151 float WaterFlowLayoutUtils::GetUserDefHeight(const RefPtr<WaterFlowSections>& sections, int32_t seg, int32_t idx) in GetUserDefHeight() argument 153 CHECK_NULL_RETURN(sections, -1.0f); in GetUserDefHeight() 154 const auto& section = sections->GetSectionInfo()[seg]; in GetUserDefHeight()
|
H A D | water_flow_layout_utils.h | 55 * @param sections WaterFlowSections 60 static float GetUserDefHeight(const RefPtr<WaterFlowSections>& sections, int32_t seg, int32_t idx);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/ |
H A D | water_flow_layout_info_sw.cpp | 496 void WaterFlowLayoutInfoSW::InitSegments(const std::vector<WaterFlowSections::Section>& sections, int32_t start) 499 const size_t n = sections.size(); 504 InitSegmentTails(sections); 506 InitLanes(sections, start); 522 // prepare sections below 535 // prepare sections above 553 void WaterFlowLayoutInfoSW::InitSegmentTails(const std::vector<WaterFlowSections::Section>& sections) 555 const size_t n = sections.size(); 557 segmentTails_ = { sections[0].itemsCount - 1 }; 559 segmentTails_.push_back(segmentTails_[i - 1] + sections[ [all...] |
H A D | water_flow_layout_info_sw.h | 100 void InitSegments(const std::vector<WaterFlowSections::Section>& sections, int32_t start) override; 206 void InitSegmentsForKeepPositionMode(const std::vector<WaterFlowSections::Section>& sections, 211 * @brief lanes in multiple sections. 237 void InitSegmentTails(const std::vector<WaterFlowSections::Section>& sections); 238 void InitLanes(const std::vector<WaterFlowSections::Section>& sections, const int32_t start); 250 * @param sections the new sections after change. 256 bool AdjustLanes(const std::vector<WaterFlowSections::Section>& sections,
|
H A D | water_flow_layout_sw.cpp | 104 const auto& sections = sections_->GetSectionInfo(); in Init() local 106 info_->InitSegments(sections, 0); in Init() 111 info_->InitMargins(sections, constraint->scaleProperty, constraint->percentReference.Width()); in Init() 113 SegmentedInit(sections, info_->margins_, frameSize); in Init()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bpf_loader.cpp | 397 return std::all_of(elfIo_.sections.begin(), elfIo_.sections.end(), [this](const auto §ion) { in SetLicenseAndVersion() 425 for (const auto §ion : elfIo_.sections) { in LoadElfMapSectionCore() 453 if (elfIo_.sections.size() == 0) { in LoadElfMapsSection() 457 auto it = std::find_if(elfIo_.sections.begin(), elfIo_.sections.end(), in LoadElfMapsSection() 459 if (it == elfIo_.sections.end()) { in LoadElfMapsSection() 768 return std::all_of(elfIo_.sections.begin(), elfIo_.sections.end(), [this](auto §ion) -> bool { 774 auto progSec = elfIo_.sections[inf [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_water_flow.cpp | 73 auto sectionValue = changeObject->GetProperty("sections"); in ParseChanges() 130 const JSCallbackInfo& args, const JSRef<JSVal>& sections, RefPtr<NG::WaterFlowSections>& waterFlowSections) in UpdateSections() 133 auto sectionsObject = JSRef<JSObject>::Cast(sections); in UpdateSections() 154 void UpdateWaterFlowSections(const JSCallbackInfo& args, const JSRef<JSVal>& sections) in UpdateWaterFlowSections() argument 158 UpdateSections(args, sections, waterFlowSections); in UpdateWaterFlowSections() 162 NG::FrameNode* frameNode, const JSCallbackInfo& args, const JSRef<JSVal>& sections) in UpdateWaterFlowSectionsByFrameNode() 166 UpdateSections(args, sections, waterFlowSections); in UpdateWaterFlowSectionsByFrameNode() 202 auto sections = obj->GetProperty("sections"); in Create() local 204 if (sections in Create() 129 UpdateSections( const JSCallbackInfo& args, const JSRef<JSVal>& sections, RefPtr<NG::WaterFlowSections>& waterFlowSections) UpdateSections() argument 161 UpdateWaterFlowSectionsByFrameNode( NG::FrameNode* frameNode, const JSCallbackInfo& args, const JSRef<JSVal>& sections) UpdateWaterFlowSectionsByFrameNode() argument [all...] |
H A D | js_water_flow.h | 27 NG::FrameNode* frameNode, const JSCallbackInfo& args, const JSRef<JSVal>& sections);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/ |
H A D | water_flow_layout_info.h | 131 * @param sections vector of Sections info. 132 * @param start index of the first modified section, all sections prior to [start] remain the same. 134 void InitSegments(const std::vector<WaterFlowSections::Section>& sections, int32_t start) override; 187 void InitSegmentsForKeepPositionMode(const std::vector<WaterFlowSections::Section>& sections,
|
H A D | water_flow_layout_info.cpp | 440 void WaterFlowLayoutInfo::InitSegments(const std::vector<WaterFlowSections::Section>& sections, int32_t start) in InitSegments() argument 442 size_t n = sections.size(); in InitSegments() 448 segmentTails_ = { sections[0].itemsCount - 1 }; in InitSegments() 450 segmentTails_.push_back(segmentTails_[i - 1] + sections[i].itemsCount); in InitSegments() 470 for (int32_t j = 0; j < sections[i].crossCount; ++j) { in InitSegments()
|
H A D | water_flow_segmented_layout.cpp | 173 const auto& sections = sections_->GetSectionInfo(); in Init() local 178 info_->InitMargins(sections, constraint->scaleProperty, constraint->percentReference.Width()); in Init() 181 SegmentedInit(sections, info_->margins_, frameSize); in Init()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | water_flow_modifier.cpp | 444 const auto& sectionArray = option->sections; in SetWaterFlowSectionOptions() 494 option.sections.resize(sectionsCount); in GetWaterFlowSectionOptions() 496 option.sections[i].itemsCount = newSection[i].itemsCount ? newSection[i].itemsCount : 0; in GetWaterFlowSectionOptions() 497 option.sections[i].crossCount = newSection[i].crossCount.has_value() ? newSection[i].crossCount.value() : 0; in GetWaterFlowSectionOptions() 498 option.sections[i].columnsGap = newSection[i].columnsGap.has_value() ? newSection[i].columnsGap->Value() : 0.0f; in GetWaterFlowSectionOptions() 499 option.sections[i].rowsGap = newSection[i].rowsGap.has_value() ? newSection[i].rowsGap->Value() : 0.0f; in GetWaterFlowSectionOptions() 500 option.sections[i].margin[0] = in GetWaterFlowSectionOptions() 502 option.sections[i].margin[1] = in GetWaterFlowSectionOptions() 504 option.sections[i].margin[2] = in GetWaterFlowSectionOptions() 506 option.sections[ in GetWaterFlowSectionOptions() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsEnumStyle.js | 2679 // splice(start: number, deleteCount?: number, sections?: Array<SectionOptions>): boolean; 2680 splice(start, deleteCount, sections) { 2688 const iterator = sections.values(); 2694 this.sectionArray.splice(start, deleteCount, ...sections); 2700 // If deleteCount is omitted, then all the sections from start to the end of the sectionArray will be deleted. 2710 this.changeArray.push({ start: intStart, deleteCount: intDeleteCount, sections: sections ? sections : [] }); 2721 this.changeArray.push({ start: oldLength, deleteCount: 0, sections: [section] }); 2734 this.changeArray.push({ start: intStart, deleteCount: 1, sections [all...] |
H A D | arkComponent.js | 29582 this.value?.scroller, this.value?.sections, this.value?.layoutMode);
|