/ohos5.0/foundation/arkui/ace_engine/frameworks/base/i18n/ |
H A D | time_format.h | 34 enum class ZeroPrefixType : int32_t { enum 42 ZeroPrefixType hourType; 43 ZeroPrefixType minuteType; 44 ZeroPrefixType secondType; 53 if (hourType == static_cast<int32_t>(ZeroPrefixType::AUTO)) { in GetHourFormat() 55 } else if (hourType == static_cast<int32_t>(ZeroPrefixType::HIDE)) { in GetHourFormat() 57 } else if (hourType == static_cast<int32_t>(ZeroPrefixType::SHOW)) { in GetHourFormat() 64 if (minuteType == static_cast<int32_t>(ZeroPrefixType::AUTO)) { in GetMinuteFormat() 66 } else if (minuteType == static_cast<int32_t>(ZeroPrefixType::HIDE)) { in GetMinuteFormat() 68 } else if (minuteType == static_cast<int32_t>(ZeroPrefixType::SHOW)) { in GetMinuteFormat() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/time_picker/ |
H A D | time_picker_display24_test_ng.cpp | 187 ZeroPrefixType showType = ZeroPrefixType::SHOW; 188 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 243 ZeroPrefixType showType = ZeroPrefixType::SHOW; 244 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 299 ZeroPrefixType showType = ZeroPrefixType::SHOW; 300 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 355 ZeroPrefixType showType = ZeroPrefixType::SHOW; 356 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 411 ZeroPrefixType showType = ZeroPrefixType::SHOW; 412 ZeroPrefixType hideType = ZeroPrefixType::HIDE; [all …]
|
H A D | time_picker_display12_test_ng.cpp | 187 ZeroPrefixType showType = ZeroPrefixType::SHOW; 244 ZeroPrefixType showType = ZeroPrefixType::SHOW; 245 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 302 ZeroPrefixType showType = ZeroPrefixType::SHOW; 303 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 360 ZeroPrefixType showType = ZeroPrefixType::SHOW; 361 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 418 ZeroPrefixType showType = ZeroPrefixType::SHOW; 475 ZeroPrefixType showType = ZeroPrefixType::SHOW; 476 ZeroPrefixType hideType = ZeroPrefixType::HIDE; [all …]
|
H A D | time_picker_test_ng.cpp | 1014 ZeroPrefixType showType = ZeroPrefixType::SHOW; 1015 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 1064 ZeroPrefixType showType = ZeroPrefixType::SHOW; 1065 ZeroPrefixType hideType = ZeroPrefixType::HIDE; 2872 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 2917 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 2962 settingData.dateTimeOptions.hourType = ZeroPrefixType::HIDE; 3007 settingData.dateTimeOptions.hourType = ZeroPrefixType::HIDE; 3052 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 3097 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_row_pattern.h | 228 void SetPrefixHour(ZeroPrefixType& value) in SetPrefixHour() 233 ZeroPrefixType GetPrefixHour() const in GetPrefixHour() 330 void SetPrefixMinute(ZeroPrefixType value) in SetPrefixMinute() 335 ZeroPrefixType GetPrefixMinute() const in GetPrefixMinute() 339 return static_cast<ZeroPrefixType>( in GetPrefixMinute() 343 void SetPrefixSecond(ZeroPrefixType value) in SetPrefixSecond() 348 ZeroPrefixType GetPrefixSecond() const in GetPrefixSecond() 352 return static_cast<ZeroPrefixType>( in GetPrefixSecond() 600 ZeroPrefixType prefixHour_ = ZeroPrefixType::AUTO; 601 ZeroPrefixType prefixMinute_ = ZeroPrefixType::AUTO; [all …]
|
H A D | timepicker_model_ng.h | 33 void SetDateTimeOptions(ZeroPrefixType& hourType, 34 ZeroPrefixType& minuteType, ZeroPrefixType& secondType) override; 57 static void SetDateTimeOptions(FrameNode* frameNode, ZeroPrefixType& hourType, 58 ZeroPrefixType& minuteType, ZeroPrefixType& secondType);
|
H A D | timepicker_row_accessibility_property.cpp | 53 if (timePickerRowPattern->GetPrefixHour() != ZeroPrefixType::HIDE) { in GetText() 57 if (timePickerRowPattern->GetPrefixHour() == ZeroPrefixType::SHOW) { in GetText() 94 if (timePickerRowPattern->GetPrefixMinute() != ZeroPrefixType::HIDE) { in GetMinuteText() 116 if (timePickerRowPattern->GetPrefixSecond() != ZeroPrefixType::HIDE) { in GetSecondText()
|
H A D | timepicker_model.h | 45 virtual void SetDateTimeOptions(ZeroPrefixType& hourType, in SetDateTimeOptions() 46 ZeroPrefixType& minuteType, ZeroPrefixType& secondType) {}; in SetDateTimeOptions()
|
H A D | timepicker_model_ng.cpp | 235 void TimePickerModelNG::SetDateTimeOptions(ZeroPrefixType& hourType, in SetDateTimeOptions() 236 ZeroPrefixType& minuteType, ZeroPrefixType& secondType) in SetDateTimeOptions() 252 …LAYOUT_PROPERTY(TimePickerLayoutProperty, PrefixSecond, static_cast<int32_t>(ZeroPrefixType::OFF)); in SetDateTimeOptions() 615 void TimePickerModelNG::SetDateTimeOptions(FrameNode* frameNode, ZeroPrefixType& hourType, in SetDateTimeOptions() 616 ZeroPrefixType& minuteType, ZeroPrefixType& secondType) in SetDateTimeOptions() 629 static_cast<int32_t>(ZeroPrefixType::OFF), frameNode); in SetDateTimeOptions()
|
H A D | timepicker_layout_property.h | 98 if (GetPrefixSecondValue(0) != static_cast<int32_t>(ZeroPrefixType::OFF)) { in ToJsonValue()
|
H A D | timepicker_row_pattern.cpp | 706 GetPrefixMinute() == ZeroPrefixType::HIDE) { in HandleMinAndSecColumnBuilding() 729 GetPrefixSecond() == ZeroPrefixType::HIDE) { in HandleMinAndSecColumnBuilding() 987 if (((GetPrefixHour() == ZeroPrefixType::AUTO) && GetHour24()) || in GetHourFormatString() 988 GetPrefixHour() == ZeroPrefixType::SHOW) { in GetHourFormatString()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_timepicker_modifier.cpp | 240 ZeroPrefixType hour = static_cast<ZeroPrefixType>(hourType); in SetTimepickerDateTimeOptions() 241 ZeroPrefixType minute = static_cast<ZeroPrefixType>(minuteType); in SetTimepickerDateTimeOptions() 242 ZeroPrefixType second = static_cast<ZeroPrefixType>(secondType); in SetTimepickerDateTimeOptions() 250 ZeroPrefixType hourType = ZeroPrefixType::AUTO; in ResetTimepickerDateTimeOptions() 251 ZeroPrefixType minuteType = ZeroPrefixType::AUTO; in ResetTimepickerDateTimeOptions() 252 ZeroPrefixType secondType = ZeroPrefixType::AUTO; in ResetTimepickerDateTimeOptions()
|
H A D | text_clock_modifier.cpp | 175 ZeroPrefixType hour = static_cast<ZeroPrefixType>(hourType); in SetDateTimeOptions() 183 ZeroPrefixType hourType = ZeroPrefixType::AUTO; in ResetDateTimeOptions()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_timepicker_bridge.cpp | 291 ZeroPrefixType hourType = ZeroPrefixType::AUTO; in SetTimepickerDateTimeOptions() 292 ZeroPrefixType minuteType = ZeroPrefixType::AUTO; in SetTimepickerDateTimeOptions() 293 ZeroPrefixType secondType = ZeroPrefixType::AUTO; in SetTimepickerDateTimeOptions() 298 hourType = ZeroPrefixType::SHOW; in SetTimepickerDateTimeOptions() 300 hourType = ZeroPrefixType::HIDE; in SetTimepickerDateTimeOptions() 305 minuteType = ZeroPrefixType::SHOW; in SetTimepickerDateTimeOptions() 308 minuteType = ZeroPrefixType::HIDE; in SetTimepickerDateTimeOptions() 313 secondType = ZeroPrefixType::SHOW; in SetTimepickerDateTimeOptions() 316 secondType = ZeroPrefixType::HIDE; in SetTimepickerDateTimeOptions()
|
H A D | arkts_native_text_clock_bridge.cpp | 387 ZeroPrefixType hourType = ZeroPrefixType::AUTO; in SetDateTimeOptions() 392 hourType = ZeroPrefixType::SHOW; in SetDateTimeOptions() 394 hourType = ZeroPrefixType::HIDE; in SetDateTimeOptions()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/ |
H A D | text_clock_pattern.h | 118 ZeroPrefixType GetPrefixHour() in GetPrefixHour() 122 return textClockLayoutProperty->GetPrefixHourValue(ZeroPrefixType::AUTO); in GetPrefixHour() 178 ZeroPrefixType prefixHour_ = ZeroPrefixType::AUTO;
|
H A D | text_clock_model_ng.h | 48 void SetDateTimeOptions(const ZeroPrefixType& hourType) override; 63 static void SetDateTimeOptions(FrameNode* frameNode, const ZeroPrefixType& hourType);
|
H A D | text_clock_model.h | 44 virtual void SetDateTimeOptions(const ZeroPrefixType& hourType) {}; in SetDateTimeOptions()
|
H A D | text_clock_layout_property.h | 83 ACE_DEFINE_PROPERTY_ITEM_WITHOUT_GROUP(PrefixHour, ZeroPrefixType, PROPERTY_UPDATE_MEASURE);
|
H A D | text_clock_model_ng.cpp | 130 void TextClockModelNG::SetDateTimeOptions(const ZeroPrefixType& hourType) in SetDateTimeOptions() 248 void TextClockModelNG::SetDateTimeOptions(FrameNode* frameNode, const ZeroPrefixType& hourType) in SetDateTimeOptions()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/picker/ |
H A D | date_picker_test_ng.cpp | 3661 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 3715 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 3769 settingData.dateTimeOptions.hourType = ZeroPrefixType::HIDE; 3823 settingData.dateTimeOptions.hourType = ZeroPrefixType::HIDE; 3877 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 3931 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 3985 settingData.dateTimeOptions.hourType = ZeroPrefixType::HIDE; 4039 settingData.dateTimeOptions.hourType = ZeroPrefixType::HIDE; 4093 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; 4147 settingData.dateTimeOptions.hourType = ZeroPrefixType::SHOW; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_text_clock.cpp | 367 ZeroPrefixType hourType = ZeroPrefixType::AUTO; in SetDateTimeOptions() 374 hourType = ZeroPrefixType::SHOW; in SetDateTimeOptions() 376 hourType = ZeroPrefixType::HIDE; in SetDateTimeOptions()
|
H A D | js_datepicker.cpp | 1322 dateTimeOptions.hourType = ZeroPrefixType::AUTO; in ParseDateTimeOptions() 1323 dateTimeOptions.minuteType = ZeroPrefixType::AUTO; in ParseDateTimeOptions() 1412 ZeroPrefixType hourType = ZeroPrefixType::AUTO; in DateTimeOptions() 1413 ZeroPrefixType minuteType = ZeroPrefixType::AUTO; in DateTimeOptions() 1414 ZeroPrefixType secondType = ZeroPrefixType::AUTO; in DateTimeOptions() 1421 hourType = ZeroPrefixType::SHOW; in DateTimeOptions() 1423 hourType = ZeroPrefixType::HIDE; in DateTimeOptions() 1428 minuteType = ZeroPrefixType::SHOW; in DateTimeOptions() 1431 minuteType = ZeroPrefixType::HIDE; in DateTimeOptions() 1436 secondType = ZeroPrefixType::SHOW; in DateTimeOptions() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_clock/ |
H A D | text_clock_pattern_test_ng.cpp | 125 model.SetDateTimeOptions(ZeroPrefixType::AUTO); in CreateWithItem() 175 model.SetDateTimeOptions(ZeroPrefixType::AUTO); in __anond95221120302() 216 model.SetDateTimeOptions(ZeroPrefixType::AUTO); in __anond95221120502()
|
H A D | text_clock_test_ng.cpp | 67 std::optional<ZeroPrefixType> preFixHour = ZeroPrefixType::AUTO; 183 textClockLayoutProperty->UpdatePrefixHour(ZeroPrefixType::HIDE); 184 EXPECT_EQ(textClockLayoutProperty->GetPrefixHour(), ZeroPrefixType::HIDE); 610 textClockProperty->UpdatePrefixHour(ZeroPrefixType::HIDE); 618 textClockProperty->UpdatePrefixHour(ZeroPrefixType::SHOW);
|