Searched refs:DateFormat (Results 1 - 25 of 43) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/format/
H A DDateFormatTest.java26 assertTrue(DateFormat.hasDesignator("hh:mm:ss", DateFormat.MINUTE));
27 assertTrue(DateFormat.hasDesignator("myyyy", DateFormat.MINUTE));
28 assertTrue(DateFormat.hasDesignator("mmm", DateFormat.MINUTE));
30 assertFalse(DateFormat.hasDesignator("hh:MM:ss", DateFormat.MINUTE));
35 assertTrue(DateFormat.hasDesignator("hh:mm 'LOL'", DateFormat
[all...]
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
H A DFileUtil.java24 import java.text.DateFormat;
31 private static DateFormat sDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
/frameworks/base/core/java/android/widget/
H A DDigitalClock.java24 import android.text.format.DateFormat;
84 setText(DateFormat.format(mFormat, mCalendar));
101 mFormat = DateFormat.getTimeFormatString(getContext());
H A DDateTimeView.java31 import java.text.DateFormat;
61 DateFormat mLastFormat;
146 DateFormat format;
156 format = DateFormat.getDateInstance(DateFormat.SHORT);
192 private DateFormat getTimeFormat() {
193 return android.text.format.DateFormat.getTimeFormat(getContext());
H A DTextClock.java33 import android.text.format.DateFormat;
262 * {@link DateFormat}.
277 * {@link DateFormat}.</p>
286 * {@link DateFormat#getBestDateTimePattern(java.util.Locale, String)}. This method
290 * @param format A date/time formatting pattern as described in {@link DateFormat}
294 * @see DateFormat#getBestDateTimePattern(java.util.Locale, String)
295 * @see DateFormat
321 * {@link DateFormat}.
336 * {@link DateFormat}.</p>
345 * {@link DateFormat#getBestDateTimePatter
[all...]
H A DTimePickerSpinnerDelegate.java24 import android.text.format.DateFormat;
224 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mCurrentLocale,
244 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mCurrentLocale,
260 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mCurrentLocale,
H A DCalendarView.java31 import java.text.DateFormat;
742 private static final DateFormat DATE_FORMATTER = new SimpleDateFormat(DATE_FORMAT);
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightState.java19 import java.text.DateFormat;
104 DateFormat f = DateFormat.getDateTimeInstance();
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java42 * appropriately-localized {@link java.text.DateFormat} instances, suitable
61 public class DateFormat { class
192 java.text.DateFormat natural =
193 java.text.DateFormat.getTimeInstance(java.text.DateFormat.LONG, locale);
251 * Returns a {@link java.text.DateFormat} object that can format the time according
254 * @return the {@link java.text.DateFormat} object that properly formats the time.
256 public static java.text.DateFormat getTimeFormat(Context context) {
283 * Returns a {@link java.text.DateFormat} object that can format the date
287 * @return the {@link java.text.DateFormat} objec
[all...]
H A DDateUtils.java327 flags |= DateFormat.is24HourFormat(c) ? FORMAT_24HOUR : FORMAT_12HOUR;
432 * {@link java.text.DateFormat#DEFAULT},
433 * {@link java.text.DateFormat#FULL},
434 * {@link java.text.DateFormat#LONG},
435 * {@link java.text.DateFormat#MEDIUM}
437 * {@link java.text.DateFormat#SHORT}
452 java.text.DateFormat f;
457 f = java.text.DateFormat.getTimeInstance(timeStyle);
459 f = java.text.DateFormat.getDateInstance(dateStyle);
698 flags |= DateFormat
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardStatusView.java27 import android.text.format.DateFormat;
170 String skeleton = DateFormat.is24HourFormat(context, ActivityManager.getCurrentUser())
173 String pattern = DateFormat.getBestDateTimePattern(Locale.getDefault(), skeleton);
174 return DateFormat.format(pattern, info.getTriggerTime()).toString();
216 // DateFormat.getBestDateTimePattern is extremely expensive, and refresh is called often.
235 dateView = DateFormat.getBestDateTimePattern(locale, dateViewSkel);
237 clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel);
244 clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel);
/frameworks/base/tools/layoutlib/bridge/src/android/widget/
H A DSimpleMonthView_Delegate.java24 import android.text.format.DateFormat;
57 delegate.mTitleFormatter = new SimpleDateFormat(DateFormat.getBestDateTimePattern(
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
H A DBatteryWaster.java32 import java.text.DateFormat;
40 DateFormat mDateFormat;
59 mDateFormat = DateFormat.getInstance();
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
H A DDozeTestDream.java28 import android.text.format.DateFormat;
65 private java.text.DateFormat mTimeFormat;
110 mTimeFormat = DateFormat.getTimeFormat(this);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDateView.java24 import android.text.format.DateFormat;
103 final String fmt = DateFormat.getBestDateTimePattern(l, mDatePattern);
H A DSplitClockView.java25 import android.text.format.DateFormat;
90 String formatString = DateFormat.getTimeFormatString(getContext(),
H A DClock.java29 import android.text.format.DateFormat;
148 boolean is24 = DateFormat.is24HourFormat(context, ActivityManager.getCurrentUser());
235 boolean is24 = DateFormat.is24HourFormat(
H A DSignalController.java21 import android.text.format.DateFormat;
295 .append("lastModified=").append(DateFormat.format("MM-dd hh:mm:ss", time));
/frameworks/base/tests/backup/src/com/android/backuptest/
H A DBackupTestActivity.java44 import java.text.DateFormat;
82 DateFormat formatter = DateFormat.getDateTimeInstance();
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDatePicker.java24 import android.text.format.DateFormat;
206 java.text.DateFormat format;
217 format = DateFormat.getDateFormat(getContext());
219 format = DateFormat.getMediumDateFormat(getContext());
226 order = new String(DateFormat.getDateFormatOrder(getContext()));
246 if (c == DateFormat.DATE && !didDay) {
249 } else if ((c == DateFormat.MONTH || c == 'L') && !didMonth) {
252 } else if (c == DateFormat.YEAR && !didYear) {
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java43 import java.text.DateFormat;
223 DateFormat formatter = new SimpleDateFormat("MMM dd h:mmaa");
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java36 import java.text.DateFormat;
447 private static final DateFormat sExifGPSDateStamp = new SimpleDateFormat(GPS_DATE_FORMAT_STR);
448 private static final DateFormat sDateTimeStampFormat =
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneInfo.java29 import java.text.DateFormat;
273 // DateFormat df = new SimpleDateFormat("yyyy-MM-dd' 'HH:mm:ss Z",
276 // DateFormat weekdayFormat = new SimpleDateFormat("EEEE", Locale.US);
302 private static String formatTime(DateFormat df, int s) {
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java29 import java.text.DateFormat;
223 DateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH);
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java21 import android.text.format.DateFormat;
507 return DateFormat.getDateFormat(context).format(certificateDate);

Completed in 552 milliseconds

12