Home
last modified time | relevance | path

Searched refs:selectedIndex (Results 1 - 25 of 39) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Dindexer_event_info.h25 explicit IndexerEventInfo(int32_t selectedIndex) : BaseEventInfo("indexer"), selectedIndex_(selectedIndex) in IndexerEventInfo() argument
H A Dindexer_component.h80 IndexerComponent(const std::vector<std::string>& label, int32_t selectedIndex) in IndexerComponent() argument
81 : selectedIndex_(selectedIndex) in IndexerComponent()
/foundation/arkui/ace_engine/test/unittest/core/pattern/indexer/
H A Dindexer_select_test_ng.cpp108 OnSelectedEvent onSelected = [&selected](int32_t selectedIndex) { selected = selectedIndex; }; in HWTEST_F()
109 OnSelectedEvent changeEvent = [&changeSelected](int32_t selectedIndex) { changeSelected = selectedIndex; }; in HWTEST_F()
111 int32_t selectedIndex) { creatChangeSelected = selectedIndex; }; in HWTEST_F()
256 OnSelectedEvent onSelected = [&selected](int32_t selectedIndex) { selected = selectedIndex; }; in HWTEST_F()
257 OnSelectedEvent changeEvent = [&changeSelected](int32_t selectedIndex) { changeSelected = selectedIndex; }; in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_item_accessibility_property.h40 auto selectedIndex = layoutProperty->GetIndicatorValue(0); variable
42 return index == selectedIndex;
H A Dtab_bar_pattern.cpp1403 int32_t selectedIndex = -1; in HandleBottomTabBarChange() local
1409 selectedIndex = index; in HandleBottomTabBarChange()
1411 HandleBottomTabBarClick(selectedIndex, unselectedIndex); in HandleBottomTabBarChange()
1430 void TabBarPattern::HandleBottomTabBarClick(int32_t selectedIndex, int32_t unselectedIndex) in HandleBottomTabBarClick() argument
1437 std::vector<int32_t> selectedIndexes = {selectedIndex, unselectedIndex}; in HandleBottomTabBarClick()
1442 layoutProperty->UpdateSelectedMask(selectedIndex); in HandleBottomTabBarClick()
1452 ChangeMask(selectedIndex, selectedImageSize, originalSelectedMaskOffset, NO_OPACITY, HALF_MASK_RADIUS_RATIO, true); in HandleBottomTabBarClick()
1457 PlayMaskAnimation(selectedImageSize, originalSelectedMaskOffset, selectedIndex, unselectedImageSize, in HandleBottomTabBarClick()
1563 const OffsetF& originalSelectedMaskOffset, int32_t selectedIndex, float unselectedImageSize, in PlayMaskAnimation()
1573 [weak = AceType::WeakClaim(this), selectedIndex, unselectedInde in PlayMaskAnimation()
1562 PlayMaskAnimation(float selectedImageSize, const OffsetF& originalSelectedMaskOffset, int32_t selectedIndex, float unselectedImageSize, const OffsetF& originalUnselectedMaskOffset, int32_t unselectedIndex) PlayMaskAnimation() argument
1609 MaskAnimationFinish(const RefPtr<FrameNode>& host, int32_t selectedIndex, bool isSelected) MaskAnimationFinish() argument
[all...]
H A Dtab_bar_pattern.h565 void HandleBottomTabBarClick(int32_t selectedIndex, int32_t unselectedIndex);
568 void PlayMaskAnimation(float selectedImageSize, const OffsetF& originalSelectedMaskOffset, int32_t selectedIndex,
570 static void MaskAnimationFinish(const RefPtr<FrameNode>& host, int32_t selectedIndex, bool isSelected);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_swiper_function.cpp24 "selectedIndex", &JsSwiperContentTransitionProxy::GetSelectedIndex, in JSBind()
41 TAG_LOGD(AceLogTag::ACE_SWIPER, "SwiperContentTransitionProxy can not support set selectedIndex value."); in SetSelectedIndex()
46 auto selectedIndex = 0; in GetSelectedIndex() local
48 selectedIndex = proxy_->GetSelectedIndex(); in GetSelectedIndex()
50 auto fromRef = JSRef<JSVal>::Make(JSVal(ToJSValue(selectedIndex))); in GetSelectedIndex()
184 void JsSwiperFunction::Execute(int32_t selectedIndex, int32_t index, float position, float mainAxisLength) in Execute() argument
186 JSRef<JSVal> selectedIndexValue = JSRef<JSVal>::Make(ToJSValue(selectedIndex)); in Execute()
H A Djs_swiper_function.h44 void Execute(int32_t selectedIndex, int32_t index, float position, float mainAxisLength);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_content_transition_proxy.h37 void SetSelectedIndex(int32_t selectedIndex) in SetSelectedIndex() argument
39 selectedIndex_ = selectedIndex; in SetSelectedIndex()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_column_component.cpp59 uint32_t selectedIndex = showCount / 2; // the middle option is selected that is current. in Initialize() local
62 option->SetSelected((index == selectedIndex)); in Initialize()
H A Drender_picker_column.cpp495 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions() local
498 uint32_t optionIndex = (sum > selectedIndex ? sum - selectedIndex : 0) % totalOptionCount; in FlushCurrentOptions()
499 int diffIndex = static_cast<int>(index) - static_cast<int>(selectedIndex); in FlushCurrentOptions()
507 (index != selectedIndex ? data_->GetOption(optionIndex) in FlushCurrentOptions()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_month_pattern.cpp158 int32_t selectedIndex = (textDirection == TextDirection::RTL ? in SetVirtualNodeUserSelected() local
162 if (i == selectedIndex && in SetVirtualNodeUserSelected()
176 if (selectedIndex >= 0 && selectedIndex < static_cast<int32_t>(obtainedMonth_.days.size())) { in SetVirtualNodeUserSelected()
177 obtainedMonth_.days[selectedIndex].focused = true; in SetVirtualNodeUserSelected()
179 json->Put("day", obtainedMonth_.days[selectedIndex].day); in SetVirtualNodeUserSelected()
180 json->Put("month", obtainedMonth_.days[selectedIndex].month.month); in SetVirtualNodeUserSelected()
181 json->Put("year", obtainedMonth_.days[selectedIndex].month.year); in SetVirtualNodeUserSelected()
515 int32_t selectedIndex = (textDirection == TextDirection::RTL ? in SetFocusNode() local
518 selectedIndex in SetFocusNode()
[all...]
/foundation/arkui/ui_lite/frameworks/imgdecode/
H A Dcache_manager.cpp257 RetCode CacheManager::SelectEntryToReplace(uint16_t& selectedIndex) in SelectEntryToReplace() argument
259 selectedIndex = 0; in SelectEntryToReplace()
261 if (entryArr_[index].life_ < entryArr_[selectedIndex].life_) { in SelectEntryToReplace()
262 selectedIndex = index; in SelectEntryToReplace()
H A Dcache_manager.h97 RetCode SelectEntryToReplace(uint16_t& selectedIndex);
/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtab_bar_event_test_ng.cpp283 int32_t selectedIndex = 1; in HWTEST_F() local
290 tabBarPattern_->HandleBottomTabBarClick(selectedIndex, unselectedIndex); in HWTEST_F()
303 int32_t selectedIndex = 1; in HWTEST_F() local
314 tabBarPattern_->HandleBottomTabBarClick(selectedIndex, unselectedIndex); in HWTEST_F()
327 int32_t selectedIndex = 1; in HWTEST_F() local
337 tabBarPattern_->HandleBottomTabBarClick(selectedIndex, unselectedIndex); in HWTEST_F()
350 int32_t selectedIndex = 1; in HWTEST_F() local
360 tabBarPattern_->HandleBottomTabBarClick(selectedIndex, unselectedIndex); in HWTEST_F()
373 int32_t selectedIndex = 1; in HWTEST_F() local
382 tabBarPattern_->HandleBottomTabBarClick(selectedIndex, unselectedInde in HWTEST_F()
[all...]
H A Dtab_bar_pattern_test_ng.cpp1203 int32_t selectedIndex = 1; in HWTEST_F() local
1220 tabBarPattern_->PlayMaskAnimation(selectedImageSize, originalSelectedMaskOffset, selectedIndex, unselectedImageSize, in HWTEST_F()
1241 int32_t selectedIndex = 1; in HWTEST_F() local
1257 tabBarPattern_->PlayMaskAnimation(selectedImageSize, originalSelectedMaskOffset, selectedIndex, unselectedImageSize, in HWTEST_F()
1278 int32_t selectedIndex = 1; in HWTEST_F() local
1294 tabBarPattern_->PlayMaskAnimation(selectedImageSize, originalSelectedMaskOffset, selectedIndex, unselectedImageSize, in HWTEST_F()
1315 int32_t selectedIndex = 1; in HWTEST_F() local
1330 tabBarPattern_->PlayMaskAnimation(selectedImageSize, originalSelectedMaskOffset, selectedIndex, unselectedImageSize, in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/
H A Dtext_picker_model_test_ng.cpp365 int selectedIndex = 2; in HWTEST_F() local
366 TextPickerModelNG::SetSelected(AceType::RawPtr(frameNode), selectedIndex); in HWTEST_F() local
367 EXPECT_EQ(textPickerPattern->GetSelected(), selectedIndex); in HWTEST_F()
483 uint32_t selectedIndex = 1; in HWTEST_F() local
484 props->UpdateSelected(selectedIndex); in HWTEST_F()
485 EXPECT_EQ(TextPickerModelNG::getTextPickerSelectedIndex(AceType::RawPtr(frameNode)), selectedIndex); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/
H A Doverlength_dot_indicator_modifier.cpp835 const LinearVector<float>& itemHalfSizes, int32_t selectedIndex, OverlongType overlongType)
838 selectedIndex = maxDisplayCount_ - 1 - selectedIndex;
859 if (i == selectedIndex) {
881 if (i == selectedIndex) {
903 if (i == selectedIndex) {
921 if (i == selectedIndex) {
943 if (i == selectedIndex) {
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_column_pattern.cpp466 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions() local
475 uint32_t optionIndex = (totalOptionCount + currentIndex + index - selectedIndex) % totalOptionCount; in FlushCurrentOptions()
488 int32_t diffIndex = static_cast<int32_t>(index) - static_cast<int32_t>(selectedIndex); in FlushCurrentOptions()
582 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeAmPmTextStyle() local
583 if (index == selectedIndex) { in ChangeAmPmTextStyle()
609 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle() local
610 uint32_t val = selectedIndex > 0 ? selectedIndex - 1 : 0; in ChangeTextStyle()
611 if (index != selectedIndex) { in ChangeTextStyle()
612 if ((index == selectedIndex in ChangeTextStyle()
[all...]
H A Dtimepicker_column_layout_algorithm.cpp166 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeAmPmTextStyle() local
167 if (index == selectedIndex) { in ChangeAmPmTextStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_column_layout_algorithm.cpp163 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle() local
164 if (index == selectedIndex) { in ChangeTextStyle()
H A Ddatepicker_column_pattern.cpp399 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions() local
413 uint32_t optionIndex = (totalOptionCount + currentIndex + index - selectedIndex) % totalOptionCount; in FlushCurrentOptions()
423 int32_t diffIndex = static_cast<int32_t>(index) - static_cast<int32_t>(selectedIndex); in FlushCurrentOptions()
452 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in UpdatePickerTextProperties() local
453 uint32_t val = selectedIndex > 0 ? selectedIndex - 1 : 0; in UpdatePickerTextProperties()
454 if (index == selectedIndex) { in UpdatePickerTextProperties()
457 } else if ((index == selectedIndex + 1) || (index == val)) { in UpdatePickerTextProperties()
462 if (index < selectedIndex) { in UpdatePickerTextProperties()
464 } else if (index > selectedIndex) { in UpdatePickerTextProperties()
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/gridobjectsortcomponent/interfaces/
H A Dgridobjectsortcomponent.js111 this.__selectedIndex = new ObservedPropertySimplePU(-1, this, "selectedIndex");
254 if (s16.selectedIndex !== undefined) {
255 this.selectedIndex = s16.selectedIndex;
639 get selectedIndex() {
642 set selectedIndex(k15) {
927 this.selectedIndex = e13;
1041 const p11 = (this.selectedIndex + 1) % o11;
1042 const q11 = Math.ceil((this.selectedIndex + 1) / o11);
1069 if (k11 > this.selectedIndex
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/subheader/interfaces/
H A Dsubheader.js243 this.__selectedIndex = new ObservedPropertyObjectPU(-1, this, 'selectedIndex');
306 if (t10.selectedIndex !== undefined) {
307 this.selectedIndex = t10.selectedIndex;
466 get selectedIndex() {
470 set selectedIndex(f10) {
546 this.selectedIndex = this.select.selected;
1299 Select.selected(ObservedObject.GetRawObject(this.selectedIndex));
1302 this.selectedIndex = r6;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_layout_algorithm.cpp200 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle() local
205 if (index == selectedIndex) { in ChangeTextStyle()

Completed in 34 milliseconds

12