/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 133 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 …]
|
D | DateIntervalFormatTest.java | 58 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/ |
D | DatePickerDialog.java | 49 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/ |
D | RelativeDateTimeFormatter.java | 176 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()
|
D | Formatter.java | 251 return measureFormat.format(new Measure(days, MeasureUnit.DAY)); in formatShortElapsedTime() 254 new Measure(days, MeasureUnit.DAY), in formatShortElapsedTime()
|
D | DateFormat.java | 100 public static final char DAY = 'E'; field in DateFormat
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | StringUtil.java | 84 measureList.add(new Measure(days, MeasureUnit.DAY)); in formatElapsedTime()
|
D | PowerUtil.java | 183 final Measure daysMeasure = new Measure(2, MeasureUnit.DAY); in getMoreThanTwoDaysString()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncStorageEngine.java | 2514 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/ |
D | SimpleMonthView.java | 1103 RelativeDateTimeFormatter.AbsoluteUnit.DAY)); in onPopulateNodeForVirtualView()
|
/frameworks/base/core/api/ |
D | removed.txt | 471 field @Deprecated public static final char DAY = 69; // 0x0045 'E'
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 4727 Landroid/app/DatePickerDialog;->DAY:Ljava/lang/String;
|