Home
last modified time | relevance | path

Searched refs:is24HourFormat (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/layoutlib/bridge/src/android/text/format/
DDateFormat_Delegate.java34 /*package*/ static boolean is24HourFormat(Context context) { in is24HourFormat() method in DateFormat_Delegate
39 /*package*/ static boolean is24HourFormat(Context context, int userHandle) { in is24HourFormat() method in DateFormat_Delegate
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/time/
DDateFormatUtil.java40 public boolean is24HourFormat() { in is24HourFormat() method in DateFormatUtil
41 return DateFormat.is24HourFormat(mContext, mUserTracker.getUserId()); in is24HourFormat()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/uimodenight/
DUiModeNightTileModelHelper.kt35 is24HourFormat: Boolean = false, in createModel()
45 is24HourFormat, in createModel()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/alarm/domain/interactor/
DAlarmTileDataInteractorTest.kt85 whenever(dateFormatUtil.is24HourFormat).thenReturn(expectedValue) in <lambda>()
97 val actualValue = (model as AlarmTileModel.NextAlarmSet).is24HourFormat in <lambda>()
104 whenever(dateFormatUtil.is24HourFormat).thenReturn(expectedValue) in <lambda>()
116 val actualValue = (model as AlarmTileModel.NextAlarmSet).is24HourFormat in <lambda>()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneInfo.java43 public static boolean is24HourFormat; field in TimeZoneInfo
93 if (is24HourFormat) { in getLocalTime()
98 } else if (is24HourFormat) { in getLocalTime()
154 if (TimeZoneInfo.is24HourFormat) { in getGmtDisplayName()
DTimeZoneData.java56 public static boolean is24HourFormat; field in TimeZoneData
68 is24HourFormat = TimeZoneInfo.is24HourFormat = DateFormat.is24HourFormat(context); in TimeZoneData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/alarm/domain/model/
DAlarmTileModel.kt25 val is24HourFormat: Boolean, constant in com.android.systemui.qs.tiles.impl.alarm.domain.model.AlarmTileModel.NextAlarmSet
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/model/
DUiModeNightTileModel.kt32 val is24HourFormat: Boolean, constant in com.android.systemui.qs.tiles.impl.uimodenight.domain.model.UiModeNightTileModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/night/domain/model/
DNightDisplayTileModel.kt35 val is24HourFormat: Boolean constant in com.android.systemui.qs.tiles.impl.night.domain.model.NightDisplayTileModel.AutoModeCustom
/frameworks/base/core/java/android/text/format/
DDateFormat.java182 public static boolean is24HourFormat(Context context) { in is24HourFormat() method in DateFormat
183 return is24HourFormat(context, context.getUserId()); in is24HourFormat()
196 public static boolean is24HourFormat(Context context, int userHandle) { in is24HourFormat() method in DateFormat
310 String pattern = is24HourFormat(context, userHandle) ? dtpg.getBestPattern("Hm") in getTimeFormatString()
DDateUtils.java352 flags |= DateFormat.is24HourFormat(c) ? FORMAT_24HOUR : FORMAT_12HOUR; in getRelativeDateTimeString()
757 flags |= DateFormat.is24HourFormat(context) ? FORMAT_24HOUR : FORMAT_12HOUR; in formatDateRange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/alarm/domain/interactor/
DAlarmTileDataInteractor.kt48 else AlarmTileModel.NextAlarmSet(dateFormatUtil.is24HourFormat, it) in tileData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/night/domain/interactor/
DNightDisplayTileDataInteractor.kt82 dateFormatUtil.is24HourFormat, in availability()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DClockEventController.kt183 clock.events.onTimeFormatChanged(DateFormat.is24HourFormat(context)) in <lambda>()
215 clock.events.onTimeFormatChanged(DateFormat.is24HourFormat(context)) in <lambda>()
356 clock?.run { events.onTimeFormatChanged(DateFormat.is24HourFormat(context)) } in <lambda>()
364 clock?.run { events.onTimeFormatChanged(DateFormat.is24HourFormat(context)) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/alarm/domain/
DAlarmTileMapper.kt77 if (data.is24HourFormat) formatter24Hour.format(alarmDateTime) in map()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/
DUiModeNightTileDataInteractor.kt96 val use24HourFormat = dateFormatUtil.is24HourFormat in createModel()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/night/domain/interactor/
DNightDisplayTileDataInteractorTest.kt70 private val dateFormatUtil = mock<DateFormatUtil> { whenever(is24HourFormat).thenReturn(false) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapper.kt72 if (is24HourFormat) formatter24Hour else formatter12Hour in map()
/frameworks/base/core/java/android/widget/
DTextClock.java476 return DateFormat.is24HourFormat(getContext(), ActivityManager.getCurrentUser()); in is24HourModeEnabled()
478 return DateFormat.is24HourFormat(getContext()); in is24HourModeEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/night/ui/
DNightDisplayTileMapper.kt105 val formatter = if (data.is24HourFormat) formatter24Hour else formatter12Hour in getSecondaryLabel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DAlarmTile.kt114 return DateFormat.is24HourFormat(mContext, userTracker.userId) in <lambda>()
DUiModeNightTile.java137 final boolean use24HourFormat = android.text.format.DateFormat.is24HourFormat( in handleUpdateState()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileDataInteractorTest.kt180 verify(dateFormatUtil).is24HourFormat in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java435 boolean is24 = DateFormat.is24HourFormat(context, mCurrentUserId); in getSmallTime()
523 boolean is24 = DateFormat.is24HourFormat(getContext(), mCurrentUserId); in dispatchDemoCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarViewController.java289 final String skeleton = mDateFormatUtil.is24HourFormat() ? "EHm" : "Ehma"; in buildAlarmContentDescription()

12