Home
last modified time | relevance | path

Searched refs:DAY (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java133 private static final long DAY = 24 * HOUR; field in FormatterTest
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()
140 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); in testFormatShortElapsedTime()
142 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime()
144 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); in testFormatShortElapsedTime()
145 assertEquals("1 day", Formatter.formatShortElapsedTime(mContext, 1 * DAY)); in testFormatShortElapsedTime()
166 assertEquals("2\u202fj", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); in testFormatShortElapsedTime()
173 mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTimeRoundingUpToMinutes()
175 mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTimeRoundingUpToMinutes()
[all …]
DDateIntervalFormatTest.java58 private static final long DAY = 24 * HOUR; field in DateIntervalFormatTest
59 private static final long MONTH = 31 * DAY;
138 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * DAY, in test_formatDateInterval()
149 assertEquals("19.–22.01.2009", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * DAY, in test_formatDateInterval()
161 formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * DAY, in test_formatDateInterval()
173 formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * DAY, in test_formatDateInterval()
185 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * DAY, 0)); in test_formatDateInterval()
186 assertEquals("Jan 19 – 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * DAY, in test_formatDateInterval()
189 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * DAY, in test_formatDateInterval()
192 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * DAY, FORMAT_SHOW_WEEKDAY)); in test_formatDateInterval()
[all …]
/frameworks/base/core/java/android/app/
DDatePickerDialog.java49 private static final String DAY = "day"; field in DatePickerDialog
210 state.putInt(DAY, mDatePicker.getDayOfMonth()); in onSaveInstanceState()
219 final int day = savedInstanceState.getInt(DAY); in onRestoreInstanceState()
/frameworks/base/core/java/android/text/format/
DRelativeDateTimeFormatter.java176 android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit.DAY); in getRelativeTimeSpanString()
182 android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit.DAY); in getRelativeTimeSpanString()
191 aunit = android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit.DAY; in getRelativeTimeSpanString()
195 aunit = android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit.DAY; in getRelativeTimeSpanString()
DFormatter.java251 return measureFormat.format(new Measure(days, MeasureUnit.DAY)); in formatShortElapsedTime()
254 new Measure(days, MeasureUnit.DAY), in formatShortElapsedTime()
DDateFormat.java100 public static final char DAY = 'E'; field in DateFormat
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java84 measureList.add(new Measure(days, MeasureUnit.DAY)); in formatElapsedTime()
DPowerUtil.java183 final Measure daysMeasure = new Measure(2, MeasureUnit.DAY); in getMoreThanTwoDaysString()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java2514 if (proto.nextField(SyncStatisticsProto.DayStats.DAY)) { in readIndividualDayStatsLocked()
2516 stats = new DayStats(proto.readInt(SyncStatisticsProto.DayStats.DAY)); in readIndividualDayStatsLocked()
2524 case (int) SyncStatisticsProto.DayStats.DAY: in readIndividualDayStatsLocked()
2529 proto.readInt(SyncStatisticsProto.DayStats.DAY)); in readIndividualDayStatsLocked()
2592 proto.write(SyncStatisticsProto.DayStats.DAY, stats.day); in writeDayStatsLocked()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java1103 RelativeDateTimeFormatter.AbsoluteUnit.DAY)); in onPopulateNodeForVirtualView()
/frameworks/base/core/api/
Dremoved.txt471 field @Deprecated public static final char DAY = 69; // 0x0045 'E'
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt4727 Landroid/app/DatePickerDialog;->DAY:Ljava/lang/String;