/libcore/luni/src/test/java/libcore/icu/ |
DateIntervalFormatTest.java | 23 import static libcore.icu.DateIntervalFormat.formatDateRange; 33 // These are the old CTS tests for DateIntervalFormat.formatDateRange. 61 assertEquals("Monday", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY)); 62 assertEquals("January 19", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE)); 63 assertEquals("3:30 AM", formatDateRange(en_US, tz, fixedTime, fixedTime, FORMAT_SHOW_TIME)); 64 assertEquals("January 19, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_YEAR)); 65 assertEquals("January 19", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_NO_YEAR)); 66 assertEquals("January", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_NO_MONTH_DAY)); 67 assertEquals("3:30 AM", formatDateRange(en_US, tz, fixedTime, fixedTime, FORMAT_12HOUR | FORMAT_SHOW_TIME)); 68 assertEquals("03:30", formatDateRange(en_US, tz, fixedTime, fixedTime, FORMAT_24HOUR | FORMAT_SHOW_TIME)) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
DateIntervalFormatBenchmark.java | 32 DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags); 42 DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags); 52 DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags);
|
/libcore/luni/src/main/java/libcore/icu/ |
DateIntervalFormat.java | 40 public static String formatDateRange(long startMs, long endMs, int flags, String olsonId) { 49 return formatDateRange(icuLocale, icuTimeZone, startMs, endMs, flags); 54 public static String formatDateRange(ULocale icuLocale, android.icu.util.TimeZone icuTimeZone, 69 // of Android's DateUtils.formatDateRange.
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
CalendarInteractionUtils.java | 60 datetimeString = DateUtils.formatDateRange(context, f, startMillis, 66 String timeString = formatDateRange(context, startMillis, endMillis, 82 String dateString = formatDateRange(context, startMillis, endMillis, 92 datetimeString = formatDateRange(context, startMillis, endMillis, 173 * {@link DateUtils#formatDateRange(Context, Formatter, long, long, int, String) formatDateRange} 176 private static String formatDateRange(Context context, long startMillis, 188 date = DateUtils.formatDateRange(context, f, startMillis, endMillis, flags,
|
/frameworks/base/core/java/android/text/format/ |
DateUtils.java | 59 // dates and times in the formatDateRange method. 80 * {@link #formatDateRange(Context, Formatter, long, long, int, String) formatDateRange} 325 // Same reason as in formatDateRange() to explicitly indicate 12- or 24-hour format. 490 * {@link #formatDateRange(Context, long, long, int) formatDateRange} 497 * {@link #formatDateRange(Context, Formatter, long, long, int, String) formatDateRange} 500 public static String formatDateRange(Context context, long startMillis, 503 return formatDateRange(context, f, startMillis, endMillis, flags).toString() [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarViewAdapter.java | 322 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 326 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 330 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 333 dayOfWeek = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 347 String date = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 354 String date = DateUtils.formatDateRange( 366 String date = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 373 String date = DateUtils.formatDateRange( 414 String date = DateUtils.formatDateRange(mContext, mFormatter, weekStartTime,
|
CalendarUtils.java | 167 * {@link DateUtils#formatDateRange(Context, Formatter, long, long, int, String) formatDateRange} 170 public String formatDateRange(Context context, long startMillis, 181 date = DateUtils.formatDateRange(context, mF, startMillis, endMillis, flags,
|
Utils.java | 301 * @param flags a bit mask of options See {@link DateUtils#formatDateRange(Context, Formatter, 302 * long, long, int, String) formatDateRange} 305 public static String formatDateRange( 307 return mTZUtils.formatDateRange(context, startMillis, endMillis, flags); 559 return formatDateRange(context, millis, millis, flags); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
FormattedDateBuilder.java | 96 DateUtils.formatDateRange(mContext, dateFormatter, when, when, 125 DateUtils.formatDateRange(mContext, dateFormatter, when, when, flags);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
ChartGridView.java | 35 import static com.android.settings.Utils.formatDateRange; 99 mLabelStart = makeLabel(formatDateRange(context, start, start)); 100 mLabelMid = makeLabel(formatDateRange(context, mid, mid)); 101 mLabelEnd = makeLabel(formatDateRange(context, end, end));
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
DataUsageController.java | 177 usage.period = formatDateRange(start, end); 245 private String formatDateRange(long start, long end) { 249 return DateUtils.formatDateRange(mContext, PERIOD_FORMATTER, start, end, flags, null)
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetModel.java | 365 whenString.append(Utils.formatDateRange(mContext, start, end, flags)); 374 whenString.append(Utils.formatDateRange(mContext, start, end, flags)); 414 Utils.formatDateRange(mContext, millis, millis, flags).toString()); 417 label = Utils.formatDateRange(mContext, millis, millis, flags);
|
CalendarAppWidgetProvider.java | 139 final String date = Utils.formatDateRange(context, millis, millis,
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
CalendarAppWidgetServiceTest.java | 113 eventInfo.when = Utils.formatDateRange(getContext(), now + ONE_HOUR, now + TWO_HOURS, 140 eventInfo.when = Utils.formatDateRange(context, now + ONE_HOUR, now + TWO_HOURS,
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
ChartDataUsagePreference.java | 72 Utils.formatDateRange(getContext(), mStart, mStart), 73 Utils.formatDateRange(getContext(), mEnd, mEnd),
|
CycleAdapter.java | 163 this.label = Utils.formatDateRange(context, start, end);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
TimeClustering.java | 404 caption = DateUtils.formatDateRange(context, minTimestamp, 424 caption = DateUtils.formatDateRange(context, midTimestamp, 433 caption = DateUtils.formatDateRange(context, minTimestamp,
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallDetailHistoryAdapter.java | 116 CharSequence dateValue = DateUtils.formatDateRange(mContext, details.date, details.date,
|
/cts/tests/tests/text/src/android/text/format/cts/ |
DateUtilsTest.java | 191 assertEquals("Monday", DateUtils.formatDateRange(mContext, fixedTime,
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZoneInfo.java | 159 DateUtils.formatDateRange(context, mFormatter, now, now, flags, mTzId);
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlertAdapter.java | 131 Utils.formatDateRange(context, startMillis, endMillis, flags));
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
FormatDateRangeTest.java | 28 * Unit tests for {@link android.text.format.DateUtils#formatDateRange}. 188 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags);
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
Dates.java | 260 return DateUtils.formatDateRange(context, time, time,
|
/packages/apps/TV/src/com/android/tv/util/ |
Utils.java | 303 // Extracting a day is needed because {@link DateUtils@formatDateRange} 305 return DateUtils.formatDateRange(context, 309 return DateUtils.formatDateRange(context, startUtcMillis, endUtcMillis, flag);
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
AgendaAdapter.java | 209 whenString = DateUtils.formatDateRange(context, mFormatter, begin, end, flags, tzString)
|