Home
last modified time | relevance | path

Searched refs:endTime (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java200 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/
DMockService.java90 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()
DPendingIntentStubActivity.java52 final long endTime = now + timeout; in waitForCreate() local
54 while (!sCreated && now < endTime) { in waitForCreate()
56 sBlocker.wait(endTime - now); in waitForCreate()
DMockReceiver.java59 final long endTime = now + timeout; in waitForReceive() local
61 while (!sReceived && now < endTime) { in waitForReceive()
63 sBlocker.wait(endTime - now); in waitForReceive()
DActivityTestsBase.java180 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/
DHdmiCecClientWrapper.java216 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/
DServiceConnectionHandler.java79 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()
DSyncOrderedBroadcast.java53 final long endTime = SystemClock.uptimeMillis() + timeout; in sendAndWait() local
58 if (now >= endTime) { in sendAndWait()
62 wait(endTime - now); in sendAndWait()
DWaitForBroadcast.java60 final long endTime = SystemClock.uptimeMillis() + timeout; in doWait() local
65 if (now >= endTime) { in doWait()
71 wait(endTime - now); in doWait()
DUidImportanceListener.java71 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/
DDropBoxTests.java162 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/
DDnsTest.java216 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()
DTunUtils.java115 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/
DRenderScriptTask.java118 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/
DTunUtils.java149 long endTime = System.currentTimeMillis() + TIMEOUT; in awaitEspPacketNoPlaintext() local
153 while (System.currentTimeMillis() < endTime) { in awaitEspPacketNoPlaintext()
167 long waitTimeout = endTime - System.currentTimeMillis(); in awaitEspPacketNoPlaintext()
DIkeTunUtils.java171 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/
DActivityTestsBase.java166 final long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult() local
171 final long delay = endTime - System.currentTimeMillis(); in waitForResult()
DMessengerTest.java219 long endTime = now + timeout; in doTest() local
221 while (!mDone && now < endTime) { in doTest()
/cts/tests/tests/print/src/android/print/cts/
DPrinterCapabilitiesChangeTest.java125 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()
DCustomPrintOptionsTest.java339 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/
DAccessibilityTextActionTest.java440 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/
DPendingIntentTest.java125 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/
DAudioRecordTest.java810 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/
DFragmentTransactionTest.java445 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/
DBackgroundActivityLaunchTest.java482 long endTime = System.currentTimeMillis() + timeoutMs; in waitForActivityFocused() local
483 while (endTime > System.currentTimeMillis()) { in waitForActivityFocused()

12