Home
last modified time | relevance | path

Searched refs:ZeroPrefixType (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/base/i18n/
H A Dtime_format.h34 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 Dtime_picker_display24_test_ng.cpp187 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 Dtime_picker_display12_test_ng.cpp187 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 Dtime_picker_test_ng.cpp1014 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 Dtimepicker_row_pattern.h228 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 Dtimepicker_model_ng.h33 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 Dtimepicker_row_accessibility_property.cpp53 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 Dtimepicker_model.h45 virtual void SetDateTimeOptions(ZeroPrefixType& hourType, in SetDateTimeOptions()
46 ZeroPrefixType& minuteType, ZeroPrefixType& secondType) {}; in SetDateTimeOptions()
H A Dtimepicker_model_ng.cpp235 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 Dtimepicker_layout_property.h98 if (GetPrefixSecondValue(0) != static_cast<int32_t>(ZeroPrefixType::OFF)) { in ToJsonValue()
H A Dtimepicker_row_pattern.cpp706 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 Dnode_timepicker_modifier.cpp240 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 Dtext_clock_modifier.cpp175 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 Darkts_native_timepicker_bridge.cpp291 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 Darkts_native_text_clock_bridge.cpp387 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 Dtext_clock_pattern.h118 ZeroPrefixType GetPrefixHour() in GetPrefixHour()
122 return textClockLayoutProperty->GetPrefixHourValue(ZeroPrefixType::AUTO); in GetPrefixHour()
178 ZeroPrefixType prefixHour_ = ZeroPrefixType::AUTO;
H A Dtext_clock_model_ng.h48 void SetDateTimeOptions(const ZeroPrefixType& hourType) override;
63 static void SetDateTimeOptions(FrameNode* frameNode, const ZeroPrefixType& hourType);
H A Dtext_clock_model.h44 virtual void SetDateTimeOptions(const ZeroPrefixType& hourType) {}; in SetDateTimeOptions()
H A Dtext_clock_layout_property.h83 ACE_DEFINE_PROPERTY_ITEM_WITHOUT_GROUP(PrefixHour, ZeroPrefixType, PROPERTY_UPDATE_MEASURE);
H A Dtext_clock_model_ng.cpp130 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 Ddate_picker_test_ng.cpp3661 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 Djs_text_clock.cpp367 ZeroPrefixType hourType = ZeroPrefixType::AUTO; in SetDateTimeOptions()
374 hourType = ZeroPrefixType::SHOW; in SetDateTimeOptions()
376 hourType = ZeroPrefixType::HIDE; in SetDateTimeOptions()
H A Djs_datepicker.cpp1322 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 Dtext_clock_pattern_test_ng.cpp125 model.SetDateTimeOptions(ZeroPrefixType::AUTO); in CreateWithItem()
175 model.SetDateTimeOptions(ZeroPrefixType::AUTO); in __anond95221120302()
216 model.SetDateTimeOptions(ZeroPrefixType::AUTO); in __anond95221120502()
H A Dtext_clock_test_ng.cpp67 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);

12