/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 132 private static final long HOUR = 60 * MINUTE; field in FormatterTest 133 private static final long DAY = 24 * HOUR; 138 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTime() 139 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTime() 142 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime() 146 assertEquals("24 hr", Formatter.formatShortElapsedTime(mContext, 23 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime() 147 assertEquals("3 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime() 148 assertEquals("2 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR)); in testFormatShortElapsedTime() 149 assertEquals("1 hr", Formatter.formatShortElapsedTime(mContext, 1 * HOUR)); in testFormatShortElapsedTime() 173 mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTimeRoundingUpToMinutes() [all …]
|
D | DateIntervalFormatTest.java | 57 private static final long HOUR = 60 * MINUTE; field in DateIntervalFormatTest 58 private static final long DAY = 24 * HOUR; 92 formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY)); in test_formatDateInterval() 94 formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, in test_formatDateInterval() 98 formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_YEAR)); in test_formatDateInterval() 100 formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_NO_YEAR)); in test_formatDateInterval() 102 formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, in test_formatDateInterval() 126 assertEquals("Mon", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, in test_formatDateInterval() 129 formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, in test_formatDateInterval() 132 formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, in test_formatDateInterval() [all …]
|
/frameworks/base/core/java/android/app/ |
D | TimePickerDialog.java | 43 private static final String HOUR = "hour"; field in TimePickerDialog 198 state.putInt(HOUR, mTimePicker.getCurrentHour()); in onSaveInstanceState() 207 final int hour = savedInstanceState.getInt(HOUR); in onRestoreInstanceState()
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 255 new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime() 258 return measureFormat.format(new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime() 261 new Measure(hours, MeasureUnit.HOUR), in formatShortElapsedTime()
|
D | DateFormat.java | 107 public static final char HOUR = 'h'; field in DateFormat 532 int hour = inDate.get(Calendar.HOUR); in format()
|
D | Time.java | 147 public static final int HOUR = 3; field in Time 266 case HOUR: in getActualMaximum()
|
D | DateUtils.java | 420 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 46 public static final int HOUR = 3; field in Time 138 && (field == MONTH_DAY || field == HOUR || field == MINUTE)) { in add() 194 case HOUR: return Calendar.HOUR_OF_DAY; in getCalendarField() 226 } else if (!apply && (mDstChangedByField == HOUR || mDstChangedByField == MINUTE)) { in getDstAdjustedMillis()
|
D | Duration.java | 136 cal.add(Calendar.HOUR, sign*hours); in addTo()
|
D | RecurrenceProcessor.java | 257 iterator.getActualMaximum(Time.HOUR)); in filter() 783 freqField = Time.HOUR; in expand() 1074 case Time.HOUR: in expand()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | TimeTest.java | 61 assertEquals(23, t.getActualMaximum(Time.HOUR)); in testGetActualMaximum() 78 t.add(Time.HOUR, 1); in testAdd() 613 time.add(Time.HOUR, 24); // changes to Nov 5, 2007, 12am 620 time.add(Time.HOUR, 24); // changes to Mar 12, 2007, 12am 633 time.add(Time.HOUR, 24); // changes to Nov 4, 2007, 11pm (fall back) 639 time.add(Time.HOUR, 24); // changes to Mar 12, 2007, 1am (roll forward)
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ImageClock.java | 62 final float hourAngle = mTime.get(Calendar.HOUR) * 30f + mTime.get(Calendar.MINUTE) * 0.5f; in onTimeChanged()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | StringUtil.java | 87 measureList.add(new Measure(hours, MeasureUnit.HOUR)); in formatElapsedTime()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ClockDrawableWrapper.java | 270 int convertedHour = (time.get(Calendar.HOUR) + (12 - defaultHour)) % 12; in applyTime() 284 if (minute.setLevel(time.get(Calendar.HOUR) * 60 + convertedMinute)) { in applyTime()
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 379 measures.add(new Measure(h, MeasureUnit.HOUR)); in formatDuration()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | PolicyWarningUIController.java | 166 cal.add(Calendar.HOUR, SEND_NOTIFICATION_DELAY_HOURS); in setAlarm()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Clock.java | 506 mCalendar.set(Calendar.HOUR, hh); in dispatchDemoCommand()
|
/frameworks/base/core/api/ |
D | removed.txt | 472 field @Deprecated public static final char HOUR = 104; // 0x0068 'h'
|
D | current.txt | 33541 field public static final String EXTRA_HOUR = "android.intent.extra.alarm.HOUR"; 45532 field @Deprecated public static final int HOUR = 3; // 0x3
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 23221 field public static final java.lang.String EXTRA_HOUR = "android.intent.extra.alarm.HOUR"; 30144 field public static final int HOUR = 3; // 0x3 47876 field public static final int HOUR = 10; // 0xa
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 9018 Landroid/app/TimePickerDialog;->HOUR:Ljava/lang/String;
|