/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateFormatTest.java | 26 assertTrue(DateFormat.hasDesignator("hh:mm:ss", DateFormat.MINUTE)); in testHasDesignator() 27 assertTrue(DateFormat.hasDesignator("myyyy", DateFormat.MINUTE)); in testHasDesignator() 28 assertTrue(DateFormat.hasDesignator("mmm", DateFormat.MINUTE)); in testHasDesignator() 30 assertFalse(DateFormat.hasDesignator("hh:MM:ss", DateFormat.MINUTE)); in testHasDesignator() 35 assertTrue(DateFormat.hasDesignator("hh:mm 'LOL'", DateFormat.MINUTE)); in testHasDesignatorEscaped() 37 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR)); in testHasDesignatorEscaped()
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 61 public class DateFormat { class 192 java.text.DateFormat natural = in is24HourFormat() 193 java.text.DateFormat.getTimeInstance(java.text.DateFormat.LONG, locale); in is24HourFormat() 256 public static java.text.DateFormat getTimeFormat(Context context) { in getTimeFormat() 289 public static java.text.DateFormat getDateFormat(Context context) { in getDateFormat() 290 return java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT); in getDateFormat() 299 public static java.text.DateFormat getLongDateFormat(Context context) { in getLongDateFormat() 300 return java.text.DateFormat.getDateInstance(java.text.DateFormat.LONG); in getLongDateFormat() 309 public static java.text.DateFormat getMediumDateFormat(Context context) { in getMediumDateFormat() 310 return java.text.DateFormat.getDateInstance(java.text.DateFormat.MEDIUM); in getMediumDateFormat() [all …]
|
D | DateUtils.java | 327 flags |= DateFormat.is24HourFormat(c) ? FORMAT_24HOUR : FORMAT_12HOUR; in getRelativeDateTimeString() 452 java.text.DateFormat f; in formatSameDayTime() 457 f = java.text.DateFormat.getTimeInstance(timeStyle); in formatSameDayTime() 459 f = java.text.DateFormat.getDateInstance(dateStyle); in formatSameDayTime() 698 flags |= DateFormat.is24HourFormat(context) ? FORMAT_24HOUR : FORMAT_12HOUR; in formatDateRange()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardStatusView.java | 26 import android.text.format.DateFormat; 174 String skeleton = DateFormat.is24HourFormat(context, ActivityManager.getCurrentUser()) in formatNextAlarm() 177 String pattern = DateFormat.getBestDateTimePattern(Locale.getDefault(), skeleton); in formatNextAlarm() 178 return DateFormat.format(pattern, info.getTriggerTime()).toString(); in formatNextAlarm() 245 dateView = DateFormat.getBestDateTimePattern(locale, dateViewSkel); in update() 247 clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel); in update() 254 clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel); in update()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightState.java | 19 import android.text.format.DateFormat; 100 + " sunrise=" + DateFormat.format("MM-dd HH:mm", mSunriseTimeMillis) in toString() 101 + " sunset="+ DateFormat.format("MM-dd HH:mm", mSunsetTimeMillis) in toString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DateView.java | 24 import android.icu.text.DateFormat; 40 private DateFormat mDateFormat; 104 DateFormat format = DateFormat.getInstanceForSkeleton(mDatePattern, l); in updateClock()
|
D | SplitClockView.java | 25 import android.text.format.DateFormat; 90 String formatString = DateFormat.getTimeFormatString(getContext(), in updatePatterns()
|
D | Clock.java | 33 import android.text.format.DateFormat; 201 boolean is24 = DateFormat.is24HourFormat(context, ActivityManager.getCurrentUser()); in getSmallTime() 291 boolean is24 = DateFormat.is24HourFormat( in dispatchDemoCommand()
|
D | SignalController.java | 19 import android.text.format.DateFormat; 300 .append("lastModified=").append(DateFormat.format("MM-dd hh:mm:ss", time)); in toString()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | DatePicker.java | 24 import android.text.format.DateFormat; 206 java.text.DateFormat format; in reorderPickers() 217 format = DateFormat.getDateFormat(getContext()); in reorderPickers() 219 format = DateFormat.getMediumDateFormat(getContext()); in reorderPickers() 226 order = new String(DateFormat.getDateFormatOrder(getContext())); in reorderPickers() 246 if (c == DateFormat.DATE && !didDay) { in reorderPickers() 249 } else if ((c == DateFormat.MONTH || c == 'L') && !didMonth) { in reorderPickers() 252 } else if (c == DateFormat.YEAR && !didYear) { in reorderPickers()
|
/frameworks/base/core/java/android/widget/ |
D | DigitalClock.java | 24 import android.text.format.DateFormat; 84 setText(DateFormat.format(mFormat, mCalendar)); in onAttachedToWindow() 103 mFormat = DateFormat.getTimeFormatString(getContext()); in setFormat()
|
D | TextClock.java | 33 import android.text.format.DateFormat; 418 return DateFormat.is24HourFormat(getContext(), ActivityManager.getCurrentUser()); in is24HourModeEnabled() 420 return DateFormat.is24HourFormat(getContext()); in is24HourModeEnabled() 502 mHasSeconds = DateFormat.hasSeconds(mFormat); in chooseFormat() 598 setText(DateFormat.format(mFormat, mTime)); in onTimeChanged() 599 setContentDescription(DateFormat.format(mDescFormat, mTime)); in onTimeChanged()
|
D | DateTimeView.java | 42 import java.text.DateFormat; 68 DateFormat mLastFormat; 188 DateFormat format; in update() 198 format = DateFormat.getDateInstance(DateFormat.SHORT); in update() 327 private DateFormat getTimeFormat() { in getTimeFormat() 328 return android.text.format.DateFormat.getTimeFormat(getContext()); in getTimeFormat()
|
D | TimePickerSpinnerDelegate.java | 22 import android.text.format.DateFormat; 221 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in getHourFormatData() 241 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in isAmPmAtStart() 257 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in setDividerText()
|
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
D | FileUtil.java | 24 import java.text.DateFormat; 31 private static DateFormat sDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/ |
D | DozeTestDream.java | 28 import android.text.format.DateFormat; 65 private java.text.DateFormat mTimeFormat; 110 mTimeFormat = DateFormat.getTimeFormat(this); in onAttachedToWindow()
|
/frameworks/base/tools/preload2/src/com/android/preload/ |
D | DumpDataIO.java | 27 import java.text.DateFormat; 62 DateFormat.getDateTimeInstance().format(d.date) +"\">\n"); in serialize() 108 Date date = DateFormat.getDateTimeInstance().parse(dateString); in startElement()
|
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/ |
D | BatteryWaster.java | 32 import java.text.DateFormat; 40 DateFormat mDateFormat; 59 mDateFormat = DateFormat.getInstance(); in onCreate()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | DeviceInfoUtils.java | 29 import android.text.format.DateFormat; 166 String format = DateFormat.getBestDateTimePattern(Locale.getDefault(), "dMMMMyyyy"); in getSecurityPatch() 167 patch = DateFormat.format(format, patchDate).toString(); in getSecurityPatch()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/ |
D | DatePicker.java | 24 import java.text.DateFormat; 57 final DateFormat mDateFormat = new SimpleDateFormat(DATE_FORMAT); 103 android.text.format.DateFormat.getDateFormatOrder(context)); in DatePicker() 125 android.text.format.DateFormat.getDateFormatOrder(getContext())); in setDatePickerFormat()
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 44 import java.text.DateFormat; 82 DateFormat formatter = DateFormat.getDateTimeInstance();
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 43 import java.text.DateFormat; 223 DateFormat formatter = new SimpleDateFormat("MMM dd h:mmaa"); in loadXmlFromNetwork()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | icu4j-framework.jd | 145 <td><code>android.text.format.DateFormat</code> 147 <td><code>android.icu.text.DateFormat</code> 152 <td><code>android.icu.text.DateFormat</code>
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | DngCreator.java | 36 import java.text.DateFormat; 452 private static final DateFormat sExifGPSDateStamp = new SimpleDateFormat(GPS_DATE_FORMAT_STR); 453 private static final DateFormat sDateTimeStampFormat =
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 29 import java.text.DateFormat; 241 private static String formatTime(DateFormat df, int s) { in formatTime()
|