/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/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 201 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 206 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 219 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 224 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 242 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 248 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 264 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1() 270 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 378 t.hour != 9 || t.minute != 50 || t.second != 50 || in testParse33390() 385 t.hour != 9 || t.minute != 50 || t.second != 50 || in testParse33390() [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 67 private int hour; field in Time 119 hour = mCalendar.get(Calendar.HOUR_OF_DAY); in readFieldsFromCalendar() 126 mCalendar.set(year, month, monthDay, hour, minute, second); in writeFieldsToCalendar() 162 public void set(int second, int minute, int hour, int day, int month, int year) { in set() argument 164 mCalendar.set(year, month, day, hour, minute, second); in set() 175 hour = 0; in setJulianDay() 328 public void setHour(int hour) { in setHour() argument 329 this.hour = hour; in setHour() 330 mCalendar.set(Calendar.HOUR_OF_DAY, hour); in setHour() 429 hour = n; in parseInternal() [all …]
|
D | RecurrenceProcessor.java | 954 int hour = usebyhour in expand() local 957 … if (SPEW) Log.i(TAG, " hour=" + hour + " usebyhour=" + usebyhour); in expand() 978 … generated.set(second, minute, hour, day, month, iteratorYear); in expand() 1125 int hour = date.getHour(); in unsafeNormalize() local 1135 hour += addHours; in unsafeNormalize() 1136 int addDays = ((hour < 0) ? (hour - 23) : hour) / 24; in unsafeNormalize() 1137 hour -= addDays * 24; in unsafeNormalize() 1191 date.setHour(hour); in unsafeNormalize()
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 75 this.hour = h; in TimeOfDay() 80 int hour; field in LegacyHttpDateTime.TimeOfDay 116 calendar.set(Calendar.HOUR_OF_DAY, timeOfDay.hour); in parse() 208 int hour = timeString.charAt(i++) - '0'; in getTime() local 210 hour = hour * 10 + (timeString.charAt(i++) - '0'); in getTime() 222 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 | 532 int hour = inDate.get(Calendar.HOUR); in format() local 533 if (c == 'h' && hour == 0) { in format() 534 hour = 12; in format() 536 replacement = zeroPad(hour, count); in format() 542 int hour = inDate.get(Calendar.HOUR_OF_DAY); in format() local 546 if (false && c == 'k' && hour == 0) { in format() 547 hour = 24; in format() 549 replacement = zeroPad(hour, count); in format()
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 447 public void initialize(int hour, int minute, boolean is24HourMode) { in initialize() argument 453 setCurrentHourInternal(hour, false, false); in initialize() 483 public void setCurrentHour(int hour) { in setCurrentHour() argument 484 setCurrentHourInternal(hour, true, false); in setCurrentHour() 495 private void setCurrentHourInternal(int hour, boolean callback, boolean autoAdvance) { in setCurrentHourInternal() argument 496 final int degrees = (hour % 12) * DEGREES_FOR_ONE_HOUR; in setCurrentHourInternal() 500 final int amOrPm = (hour == 0 || (hour % 24) < 12) ? AM : PM; in setCurrentHourInternal() 501 final boolean isOnInnerCircle = getInnerCircleForHour(hour); in setCurrentHourInternal() 513 mListener.onValueSelected(HOURS, hour, autoAdvance); in setCurrentHourInternal() 527 int hour = (degrees / DEGREES_FOR_ONE_HOUR) % 12; in getHourForDegrees() local [all …]
|
D | TimePicker.java | 185 public void setHour(@IntRange(from = 0, to = 23) int hour) { in setHour() 186 mDelegate.setHour(MathUtils.constrain(hour, 0, 23)); in setHour() 378 void setHour(@IntRange(from = 0, to = 23) int hour); in setHour() 384 void setDate(@IntRange(from = 0, to = 23) int hour, in setDate() 510 public SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode) { in SavedState() argument 511 this(superState, hour, minute, is24HourMode, 0); in SavedState() 514 public SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode, in SavedState() argument 517 mHour = hour; in SavedState()
|
D | TextInputTimePickerView.java | 231 final int hour = Integer.parseInt(input); in parseAndSetHourInternal() local 232 if (!isValidLocalizedHour(hour)) { in parseAndSetHourInternal() 236 MathUtils.constrain(hour, minHour, maxHour))); in parseAndSetHourInternal() 239 mListener.onValueChanged(HOURS, getHourOfDayFromLocalizedHour(hour)); in parseAndSetHourInternal()
|
D | TimePickerClockDelegate.java | 517 public void setDate(int hour, int minute) { 518 setHourInternal(hour, FROM_EXTERNAL_API, true, false); 528 public void setHour(int hour) { 529 setHourInternal(hour, FROM_EXTERNAL_API, true, true); 532 private void setHourInternal(int hour, @ChangeSource int source, boolean announce, 534 if (mCurrentHour == hour) { 539 mCurrentHour = hour; 540 updateHeaderHour(hour, announce); 544 mRadialTimePickerView.setCurrentHour(hour); 545 mRadialTimePickerView.setAmOrPm(hour < 12 ? AM : PM);
|
D | TimePickerSpinnerDelegate.java | 88 mHourSpinner = delegator.findViewById(R.id.hour); in TimePickerSpinnerDelegate() 285 public void setDate(int hour, int minute) { in setDate() argument 286 setCurrentHour(hour, false); in setDate() 293 public void setHour(int hour) { in setHour() argument 294 setCurrentHour(hour, true); in setHour()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MissedIncomingCallSmsFilter.java | 126 private long getEpochTime(String year, String month, String day, String hour, String minute) { in getEpochTime() argument 139 time = LocalDateTime.parse(year + month + day + hour + minute, formatter); in getEpochTime() 176 String year = null, month = null, day = null, hour = null, minute = null; in processSms() local 181 hour = matcher.group(SMS_HOUR_TAG); in processSms() 184 Rlog.v(TAG, "month=" + month + ", day=" + day + ", hour=" + hour in processSms() 204 missedCallTime = getEpochTime(year, month, day, hour, minute); in processSms()
|
D | NitzData.java | 90 int hour = Integer.parseInt(nitzSubs[3]); in parse() local 96 long epochMillis = LocalDateTime.of(year, month, date, hour, minute, second) in parse()
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 115 private long getTime(long millis, int hour, int min) { in getTime() argument 117 mCalendar.set(Calendar.HOUR_OF_DAY, hour); in getTime() 214 public long getClosestActualTime(long refTime, int hour, int min) { in getClosestActualTime() argument 215 long resTime = getTime(refTime, hour, min); in getClosestActualTime() 229 if (resHr == hour + 1 && resMin == min) { in getClosestActualTime()
|
/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/native/services/sensorservice/ |
D | SensorRegistrationInfo.h | 66 const int8_t hour = static_cast<int8_t>(timeinfo->tm_hour); in dump() local 71 ss << std::setfill('0') << std::setw(2) << static_cast<int>(hour) << ":" in dump()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsCbEtwsInfo.java | 187 int hour = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[3]); in getPrimaryNotificationTimestamp() local 211 hour, in getPrimaryNotificationTimestamp()
|
/frameworks/base/core/java/android/app/ |
D | TimePickerDialog.java | 207 final int hour = savedInstanceState.getInt(HOUR); in onRestoreInstanceState() local 210 mTimePicker.setCurrentHour(hour); in onRestoreInstanceState()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiUtils.java | 124 long hour = (min / 60) % 60; //hours in buildLoggingSummary() local 126 if (hour > 0) summary.append(Long.toString(hour) + "h "); in buildLoggingSummary()
|
/frameworks/base/core/tests/coretests/src/android/net/sntp/ |
D | Duration64Test.java | 267 int year, int monthOfYear, int day, int hour, int minute, int second, int nanos) { 268 return LocalDateTime.of(year, monthOfYear, day, hour, minute, second, nanos)
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 80 int hourMinute = recycledTime.hour * 60 + in getLocalTime() 113 return recycledTime.hour; in getLocalHr()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | BearerData.java | 252 public int hour; field in BearerData.TimeStamp 280 int hour = IccUtils.cdmaBcdByteToInt(data[3]); in fromByteArray() local 281 if (hour < 0 || hour > 23) return null; in fromByteArray() 282 ts.hour = hour; in fromByteArray() 301 ts.hour = localDateTime.getHour(); in fromMillis() 313 outStream.write((((hour / 10) << 4) & 0xF0) | ((hour % 10) & 0x0F)); in toByteArray() 322 LocalDateTime.of(year, monthOrdinal, monthDay, hour, minute, second); in toMillis() 340 builder.append(", hour=" + hour); in toString()
|
/frameworks/rs/script_api/include/ |
D | rs_time.rsh | 50 int tm_min; // Minutes after the hour. This ranges from 0 to 59. 74 * hour, etc. This value is stored at *local.
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | TimeTest.java | 721 for (int hour = 0; hour < 24; hour++) { 723 time.set(0, minute, hour, monthDay, 0, 2020);
|