/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 200 final long endTime = System.currentTimeMillis(); in testOrderedActivityLaunchSequenceInEventLog() local 201 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testOrderedActivityLaunchSequenceInEventLog() 259 final long endTime = System.currentTimeMillis(); in testActivityOnButton() local 260 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testActivityOnButton() 280 long endTime = System.currentTimeMillis(); in testAppLaunchCount() local 281 long startTime = endTime - DateUtils.DAY_IN_MILLIS; in testAppLaunchCount() 283 startTime, endTime); in testAppLaunchCount() 288 endTime = System.currentTimeMillis(); in testAppLaunchCount() 290 startTime, endTime); in testAppLaunchCount() 297 endTime = System.currentTimeMillis(); in testAppLaunchCount() [all …]
|
/cts/tests/app/app/src/android/app/stubs/ |
D | MockService.java | 90 final long endTime = now + timeout; in waitForStart() local 92 while (!sStarted && now < endTime) { in waitForStart() 94 sBlocker.wait(endTime - now); in waitForStart() 112 final long endTime = now + timeout; in waitForDestroy() local 114 while (!sDestroyed && now < endTime) { in waitForDestroy() 116 sBlocker.wait(endTime - now); in waitForDestroy()
|
D | PendingIntentStubActivity.java | 52 final long endTime = now + timeout; in waitForCreate() local 54 while (!sCreated && now < endTime) { in waitForCreate() 56 sBlocker.wait(endTime - now); in waitForCreate()
|
D | MockReceiver.java | 59 final long endTime = now + timeout; in waitForReceive() local 61 while (!sReceived && now < endTime) { in waitForReceive() 63 sBlocker.wait(endTime - now); in waitForReceive()
|
D | ActivityTestsBase.java | 180 final long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult() local 185 final long delay = endTime - System.currentTimeMillis(); in waitForResult()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | HdmiCecClientWrapper.java | 216 long endTime = startTime; in checkConsoleOutput() local 218 while ((endTime - startTime <= timeoutMillis)) { in checkConsoleOutput() 226 endTime = System.currentTimeMillis(); in checkConsoleOutput() 237 long endTime = startTime; in getAllMessages() local 242 while ((endTime - startTime <= duration)) { in getAllMessages() 252 endTime = System.currentTimeMillis(); in getAllMessages() 296 long endTime = startTime; in checkExpectedOutput() local 302 while ((endTime - startTime <= timeoutMillis)) { in checkExpectedOutput() 310 endTime = System.currentTimeMillis(); in checkExpectedOutput() 337 long endTime = startTime; in checkOutputDoesNotContainMessage() local [all …]
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceConnectionHandler.java | 79 final long endTime = SystemClock.uptimeMillis() + timeout; in waitForConnect() local 84 if (now >= endTime) { in waitForConnect() 88 wait(endTime - now); in waitForConnect() 104 final long endTime = SystemClock.uptimeMillis() + timeout; in waitForDisconnect() local 109 if (now >= endTime) { in waitForDisconnect() 113 wait(endTime - now); in waitForDisconnect()
|
D | SyncOrderedBroadcast.java | 53 final long endTime = SystemClock.uptimeMillis() + timeout; in sendAndWait() local 58 if (now >= endTime) { in sendAndWait() 62 wait(endTime - now); in sendAndWait()
|
D | WaitForBroadcast.java | 60 final long endTime = SystemClock.uptimeMillis() + timeout; in doWait() local 65 if (now >= endTime) { in doWait() 71 wait(endTime - now); in doWait()
|
D | UidImportanceListener.java | 71 final long endTime = SystemClock.uptimeMillis()+timeout; in waitForValue() local 76 if (now >= endTime) { in waitForValue() 82 wait(endTime-now); in waitForValue()
|
/cts/tests/DropBoxManager/src/android/dropboxmanager/cts/ |
D | DropBoxTests.java | 162 final long endTime = SystemClock.elapsedRealtime(); in testLowPrioritySingleEntry() local 165 endTime - startTime, BROADCAST_DELAY_ALLOWED_ERROR); in testLowPrioritySingleEntry() 190 final long endTime = SystemClock.elapsedRealtime(); in testLowPriorityRapidEntryLimiting() local 193 endTime - startTime, BROADCAST_DELAY_ALLOWED_ERROR); in testLowPriorityRapidEntryLimiting() 219 final long endTime = SystemClock.elapsedRealtime(); in testLowPrioritySustainedRapidEntryLimiting() local 222 BROADCAST_RATE_LIMIT * 2, endTime - startTime, BROADCAST_DELAY_ALLOWED_ERROR * 2); in testLowPrioritySustainedRapidEntryLimiting() 259 final long endTime = SystemClock.elapsedRealtime(); in testMultipleLowPriorityRateLimiting() local 262 endTime - startTime, BROADCAST_DELAY_ALLOWED_ERROR); in testMultipleLowPriorityRateLimiting() 311 final long endTime = SystemClock.elapsedRealtime(); in testLowPriorityRateLimitingWithEnabledEntries() local 314 endTime - startTime, BROADCAST_DELAY_ALLOWED_ERROR); in testLowPriorityRateLimitingWithEnabledEntries()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | DnsTest.java | 216 long endTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local 217 float nsPer = ((float)(endTime-startTime) / iterationLimit) / numberOfUrls/ 1000; in skiptestDnsPerf() 219 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf() 259 long endTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local 260 float nsPer = ((endTime-startTime) / iterationLimit) / numberOfAddrs / 1000; in skiptestDnsPerf() 262 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf()
|
D | TunUtils.java | 115 long endTime = System.currentTimeMillis() + TIMEOUT; in awaitPacket() local 119 while (System.currentTimeMillis() < endTime) { in awaitPacket() 128 long waitTimeout = endTime - System.currentTimeMillis(); in awaitPacket()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | RenderScriptTask.java | 118 long endTime = System.currentTimeMillis(); in applyRefocusFilter() local 119 float duration = (endTime - startTime); in applyRefocusFilter()
|
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/ |
D | TunUtils.java | 149 long endTime = System.currentTimeMillis() + TIMEOUT; in awaitEspPacketNoPlaintext() local 153 while (System.currentTimeMillis() < endTime) { in awaitEspPacketNoPlaintext() 167 long waitTimeout = endTime - System.currentTimeMillis(); in awaitEspPacketNoPlaintext()
|
D | IkeTunUtils.java | 171 long endTime = System.currentTimeMillis() + TIMEOUT; in awaitIkePacket() local 174 while (System.currentTimeMillis() < endTime) { in awaitIkePacket() 183 long waitTimeout = endTime - System.currentTimeMillis(); in awaitIkePacket()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ActivityTestsBase.java | 166 final long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult() local 171 final long delay = endTime - System.currentTimeMillis(); in waitForResult()
|
D | MessengerTest.java | 219 long endTime = now + timeout; in doTest() local 221 while (!mDone && now < endTime) { in doTest()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesChangeTest.java | 125 long endTime = System.currentTimeMillis() + OPERATION_TIMEOUT_MILLIS; in waitForMediaSizeChange() local 128 wait(Math.max(0, endTime - System.currentTimeMillis())); in waitForMediaSizeChange() 130 if (endTime < System.currentTimeMillis()) { in waitForMediaSizeChange()
|
D | CustomPrintOptionsTest.java | 339 long endTime = System.currentTimeMillis() + OPERATION_TIMEOUT_MILLIS; in testCase() local 343 wait(Math.max(1, endTime - System.currentTimeMillis())); in testCase() 345 if (endTime < System.currentTimeMillis()) { in testCase()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextActionTest.java | 440 long endTime = System.currentTimeMillis() + DEFAULT_TIMEOUT_MS; in assertOnClickCalled() local 441 while (!mClickableSpanCalled.get() && (System.currentTimeMillis() < endTime)) { in assertOnClickCalled() 443 mClickableSpanCallbackLock.wait(endTime - System.currentTimeMillis()); in assertOnClickCalled()
|
/cts/tests/app/src/android/app/cts/ |
D | PendingIntentTest.java | 125 final long endTime = now + timeout; in waitForFinish() local 127 while (!mFinishResult && now < endTime) { in waitForFinish() 129 mFinish.wait(endTime - now); in waitForFinish()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordTest.java | 810 final long endTime = System.currentTimeMillis(); in testSynchronizedRecord() local 818 assertEquals(TEST_NAME, RECORD_TIME_IN_MS, endTime - firstSampleTime, in testSynchronizedRecord() 1131 final long endTime; in doTest() local 1301 endTime = System.currentTimeMillis(); in doTest() 1317 assertEquals(TEST_TIME_MS, endTime - firstSampleTime, auditRecording ? in doTest() 1457 log.addValue("total_record_time_actual", endTime - firstSampleTime, ResultType.NEUTRAL, in doTest()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTransactionTest.java | 445 final long endTime = SystemClock.uptimeMillis() + 3000; in getFragmentsUntilSize() local 448 assertTrue(SystemClock.uptimeMillis() < endTime); in getFragmentsUntilSize()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityLaunchTest.java | 482 long endTime = System.currentTimeMillis() + timeoutMs; in waitForActivityFocused() local 483 while (endTime > System.currentTimeMillis()) { in waitForActivityFocused()
|