Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DSafeWaitObject.java40 final long deadline = System.currentTimeMillis() + timeoutMs; in waitFor() local
43 final long timeToWait = deadline - System.currentTimeMillis(); in waitFor()
67 final long deadline = System.currentTimeMillis() + timeoutMs; in checkConditionFor() local
68 while (!stopWaiting.getAsBoolean() && (System.currentTimeMillis() < deadline)) { in checkConditionFor()
/cts/tests/surfacecontrol/src/android/view/cts/util/
DFrameCallbackData.java25 FrameTimeline(long vsyncId, long expectedPresentTime, long deadline) { in FrameTimeline() argument
28 mDeadline = deadline; in FrameTimeline()
/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()
DPrivateDnsPolicyTest.java166 long deadline = System.currentTimeMillis() + 10_000; in waitForNetwork() local
167 while (cm.getActiveNetwork() == null && System.currentTimeMillis() < deadline) { in waitForNetwork()
/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/tests/surfacecontrol/jni/
Dandroid_view_surfacecontrol_cts_ChoreographerNativeTest.cpp204 auto deadline = std::chrono::nanoseconds{frameTimelines[i].deadline}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
205 ALOGD("\tframe timeline #%d: deadline = %ld", i, deadline); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
206 ASSERT(deadline > std::chrono::nanoseconds{start}, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
208 deadline, std::chrono::nanoseconds{start}); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
209 ASSERT(deadline > cb1.frameTime, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
211 deadline, cb1.frameTime); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
212 ASSERT(deadline > lastValue, in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
214 deadline, lastValue); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
215 lastValue = deadline; in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
219 … auto lastDeadline = std::chrono::nanoseconds{frameTimelines[frameTimelines.size() - 1].deadline}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
[all …]
DChoreographerTestUtils.h74 deadline(AChoreographerFrameCallbackData_getFrameTimelineDeadlineNanos(callbackData, in FrameTime()
79 const int64_t deadline{-1};
/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(60); in testUserRestrictionDisallowConfigDateTimeIsNotPersisted() local
119 while (System.nanoTime() <= deadline) { in testUserRestrictionDisallowConfigDateTimeIsNotPersisted()
/cts/apps/EmptyDeviceOwner/src/com/android/cts/emptydeviceowner/
DDeviceOwnerChangedReceiver.java48 long deadline = System.currentTimeMillis() + 5000; in onReceive() local
49 while (!dpm.isDeviceOwnerApp(packageName) && System.currentTimeMillis() < deadline) { in onReceive()
/cts/libs/midi/src/com/android/midi/
DMidiUmpEchoTestService.java177 long deadline = now + deadlineMillis; in waitForClose() local
181 while (!condition && now < deadline) { in waitForClose()
182 mCloseLock.wait(deadline - now); in waitForClose()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DUpdateProviderInfoTest.java155 long deadline = Instant.now().plusMillis(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS).toEpochMilli(); in waitAndConfirmComponentName() local
157 while (!passesTest && Instant.now().toEpochMilli() < deadline) { in waitAndConfirmComponentName()
158 long timeout = deadline - Instant.now().toEpochMilli(); in waitAndConfirmComponentName()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAlarmReceiver.java93 final long deadline = SystemClock.elapsedRealtime() + timeOut; in waitForAlarm() local
95 while (sLastAlarmId != alarmId && SystemClock.elapsedRealtime() < deadline) { in waitForAlarm()
/cts/tests/tests/os/src/android/os/cts/
DHwBinderTest.java230 Calendar deadline = Calendar.getInstance(); in testHwBinder() local
231 deadline.add(Calendar.SECOND, 10); in testHwBinder()
235 while (!notification.registered && Calendar.getInstance().before(deadline)) { in testHwBinder()
237 notification.condition.awaitUntil(deadline.getTime()); in testHwBinder()
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/
DJdwpTunnelTest.java153 final Instant deadline = Instant.now().plusSeconds(60); in startupForwarding() local
156 if (Instant.now().isAfter(deadline)) { in startupForwarding()
195 final Instant deadline = Instant.now().plusSeconds(120); in testAttachDebugger() local
208 if (Instant.now().isAfter(deadline)) { in testAttachDebugger()
229 if (Instant.now().isAfter(deadline)) { in testAttachDebugger()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DChoreographerTest.java411 long deadline = frameTimeline.getDeadlineNanos(); in onVsync() local
412 assertTrue("Deadline " + deadline + " must be after start time " + mPostTimeNanos, in onVsync()
413 deadline > mPostTimeNanos); in onVsync()
415 && deadline > frameData.getFrameTimeNanos(); in onVsync()
416 assertTrue("Deadline " + deadline + " must be after the previous frame deadline " in onVsync()
418 deadline > lastValue); in onVsync()
419 lastValue = deadline; in onVsync()
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestJobSchedulerReceiver.java101 final long deadline = intent.getLongExtra(EXTRA_DEADLINE, NO_DEADLINE); in onReceive() local
127 if (deadline != NO_DEADLINE) { in onReceive()
128 jobBuilder.setOverrideDeadline(deadline); in onReceive()
/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.java214 long deadline = SystemClock.elapsedRealtime() + timeout; in waitForDownloadComplete() local
217 long millisTillTimeout = deadline - SystemClock.elapsedRealtime(); in waitForDownloadComplete()
225 } while (SystemClock.elapsedRealtime() < deadline); in waitForDownloadComplete()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DLskfBoundKeysTest.java199 final long deadline = System.currentTimeMillis() + 1000L; in onActivityResult() local
200 while (System.currentTimeMillis() < deadline) { in onActivityResult()
/cts/tests/tests/media/common/src/android/media/cts/
DTestUtils.java348 long deadline = System.currentTimeMillis() + timeoutMs; in waitForCountedSignals() local
350 long delay = deadline - System.currentTimeMillis(); in waitForCountedSignals()
/cts/hostsidetests/car/app/src/android/car/cts/app/
DCarWatchdogTestActivity.java388 long deadline = now + NOTIFICATION_DELAY_MS; in checkIsNotified() local
389 while (!mNotificationReceived && now < deadline) { in checkIsNotified()
391 mLock.wait(deadline - now); in checkIsNotified()
/cts/tests/credentials/src/android/credentials/cts/
DCtsSettingsIntentTest.java206 final long deadline = SystemClock.uptimeMillis() + 5000;
209 } while (condition.getAsBoolean() != expectResult && SystemClock.uptimeMillis() < deadline);
/cts/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/
DMidiTestHelper.java89 long deadline = System.currentTimeMillis() + msec; in waitForOpen() local
93 timeRemaining = deadline - System.currentTimeMillis(); in waitForOpen()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java449 long deadline = SystemClock.elapsedRealtime() + stableThresholdTime;
451 if (deadline < SystemClock.elapsedRealtime()) {
458 deadline = SystemClock.elapsedRealtime() + stableThresholdTime;

12