Home
last modified time | relevance | path

Searched refs:startMillis (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/cmds/statsd/tests/anomaly/
DAlarmTracker_test.cpp42 int64_t startMillis = 100000000 * MS_PER_SEC; in TEST() local
43 int64_t nextAlarmTime = startMillis / MS_PER_SEC + 15; in TEST()
44 AlarmTracker tracker(startMillis, startMillis, alarm, kConfigKey, subscriberAlarmMonitor); in TEST()
48 uint64_t currentTimeSec = startMillis / MS_PER_SEC + 10; in TEST()
56 currentTimeSec = startMillis / MS_PER_SEC + 7000; in TEST()
57 nextAlarmTime = startMillis / MS_PER_SEC + 15 + 2 * 60 * 60; in TEST()
66 currentTimeSec = startMillis / MS_PER_SEC + 15 + 2 * 60 * 60; in TEST()
67 nextAlarmTime = startMillis / MS_PER_SEC + 15 + 3 * 60 * 60; in TEST()
76 currentTimeSec = startMillis / MS_PER_SEC + 15 + 4 * 60 * 60; in TEST()
77 nextAlarmTime = startMillis / MS_PER_SEC + 15 + 5 * 60 * 60; in TEST()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java292 if (info.startMillis <= matchEndMillis && matchStartMillis <= info.endMillis) { in readMatching()
313 if (info.isActive() && info.startMillis < currentTimeMillis in getActiveName()
314 && info.startMillis < oldestActiveStart) { in getActiveName()
316 oldestActiveStart = info.startMillis; in getActiveName()
324 info.startMillis = currentTimeMillis; in getActiveName()
348 if (info.startMillis <= rotateBefore) { in maybeRotate()
405 public long startMillis; field in FileRotator.FileInfo
418 startMillis = endMillis = -1; in parse()
430 startMillis = Long.parseLong(name.substring(dotIndex + 1, dashIndex)); in parse()
449 name.append(prefix).append('.').append(startMillis).append('-'); in build()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DErrorCalculator.java70 private static long startMillis, middleMillis; field in ErrorCalculator
74 startMillis = System.currentTimeMillis(); in calcErrorRS()
108 Log.d(LOG_TAG, "rs: first part took " + (middleMillis - startMillis) + "ms"); in calcErrorRS()
134 startMillis = System.currentTimeMillis(); in calcError()
168 Log.d(LOG_TAG, "dvk: first part took " + (middleMillis - startMillis) + "ms"); in calcError()
/frameworks/base/core/java/android/util/
DTimedRemoteCaller.java138 final long startMillis = SystemClock.uptimeMillis(); in getResultTimed() local
145 final long elapsedMillis = SystemClock.uptimeMillis() - startMillis; in getResultTimed()
/frameworks/base/core/java/android/text/format/
DDateUtils.java551 public static String formatDateRange(Context context, long startMillis, in formatDateRange() argument
554 return formatDateRange(context, f, startMillis, endMillis, flags).toString(); in formatDateRange()
575 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange() argument
577 return formatDateRange(context, formatter, startMillis, endMillis, flags, null); in formatDateRange()
743 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange() argument
752 String range = DateIntervalFormat.formatDateRange(startMillis, endMillis, flags, timeZone); in formatDateRange()
/frameworks/base/cmds/statsd/src/anomaly/
DAlarmTracker.cpp33 AlarmTracker::AlarmTracker(const int64_t startMillis, in AlarmTracker() argument
41 mAlarmSec = (startMillis + mAlarmConfig.offset_millis()) / MS_PER_SEC; in AlarmTracker()
DAlarmTracker.h37 AlarmTracker(const int64_t startMillis,
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteIntArray.java122 final long startMillis = SystemClock.uptimeMillis(); in bindLocked() local
127 final long elapsedMillis = SystemClock.uptimeMillis() - startMillis; in bindLocked()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DSettingsInjector.java474 public long startMillis; field in SettingsInjector.Setting
513 startMillis = SystemClock.elapsedRealtime(); in startService()
515 startMillis = 0; in startService()
525 return end - startMillis; in getElapsedTime()
529 if (Log.isLoggable(TAG, Log.DEBUG) && startMillis != 0) { in maybeLogElapsedTime()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsRecorder.java428 final long startMillis = collection.getStartMillis(); in importLegacyNetworkLocked() local
434 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis); in importLegacyNetworkLocked()
448 final long startMillis = collection.getStartMillis(); in importLegacyUidLocked() local
454 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis); in importLegacyUidLocked()
DNetworkStatsCollection.java633 private void noteRecordedHistory(long startMillis, long endMillis, long totalBytes) { in noteRecordedHistory() argument
634 if (startMillis < mStartMillis) mStartMillis = startMillis; in noteRecordedHistory()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppResolverConnection.java153 final long startMillis = SystemClock.uptimeMillis(); in waitForBindLocked() local
158 final long elapsedMillis = SystemClock.uptimeMillis() - startMillis; in waitForBindLocked()
/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintSpooler.java626 final long startMillis = SystemClock.uptimeMillis(); in bindLocked() local
631 final long elapsedMillis = SystemClock.uptimeMillis() - startMillis; in bindLocked()
/frameworks/base/cmds/statsd/src/metrics/
Dmetrics_manager_util.cpp666 int64_t startMillis = timeBaseNs / 1000 / 1000; in initAlarms() local
680 new AlarmTracker(startMillis, currentTimeMillis, in initAlarms()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java2589 final long startMillis = 1_500_000_000_100L; in verifyConnectedModeRssiPolling() local
2600 when(mClock.getWallClockMillis()).thenReturn(startMillis + 0); in verifyConnectedModeRssiPolling()
2604 when(mClock.getWallClockMillis()).thenReturn(startMillis + 3333); in verifyConnectedModeRssiPolling()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java2772 final long startMillis = SystemClock.uptimeMillis(); in ensureWindowsAvailableTimed() local
2774 final long elapsedMillis = SystemClock.uptimeMillis() - startMillis; in ensureWindowsAvailableTimed()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java745 final long startMillis = SystemClock.elapsedRealtime(); in waitForLatch() local
757 if (timeoutMillis > 0 && SystemClock.elapsedRealtime() > startMillis + timeoutMillis) { in waitForLatch()