/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiTimerRecordSources.java | 150 public static Time timeOf(int hour, int minute) { in timeOf() argument 151 checkTimeValue(hour, minute); in timeOf() 152 return new Time(hour, minute); in timeOf() 155 private static void checkTimeValue(int hour, int minute) { in checkTimeValue() argument 156 if (hour < 0 || hour > 23) { in checkTimeValue() 157 throw new IllegalArgumentException("Hour should be in rage of [0, 23]:" + hour); in checkTimeValue() 172 public static Duration durationOf(int hour, int minute) { in durationOf() argument 173 checkDurationValue(hour, minute); in durationOf() 174 return new Duration(hour, minute); in durationOf() 177 private static void checkDurationValue(int hour, int minute) { in checkDurationValue() argument [all …]
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
D | TimePickerBindingAdapter.java | 30 public static void setHour(TimePicker view, int hour) { in setHour() argument 32 if (view.getHour() != hour) { in setHour() 33 view.setHour(hour); in setHour() 36 if (view.getCurrentHour() != hour) { in setHour() 37 view.setCurrentHour(hour); in setHour() 62 Integer hour = view.getCurrentHour(); in getHour() local 63 if (hour == null) { in getHour() 66 return hour; in getHour()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 200 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 205 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 218 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 223 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 241 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 247 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 263 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 269 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 377 t.hour != 9 || t.minute != 50 || t.second != 50 || in testParse33390() 384 t.hour != 9 || t.minute != 50 || t.second != 50 || in testParse33390() [all …]
|
/frameworks/base/core/java/com/android/internal/http/ |
D | HttpDateTime.java | 75 this.hour = h; in TimeOfDay() 80 int hour; field in HttpDateTime.TimeOfDay 119 time.set(timeOfDay.second, timeOfDay.minute, timeOfDay.hour, date, in parse() 209 int hour = timeString.charAt(i++) - '0'; in getTime() local 211 hour = hour * 10 + (timeString.charAt(i++) - '0'); in getTime() 223 return new TimeOfDay(hour, minute, second); in getTime()
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 75 this.hour = h; in TimeOfDay() 80 int hour; field in LegacyHttpDateTime.TimeOfDay 119 time.set(timeOfDay.second, timeOfDay.minute, timeOfDay.hour, date, in parse() 209 int hour = timeString.charAt(i++) - '0'; in getTime() local 211 hour = hour * 10 + (timeString.charAt(i++) - '0'); in getTime() 223 return new TimeOfDay(hour, minute, second); in getTime()
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 94 public int hour; field in Time 308 this.hour = 0; in clear() 462 hour = n; in parseInternal() 481 hour = 0; in parseInternal() 592 int hour = n; in parse3339Internal() local 652 hour += n; in parse3339Internal() 661 this.hour = hour; in parse3339Internal() 669 this.hour = 0; in parse3339Internal() 788 this.hour = that.hour; in set() 802 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument [all …]
|
D | DateFormat.java | 461 int hour = inDate.get(Calendar.HOUR); in format() local 462 if (c == 'h' && hour == 0) { in format() 463 hour = 12; in format() 465 replacement = zeroPad(hour, count); in format() 471 int hour = inDate.get(Calendar.HOUR_OF_DAY); in format() local 475 if (false && c == 'k' && hour == 0) { in format() 476 hour = 24; in format() 478 replacement = zeroPad(hour, count); in format()
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 445 public void initialize(int hour, int minute, boolean is24HourMode) { in initialize() argument 451 setCurrentHourInternal(hour, false, false); in initialize() 481 public void setCurrentHour(int hour) { in setCurrentHour() argument 482 setCurrentHourInternal(hour, true, false); in setCurrentHour() 493 private void setCurrentHourInternal(int hour, boolean callback, boolean autoAdvance) { in setCurrentHourInternal() argument 494 final int degrees = (hour % 12) * DEGREES_FOR_ONE_HOUR; in setCurrentHourInternal() 498 final int amOrPm = (hour == 0 || (hour % 24) < 12) ? AM : PM; in setCurrentHourInternal() 499 final boolean isOnInnerCircle = getInnerCircleForHour(hour); in setCurrentHourInternal() 511 mListener.onValueSelected(HOURS, hour, autoAdvance); in setCurrentHourInternal() 525 int hour = (degrees / DEGREES_FOR_ONE_HOUR) % 12; in getHourForDegrees() local [all …]
|
D | TimePicker.java | 176 public void setHour(@IntRange(from = 0, to = 23) int hour) { in setHour() 177 mDelegate.setHour(MathUtils.constrain(hour, 0, 23)); in setHour() 366 void setHour(@IntRange(from = 0, to = 23) int hour); in setHour() 372 void setDate(@IntRange(from = 0, to = 23) int hour, in setDate() 496 public SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode) { in SavedState() argument 497 this(superState, hour, minute, is24HourMode, 0); in SavedState() 500 public SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode, in SavedState() argument 503 mHour = hour; in SavedState()
|
D | TextInputTimePickerView.java | 201 final int hour = Integer.parseInt(input); in parseAndSetHourInternal() local 202 if (!isValidLocalizedHour(hour)) { in parseAndSetHourInternal() 206 MathUtils.constrain(hour, minHour, maxHour))); in parseAndSetHourInternal() 209 mListener.onValueChanged(HOURS, getHourOfDayFromLocalizedHour(hour)); in parseAndSetHourInternal()
|
D | TimePickerClockDelegate.java | 511 public void setDate(int hour, int minute) { 512 setHourInternal(hour, FROM_EXTERNAL_API, true, false); 522 public void setHour(int hour) { 523 setHourInternal(hour, FROM_EXTERNAL_API, true, true); 526 private void setHourInternal(int hour, @ChangeSource int source, boolean announce, 528 if (mCurrentHour == hour) { 533 mCurrentHour = hour; 534 updateHeaderHour(hour, announce); 538 mRadialTimePickerView.setCurrentHour(hour); 539 mRadialTimePickerView.setAmOrPm(hour < 12 ? AM : PM);
|
D | TimePickerSpinnerDelegate.java | 90 mHourSpinner = delegator.findViewById(R.id.hour); in TimePickerSpinnerDelegate() 287 public void setDate(int hour, int minute) { in setDate() argument 288 setCurrentHour(hour, false); in setDate() 295 public void setHour(int hour) { in setHour() argument 296 setCurrentHour(hour, true); in setHour()
|
D | AnalogClock.java | 240 int hour = mCalendar.hour; in onTimeChanged() local 245 mHour = hour + mMinutes / 60.0f; in onTimeChanged()
|
D | DateTimeView.java | 131 mTime = new Date(t.year-1900, t.month, t.monthDay, t.hour, t.minute, 0); in setTime() 168 t.hour -= 12; in update() 170 t.hour += 12; in update() 172 t.hour = 0; in update()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | RecurrenceProcessor.java | 258 iterator.hour, in filter() 882 int iteratorHour = iterator.hour; in expand() 956 int hour = usebyhour in expand() local 959 … if (SPEW) Log.i(TAG, " hour=" + hour + " usebyhour=" + usebyhour); in expand() 980 … generated.set(second, minute, hour, day, month, iteratorYear); in expand() 1081 iterator.hour += value; in expand() 1141 int hour = date.hour; in unsafeNormalize() local 1151 hour += addHours; in unsafeNormalize() 1152 int addDays = ((hour < 0) ? (hour - 23) : hour) / 24; in unsafeNormalize() 1153 hour -= addDays * 24; in unsafeNormalize() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsCbEtwsInfo.java | 153 int hour = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[3]); in getPrimaryNotificationTimestamp() local 175 time.hour = hour; in getPrimaryNotificationTimestamp()
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/ |
D | TimePicker.java | 337 public void setHour(@IntRange(from = 0, to = 23) int hour) { in setHour() 338 if (hour < 0 || hour > 23) { in setHour() 339 throw new IllegalArgumentException("hour: " + hour + " is not in [0-23] range in"); in setHour() 341 mCurrentHour = hour; in setHour()
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/ |
D | TwilightManager.java | 101 final int hour = calendar.get(Calendar.HOUR_OF_DAY); in isNight() local 102 return hour < SUNRISE || hour >= SUNSET; in isNight()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 57 int year, month, day, hour, minute, second; in parseDateTime() local 59 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime() 81 tm.tm_hour = hour; in parseDateTime()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiUtils.java | 48 long hour = (min / 60) % 60; //hours in buildLoggingSummary() local 50 if (hour > 0) summary.append(Long.toString(hour) + "h "); in buildLoggingSummary()
|
/frameworks/base/core/java/android/app/ |
D | TimePickerDialog.java | 205 final int hour = savedInstanceState.getInt(HOUR); in onRestoreInstanceState() local 208 mTimePicker.setCurrentHour(hour); in onRestoreInstanceState()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzData.java | 97 int hour = Integer.parseInt(nitzSubs[3]); in parse() local 98 c.set(Calendar.HOUR, hour); in parse()
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 114 private long getTime(long millis, int hour, int min) { in getTime() argument 116 mCalendar.set(Calendar.HOUR_OF_DAY, hour); in getTime()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | TimePickerDialog.java | 672 int hour = mTimePicker.getHours(); in updateDisplay() local 674 setHour(hour, true); in updateDisplay() 677 updateAmPmDisplay(hour < 12? AM : PM); in updateDisplay() 750 int hour = -1; 761 hour = val; 763 hour += 10*val; 770 int[] ret = {hour, minute, amOrPm};
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 80 int hourMinute = recycledTime.hour * 60 + in getLocalTime() 113 return recycledTime.hour; in getLocalHr()
|