/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 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/com/android/internal/http/ |
D | HttpDateTime.java | 76 this.hour = h; in TimeOfDay() 81 int hour; field in HttpDateTime.TimeOfDay 121 time.set(timeOfDay.second, timeOfDay.minute, timeOfDay.hour, date, in parse() 211 int hour = timeString.charAt(i++) - '0'; in getTime() local 213 hour = hour * 10 + (timeString.charAt(i++) - '0'); in getTime() 225 return new TimeOfDay(hour, minute, second); in getTime()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | time.cc | 77 time.hour < 0 || time.hour > 23 || in ValidateDateTime() 125 result += kSecondsPerHour * time.hour + in SecondsSinceCommonEra() 195 int hour; in ParseTimezoneOffset() local 196 if ((data = ParseInt(data, 2, 0, 23, &hour)) == NULL) { in ParseTimezoneOffset() 206 *offset = (hour * 60 + minute) * 60; in ParseTimezoneOffset() 243 int hour = seconds / kSecondsPerHour; in SecondsToDateTime() local 250 time->hour = hour; in SecondsToDateTime() 278 time.hour, time.minute, time.second); in FormatTime() 311 if ((data = ParseInt(data, 2, 0, 23, &time.hour)) == NULL) { in ParseTime()
|
D | time_test.cc | 48 time.hour = time.minute = time.second = 0; in CreateTimestamp() 65 EXPECT_EQ(0, time.hour); in TEST() 76 EXPECT_EQ(23, time.hour); in TEST() 86 start.hour = 0; in TEST() 92 end.hour = 23; in TEST() 157 start.hour = 0; in TEST() 163 end.hour = 23; in TEST()
|
D | time.h | 43 int hour; member
|
/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 | 467 int hour = inDate.get(Calendar.HOUR); in format() local 468 if (c == 'h' && hour == 0) { in format() 469 hour = 12; in format() 471 replacement = zeroPad(hour, count); in format() 477 int hour = inDate.get(Calendar.HOUR_OF_DAY); in format() local 481 if (false && c == 'k' && hour == 0) { in format() 482 hour = 24; in format() 484 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 | 246 int hour = mCalendar.hour; in onTimeChanged() local 251 mHour = hour + mMinutes / 60.0f; in onTimeChanged()
|
D | DateTimeView.java | 135 mTime = new Date(t.year-1900, t.month, t.monthDay, t.hour, t.minute, 0); in setTime() 183 t.hour -= 12; in update() 185 t.hour += 12; in update() 187 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/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 | 49 long hour = (min / 60) % 60; //hours in buildLoggingSummary() local 51 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzData.java | 98 int hour = Integer.parseInt(nitzSubs[3]); in parse() local 99 c.set(Calendar.HOUR, hour); in parse()
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.cpp | 37 int hour = ms / 3600000; in getElapsedTime() local 42 oss << std::setfill('0') << std::setw(2) << hour << ":" << std::setw(2) << minutes << ":" in getElapsedTime()
|
/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};
|