/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_column_pattern.cpp | 461 auto showOptionCount = GetShowCount(); in FlushCurrentOptions() local 468 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions() 476 auto actualOptionCount = showOptionCount < child.size() ? showOptionCount : child.size(); in FlushCurrentOptions() 578 if (showOptionCount != CHILDREN_SIZE) { in ChangeAmPmTextStyle() 585 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeAmPmTextStyle() 590 if ((index == 0) || (index == showOptionCount - 1)) { in ChangeAmPmTextStyle() 601 void TimePickerColumnPattern::ChangeTextStyle(uint32_t index, uint32_t showOptionCount, in ChangeTextStyle() argument 605 if (showOptionCount == CHILDREN_SIZE) { in ChangeTextStyle() 612 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle() 1161 void TimePickerColumnPattern::SetDividerHeight(uint32_t showOptionCount) in SetDividerHeight() argument [all …]
|
H A D | timepicker_column_pattern.h | 313 void SetDividerHeight(uint32_t showOptionCount); 314 …void ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const RefPtr<TextLayoutProperty>& t… 316 void ChangeAmPmTextStyle(uint32_t index, uint32_t showOptionCount,
|
H A D | timepicker_column_layout_algorithm.h | 38 void ChangeAmPmTextStyle(uint32_t index, uint32_t showOptionCount, const SizeF& size,
|
H A D | timepicker_column_layout_algorithm.cpp | 127 void TimePickerColumnLayoutAlgorithm::ChangeAmPmTextStyle(uint32_t index, uint32_t showOptionCount,… in ChangeAmPmTextStyle() argument 137 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeAmPmTextStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_theme.cpp | 43 …auto showOptionCount = static_cast<int32_t>(pattern->GetAttr<double>("picker_show_option_count", 0… in Parse() local 44 …theme->showOptionCount_ = showOptionCount < 0 ? theme->showOptionCount_ : static_cast<uint32_t>(sh… in Parse()
|
H A D | render_picker_column.cpp | 494 uint32_t showOptionCount = options_.size(); in FlushCurrentOptions() local 495 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions() 496 for (uint32_t index = 0; index < showOptionCount; index++) { in FlushCurrentOptions() 521 uint32_t showOptionCount = options_.size(); in NotLoopOptions() local 522 return totalOptionCount <= showOptionCount / 2 + 1; // the critical value of loop condition. in NotLoopOptions()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_column_pattern.cpp | 394 auto showOptionCount = datePickerPattern->GetShowCount(); in FlushCurrentOptions() local 399 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions() 403 if (child.size() != showOptionCount) { in FlushCurrentOptions() 407 SetDividerHeight(showOptionCount); in FlushCurrentOptions() 411 for (uint32_t index = 0; index < showOptionCount; index++) { in FlushCurrentOptions() 420 …UpdatePickerTextProperties(index, showOptionCount, textLayoutProperty, dataPickerRowLayoutProperty… in FlushCurrentOptions() 444 void DatePickerColumnPattern::UpdatePickerTextProperties(uint32_t index, uint32_t showOptionCount, in UpdatePickerTextProperties() argument 452 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in UpdatePickerTextProperties() 539 void DatePickerColumnPattern::SetDividerHeight(uint32_t showOptionCount) in SetDividerHeight() argument 555 auto showOptionCount = GetShowCount(); in NotLoopOptions() local [all …]
|
H A D | datepicker_column_layout_algorithm.h | 37 void ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const SizeF& size,
|
H A D | datepicker_column_pattern.h | 279 void SetDividerHeight(uint32_t showOptionCount); 310 void UpdatePickerTextProperties(uint32_t index, uint32_t showOptionCount,
|
H A D | datepicker_column_layout_algorithm.cpp | 149 void DatePickerColumnLayoutAlgorithm::ChangeTextStyle(uint32_t index, uint32_t showOptionCount, con… in ChangeTextStyle() argument 159 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_layout_algorithm.h | 38 void ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const SizeF& size,
|
H A D | textpicker_layout_algorithm.cpp | 213 void TextPickerLayoutAlgorithm::ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const Siz… in ChangeTextStyle() argument 222 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/ |
H A D | text_picker_Extend_test_ng.cpp | 1600 uint32_t showOptionCount = 2; variable 1602 …textPickerLayoutAlgorithm.ChangeTextStyle(index, showOptionCount, size, subLayoutWrapper, &layoutW…
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/time_picker/ |
H A D | time_picker_test_ng.cpp | 1248 auto showOptionCount = minuteColumnPattern->GetShowCount(); variable 1250 EXPECT_NE(showOptionCount, child.size());
|