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()
561 final int currentHour = mRadialTimePickerView.getCurrentHour();
563 return currentHour;
567 return (currentHour % HOURS_IN_HALF_DAY) + HOURS_IN_HALF_DAY;
569 return currentHour % HOURS_IN_HALF_DAY;
DTimePicker.java228 public void setCurrentHour(@NonNull Integer currentHour) { in setCurrentHour() argument
229 setHour(currentHour); in setCurrentHour()
DRadialTimePickerView.java394 final int currentHour = calendar.get(Calendar.HOUR_OF_DAY); in RadialTimePickerView() local
397 setCurrentHourInternal(currentHour, false, false); in RadialTimePickerView()
/frameworks/base/services/core/java/com/android/server/
DLocationUsageLogger.java164 long currentHour = Instant.now().toEpochMilli() / ONE_HOUR_IN_MILLIS; in checkApiUsageLogCap() local
165 if (currentHour > mLastApiUsageLogHour) { in checkApiUsageLogCap()
166 mLastApiUsageLogHour = currentHour; in checkApiUsageLogCap()