Home
last modified time | relevance | path

Searched refs:deadline (Results 1 – 18 of 18) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSensorToggleRestrictionTest.java94 long deadline = System.nanoTime() + RESTRICTION_WAITING_TIMEOUT_NANO; in testCameraToggle_RestrictionSet_ResetSensorPrivacy() local
95 while (System.nanoTime() < deadline) { in testCameraToggle_RestrictionSet_ResetSensorPrivacy()
113 long deadline = System.nanoTime() + RESTRICTION_WAITING_TIMEOUT_NANO; in testMicrophoneToggle_RestrictionSet_ResetSensorPrivacy() local
114 while (System.nanoTime() < deadline) { in testMicrophoneToggle_RestrictionSet_ResetSensorPrivacy()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DClickableToastActivity.java46 long deadline = SystemClock.uptimeMillis() + DETECT_TOAST_TIMEOUT_MS; in onCreate() local
47 handler.post(new DetectToastRunnable(getApplicationContext(), toast.getView(), deadline, in onCreate()
94 Context applicationContext, View toastView, long deadline, Handler handler) { in DetectToastRunnable() argument
97 mDeadline = deadline; in DetectToastRunnable()
/cts/hostsidetests/devicepolicy/app/SuspensionChecker/src/com/android/cts/suspensionchecker/
DActivityLaunchTest.java52 final long deadline = System.nanoTime() + TimeUnit.MINUTES.toNanos(1); in testWaitForActivityNotLaunchable() local
53 while (System.nanoTime() < deadline) { in testWaitForActivityNotLaunchable()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAlwaysOnVpnTest.java199 long deadline = System.nanoTime() + CONNECTIVITY_WAIT_TIME_NS; in waitForConnectivity() local
200 while (System.nanoTime() < deadline) { in waitForConnectivity()
216 long deadline = System.nanoTime() + CONNECTIVITY_WAIT_TIME_NS; in waitForNoConnectivity() local
217 while (System.nanoTime() < deadline) { in waitForNoConnectivity()
DUserRestrictionsParentTest.java92 final long deadline = System.nanoTime() + GET_UIAUTOMATION_TIMEOUT_NS; in getUiAutomation() local
93 while (System.nanoTime() < deadline) { in getUiAutomation()
118 final long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(30); in testUserRestrictionDisallowConfigDateTimeIsNotPersisted() local
119 while (System.nanoTime() <= deadline) { in testUserRestrictionDisallowConfigDateTimeIsNotPersisted()
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/
DJdwpTunnelTest.java133 final Instant deadline = Instant.now().plusSeconds(60); in startupForwarding() local
137 if (Instant.now().isAfter(deadline)) { in startupForwarding()
170 final Instant deadline = Instant.now().plusSeconds(120); in testAttachDebugger() local
184 if (Instant.now().isAfter(deadline)) { in testAttachDebugger()
203 if (Instant.now().isAfter(deadline)) { in testAttachDebugger()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAlarmReceiver.java57 final long deadline = SystemClock.elapsedRealtime() + timeOut; in waitForAlarm() local
59 while (sLastAlarmId != alarmId && SystemClock.elapsedRealtime() < deadline) { in waitForAlarm()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DUpdateProviderInfoTest.java153 long deadline = Instant.now().plusMillis(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS).toEpochMilli(); in waitAndConfirmComponentName() local
155 while (!passesTest && Instant.now().toEpochMilli() < deadline) { in waitAndConfirmComponentName()
156 long timeout = deadline - Instant.now().toEpochMilli(); in waitAndConfirmComponentName()
/cts/tests/tests/os/src/android/os/cts/
DHwBinderTest.java220 Calendar deadline = Calendar.getInstance(); in testHwBinder() local
221 deadline.add(Calendar.SECOND, 10); in testHwBinder()
225 while (!notification.registered && Calendar.getInstance().before(deadline)) { in testHwBinder()
227 notification.condition.awaitUntil(deadline.getTime()); in testHwBinder()
/cts/tests/tests/media/src/android/media/cts/
DTestUtils.java168 long deadline = System.currentTimeMillis() + timeoutMs; in waitForCountedSignals() local
170 long delay = deadline - System.currentTimeMillis(); in waitForCountedSignals()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java334 long deadline = SystemClock.elapsedRealtime() + stableThresholdTime;
336 if (deadline < SystemClock.elapsedRealtime()) {
343 deadline = SystemClock.elapsedRealtime() + stableThresholdTime;
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DDelegateTestUtils.java126 long deadline = System.nanoTime() + TimeUnit.MINUTES.toNanos(TIMEOUT_MIN); in forceAndWaitForSecurityLogsBroadcast() local
127 while (System.nanoTime() < deadline) { in forceAndWaitForSecurityLogsBroadcast()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
DDownloadManagerTest.java211 long deadline = SystemClock.elapsedRealtime() + timeout; in waitForDownloadComplete() local
214 long millisTillTimeout = deadline - SystemClock.elapsedRealtime(); in waitForDownloadComplete()
222 } while (SystemClock.elapsedRealtime() < deadline); in waitForDownloadComplete()
/cts/tests/tests/midi/src/android/midi/cts/
DMidiEchoTest.java105 long deadline = System.currentTimeMillis() + msec; in waitForOpen() local
109 timeRemaining = deadline - System.currentTimeMillis(); in waitForOpen()
578 long deadline = System.currentTimeMillis() + msec; in waitForStatus() local
582 timeRemaining = deadline - System.currentTimeMillis(); in waitForStatus()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DQuietModeTest.java166 final long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(60); in waitForUserLocked() local
167 while (System.nanoTime() < deadline) { in waitForUserLocked()
/cts/tests/tests/view/src/android/view/cts/
DFrameMetricsListenerTest.java189 long deadline = frameMetrics.getMetric(FrameMetrics.DEADLINE); in callGetMetric() local
206 assertTrue(deadline > 0); in callGetMetric()
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiEchoTest.java133 long deadline = System.currentTimeMillis() + msec; in waitForOpen() local
137 timeRemaining = deadline - System.currentTimeMillis(); in waitForOpen()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java282 final long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(timeoutSec); in waitForOutput() local
284 if (System.nanoTime() > deadline) { in waitForOutput()