Home
last modified time | relevance | path

Searched refs:GetCurrentIndex (Results 1 – 25 of 110) sorted by relevance

12345

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_accessibility_property.cpp29 return textPickerColumnPattern->GetOption(textPickerColumnPattern->GetCurrentIndex()); in GetText()
32 int32_t TextPickerAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::TextPickerAccessibilityProperty
38 return textPickerColumnPattern->GetCurrentIndex(); in GetCurrentIndex()
48 auto currentIndex = textPickerColumnPattern->GetCurrentIndex(); in GetBeginIndex()
68 auto currentIndex = textPickerColumnPattern->GetCurrentIndex(); in GetEndIndex()
94 result.current = textPickerColumnPattern->GetCurrentIndex(); in GetAccessibilityValue()
124 if (GetCurrentIndex() > GetBeginIndex()) { in SetSpecificSupportAction()
127 if (GetCurrentIndex() < GetEndIndex()) { in SetSpecificSupportAction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_time_component.cpp151 if (amPm->GetCurrentIndex() == 0 && isAdd && index == 11) { // hour index start from 0 to 11 in HandleHour12Change()
157 if (amPm->GetCurrentIndex() == 1 && !isAdd && index == 10) { // reduce to 11 hour (index is 10) in HandleHour12Change()
163 …if (amPm->GetCurrentIndex() == 1 && isAdd && index == 11) { // is PM (index is 1) and last hour (i… in HandleHour12Change()
170 if (amPm->GetCurrentIndex() == 0 && !isAdd && index == 10) { // reduce to 11 hour(index is 10) in HandleHour12Change()
196 time.SetHour(hourColumn->GetCurrentIndex()); // hour from 0 to 23, index from 0 to 23 in GetCurrentTime()
198 …time.SetHour(GetHourFromAmPm(amPmColumn->GetCurrentIndex() == 0, hourColumn->GetCurrentIndex() + 1… in GetCurrentTime()
203 time.SetMinute(minuteColumn->GetCurrentIndex()); // minute from 0 to 59, index from 0 to 59 in GetCurrentTime()
205 time.SetSecond(secondColumn->GetCurrentIndex()); // second from 0 to 59, index from 0 to 59 in GetCurrentTime()
H A Dpicker_date_component.cpp149 result.SetYear(startDateSolar_.GetYear() + yearColumn->GetCurrentIndex()); in GetCurrentDate()
155 uint32_t lunarYear = startDateLunar_.year + yearColumn->GetCurrentIndex(); in GetCurrentDate()
176 if (monthColumn->GetCurrentIndex() == lunarLeapMonth) { in GetCurrentLunarDate()
179 } else if (monthColumn->GetCurrentIndex() < lunarLeapMonth) { in GetCurrentLunarDate()
182 lunarResult.month = monthColumn->GetCurrentIndex(); in GetCurrentLunarDate()
185 lunarResult.year = startDateLunar_.year + yearColumn->GetCurrentIndex(); in GetCurrentLunarDate()
267 uint32_t nowLunarYear = startDateLunar_.year + yearColumn->GetCurrentIndex(); in HandleLunarMonthChange()
392 uint32_t nowLunarYear = startDateLunar_.year + yearColumn->GetCurrentIndex(); in HandleAddLunarDayChange()
398 if (monthColumn->GetCurrentIndex() == val) { // max index is count - 1 in HandleAddLunarDayChange()
438 if (dayColumn->GetCurrentIndex() == val) { // max index is count - 1 in HandleReduceLunarDayChange()
[all …]
H A Dpicker_column_component.h75 uint32_t GetCurrentIndex() const in GetCurrentIndex() function
104 return GetOption(GetCurrentIndex()); in GetCurrentText()
192 changeCallback_(GetColumnTag(), isAdd, GetCurrentIndex(), needNotify); in HandleChangeCallback()
H A Dpicker_text_component.cpp58 index = column->GetCurrentIndex(); in GetSelectedObject()
87 selectedIndex_ = column->GetCurrentIndex(); in OnSelectedSaving()
H A Dpicker_multitext_component.cpp80 … column->GetCurrentText() + "\"" + ",\"index\":" + std::to_string(column->GetCurrentIndex()) + "}"; in GetSelectedObject()
83 …n->GetCurrentText() + "\"" + ",\"newSelected\":" + std::to_string(column->GetCurrentIndex()) + "}"; in GetSelectedObject()
127 selectedIndexes_[index] = column->GetCurrentIndex(); in OnSelectedSaving()
H A Dpicker_column_component.cpp48 if (GetCurrentIndex() >= GetOptionCount()) { in Initialize()
49 …LOGE("current index[%{private}u] is out of range[0~%{private}u).", GetCurrentIndex(), GetOptionCou… in Initialize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_accessibility_property.cpp22 int32_t SwiperAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::SwiperAccessibilityProperty
28 return swiperPattern->TotalCount() < 1 ? -1 : swiperPattern->GetCurrentIndex(); in GetCurrentIndex()
59 result.current = swiperPattern->GetCurrentIndex(); in GetAccessibilityValue()
100 if (GetCurrentIndex() > 0) { in SetSpecificSupportAction()
104 if (GetCurrentIndex() < GetCollectionItemCounts() - displayCount) { in SetSpecificSupportAction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_column_accessibility_property.cpp43 int32_t DatePickerColumnAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::DatePickerColumnAccessibilityProperty
49 return pattern->GetCurrentIndex(); in GetCurrentIndex()
65 auto currentIndex = static_cast<int32_t>(pattern->GetCurrentIndex()); in GetEndIndex()
82 auto currentIndex = static_cast<int32_t>(pattern->GetCurrentIndex()); in GetBeginIndex()
92 auto index = pattern->GetCurrentIndex(); in GetText()
H A Ddatepicker_pattern.cpp840 if (monthDatePickerColumnPattern->GetCurrentIndex() == 0) { in HandleReduceLunarDayChange()
949 if (!isAdd && monthDaysDatePickerColumnPattern->GetCurrentIndex() == getOptionCount) { in HandleSolarMonthDaysChange()
1057 if (monthDaysDatePickerColumnPattern->GetCurrentIndex() == getOptionCount) { in HandleReduceLunarMonthDaysChange()
1152 uint32_t nowLunarYear = startDateLunar_.year + yearColumn->GetCurrentIndex(); in HandleLunarMonthChange()
1242 if (monthDatePickerColumnPattern->GetCurrentIndex() == lunarLeapMonth) { in GetCurrentLunarDate()
1245 } else if (monthDatePickerColumnPattern->GetCurrentIndex() < lunarLeapMonth) { in GetCurrentLunarDate()
1249 lunarResult.month = monthDatePickerColumnPattern->GetCurrentIndex(); in GetCurrentLunarDate()
1252 lunarResult.year = startDateLunar_.year + yearDatePickerColumnPattern->GetCurrentIndex(); in GetCurrentLunarDate()
1414 auto monthDaysIndex = monthDaysDatePickerColumnPattern->GetCurrentIndex(); in GetCurrentDateByMonthDaysColumn()
1467 auto monthDaysIndex = monthDaysDatePickerColumnPattern->GetCurrentIndex(); in GetCurrentLunarDateByMonthDaysColumn()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_column_accessibility_property.cpp42 int32_t TimePickerColumnAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::TimePickerColumnAccessibilityProperty
48 return pattern->GetCurrentIndex(); in GetCurrentIndex()
64 auto currentIndex = pattern->GetCurrentIndex(); in GetEndIndex()
82 auto currentIndex = pattern->GetCurrentIndex(); in GetBeginIndex()
102 auto index = pattern->GetCurrentIndex(); in GetText()
H A Dtimepicker_row_accessibility_property.cpp44 auto hour = static_cast<int32_t>(hourPickerColumnPattern->GetCurrentIndex()); // + 1; in GetText()
70 if (amPmPickerColumnPattern->GetCurrentIndex() == 0) { in GetText()
91 int minute = static_cast<int>(minutePickerColumnPattern->GetCurrentIndex()); in GetMinuteText()
113 int second = static_cast<int>(secondPickerColumnPattern->GetCurrentIndex()); in GetSecondText()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_accessibility_property.cpp24 int32_t StepperAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::StepperAccessibilityProperty
35 return swiperPattern->TotalCount() < 1 ? -1 : stepperPattern->GetCurrentIndex(); in GetCurrentIndex()
101 if (GetCurrentIndex() > GetBeginIndex()) { in SetSpecificSupportAction()
104 if (GetCurrentIndex() < GetEndIndex()) { in SetSpecificSupportAction()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_common_test_ng.cpp114 EXPECT_EQ(pattern_->GetCurrentIndex(), 1);
691 EXPECT_EQ(pattern_->GetCurrentIndex(), 3);
698 EXPECT_EQ(pattern_->GetCurrentIndex(), 0);
717 EXPECT_EQ(pattern_->GetCurrentIndex(), 3);
724 EXPECT_EQ(pattern_->GetCurrentIndex(), 0);
747 EXPECT_EQ(pattern_->GetCurrentIndex(), 3);
755 EXPECT_EQ(pattern_->GetCurrentIndex(), 3);
763 EXPECT_EQ(pattern_->GetCurrentIndex(), 0);
771 EXPECT_EQ(pattern_->GetCurrentIndex(), 0);
796 EXPECT_EQ(pattern_->GetCurrentIndex(), 3);
[all …]
H A Dswiper_indicator_test_ng.cpp142 EXPECT_EQ(pattern_->GetCurrentIndex(), 1);
149 EXPECT_EQ(pattern_->GetCurrentIndex(), 1);
156 EXPECT_EQ(pattern_->GetCurrentIndex(), 3);
163 EXPECT_EQ(pattern_->GetCurrentIndex(), 0);
180 EXPECT_EQ(pattern_->GetCurrentIndex(), 1);
187 EXPECT_EQ(pattern_->GetCurrentIndex(), 2);
194 EXPECT_EQ(pattern_->GetCurrentIndex(), 1);
211 EXPECT_EQ(pattern_->GetCurrentIndex(), 1);
218 EXPECT_EQ(pattern_->GetCurrentIndex(), 0);
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_history_list_wrapper.cpp43 int32_t ArkWebHistoryListWrapper::GetCurrentIndex() in GetCurrentIndex() function in OHOS::ArkWeb::ArkWebHistoryListWrapper
45 return ark_web_history_list_->GetCurrentIndex(); in GetCurrentIndex()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_history_list_impl.cpp43 int32_t ArkWebHistoryListImpl::GetCurrentIndex() in GetCurrentIndex() function in OHOS::ArkWeb::ArkWebHistoryListImpl
45 return nweb_history_list_->GetCurrentIndex(); in GetCurrentIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
H A Dindexer_accessibility_property.cpp37 int32_t IndexerAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::IndexerAccessibilityProperty
59 auto selectIndex = GetCurrentIndex(); in GetText()
/ohos5.0/foundation/multimedia/av_session/frameworks/js/napi/session/src/
H A Dnapi_media_info_holder.cpp24 { "currentIndex", GetCurrentIndex },
83 napi_status NapiMediaInfoHolder::GetCurrentIndex(napi_env env, napi_value in, MediaInfoHolder& out) in GetCurrentIndex() function in OHOS::AVSession::NapiMediaInfoHolder
95 auto status = NapiUtils::SetValue(env, in.GetCurrentIndex(), property); in SetCurrentIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_accessibility_property.cpp24 int32_t SwiperIndicatorAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::SwiperIndicatorAccessibilityProperty
30 return swiperAccessibilityProperty->GetCurrentIndex(); in GetCurrentIndex()
H A Dswiper_indicator_pattern.cpp168 if (clickPageIndex == swiperPattern->GetCurrentIndex()) { in HandleMouseClick()
205 auto currentIndex = swiperPattern->GetCurrentIndex(); in HandleTouchClick()
466 currentIndex = GetCurrentIndex() + 1; in GetDisplayCurrentIndex()
475 int32_t SwiperIndicatorPattern::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::SwiperIndicatorPattern
581 auto currentIndex = swiperPattern->GetCurrentIndex(); in CheckIsTouchBottom()
628 auto currentIndex = swiperPattern->GetCurrentIndex(); in CheckIsTouchBottom()
741 swiperPattern->SwipeToWithoutAnimation(swiperPattern->GetCurrentIndex() + 1); in HandleLongDragUpdate()
744 swiperPattern->SwipeToWithoutAnimation(swiperPattern->GetCurrentIndex() - 1); in HandleLongDragUpdate()
888 auto animationStartIndex = swiperPattern->GetLoopIndex(swiperPattern->GetCurrentIndex()); in UpdateOverlongPaintMethod()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_accessibility_property.cpp63 int32_t TabBarAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::TabBarAccessibilityProperty
70 return AccessibilityProperty::GetCurrentIndex(); in GetCurrentIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Dgrid_controller.cpp72 int32_t GridController::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::GridController
79 return grid->GetCurrentIndex(); in GetCurrentIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Dswiper_element.cpp85 int32_t currentIndex = swiper->GetCurrentIndex(); in IsFocusable()
113 int32_t currentIndex = swiper->GetCurrentIndex(); in OnFocus()
222 int32_t currentIndex = swiper->GetCurrentIndex(); in RequestCurrentItemFocus()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dswiper_composed_element.cpp28 { "index", [](const SwiperComposedElement& inspector) { return inspector.GetCurrentIndex(); } }, in __anon1f3bcfd60202()
53 DumpLog::GetInstance().AddDesc(std::string("index: ").append(GetCurrentIndex())); in Dump()
97 std::string SwiperComposedElement::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::V2::SwiperComposedElement
100 auto currentIndex = renderSwiper ? renderSwiper->GetCurrentIndex() : 0; in GetCurrentIndex()

12345