Home
last modified time | relevance | path

Searched refs:currentTimestamp (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothPacketDecoder.java93 int currentTimestamp = highTimestamp | mLowTimestamp; in decodePacket() local
114 if (newTimestamp != currentTimestamp) { in decodePacket()
117 currentTimestamp = newTimestamp; in decodePacket()
122 mNanoTimestamp = mTimeTracker.convertTimestampToNanotime(currentTimestamp, now); in decodePacket()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DPackageDataTest.java74 long currentTimestamp = System.currentTimeMillis(); in setUp() local
75 mE1 = new Event(currentTimestamp - 800L, Event.TYPE_SHORTCUT_INVOCATION); in setUp()
76 mE2 = new Event(currentTimestamp - 700L, Event.TYPE_NOTIFICATION_OPENED); in setUp()
77 mE3 = new Event(currentTimestamp - 600L, Event.TYPE_CALL_INCOMING); in setUp()
78 mE4 = new Event(currentTimestamp - 500L, Event.TYPE_SMS_OUTGOING); in setUp()
DDataManagerTest.java1000 long currentTimestamp = System.currentTimeMillis(); in testCallLogContentObserver() local
1002 new Event(currentTimestamp - MILLIS_PER_MINUTE * 15L, Event.TYPE_CALL_OUTGOING)); in testCallLogContentObserver()
1004 new Event(currentTimestamp - MILLIS_PER_MINUTE * 10L, Event.TYPE_CALL_INCOMING)); in testCallLogContentObserver()
1006 new Event(currentTimestamp - MILLIS_PER_MINUTE * 5L, Event.TYPE_CALL_MISSED)); in testCallLogContentObserver()
1024 long currentTimestamp = System.currentTimeMillis(); in testMmsSmsContentObserver() local
1026 new Event(currentTimestamp - MILLIS_PER_MINUTE * 10L, Event.TYPE_SMS_OUTGOING); in testMmsSmsContentObserver()
1028 new Event(currentTimestamp - MILLIS_PER_MINUTE * 5L, Event.TYPE_SMS_INCOMING); in testMmsSmsContentObserver()
1096 long currentTimestamp = System.currentTimeMillis(); in testPruneCallEventsFromNonDialer() local
1098 new Event(currentTimestamp - MILLIS_PER_MINUTE, Event.TYPE_CALL_OUTGOING)); in testPruneCallEventsFromNonDialer()
1118 long currentTimestamp = System.currentTimeMillis(); in testPruneSmsEventsFromNonDefaultSmsApp() local
[all …]
/frameworks/base/packages/SystemUI/compose/scene/tests/utils/src/com/android/compose/animation/scene/
DTestTransition.kt251 private var currentTimestamp = 0L in transitionTest() variable
263 check(timestamp >= currentTimestamp) { in transitionTest()
270 val delta = timestamp - currentTimestamp in transitionTest()
271 currentTimestamp = timestamp in transitionTest()
/frameworks/base/core/java/com/android/internal/os/
DZygoteServer.java285 final long currentTimestamp = SystemClock.elapsedRealtime(); in fetchUsapPoolPolicyPropsWithMinInterval() local
288 || (currentTimestamp - mLastPropCheckTimestamp >= Zygote.PROPERTY_CHECK_INTERVAL)) { in fetchUsapPoolPolicyPropsWithMinInterval()
290 mLastPropCheckTimestamp = currentTimestamp; in fetchUsapPoolPolicyPropsWithMinInterval()
/frameworks/base/services/core/java/com/android/server/recoverysystem/
DRecoverySystemService.java677 long currentTimestamp = mInjector.getCurrentTimeMillis(); in reportMetricsOnPreparedForReboot() local
686 prefs.putLong(LSKF_CAPTURED_TIMESTAMP_PREF, currentTimestamp); in reportMetricsOnPreparedForReboot()
695 if (requestLskfTimestamp != -1 && currentTimestamp > requestLskfTimestamp) { in reportMetricsOnPreparedForReboot()
696 durationSeconds = (int) (currentTimestamp - requestLskfTimestamp) / 1000; in reportMetricsOnPreparedForReboot()
904 long currentTimestamp = mInjector.getCurrentTimeMillis(); in reportMetricsOnRebootWithLskf() local
908 if (lskfCapturedTimestamp != -1 && currentTimestamp > lskfCapturedTimestamp) { in reportMetricsOnRebootWithLskf()
909 durationSeconds = (int) (currentTimestamp - lskfCapturedTimestamp) / 1000; in reportMetricsOnRebootWithLskf()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupManagerMonitorDumpsysUtils.java468 long currentTimestamp = System.currentTimeMillis(); in isAfterRetentionPeriod() local
469 mIsAfterRetentionPeriod = isDateAfterNMillisec(setupTimestamp, currentTimestamp, in isAfterRetentionPeriod()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamBase.cpp448 auto currentTimestamp = AudioClock::getNanoseconds(); in run() local
449 if (currentTimestamp >= nextDataReportTime) { in run()
453 if (currentTimestamp >= nextTimestampReportTime) { in run()
/frameworks/base/tools/codegen/src/com/android/codegen/
DUtils.kt80 fun currentTimestamp() = DateTimeFormatter in singleArgAs() method
/frameworks/base/core/java/android/os/
DZygoteProcess.java817 final long currentTimestamp = SystemClock.elapsedRealtime(); in fetchUsapPoolEnabledPropWithMinInterval() local
820 || (currentTimestamp - mLastPropCheckTimestamp >= Zygote.PROPERTY_CHECK_INTERVAL)) { in fetchUsapPoolEnabledPropWithMinInterval()
822 mLastPropCheckTimestamp = currentTimestamp; in fetchUsapPoolEnabledPropWithMinInterval()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAbstractAccessibilityServiceConnection.java1405 final long currentTimestamp = SystemClock.uptimeMillis(); in takeScreenshotOfWindow() local
1406 if ((currentTimestamp in takeScreenshotOfWindow()
1413 mRequestTakeScreenshotOfWindowTimestampMs.put(accessibilityWindowId, currentTimestamp); in takeScreenshotOfWindow()
1457 final long currentTimestamp = SystemClock.uptimeMillis(); in takeScreenshot() local
1459 && (currentTimestamp - mRequestTakeScreenshotTimestampMs) in takeScreenshot()
1465 mRequestTakeScreenshotTimestampMs = currentTimestamp; in takeScreenshot()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java922 static int toPrivacyFuzzedTimeInterval(long previousTimestamp, long currentTimestamp) { in toPrivacyFuzzedTimeInterval() argument
923 long diff = currentTimestamp - previousTimestamp; in toPrivacyFuzzedTimeInterval()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java3265 final long currentTimestamp = System.currentTimeMillis();
3276 currentTimestamp - createdMillis,