Home
last modified time | relevance | path

Searched refs:dateFormat (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionChangeStorageImpl.kt56 private val dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.US) constant
101 val format = if (storesExactTime) exactTimeFormat else dateFormat in serialize()
132 val format = if (didStoreExactTime) exactTimeFormat else dateFormat in readPermissionChanges()
158 changeTime = dateFormat.parse(dateFormat.format(Date(changeTime)))!!.time in readPermissionChange()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java81 SimpleDateFormat dateFormat = new SimpleDateFormat(PHOTO_DATE_FORMAT, Locale.US); in generateTempPhotoFileName() local
82 return "ContactPhoto-" + dateFormat.format(date) + ".jpg"; in generateTempPhotoFileName()
87 SimpleDateFormat dateFormat = new SimpleDateFormat(PHOTO_DATE_FORMAT, Locale.US); in generateTempCroppedPhotoFileName() local
88 return "ContactPhoto-" + dateFormat.format(date) + "-cropped.jpg"; in generateTempCroppedPhotoFileName()
/packages/apps/Camera2/src/com/android/camera/
DPanoUtil.java25 SimpleDateFormat dateFormat = new SimpleDateFormat(format); in createName() local
26 return dateFormat.format(date); in createName()
DVideoModule.java320 SimpleDateFormat dateFormat = new SimpleDateFormat( in createName() local
323 return dateFormat.format(date); in createName()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoUtil.java25 SimpleDateFormat dateFormat = new SimpleDateFormat(format); in createName() local
26 return dateFormat.format(date); in createName()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/ime/
DWatchdog.java58 SimpleDateFormat dateFormat = new SimpleDateFormat("[yyyy-MM-dd hh:mm:ss]"); in logEvent() local
60 mEvents.add(0, dateFormat.format(date) + " " + s); in logEvent()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.kt333 val dateFormat: CharSequence = getDateFormat(context) in <lambda>() constant
334 rv.setCharSequence(R.id.date, "setFormat12Hour", dateFormat) in <lambda>()
335 rv.setCharSequence(R.id.date, "setFormat24Hour", dateFormat) in <lambda>()
415 val dateFormat: CharSequence = getDateFormat(context) in <lambda>() constant
417 date.setFormat12Hour(dateFormat) in <lambda>()
418 date.setFormat24Hour(dateFormat) in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DShareVCardActivity.java88 final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.US); in getLocalFile() local
89 final String currentDateString = dateFormat.format(new Date()).toString(); in getLocalFile()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v33/
DPermissionDecisionStorageImpl.kt58 private val dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.US) constant
123 val date = dateFormat.format(Date(decision.eventTime)) in serialize()
162 dateFormat.parse(decisionDate)?.time in readPermissionDecision()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/encryptionkey/
DEncryptionKeyFetcher.java340 SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT, Locale.US); in constructHttpDate() local
341 dateFormat.setLenient(false); in constructHttpDate()
342 dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); in constructHttpDate()
343 return dateFormat.format(new Date(lastFetchTime)); in constructHttpDate()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DWatchdog.java60 SimpleDateFormat dateFormat = new SimpleDateFormat("[yyyy-MM-dd hh:mm:ss]"); in logEvent() local
62 mEvents.addFirst(dateFormat.format(date) + " " + s); in logEvent()
/packages/apps/TV/tests/common/src/com/android/tv/testing/utils/
DUtils.java102 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd", Locale.getDefault()); in getSeed() local
103 String today = dateFormat.format(new Date()); in getSeed()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DDatePickerDialog.java158 final DateFormat dateFormat = in updateTitle() local
160 setTitle(dateFormat.format(calendar.getTime())); in updateTitle()
/packages/apps/Messaging/src/com/android/messaging/util/
DFileUtil.java43 final SimpleDateFormat dateFormat = new SimpleDateFormat(fileNameFormat); in getNewFile() local
44 final String numberedFileNameFormat = dateFormat.format(date) + "_%02d" + "." + extension; in getNewFile()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java176 DateFormat dateFormat = new SimpleDateFormat("_hhmmss"); in generateFileInfo() local
177 String currentTime = dateFormat.format(Calendar.getInstance().getTime()); in generateFileInfo()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/topics/
DTopicsEpochComputationPrecomputedClassifier.java262 SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd hh:mm:ss.SSS"); in getTimestampFromLog() local
263 Date parsedDate = dateFormat.parse(words[0] + " " + words[1]); in getTimestampFromLog()
DTopicsEpochComputationOnDeviceClassifier.java258 SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd hh:mm:ss.SSS"); in getTimestampFromLog() local
259 Date parsedDate = dateFormat.parse(words[0] + " " + words[1]); in getTimestampFromLog()
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementApiTest.java516 SimpleDateFormat dateFormat = new SimpleDateFormat( in getDateTimeAfter() local
518 dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); in getDateTimeAfter()
519 return dateFormat.format(Date.from(fixedClock.instant().plusSeconds(seconds))); in getDateTimeAfter()
/packages/apps/DeskClock/src/com/android/deskclock/
DClockFragment.kt467 dateFormat: String?, in bind()
473 Utils.updateDate(dateFormat, dateFormatForAccessibility, itemView) in bind()
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java433 SimpleDateFormat dateFormat = new SimpleDateFormat(); in onDetailsClicked()
434 value = dateFormat.format(date); in onDetailsClicked()
/packages/apps/LegacyCamera/src/com/android/camera/
DVideoCamera.java346 SimpleDateFormat dateFormat = new SimpleDateFormat( in createName() local
349 return dateFormat.format(date); in createName()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1613 @Nullable String date, SimpleDateFormat dateFormat) throws ParseException { in parseDateWithFormat() argument
1614 final long value = dateFormat.parse(date).getTime(); in parseDateWithFormat()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java6379 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.US); in queryLocal() local
6380 String currentDateString = dateFormat.format(new Date()).toString(); in queryLocal()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dhttpclient-4.5.12.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/apache/ org/ ...