/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/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 | 466 int hour = inDate.get(Calendar.HOUR); in format() local 467 if (c == 'h' && hour == 0) { in format() 468 hour = 12; in format() 470 replacement = zeroPad(hour, count); in format() 476 int hour = inDate.get(Calendar.HOUR_OF_DAY); in format() local 480 if (false && c == 'k' && hour == 0) { in format() 481 hour = 24; in format() 483 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() 508 public SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode) { in SavedState() argument 509 this(superState, hour, minute, is24HourMode, 0); in SavedState() 512 public SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode, in SavedState() argument 515 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 | 516 public void setDate(int hour, int minute) { 517 setHourInternal(hour, FROM_EXTERNAL_API, true, false); 527 public void setHour(int hour) { 528 setHourInternal(hour, FROM_EXTERNAL_API, true, true); 531 private void setHourInternal(int hour, @ChangeSource int source, boolean announce, 533 if (mCurrentHour == hour) { 538 mCurrentHour = hour; 539 updateHeaderHour(hour, announce); 543 mRadialTimePickerView.setCurrentHour(hour); 544 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 | 249 int hour = localDateTime.getHour(); in onTimeChanged() local 254 mHour = hour + mMinutes / 60.0f; in onTimeChanged()
|
/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/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 | 97 int hour = Integer.parseInt(nitzSubs[3]); in parse() local 98 c.set(Calendar.HOUR, hour); in parse()
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.cpp | 38 int hour = ms / 3600000; in getElapsedTime() local 43 oss << std::setfill('0') << std::setw(2) << hour << ":" << std::setw(2) << minutes << ":" in getElapsedTime()
|
/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 | 186 int hour = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[3]); in getPrimaryNotificationTimestamp() local 209 hour, in getPrimaryNotificationTimestamp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiUtils.java | 57 long hour = (min / 60) % 60; //hours in buildLoggingSummary() local 59 if (hour > 0) summary.append(Long.toString(hour) + "h "); in buildLoggingSummary()
|
/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/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/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 | 248 public int hour; field in BearerData.TimeStamp 276 int hour = IccUtils.cdmaBcdByteToInt(data[3]); in fromByteArray() local 277 if (hour < 0 || hour > 23) return null; in fromByteArray() 278 ts.hour = hour; in fromByteArray() 297 ts.hour = localDateTime.getHour(); in fromMillis() 309 outStream.write((((hour / 10) << 4) & 0xF0) | ((hour % 10) & 0x0F)); in toByteArray() 317 LocalDateTime.of(year, monthOrdinal, monthDay, hour, minute, second); in toMillis() 330 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/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsMessage.java | 783 int hour = localDateTime.getHour(); in getDeliverPdu() 791 scts[3] = (byte) ((((hour % 10) & 0x0F) << 4) | ((hour / 10) & 0x0F)); in getDeliverPdu() 897 int hour = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() local 921 hour, in getSCTimestampMillis()
|