Home
last modified time | relevance | path

Searched refs:HOURS_IN_HALF_DAY (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
DTimePickerSpinnerDelegate.java47 private static final int HOURS_IN_HALF_DAY = 12; field in TimePickerSpinnerDelegate
95 if ((oldVal == HOURS_IN_HALF_DAY - 1 && newVal == HOURS_IN_HALF_DAY) || in TimePickerSpinnerDelegate()
96 (oldVal == HOURS_IN_HALF_DAY && newVal == HOURS_IN_HALF_DAY - 1)) { in TimePickerSpinnerDelegate()
126 if (!is24Hour() && newHour == HOURS_IN_HALF_DAY) { in TimePickerSpinnerDelegate()
133 if (!is24Hour() && newHour == HOURS_IN_HALF_DAY - 1) { in TimePickerSpinnerDelegate()
307 if (currentHour >= HOURS_IN_HALF_DAY) { in setCurrentHour()
309 if (currentHour > HOURS_IN_HALF_DAY) { in setCurrentHour()
310 currentHour = currentHour - HOURS_IN_HALF_DAY; in setCurrentHour()
315 currentHour = HOURS_IN_HALF_DAY; in setCurrentHour()
332 return currentHour % HOURS_IN_HALF_DAY; in getHour()
[all …]
DTimePickerClockDelegate.java86 private static final int HOURS_IN_HALF_DAY = 12; field in TimePickerClockDelegate
562 return (currentHour % HOURS_IN_HALF_DAY) + HOURS_IN_HALF_DAY;
564 return currentHour % HOURS_IN_HALF_DAY;
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/
DTimePicker.java61 private static final int HOURS_IN_HALF_DAY = 12; field in TimePicker
343 if (mCurrentHour >= HOURS_IN_HALF_DAY) { in setHour()
345 if (mCurrentHour > HOURS_IN_HALF_DAY) { in setHour()
346 mCurrentHour -= HOURS_IN_HALF_DAY; in setHour()
351 mCurrentHour = HOURS_IN_HALF_DAY; in setHour()
370 return mCurrentHour % HOURS_IN_HALF_DAY; in getHour()
372 return (mCurrentHour % HOURS_IN_HALF_DAY) + HOURS_IN_HALF_DAY; in getHour()