Home
last modified time | relevance | path

Searched refs:HOUR (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java109 private static final long HOUR = 60 * MINUTE; field in FormatterTest
110 private static final long DAY = 24 * HOUR;
115 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTime()
116 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTime()
119 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime()
123 assertEquals("24 hr", Formatter.formatShortElapsedTime(mContext, 23 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime()
124 assertEquals("3 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime()
125 assertEquals("2 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR)); in testFormatShortElapsedTime()
126 assertEquals("1 hr, 0 min", Formatter.formatShortElapsedTime(mContext, 1 * HOUR)); in testFormatShortElapsedTime()
150 mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTimeRoundingUpToMinutes()
[all …]
/frameworks/base/core/java/android/app/
DTimePickerDialog.java42 private static final String HOUR = "hour"; field in TimePickerDialog
193 state.putInt(HOUR, mTimePicker.getCurrentHour()); in onSaveInstanceState()
202 final int hour = savedInstanceState.getInt(HOUR); in onRestoreInstanceState()
/frameworks/base/core/java/android/text/format/
DFormatter.java364 new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime()
367 return measureFormat.format(new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime()
370 new Measure(hours, MeasureUnit.HOUR), in formatShortElapsedTime()
DDateFormat.java102 public static final char HOUR = 'h'; field in DateFormat
477 int hour = inDate.get(Calendar.HOUR); in format()
DTime.java147 public static final int HOUR = 3; field in Time
266 case HOUR: in getActualMaximum()
DDateUtils.java399 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java136 cal.add(Calendar.HOUR, sign*hours); in addTo()
DRecurrenceProcessor.java259 iterator.getActualMaximum(Time.HOUR)); in filter()
785 freqField = Time.HOUR; in expand()
1080 case Time.HOUR: in expand()
/frameworks/base/core/java/android/widget/
DChronometer.java374 measures.add(new Measure(h, MeasureUnit.HOUR)); in formatDuration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java365 mCalendar.set(Calendar.HOUR, hh); in dispatchDemoCommand()
/frameworks/base/api/
Dtest-removed.txt435 field public static final deprecated char HOUR = 104; // 0x0068 'h'
Dremoved.txt435 field public static final deprecated char HOUR = 104; // 0x0068 'h'
Dsystem-removed.txt560 field public static final deprecated char HOUR = 104; // 0x0068 'h'
Dcurrent.txt17846 field public static final java.lang.String HOUR = "j";
18081 field public static final int HOUR = 11; // 0xb
19450 field public static final int HOUR = 10; // 0xa
19844 field public static final android.icu.util.TimeUnit HOUR;
32777 field public static final java.lang.String EXTRA_HOUR = "android.intent.extra.alarm.HOUR";
41869 field public static final int HOUR = 3; // 0x3
63929 field public static final int HOUR = 10; // 0xa
Dtest-current.txt17944 field public static final java.lang.String HOUR = "j";
18179 field public static final int HOUR = 11; // 0xb
19548 field public static final int HOUR = 10; // 0xa
19942 field public static final android.icu.util.TimeUnit HOUR;
32966 field public static final java.lang.String EXTRA_HOUR = "android.intent.extra.alarm.HOUR";
42145 field public static final int HOUR = 3; // 0x3
64411 field public static final int HOUR = 10; // 0xa
Dsystem-current.txt19389 field public static final java.lang.String HOUR = "j";
19624 field public static final int HOUR = 11; // 0xb
20993 field public static final int HOUR = 10; // 0xa
21387 field public static final android.icu.util.TimeUnit HOUR;
35695 field public static final java.lang.String EXTRA_HOUR = "android.intent.extra.alarm.HOUR";
45454 field public static final int HOUR = 3; // 0x3
67887 field public static final int HOUR = 10; // 0xa
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DServiceStateTracker.java3595 c.set(Calendar.HOUR, hour); in setTimeFromNITZString()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt23221 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