/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_accessibility_property.cpp | 29 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 D | picker_time_component.cpp | 151 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 D | picker_date_component.cpp | 149 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 D | picker_column_component.h | 75 uint32_t GetCurrentIndex() const in GetCurrentIndex() function 104 return GetOption(GetCurrentIndex()); in GetCurrentText() 192 changeCallback_(GetColumnTag(), isAdd, GetCurrentIndex(), needNotify); in HandleChangeCallback()
|
H A D | picker_text_component.cpp | 58 index = column->GetCurrentIndex(); in GetSelectedObject() 87 selectedIndex_ = column->GetCurrentIndex(); in OnSelectedSaving()
|
H A D | picker_multitext_component.cpp | 80 … 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 D | picker_column_component.cpp | 48 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 D | swiper_accessibility_property.cpp | 22 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 D | datepicker_column_accessibility_property.cpp | 43 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 D | datepicker_pattern.cpp | 840 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 D | timepicker_column_accessibility_property.cpp | 42 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 D | timepicker_row_accessibility_property.cpp | 44 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 D | stepper_accessibility_property.cpp | 24 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 D | swiper_common_test_ng.cpp | 114 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 D | swiper_indicator_test_ng.cpp | 142 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 D | ark_web_history_list_wrapper.cpp | 43 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 D | ark_web_history_list_impl.cpp | 43 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 D | indexer_accessibility_property.cpp | 37 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 D | napi_media_info_holder.cpp | 24 { "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 D | swiper_indicator_accessibility_property.cpp | 24 int32_t SwiperIndicatorAccessibilityProperty::GetCurrentIndex() const in GetCurrentIndex() function in OHOS::Ace::NG::SwiperIndicatorAccessibilityProperty 30 return swiperAccessibilityProperty->GetCurrentIndex(); in GetCurrentIndex()
|
H A D | swiper_indicator_pattern.cpp | 168 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 D | tab_bar_accessibility_property.cpp | 63 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 D | grid_controller.cpp | 72 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 D | swiper_element.cpp | 85 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 D | swiper_composed_element.cpp | 28 { "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()
|