Home
last modified time | relevance | path

Searched refs:currentHour (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/widget/
DTimePickerSpinnerDelegate.java297 private void setCurrentHour(int currentHour, boolean notifyTimeChanged) { in setCurrentHour() argument
299 if (currentHour == getHour()) { in setCurrentHour()
305 if (currentHour >= HOURS_IN_HALF_DAY) { in setCurrentHour()
307 if (currentHour > HOURS_IN_HALF_DAY) { in setCurrentHour()
308 currentHour = currentHour - HOURS_IN_HALF_DAY; in setCurrentHour()
312 if (currentHour == 0) { in setCurrentHour()
313 currentHour = HOURS_IN_HALF_DAY; in setCurrentHour()
318 mHourSpinner.setValue(currentHour); in setCurrentHour()
326 int currentHour = mHourSpinner.getValue(); in getHour() local
328 return currentHour; in getHour()
[all …]
DTimePickerClockDelegate.java248 final int currentHour = mTempCalendar.get(Calendar.HOUR_OF_DAY); in TimePickerClockDelegate() local
250 initialize(currentHour, currentMinute, mIs24Hour, HOUR_INDEX); in TimePickerClockDelegate()
562 final int currentHour = mRadialTimePickerView.getCurrentHour();
564 return currentHour;
568 return (currentHour % HOURS_IN_HALF_DAY) + HOURS_IN_HALF_DAY;
570 return currentHour % HOURS_IN_HALF_DAY;
DTimePicker.java228 public void setCurrentHour(@NonNull Integer currentHour) { in setCurrentHour() argument
229 setHour(currentHour); in setCurrentHour()
DRadialTimePickerView.java399 final int currentHour = calendar.get(Calendar.HOUR_OF_DAY); in RadialTimePickerView() local
402 setCurrentHourInternal(currentHour, false, false); in RadialTimePickerView()
/frameworks/base/services/core/java/com/android/server/location/injector/
DLocationUsageLogger.java241 long currentHour = Instant.now().toEpochMilli() / ONE_HOUR_IN_MILLIS; in hitApiUsageLogCap() local
242 if (currentHour > mLastApiUsageLogHour) { in hitApiUsageLogCap()
243 mLastApiUsageLogHour = currentHour; in hitApiUsageLogCap()