/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 98 mLastConnectivityChangeTime = SystemClock.uptimeMillis(); in onReceive() 154 long startTime = SystemClock.uptimeMillis(); in waitForNetworkState() 161 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState() 173 long startTime = SystemClock.uptimeMillis(); in waitForWifiState() 180 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState() 192 long startTime = SystemClock.uptimeMillis(); in waitForWifiApState() 199 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState() 217 long startTime = SystemClock.uptimeMillis(); in waitForTetherStateChange() 220 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange() 262 pm.goToSleep(SystemClock.uptimeMillis()); in turnScreenOff() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | AttentionDetectorTest.java | 82 mNextDimming = SystemClock.uptimeMillis() + 3000L; in setUp() 164 int result = mAttentionDetector.onUserActivity(SystemClock.uptimeMillis(), i); in onUserActivity_ignoresWhiteListedActivityTypes() 175 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_ignoresWhenItsNotTimeYet() 184 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_schedulesTheNextCheck() 193 long now = SystemClock.uptimeMillis(); in testOnUserActivity_ignoresAfterMaximumExtension() 235 SystemClock.uptimeMillis()); in testCallbackOnSuccess_ignoresIfNoAttention() 243 SystemClock.uptimeMillis()); in testCallbackOnSuccess_callsCallback() 254 SystemClock.uptimeMillis()); in testCallbackOnSuccess_doesNotCallNonCurrentCallback() 265 SystemClock.uptimeMillis()); // old callback came in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() 268 SystemClock.uptimeMillis()); in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Handler.java | 444 public final boolean postAtTime(@NonNull Runnable r, long uptimeMillis) { in postAtTime() argument 445 return sendMessageAtTime(getPostMessage(r), uptimeMillis); in postAtTime() 471 @NonNull Runnable r, @Nullable Object token, long uptimeMillis) { in postAtTime() argument 472 return sendMessageAtTime(getPostMessage(r, token), uptimeMillis); in postAtTime() 671 public final boolean sendEmptyMessageAtTime(int what, long uptimeMillis) { in sendEmptyMessageAtTime() argument 674 return sendMessageAtTime(msg, uptimeMillis); in sendEmptyMessageAtTime() 693 return sendMessageAtTime(msg, SystemClock.uptimeMillis() + delayMillis); in sendMessageDelayed() 715 public boolean sendMessageAtTime(@NonNull Message msg, long uptimeMillis) { in sendMessageAtTime() argument 723 return enqueueMessage(queue, msg, uptimeMillis); in sendMessageAtTime() 767 long uptimeMillis) { in enqueueMessage() argument [all …]
|
D | SystemClock.java | 126 long start = uptimeMillis(); in sleep() 136 duration = start + ms - uptimeMillis(); in sleep() 178 native public static long uptimeMillis(); in uptimeMillis() method in SystemClock 198 return SystemClock.uptimeMillis(); in uptimeClock()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 258 long downTime = SystemClock.uptimeMillis(); in tapView() 259 long eventTime = SystemClock.uptimeMillis(); in tapView() 266 eventTime = SystemClock.uptimeMillis(); in tapView() 273 eventTime = SystemClock.uptimeMillis(); in tapView() 298 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() 299 long eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() 306 eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() 333 long downTime = SystemClock.uptimeMillis(); in clickView() 334 long eventTime = SystemClock.uptimeMillis(); in clickView() 342 eventTime = SystemClock.uptimeMillis(); in clickView() [all …]
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestHandler.java | 49 private static final LongSupplier DEFAULT_CLOCK = SystemClock::uptimeMillis; 69 public boolean sendMessageAtTime(Message msg, long uptimeMillis) { in sendMessageAtTime() argument 76 uptimeMillis = uptimeMillis - SystemClock.uptimeMillis() + mClock.getAsLong(); in sendMessageAtTime() 81 && mMessages.add(new MsgInfo(Message.obtain(msg), uptimeMillis)); in sendMessageAtTime()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | PersisterQueueTests.java | 94 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessOneItem() 99 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessOneItem() 118 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessOneItem_Flush() 123 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessOneItem_Flush() 142 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems() 149 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems() 170 long dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems_OneAfterAnother() 174 long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems_OneAfterAnother() 186 dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems_OneAfterAnother() 195 processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems_OneAfterAnother() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | FdBuffer.cpp | 49 mStartTime = uptimeMillis(); in read() 64 int64_t remainingTime = (mStartTime + timeout) - uptimeMillis(); in read() 101 mFinishTime = uptimeMillis(); in read() 106 mStartTime = uptimeMillis(); in readFully() 133 mFinishTime = uptimeMillis(); in readFully() 145 mStartTime = uptimeMillis(); in readProcessedDataInStream() 169 int64_t remainingTime = (mStartTime + timeoutMs) - uptimeMillis(); in readProcessedDataInStream() 271 mFinishTime = uptimeMillis(); in readProcessedDataInStream()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | Handler_Delegate.java | 35 /*package*/ static boolean sendMessageAtTime(Handler handler, Message msg, long uptimeMillis) { in sendMessageAtTime() argument 39 callback.sendMessageAtTime(handler, msg, uptimeMillis); in sendMessageAtTime() 47 void sendMessageAtTime(Handler handler, Message msg, long uptimeMillis); in sendMessageAtTime() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | TrackedCollections.java | 45 collectionState.startUptime = SystemClock.uptimeMillis(); in track() 49 && SystemClock.uptimeMillis() - collectionState.startUptime > HALFWAY_DELAY) { in track() 53 collectionState.lastUptime = SystemClock.uptimeMillis(); in track() 75 long now = SystemClock.uptimeMillis(); in dump()
|
D | TrackedGarbage.java | 74 createdUptimeMillis = SystemClock.uptimeMillis(); in LeakReference() 87 long now = SystemClock.uptimeMillis(); in dump() 112 long now = SystemClock.uptimeMillis(); in countOldGarbage()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | PersistentConnectionTest.java | 50 public long uptimeMillis = 12345; field in PersistentConnectionTest.MyConnection 75 return uptimeMillis; in injectUptimeMillis() 79 void injectPostAtTime(Runnable r, long uptimeMillis) { in injectPostAtTime() argument 80 scheduledRunnables.add(Pair.create(r, uptimeMillis)); in injectPostAtTime() 93 uptimeMillis += milliSeconds; in elapse() 102 if (scheduledRunnables.get(i).second <= uptimeMillis) { in elapse() 228 conn.uptimeMillis + 5000)), in testAll() 267 conn.uptimeMillis + 7500)), in testAll() 295 conn.uptimeMillis + 11000)), in testAll() 405 conn.uptimeMillis + 5000)), in testResetBackoff() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 189 final long eventTime = SystemClock.uptimeMillis(); in sendKeyAndWaitForEvent() 306 mDownTime = SystemClock.uptimeMillis(); 317 final long eventTime = SystemClock.uptimeMillis(); 329 final long eventTime = SystemClock.uptimeMillis(); 531 SystemClock.uptimeMillis(), 0); 546 final long eventTime = SystemClock.uptimeMillis(); 709 long downTime = SystemClock.uptimeMillis(); 711 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 1, 716 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), 733 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ClientWakelockTracker.java | 40 long uptime = SystemClock.uptimeMillis(); in startTracking() 53 long uptime = SystemClock.uptimeMillis(); in stopTracking() 65 long uptime = SystemClock.uptimeMillis(); in stopTrackingAll() 76 long uptime = SystemClock.uptimeMillis(); in getClientRequestStats()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteInit.java | 212 long startTime = SystemClock.uptimeMillis(); in warmUpJcaProviders() 220 + (SystemClock.uptimeMillis() - startTime) + "ms."); in warmUpJcaProviders() 223 startTime = SystemClock.uptimeMillis(); in warmUpJcaProviders() 230 + (SystemClock.uptimeMillis() - startTime) + "ms."); in warmUpJcaProviders() 252 long startTime = SystemClock.uptimeMillis(); in preloadClasses() 313 + (SystemClock.uptimeMillis() - startTime) + "ms."); in preloadClasses() 399 long startTime = SystemClock.uptimeMillis(); in preloadResources() 405 + (SystemClock.uptimeMillis() - startTime) + "ms."); in preloadResources() 407 startTime = SystemClock.uptimeMillis(); in preloadResources() 413 + (SystemClock.uptimeMillis() - startTime) + "ms."); in preloadResources() [all …]
|
D | BatteryStatsHistory.java | 336 final long start = SystemClock.uptimeMillis(); in readFileToParcel() 340 + " duration ms:" + (SystemClock.uptimeMillis() - start)); in readFileToParcel() 374 final long start = SystemClock.uptimeMillis(); in writeToParcel() 387 Slog.d(TAG, "writeToParcel duration ms:" + (SystemClock.uptimeMillis() - start)); in writeToParcel() 398 final long start = SystemClock.uptimeMillis(); in readFromParcel() 412 Slog.d(TAG, "readFromParcel duration ms:" + (SystemClock.uptimeMillis() - start)); in readFromParcel()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ProviderAccessStats.java | 27 private final long mStartUptime = SystemClock.uptimeMillis(); 58 data.startUptimeMillis = SystemClock.uptimeMillis(); in incrementStats() 93 final long duration = Math.max(1, SystemClock.uptimeMillis() - data.startUptimeMillis); in finishOperation() 105 pw.print((SystemClock.uptimeMillis() - mStartUptime) / (60 * 1000)); in dump()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
D | WifiStressTest.java | 158 start = SystemClock.uptimeMillis(); in testWifiScanning() 165 scanTimeSum += SystemClock.uptimeMillis() - start; in testWifiScanning() 233 long start = SystemClock.uptimeMillis(); in testWifiReconnectionAfterSleep() 237 ((SystemClock.uptimeMillis() - start) < SCREEN_OFF_TIMER)) { in testWifiReconnectionAfterSleep() 273 long startTime = SystemClock.uptimeMillis(); in testWifiReconnectionAfterSleep() 279 long connectionTime = SystemClock.uptimeMillis() - startTime; in testWifiReconnectionAfterSleep()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/pip/phone/ |
D | PipTouchStateTest.java | 66 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 78 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapTimeout_timeoutCallbackCalled() 97 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapDrag_doubleTapCanceled() 110 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTap_doubleTapRegistered()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DisplayFoldDurationLogger.java | 64 mLastChanged = SystemClock.uptimeMillis(); in onFinishedWakingUp() 81 mLastChanged = SystemClock.uptimeMillis(); in setDeviceFolded() 111 .setLatency(SystemClock.uptimeMillis() - mLastChanged)); in log()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | DispatchThread.java | 76 long timeoutBound = SystemClock.uptimeMillis() + timeoutMs; in runJobSync() 80 if (SystemClock.uptimeMillis() > timeoutBound) { in runJobSync() 84 if (SystemClock.uptimeMillis() > timeoutBound) { in runJobSync()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | PinchZoomAction.java | 81 final long startTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 89 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 123 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 147 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() 163 eventTime = SystemClock.uptimeMillis(); in sendPinchZoomAction()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsDurationTimerTest.java | 39 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testStartStop() 111 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testReset() 147 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testResetAndDetach() 174 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testParceling() 182 timeBase.setRunning(true, clocks.uptimeMillis()*1000, clocks.elapsedRealtime()*1000); in testParceling()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PersisterQueue.java | 114 mNextWriteTime = SystemClock.uptimeMillis() + mPreTaskDelayMs; in addItem() 208 mNextWriteTime = SystemClock.uptimeMillis() + mInterWriteDelayMs; in processNextItem() 232 long now = SystemClock.uptimeMillis(); in processNextItem() 242 now = SystemClock.uptimeMillis(); in processNextItem()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogImplTest.java | 135 long uptimeMillis = SystemClock.uptimeMillis(); in testComputeTimeout_withHovering() local 136 MotionEvent event = MotionEvent.obtain(uptimeMillis, uptimeMillis, in testComputeTimeout_withHovering()
|