Home
last modified time | relevance | path

Searched refs:sdf (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DSimpleDateFormatPerfTest.java46 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_createFormatWithTimeZone() local
52 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_parseWithTimeZoneShort() local
55 sdf.parse("2000.01.01 PST"); in time_parseWithTimeZoneShort()
61 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); in time_parseWithTimeZoneLong() local
64 sdf.parse("2000.01.01 Pacific Standard Time"); in time_parseWithTimeZoneLong()
70 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd"); in time_parseWithoutTimeZone() local
73 sdf.parse("2000.01.01"); in time_parseWithoutTimeZone()
81 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_createAndParseWithTimeZoneShort() local
82 sdf.parse("2000.01.01 PST"); in time_createAndParseWithTimeZoneShort()
90 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); in time_createAndParseWithTimeZoneLong() local
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastHistory.java166 @NonNull String queueName, @NonNull SimpleDateFormat sdf, in dumpLocked() argument
168 dumpBroadcastList(pw, sdf, mFrozenBroadcasts, "Frozen"); in dumpLocked()
169 dumpBroadcastList(pw, sdf, mPendingBroadcasts, "Pending"); in dumpLocked()
201 r.dump(pw, " ", sdf); in dumpLocked()
264 pw.print(sdf.format(new Date(mSummaryHistoryEnqueueTime[ringIndex]))); in dumpLocked()
266 pw.print(sdf.format(new Date(mSummaryHistoryDispatchTime[ringIndex]))); in dumpLocked()
268 pw.println(sdf.format(new Date(mSummaryHistoryFinishTime[ringIndex]))); in dumpLocked()
278 private void dumpBroadcastList(@NonNull PrintWriter pw, @NonNull SimpleDateFormat sdf, in dumpBroadcastList() argument
287 r.dump(pw, " ", sdf); in dumpBroadcastList()
DAppStartInfoTracker.java1072 SimpleDateFormat sdf = new SimpleDateFormat(); in dumpHistoryProcessStartInfo() local
1075 + sdf.format(new Date(mLastAppStartInfoPersistTimestamp))); in dumpHistoryProcessStartInfo()
1078 dumpHistoryProcessStartInfoLocked(pw, " ", name, records, sdf); in dumpHistoryProcessStartInfo()
1084 dumpHistoryProcessStartInfoLocked(pw, " ", packageName, array, sdf); in dumpHistoryProcessStartInfo()
1093 SimpleDateFormat sdf) { in dumpHistoryProcessStartInfoLocked() argument
1098 array.valueAt(i).dumpLocked(pw, prefix + " ", sdf); in dumpHistoryProcessStartInfoLocked()
1262 void dumpLocked(PrintWriter pw, String prefix, SimpleDateFormat sdf) { in dumpLocked() argument
1308 mInfos.get(i).dump(pw, prefix + " ", "#" + i, sdf); in dumpLocked()
DAppExitInfoTracker.java850 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); in dumpHistoryProcessExitInfo() local
853 + sdf.format(new Date(mLastAppExitInfoPersistTimestamp))); in dumpHistoryProcessExitInfo()
856 dumpHistoryProcessExitInfoLocked(pw, " ", name, records, sdf); in dumpHistoryProcessExitInfo()
862 dumpHistoryProcessExitInfoLocked(pw, " ", packageName, array, sdf); in dumpHistoryProcessExitInfo()
871 SimpleDateFormat sdf) { in dumpHistoryProcessExitInfoLocked() argument
876 array.valueAt(i).dumpLocked(pw, prefix + " ", sdf); in dumpHistoryProcessExitInfoLocked()
1499 void dumpLocked(PrintWriter pw, String prefix, SimpleDateFormat sdf) { in dumpLocked() argument
1510 list.get(i).dump(pw, prefix + " ", "#" + i, sdf); in dumpLocked()
DBroadcastRecord.java265 void dump(PrintWriter pw, String prefix, SimpleDateFormat sdf) { in dump() argument
299 pw.print(sdf.format(new Date(enqueueClockTime))); in dump()
301 pw.print(sdf.format(new Date(dispatchClockTime))); in dump()
304 pw.print(sdf.format(new Date(originalEnqueueClockTime))); in dump()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java401 final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
419 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverEnabledTime)));
427 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverDisabledTime)));
438 pw.print(sdf.format(
446 pw.print(sdf.format(
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DTime.java257 final SimpleDateFormat sdf = new SimpleDateFormat( in format2445() local
261 sdf.setTimeZone(getTimeZone()); in format2445()
262 return sdf.format(mCalendar.getTime()); in format2445()
477 final SimpleDateFormat sdf = in format() local
479 return sdf.format(mCalendar.getTime()); in format()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmStore.java129 void dump(IndentingPrintWriter ipw, long nowElapsed, SimpleDateFormat sdf); in dump() argument
DAlarm.java316 public void dump(IndentingPrintWriter ipw, long nowELAPSED, SimpleDateFormat sdf) { in dump() argument
325 ipw.print(sdf.format(new Date(origWhen))); in dump()
362 ipw.println(sdf.format(new Date(alarmClock.getTriggerTime()))); in dump()
DLazyAlarmStore.java230 public void dump(IndentingPrintWriter ipw, long nowElapsed, SimpleDateFormat sdf) { in dump() argument
233 dumpAlarmList(ipw, mAlarms, nowElapsed, sdf); in dump()
DAlarmManagerService.java647 void dump(IndentingPrintWriter pw, long nowElapsed, SimpleDateFormat sdf) { in dump() argument
654 pw.print(sdf.format(new Date(mWhenRemovedRtc))); in dump()
3034 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); in dumpImpl() local
3039 pw.print(sdf.format(new Date(nowRTC))); in dumpImpl()
3047 pw.println(sdf.format(new Date(mLastTimeChangeClockTime))); in dumpImpl()
3053 pw.println(sdf.format(new Date(mLastTickReceived))); in dumpImpl()
3056 pw.println(sdf.format(new Date(mLastTickSet))); in dumpImpl()
3068 ? sdf.format(new Date(nowRTC - (nowELAPSED - time))) in dumpImpl()
3078 pw.print(sdf.format( in dumpImpl()
3119 pw.println(sdf.format(new Date(nextNonWakeupRTC))); in dumpImpl()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DDiscreteRegistry.java445 @NonNull SimpleDateFormat sdf, @NonNull Date date, @NonNull String prefix, in dump() argument
456 discreteOps.dump(pw, sdf, date, prefix, nDiscreteOps); in dump()
718 private void dump(@NonNull PrintWriter pw, @NonNull SimpleDateFormat sdf, in dump() argument
726 mUids.valueAt(i).dump(pw, sdf, date, prefix + " ", nDiscreteOps); in dump()
926 private void dump(@NonNull PrintWriter pw, @NonNull SimpleDateFormat sdf, in dump() argument
934 mPackages.valueAt(i).dump(pw, sdf, date, prefix + " ", nDiscreteOps); in dump()
1035 private void dump(@NonNull PrintWriter pw, @NonNull SimpleDateFormat sdf, in dump() argument
1042 mPackageOps.valueAt(i).dump(pw, sdf, date, prefix + " ", nDiscreteOps); in dump()
1186 private void dump(@NonNull PrintWriter pw, @NonNull SimpleDateFormat sdf, in dump() argument
1198 ops.get(j).dump(pw, sdf, date, prefix + " "); in dump()
[all …]
DAppOpsService.java5777 @NonNull SimpleDateFormat sdf, @NonNull Date date, @NonNull String prefix) { in dumpStatesLocked() argument
5790 dumpStatesLocked(pw, nowElapsed, op, defaultDeviceAttributedOps.keyAt(i), now, sdf, in dumpStatesLocked()
5798 @Nullable String attributionTag, long now, @NonNull SimpleDateFormat sdf, in dumpStatesLocked() argument
5833 pw.print(sdf.format(date)); in dumpStatesLocked()
5859 pw.print(sdf.format(date)); in dumpStatesLocked()
6010 final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); in dump() local
6368 sdf, date, " "); in dump()
6405 dumpFilter, dumpOp, sdf, date, " ", nDiscreteOps); in dump()
DHistoricalRegistry.java350 @NonNull SimpleDateFormat sdf, @NonNull Date date, @NonNull String prefix, in dumpDiscreteData() argument
353 dumpOp, sdf, date, prefix, nDiscreteOps); in dumpDiscreteData()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DSmartCamera.java117 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"); in captureImages() local
132 sdf.format(cal.getTime()) + "_image" + i + ".jpg", "image " + i); in captureImages()
/frameworks/base/core/java/android/security/net/config/
DXmlConfigSource.java129 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); in parsePinSet() local
130 sdf.setLenient(false); in parsePinSet()
131 Date date = sdf.parse(expirationDate); in parsePinSet()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java906 final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); in dump() local
908 record.dump(pw, sdf); in dump()
1740 abstract void dump(IndentingPrintWriter pw, SimpleDateFormat sdf); in dump() argument
1756 void dump(final IndentingPrintWriter pw, SimpleDateFormat sdf) { in dump() argument
1759 pw.print(sdf.format(new Date(mTime))); in dump()
1785 void dump(final IndentingPrintWriter pw, SimpleDateFormat sdf) { in dump() argument
1788 pw.print(sdf.format(new Date(mTime))); in dump()
DHdmiCecNetwork.java1011 final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); in dump() local
1015 activeSourceEvent.dump(pw, sdf); in dump()
DHdmiCecLocalDevice.java1538 void dump(final IndentingPrintWriter pw, SimpleDateFormat sdf) { in dump() argument
1540 pw.print(sdf.format(new Date(mTime))); in dump()
/frameworks/base/core/java/android/text/format/
DDateFormat.java225 final SimpleDateFormat sdf = (SimpleDateFormat) natural; in is24HourLocale() local
226 final String pattern = sdf.toPattern(); in is24HourLocale()
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java855 final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
875 pw.print(sdf.format(new Date(mLastSampleWallTime)));
877 pw.print(sdf.format(new Date(mCurrentSampleWallTime)));
/frameworks/base/core/java/android/app/
DApplicationExitInfo.java1248 @NonNull SimpleDateFormat sdf) { in dump() argument
1254 .append(" timestamp=").append(sdf.format(new Date(mTimestamp))) in dump()
DApplicationStartInfo.java879 @NonNull SimpleDateFormat sdf) { in dump() argument
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowManager.java1085 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.US); in dump() local
1096 pw.println(" time=" + sdf.format(new Date(event.mWallTime)) in dump()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java4940 LegacyPermissionState permissionsState, SimpleDateFormat sdf, Date date,
5254 pw.println(sdf.format(date));
5257 pw.println(sdf.format(date));
5281 pw.print(prefix); pw.println(" loadingCompletedTime=" + sdf.format(date));
5397 pw.println(sdf.format(date));
5403 pw.println(sdf.format(date));
5529 final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
5563 sdf, date, users, packageName != null, dumpAllComponents);
5611 permissionsState, sdf, date, users, packageName != null, dumpAllComponents);

12