Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java132 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 …]
DDateIntervalFormatTest.java57 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/
DTimePickerDialog.java43 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/
DFormatter.java254 new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime()
257 return measureFormat.format(new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime()
260 new Measure(hours, MeasureUnit.HOUR), in formatShortElapsedTime()
DDateFormat.java102 public static final char HOUR = 'h'; field in DateFormat
514 int hour = inDate.get(Calendar.HOUR); in format()
DTime.java146 public static final int HOUR = 3; field in Time
265 case HOUR: in getActualMaximum()
DDateUtils.java416 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/packages/SystemUI/src/com/android/keyguard/clock/
DImageClock.java62 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/
DStringUtil.java80 measureList.add(new Measure(hours, MeasureUnit.HOUR)); in formatElapsedTime()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java98 c.set(Calendar.HOUR, hour); in parse()
/frameworks/base/core/java/android/widget/
DChronometer.java379 measures.add(new Measure(h, MeasureUnit.HOUR)); in formatDuration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java480 mCalendar.set(Calendar.HOUR, hh); in dispatchDemoCommand()
/frameworks/base/api/
Dremoved.txt628 field @Deprecated public static final char HOUR = 104; // 0x0068 'h'
Dcurrent.txt20055 field public static final String HOUR = "j";
20290 field public static final int HOUR = 11; // 0xb
21011 …_constant public static final android.icu.text.RelativeDateTimeFormatter.RelativeDateTimeUnit HOUR;
21723 field public static final int HOUR = 10; // 0xa
22160 field public static final android.icu.util.TimeUnit HOUR;
36940 field public static final String EXTRA_HOUR = "android.intent.extra.alarm.HOUR";
47860 field @Deprecated public static final int HOUR = 3; // 0x3
70906 field public static final int HOUR = 10; // 0xa
/frameworks/base/non-updatable-api/
Dremoved.txt628 field @Deprecated public static final char HOUR = 104; // 0x0068 'h'
Dcurrent.txt20055 field public static final String HOUR = "j";
20290 field public static final int HOUR = 11; // 0xb
21011 …_constant public static final android.icu.text.RelativeDateTimeFormatter.RelativeDateTimeUnit HOUR;
21723 field public static final int HOUR = 10; // 0xa
22160 field public static final android.icu.util.TimeUnit HOUR;
36796 field public static final String EXTRA_HOUR = "android.intent.extra.alarm.HOUR";
47716 field @Deprecated public static final int HOUR = 3; // 0x3
70762 field public static final int HOUR = 10; // 0xa
/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
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt9027 Landroid/app/TimePickerDialog;->HOUR:Ljava/lang/String;
29603 Landroid/icu/text/RelativeDateTimeFormatter$RelDateTimeDataSink$DateTimeUnit;->HOUR:Landroid/icu/te…
109795 Ljava/util/Formatter$DateTime;->HOUR:C