/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterInputTest.kt | 176 val downTime = SystemClock.uptimeMillis() in testSingleDeviceTouchEventsWithoutA11yFeatures() 180 sendTouchEvent(ACTION_MOVE, downTime, SystemClock.uptimeMillis()) in testSingleDeviceTouchEventsWithoutA11yFeatures() 183 sendTouchEvent(ACTION_UP, downTime, SystemClock.uptimeMillis()) in testSingleDeviceTouchEventsWithoutA11yFeatures() 197 val downTime = SystemClock.uptimeMillis() in testSingleDeviceTouchEventsWithAllA11yFeatures() 203 sendTouchEvent(ACTION_MOVE, downTime, SystemClock.uptimeMillis()) in testSingleDeviceTouchEventsWithAllA11yFeatures() 207 sendTouchEvent(ACTION_UP, downTime, SystemClock.uptimeMillis()) in testSingleDeviceTouchEventsWithAllA11yFeatures() 221 val downTime = SystemClock.uptimeMillis() in testTouchDownCancelDownWithAllA11yFeatures() 227 sendTouchEvent(ACTION_CANCEL, downTime, SystemClock.uptimeMillis()) in testTouchDownCancelDownWithAllA11yFeatures() 231 val newDownTime = SystemClock.uptimeMillis() in testTouchDownCancelDownWithAllA11yFeatures() 247 val downTime = SystemClock.uptimeMillis() in testStylusDownCancelDownWithAllA11yFeatures() [all …]
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | SystemConfigFileCommitEventLoggerTest.java | 43 var startTime = SystemClock.uptimeMillis(); in testSimple() 46 var endTime = SystemClock.uptimeMillis(); in testSimple() 54 var startTime = SystemClock.uptimeMillis(); in testMultipleWrong() 57 var endTime1 = SystemClock.uptimeMillis(); in testMultipleWrong() 61 var endTime2 = SystemClock.uptimeMillis(); in testMultipleWrong() 72 var startTime = SystemClock.uptimeMillis(); in testMultipleRight() 75 var endTime1 = SystemClock.uptimeMillis(); in testMultipleRight() 80 var endTime2 = SystemClock.uptimeMillis(); in testMultipleRight()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | Handler_Delegate.java | 38 /*package*/ static boolean sendMessageAtTime(Handler handler, Message msg, long uptimeMillis) { in sendMessageAtTime() argument 42 callback.sendMessageAtTime(handler, msg, uptimeMillis); in sendMessageAtTime() 51 .add(handler, uptimeMillis, msg.callback); in sendMessageAtTime() 93 long uptimeMillis = SystemClock_Delegate.uptimeMillis(); in executeCallbacks() local 95 while ((r = queue.extractFirst(uptimeMillis)) != null) { in executeCallbacks() 102 void sendMessageAtTime(Handler handler, Message msg, long uptimeMillis); in sendMessageAtTime() argument
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 100 mLastConnectivityChangeTime = SystemClock.uptimeMillis(); in onReceive() 158 long startTime = SystemClock.uptimeMillis(); in waitForNetworkState() 165 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState() 177 long startTime = SystemClock.uptimeMillis(); in waitForWifiState() 184 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState() 196 long startTime = SystemClock.uptimeMillis(); in waitForWifiApState() 203 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState() 221 long startTime = SystemClock.uptimeMillis(); in waitForTetherStateChange() 224 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange() 266 pm.goToSleep(SystemClock.uptimeMillis()); in turnScreenOff() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | MockExecutorHandlerTest.kt | 38 assertEquals(10000, clock.uptimeMillis()) in testNoDelay() 44 assertEquals(10000, clock.uptimeMillis()) in testNoDelay() 48 assertEquals(10000, clock.uptimeMillis()) in testNoDelay() 54 assertEquals(10000, clock.uptimeMillis()) in testNoDelay() 59 assertEquals(10000, clock.uptimeMillis()) in testNoDelay() 69 assertEquals(10000, clock.uptimeMillis()) in testNoDelay() 74 assertEquals(10000, clock.uptimeMillis()) in testNoDelay() 91 assertEquals(10000, clock.uptimeMillis()) in testDelayed() 124 assertEquals(10000, clock.uptimeMillis()) in testAtTime() 171 assertEquals(10000, clock.uptimeMillis()) in testRemoveCallback_postAtTime() [all …]
|
D | FakeExecutorTest.java | 56 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 62 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 66 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 72 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 77 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 87 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 92 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 110 assertEquals(10000, clock.uptimeMillis()); in testDelayed() 144 assertEquals(10000, clock.uptimeMillis()); in testAtTime() 178 assertEquals(10000, clock.uptimeMillis()); in testDelayed_AdvanceAndRun() [all …]
|
/frameworks/base/services/core/java/com/android/server/cpu/ |
D | CpuMonitorService.java | 242 long uptimeMillis = SystemClock.uptimeMillis(); in monitorCpuStats() local 266 mCpusetInfosByCpuset.valueAt(j).appendCpuInfo(uptimeMillis, cpuInfo); in monitorCpuStats() 274 cpusetInfo.populateLatestCpuAvailabilityInfo(uptimeMillis, in monitorCpuStats() 287 uptimeMillis + mCurrentMonitoringIntervalMillis); in monitorCpuStats() 531 public void appendCpuInfo(long uptimeMillis, CpuInfoReader.CpuInfo cpuInfo) { in appendCpuInfo() argument 535 Snapshot currentSnapshot = mSnapshotsByUptime.get(uptimeMillis); in appendCpuInfo() 537 currentSnapshot = new Snapshot(uptimeMillis); in appendCpuInfo() 538 mSnapshotsByUptime.append(uptimeMillis, currentSnapshot); in appendCpuInfo() 540 && (uptimeMillis - mSnapshotsByUptime.valueAt(0).uptimeMillis) in appendCpuInfo() 561 if (latestSnapshot.uptimeMillis != currentUptimeMillis) { in populateLatestCpuAvailabilityInfo() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | HandlerMessageQueue.java | 45 public void add(@NotNull Handler h, long uptimeMillis, @NotNull Runnable r) { in add() argument 52 if (runnables.get(idx).first <= uptimeMillis) { in add() 58 runnables.add(idx, Pair.create(uptimeMillis, r)); in add() 73 public Runnable extractFirst(long uptimeMillis) { in extractFirst() argument 79 if (currentUptime <= uptimeMillis) { in extractFirst()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
D | FakeExecutor.java | 59 if (!mQueuedRunnables.isEmpty() && mQueuedRunnables.peek().mWhen <= mClock.uptimeMillis()) { in runNextReady() 102 long startTime = mClock.uptimeMillis(); in advanceClockToNext() 126 long startTime = mClock.uptimeMillis(); in advanceClockToLast() 149 return executeAtTime(r, mClock.uptimeMillis() + unit.toMillis(delay)); in executeDelayed() 154 long uptimeMillis = unit.toMillis(uptime); in executeAtTime() local 156 QueuedRunnable container = new QueuedRunnable(r, uptimeMillis); in executeAtTime()
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestHandler.java | 49 private static final LongSupplier DEFAULT_CLOCK = SystemClock::uptimeMillis; 74 public boolean sendMessageAtTime(Message msg, long uptimeMillis) { in sendMessageAtTime() argument 82 uptimeMillis = uptimeMillis - SystemClock.uptimeMillis() + mClock.getAsLong(); in sendMessageAtTime() 87 && mMessages.add(new MsgInfo(Message.obtain(msg), uptimeMillis, mMessageCount)); in sendMessageAtTime()
|
/frameworks/base/core/java/android/os/ |
D | Handler.java | 457 public final boolean postAtTime(@NonNull Runnable r, long uptimeMillis) { in postAtTime() argument 458 return sendMessageAtTime(getPostMessage(r), uptimeMillis); in postAtTime() 484 @NonNull Runnable r, @Nullable Object token, long uptimeMillis) { in postAtTime() argument 485 return sendMessageAtTime(getPostMessage(r, token), uptimeMillis); in postAtTime() 684 public final boolean sendEmptyMessageAtTime(int what, long uptimeMillis) { in sendEmptyMessageAtTime() argument 687 return sendMessageAtTime(msg, uptimeMillis); in sendEmptyMessageAtTime() 706 return sendMessageAtTime(msg, SystemClock.uptimeMillis() + delayMillis); in sendMessageDelayed() 728 public boolean sendMessageAtTime(@NonNull Message msg, long uptimeMillis) { in sendMessageAtTime() argument 736 return enqueueMessage(queue, msg, uptimeMillis); in sendMessageAtTime() 780 long uptimeMillis) { in enqueueMessage() argument [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 276 long downTime = SystemClock.uptimeMillis(); in tapView() 277 long eventTime = SystemClock.uptimeMillis(); in tapView() 284 eventTime = SystemClock.uptimeMillis(); in tapView() 291 eventTime = SystemClock.uptimeMillis(); in tapView() 316 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() 317 long eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() 324 eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() 351 long downTime = SystemClock.uptimeMillis(); in clickView() 352 long eventTime = SystemClock.uptimeMillis(); in clickView() 360 eventTime = SystemClock.uptimeMillis(); in clickView() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | Clock.java | 32 public long uptimeMillis() { in uptimeMillis() method in Clock 49 public long uptimeMillis() { 50 return SystemClock.uptimeMillis();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | HistoryTracker.java | 87 long nowMs = mSystemClock.uptimeMillis(); in falseBelief() 134 void addResults(Collection<FalsingClassifier.Result> results, long uptimeMillis) { in addResults() argument 158 mResults.add(new CombinedResult(uptimeMillis, finalScore)); in addResults() 182 CombinedResult(long uptimeMillis, double score) { in CombinedResult() argument 183 mExpiryMs = uptimeMillis + HISTORY_MAX_AGE_MS; in CombinedResult() 202 return unit.convert(mExpiryMs - mSystemClock.uptimeMillis(), TimeUnit.MILLISECONDS); in getDelay()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | KeyCombinationManagerTests.java | 162 final long eventTime = SystemClock.uptimeMillis(); in testTriggerRule() 178 final long eventTime = SystemClock.uptimeMillis(); in testNotTrigger_NoRule() 190 final long eventTime = SystemClock.uptimeMillis(); in testNotTrigger_Interval() 201 final long eventTime = SystemClock.uptimeMillis(); in testNotTrigger_Condition() 213 final long eventTime = SystemClock.uptimeMillis(); in testNotTrigger_EarlyRelease() 223 final long eventTime = SystemClock.uptimeMillis(); in testKeyInterceptTimeout() 247 long eventTime = SystemClock.uptimeMillis(); in testAddRemove() 253 eventTime = SystemClock.uptimeMillis(); in testAddRemove()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 746 SystemClock.elapsedRealtime(), SystemClock.uptimeMillis())); in noteBinderCallStats() 835 SystemClock.elapsedRealtime(), SystemClock.uptimeMillis()); in initPowerManagement() 877 final long uptime = SystemClock.uptimeMillis(); in onLowPowerModeChanged() 962 final long uptime = SystemClock.uptimeMillis(); in noteProcessStart() 976 final long uptime = SystemClock.uptimeMillis(); in noteProcessCrash() 990 final long uptime = SystemClock.uptimeMillis(); in noteProcessAnr() 1002 final long uptime = SystemClock.uptimeMillis(); in noteProcessFinish() 1017 final long uptime = SystemClock.uptimeMillis(); in noteUidProcessState() 1194 final long uptime = SystemClock.uptimeMillis(); in noteEvent() 1210 final long uptime = SystemClock.uptimeMillis(); in noteSyncStart() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | AttentionDetectorTest.java | 88 mNextDimming = SystemClock.uptimeMillis() + 3000L; in setUp() 163 int result = mAttentionDetector.onUserActivity(SystemClock.uptimeMillis(), i); in onUserActivity_ignoresWhiteListedActivityTypes() 174 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_ignoresWhenItsNotTimeYet() 183 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_schedulesTheNextCheck() 193 long now = SystemClock.uptimeMillis(); in testOnUserActivity_ignoresAfterMaximumExtension() 237 SystemClock.uptimeMillis()); in testCallbackOnSuccess_ignoresIfNoAttention() 245 SystemClock.uptimeMillis()); in testCallbackOnSuccess_callsCallback() 256 SystemClock.uptimeMillis()); in testCallbackOnSuccess_doesNotCallNonCurrentCallback() 267 SystemClock.uptimeMillis()); // old callback came in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() 270 SystemClock.uptimeMillis()); in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | PersisterQueueTests.java | 93 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessOneItem() 98 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessOneItem() 116 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessOneItem_Flush() 121 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessOneItem_Flush() 140 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems() 147 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems() 167 long dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems_OneAfterAnother() 171 long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems_OneAfterAnother() 183 dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems_OneAfterAnother() 192 processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems_OneAfterAnother() [all …]
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | AbstractVibratorStep.java | 78 boolean shouldAcceptCallback = mPendingVibratorOffDeadline > SystemClock.uptimeMillis(); in acceptVibratorCompleteCallback() 93 return Arrays.asList(new CompleteEffectVibratorStep(conductor, SystemClock.uptimeMillis(), in cancel() 99 if (mPendingVibratorOffDeadline > SystemClock.uptimeMillis()) { in cancelImmediately() 114 mPendingVibratorOffDeadline = SystemClock.uptimeMillis() + mVibratorOnResult in handleVibratorOnResult() 149 long nextStartTime = SystemClock.uptimeMillis(); in nextSteps()
|
/frameworks/base/cmds/incidentd/src/ |
D | FdBuffer.cpp | 57 mStartTime = uptimeMillis(); in read() 72 int64_t remainingTime = (mStartTime + timeout) - uptimeMillis(); in read() 109 mFinishTime = uptimeMillis(); in read() 114 mStartTime = uptimeMillis(); in readFully() 141 mFinishTime = uptimeMillis(); in readFully() 153 mStartTime = uptimeMillis(); in readProcessedDataInStream() 177 int64_t remainingTime = (mStartTime + timeoutMs) - uptimeMillis(); in readProcessedDataInStream() 279 mFinishTime = uptimeMillis(); in readProcessedDataInStream()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | TrackedCollections.java | 51 collectionState.startUptime = SystemClock.uptimeMillis(); in track() 55 && SystemClock.uptimeMillis() - collectionState.startUptime > HALFWAY_DELAY) { in track() 59 collectionState.lastUptime = SystemClock.uptimeMillis(); in track() 81 long now = SystemClock.uptimeMillis(); in dump()
|
/frameworks/native/libs/debugstore/rust/src/ |
D | core.rs | 19 use crate::cxxffi::uptimeMillis; 74 uptimeMillis(), in begin() 90 uptimeMillis(), in record() 106 uptimeMillis(), in end() 124 let uptime_now = uptimeMillis(); in fmt()
|
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | GestureHelper.java | 79 if (!primaryPointerDown(ptrProp, ptrCoord, SystemClock.uptimeMillis())) { in tap() 84 if (!primaryPointerUp(ptrProp, ptrCoord, SystemClock.uptimeMillis())) { in tap() 110 long downTime = SystemClock.uptimeMillis(); in dragWithoutRelease() 163 long downTime = SystemClock.uptimeMillis(); in pinch() 200 long eventTime = SystemClock.uptimeMillis(); in nonPrimaryPointerDown() 240 eventTime = SystemClock.uptimeMillis(); in movePointers() 257 long eventTime = SystemClock.uptimeMillis(); in primaryPointerUp() 272 long eventTime = SystemClock.uptimeMillis(); in nonPrimaryPointerUp()
|
/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
D | PipTouchStateTest.java | 67 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 79 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapTimeout_timeoutCallbackCalled() 96 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapDrag_doubleTapCanceled() 109 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTap_doubleTapRegistered() 138 mTouchState.onTouchEvent(createMotionEvent(ACTION_BUTTON_PRESS, SystemClock.uptimeMillis(), in testHoverExitTimeout_timeoutCallbackNotCalled_ifButtonPress()
|