Home
last modified time | relevance | path

Searched refs:SECONDS (Results 1 – 25 of 121) sorted by relevance

12345

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAppCompactorTest.java211 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
221 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
235 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChangesBadValues()
257 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChanges()
277 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
290 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
322 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChanges()
349 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues()
367 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues()
384 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues()
[all …]
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java109 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in createAndStartUser()
146 boolean success = latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in switchUser_stopped()
183 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in stopUser()
205 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in lockedBootCompleted()
225 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileUnlock()
244 latch1.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileUnlock_stopped()
253 latch2.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileUnlock_stopped()
284 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped()
287 switchLatch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped()
302 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileStopped()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DBinderProxyCountingTest.java143 if (!bindLatch.await(BIND_SERVICE_TIMEOUT_SEC, TimeUnit.SECONDS)) { in bindService()
239 if (binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary()
246 if (!binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary()
275 if (!binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testSetBinderProxyLimit()
305 if (!firstBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold()
321 if (secondBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold()
336 if (!secondBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold()
369 if (!binderDeathLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testKillBadBehavingApp()
DTestVrActivity.java53 result = mLatch.await(2L, TimeUnit.SECONDS); in waitForActivityStart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java29 private static final String SECONDS = "seconds"; field in ClockPreference
44 setEntryValues(new CharSequence[] { SECONDS, DEFAULT, DISABLED }); in ClockPreference()
76 setValue(SECONDS); in onTuningChanged()
87 Dependency.get(TunerService.class).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 in persistString()
/frameworks/base/services/robotests/src/com/android/server/location/
DNtpTimeHelperTest.java64 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()
77 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
87 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
96 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java63 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDispose()
78 assertTrue(cd.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposeFromFunction()
105 assertTrue(countDownLatch1.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled()
124 assertTrue(countDownLatch2.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled()
149 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testBufferedImageReleased()
217 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testImageMultipleCopies()
250 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testPoolDispose()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java128 assertTrue(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testWorkAccount()
149 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testWorkAccount()
156 assertTrue(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testCaCertLoader()
168 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader()
182 assertFalse(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testCaCertLoader()
DBlockingQueueIntentReceiver.java35 return mQueue.poll(10, TimeUnit.SECONDS); in waitForIntent()
39 return mQueue.poll(3, TimeUnit.SECONDS); in waitForIntentShortDelay()
DCastControllerImplTest.java102 startThreadsLatch.await(10, TimeUnit.SECONDS); in testAddCallbackRemoveCallback_concurrently()
122 threadsDone.await(10, TimeUnit.SECONDS); in testAddCallbackRemoveCallback_concurrently()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerIntegTest.java40 import static java.util.concurrent.TimeUnit.SECONDS;
106 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerAdapterReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
128 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerProfileReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java74 if (!connectionLatch.await(TIMEOUT_SERVICE_CONNECTION_SEC, TimeUnit.SECONDS)) { in setUp()
97 if (!latch.await(TIMEOUT_USER_UNLOCK_SEC, TimeUnit.SECONDS)) { in unlockUser()
139 if (!updateLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testRegisterContentObserver()
156 if (!notifyLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testNotifyChange()
/frameworks/base/services/core/java/com/android/server/location/
DContextHubServiceTransaction.java103 return unit.convert(30L, TimeUnit.SECONDS); in getTimeout()
110 return unit.convert(5L, TimeUnit.SECONDS); in getTimeout()
DGpsPsdsDownloader.java45 private static final int CONNECTION_TIMEOUT_MS = (int) TimeUnit.SECONDS.toMillis(30);
46 private static final int READ_TIMEOUT_MS = (int) TimeUnit.SECONDS.toMillis(60);
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java361 renderAndVerify(params, "animated_vector.png", TimeUnit.SECONDS.toNanos(2)); in testVectorAnimation()
370 renderAndVerify(params, "animated_vector_1.png", TimeUnit.SECONDS.toNanos(3)); in testVectorAnimation()
404 renderAndVerify(params, "vector_drawable.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable()
444 renderAndVerify(params, "vector_drawable_91383.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable91383()
472 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInImageView()
499 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInItself()
533 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableHasMultipleLineInPathData()
571 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableGradient()
607 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableRadialGradient()
644 TimeUnit.SECONDS.toNanos(2)); in testGradientColors()
[all …]
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DLocalOverlayManager.java19 import static java.util.concurrent.TimeUnit.SECONDS;
58 task.get(TIMEOUT, SECONDS); in setEnabledAndWait()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java55 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
89 return get(5, TimeUnit.SECONDS); in get()
98 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java82 TimeUnit.SECONDS.sleep(WAIT_BEFORE_STOP_USER_IN_SECOND); in stopManagedProfileStressTest()
107 countDownLatch.await(MAX_TIME_STOP_USER_IN_SECOND, TimeUnit.SECONDS); in stopUser()
DSuspendPackagesTest.java146 intentQueue.offer(intent, 5, TimeUnit.SECONDS); in onReceive()
158 intent = intentQueue.poll(secondsToWait, TimeUnit.SECONDS); in pollForIntent()
216 assertTrue("Test receiver timed out ", receiverLatch.await(5, TimeUnit.SECONDS)); in requestAppAction()
419 assertFalse("Both callbacks were invoked", twoCallbackLatch.await(5, TimeUnit.SECONDS)); in testOnPackagesSuspendedNewAndOld()
421 assertTrue("No callback was invoked", twoCallbackLatch.await(2, TimeUnit.SECONDS)); in testOnPackagesSuspendedNewAndOld()
453 assertTrue("Callback not invoked", oneCallbackLatch.await(5, TimeUnit.SECONDS)); in testOnPackagesSuspendedOld()
588 assertTrue("AppOpsWatcher did not callback", latch.await(5, TimeUnit.SECONDS)); in assertOpBlockedOnSuspend()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java69 assertTrue(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
91 assertFalse(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java259 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBrightnessEvent()
269 assertEquals(mInjector.currentTimeMillis() - TimeUnit.SECONDS.toMillis(2), in testBrightnessEvent()
326 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testIgnoreAutomaticBrightnessChange()
363 mInjector.incrementTime(TimeUnit.SECONDS.toNanos(1)); in testLimitedBufferSize()
384 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents()
399 mInjector.currentTimeMillis() - i * TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents()
543 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testWriteThenRead()
546 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(3)); in testWriteThenRead()
590 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testWritePrunesOldEvents()
702 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBackgroundHandlerDelay()
[all …]
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DManualBenchmarkState.java58 private static final long WARMUP_DURATION_NS = TimeUnit.SECONDS.toNanos(5);
63 private static final long TARGET_TEST_DURATION_NS = TimeUnit.SECONDS.toNanos(16);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceAnimationRunnerTest.java31 import static java.util.concurrent.TimeUnit.SECONDS;
101 mFinishCallbackLatch.await(1, SECONDS); in testAnimation()
180 mFinishCallbackLatch.await(1, SECONDS); in testDeferStartingAnimations()
DAssistDataRequesterTest.java122 mGate.await(10, TimeUnit.SECONDS); in setUp()
134 mGate.await(10, TimeUnit.SECONDS); in setUp()
335 latch.await(2, TimeUnit.SECONDS); in waitForIdle()
370 mGate.await(10, TimeUnit.SECONDS); in onAssistRequestCompleted()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayoutTestCase.java122 animLatch.await(2, TimeUnit.SECONDS); in waitForPropertyAnimations()
129 layoutLatch.await(2, TimeUnit.SECONDS); in waitForLayoutMessageQueue()
319 latch.await(5, TimeUnit.SECONDS); in runOnMainThreadAndBlock()

12345