Home
last modified time | relevance | path

Searched refs:DateFormat (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/text/format/
DDateFormatTest.java26 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/
DDateFormat.java61 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 …]
DDateUtils.java327 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/
DKeyguardStatusView.java26 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/
DTwilightState.java19 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/
DDateView.java24 import android.icu.text.DateFormat;
40 private DateFormat mDateFormat;
104 DateFormat format = DateFormat.getInstanceForSkeleton(mDatePattern, l); in updateClock()
DSplitClockView.java25 import android.text.format.DateFormat;
90 String formatString = DateFormat.getTimeFormatString(getContext(), in updatePatterns()
DClock.java33 import android.text.format.DateFormat;
201 boolean is24 = DateFormat.is24HourFormat(context, ActivityManager.getCurrentUser()); in getSmallTime()
291 boolean is24 = DateFormat.is24HourFormat( in dispatchDemoCommand()
DSignalController.java19 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/
DDatePicker.java24 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/
DDigitalClock.java24 import android.text.format.DateFormat;
84 setText(DateFormat.format(mFormat, mCalendar)); in onAttachedToWindow()
103 mFormat = DateFormat.getTimeFormatString(getContext()); in setFormat()
DTextClock.java33 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()
DDateTimeView.java42 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()
DTimePickerSpinnerDelegate.java22 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/
DFileUtil.java24 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/
DDozeTestDream.java28 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/
DDumpDataIO.java27 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/
DBatteryWaster.java32 import java.text.DateFormat;
40 DateFormat mDateFormat;
59 mDateFormat = DateFormat.getInstance(); in onCreate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java29 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/
DDatePicker.java24 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/
DBackupTestActivity.java44 import java.text.DateFormat;
82 DateFormat formatter = DateFormat.getDateTimeInstance();
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java43 import java.text.DateFormat;
223 DateFormat formatter = new SimpleDateFormat("MMM dd h:mmaa"); in loadXmlFromNetwork()
/frameworks/base/docs/html/guide/topics/resources/
Dicu4j-framework.jd145 <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/
DDngCreator.java36 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/
DTimeZoneInfo.java29 import java.text.DateFormat;
241 private static String formatTime(DateFormat df, int s) { in formatTime()

1234