/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | SafeWaitObject.java | 40 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/ |
D | FrameCallbackData.java | 25 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/ |
D | SensorToggleRestrictionTest.java | 94 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()
|
D | PrivateDnsPolicyTest.java | 166 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/ |
D | ClickableToastActivity.java | 46 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/ |
D | android_view_surfacecontrol_cts_ChoreographerNativeTest.cpp | 204 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 …]
|
D | ChoreographerTestUtils.h | 74 deadline(AChoreographerFrameCallbackData_getFrameTimelineDeadlineNanos(callbackData, in FrameTime() 79 const int64_t deadline{-1};
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AlwaysOnVpnTest.java | 199 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()
|
D | UserRestrictionsParentTest.java | 92 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/ |
D | DeviceOwnerChangedReceiver.java | 48 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/ |
D | MidiUmpEchoTestService.java | 177 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/ |
D | UpdateProviderInfoTest.java | 155 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/ |
D | AlarmReceiver.java | 93 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/ |
D | HwBinderTest.java | 230 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/ |
D | JdwpTunnelTest.java | 153 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/ |
D | ChoreographerTest.java | 411 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/ |
D | TestJobSchedulerReceiver.java | 101 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/ |
D | DelegateTestUtils.java | 126 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/ |
D | DownloadManagerTest.java | 214 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/ |
D | LskfBoundKeysTest.java | 199 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/ |
D | TestUtils.java | 348 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/ |
D | CarWatchdogTestActivity.java | 388 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/ |
D | CtsSettingsIntentTest.java | 206 final long deadline = SystemClock.uptimeMillis() + 5000; 209 } while (condition.getAsBoolean() != expectResult && SystemClock.uptimeMillis() < deadline);
|
/cts/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/ |
D | MidiTestHelper.java | 89 long deadline = System.currentTimeMillis() + msec; in waitForOpen() local 93 timeRemaining = deadline - System.currentTimeMillis(); in waitForOpen()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStreamTestUtils.java | 449 long deadline = SystemClock.elapsedRealtime() + stableThresholdTime; 451 if (deadline < SystemClock.elapsedRealtime()) { 458 deadline = SystemClock.elapsedRealtime() + stableThresholdTime;
|