Home
last modified time | relevance | path

Searched refs:mDateFormat (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/service/autofill/
DDateValueSanitizer.java47 private final DateFormat mDateFormat; field in DateValueSanitizer
55 mDateFormat = Preconditions.checkNotNull(dateFormat); in DateValueSanitizer()
76 final String converted = mDateFormat.format(date); in sanitize()
79 final Date sanitized = mDateFormat.parse(converted); in sanitize()
83 Log.w(TAG, "Could not apply " + mDateFormat + " to " + value + ": " + e); in sanitize()
95 return "DateValueSanitizer: [dateFormat=" + mDateFormat + "]"; in toString()
108 parcel.writeSerializable(mDateFormat); in writeToParcel()
DDateTransformation.java51 private final DateFormat mDateFormat; field in DateTransformation
61 mDateFormat = Preconditions.checkNotNull(dateFormat); in DateTransformation()
81 final String transformed = mDateFormat.format(date); in apply()
86 Log.w(TAG, "Could not apply " + mDateFormat + " to " + value + ": " + e); in apply()
97 return "DateTransformation: [id=" + mFieldId + ", format=" + mDateFormat + "]"; in toString()
111 parcel.writeSerializable(mDateFormat); in writeToParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDateView.java42 private DateFormat mDateFormat; field in DateView
57 getHandler().post(() -> mDateFormat = null);
100 mDateFormat = null; // reload the locale next time in onDetachedFromWindow()
105 if (mDateFormat == null) { in updateClock()
109 mDateFormat = format; in updateClock()
114 final String text = mDateFormat.format(mCurrentTime); in updateClock()
126 mDateFormat = null; in setDatePattern()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
DPopupMenuActivity.java44 private SimpleDateFormat mDateFormat; field in PopupMenuActivity
52 mDateFormat = new SimpleDateFormat("HH:mm:ss.SSS"); in onCreate()
121 String toPrepend = mDateFormat.format(new Date()) + " " + toLog + "\n"; in addToLog()
DListPopupWindowActivity.java51 private SimpleDateFormat mDateFormat; field in ListPopupWindowActivity
59 mDateFormat = new SimpleDateFormat("HH:mm:ss.SSS"); in onCreate()
156 String toPrepend = mDateFormat.format(new Date()) + " " + toLog + "\n"; in addToLog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java83 private DateFormat mDateFormat; field in KeyguardSliceProvider
265 if (mDateFormat == null) { in getFormattedDate()
269 mDateFormat = format; in getFormattedDate()
272 return mDateFormat.format(mCurrentTime); in getFormattedDate()
277 mDateFormat = null; in cleanDateFormat()
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java40 DateFormat mDateFormat; field in BatteryWaster
59 mDateFormat = DateFormat.getInstance(); in onCreate()
161 mLog.setText(mLog.getText() + "\n" + mDateFormat.format(new Date()) + ": " + s); in log()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DTracer.java64 private SimpleDateFormat mDateFormat; field in Tracer.FileSink
68 mDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.US); in FileSink()
72 mOut.printf("%s %s\n", mDateFormat.format(new Date()), message); in log()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/
DDatePicker.java63 final DateFormat mDateFormat = new SimpleDateFormat(DATE_FORMAT); field in DatePicker
115 outDate.setTime(mDateFormat.parse(date)); in parseDate()
/frameworks/base/core/java/android/widget/
DDatePickerSpinnerDelegate.java79 private final java.text.DateFormat mDateFormat = new SimpleDateFormat(DATE_FORMAT); field in DatePickerSpinnerDelegate
491 outDate.setTime(mDateFormat.parse(date)); in parseDate()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java260 private final SimpleDateFormat mDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); field in AccountManagerService
5127 logStatement.bindString(3, mDateFormat.format(new Date()));