Home
last modified time | relevance | path

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

123456

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java293 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
303 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
321 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isFalse(); in useFreeze_doesNotListenToDeviceConfigChanges()
332 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useFreeze_doesNotListenToDeviceConfigChanges()
355 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChangesBadValues()
393 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChanges()
413 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
426 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
458 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChanges()
485 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues()
[all …]
/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/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()
DBinderDeathRecipientTest.java90 assertTrue("Request for binder timed out", resultLatch.await(5, TimeUnit.SECONDS)); in getNewRemoteBinder()
106 deathNotificationLatch.await(10, TimeUnit.SECONDS)); in binderDied_noArgs()
140 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg()
149 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg()
/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DNtpTimeHelperTest.java80 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()
93 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
103 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
112 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java64 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDispose()
79 assertTrue(cd.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposeFromFunction()
106 assertTrue(countDownLatch1.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled()
125 assertTrue(countDownLatch2.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled()
150 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testBufferedImageReleased()
218 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testImageMultipleCopies()
252 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testPoolDispose()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java152 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in createAndStartUser()
173 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in startUser()
231 boolean success = latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in switchUser_stopped()
268 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in stopUser()
290 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in lockedBootCompleted()
321 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped()
324 switchLatch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped()
425 TimeUnit.SECONDS.sleep(1); // Brief cool-down before re-starting profile. in managedProfileUnlockAndLaunchApp_stopped()
593 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in switchUser()
608 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in stopUser()
[all …]
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
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/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()
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java75 if (!connectionLatch.await(TIMEOUT_SERVICE_CONNECTION_SEC, TimeUnit.SECONDS)) { in setUp()
98 if (!latch.await(TIMEOUT_USER_UNLOCK_SEC, TimeUnit.SECONDS)) { in unlockUser()
140 if (!updateLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testRegisterContentObserver()
157 if (!notifyLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testNotifyChange()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java406 renderAndVerify(params, "animated_vector.png", TimeUnit.SECONDS.toNanos(2)); in testVectorAnimation()
415 renderAndVerify(params, "animated_vector_1.png", TimeUnit.SECONDS.toNanos(3)); in testVectorAnimation()
449 renderAndVerify(params, "vector_drawable.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable()
489 renderAndVerify(params, "vector_drawable_91383.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable91383()
517 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInImageView()
544 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInItself()
578 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableHasMultipleLineInPathData()
616 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableGradient()
652 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableRadialGradient()
689 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/GamePerformance/src/android/gameperformance/
DBaseTest.java33 private final static long WARM_UP_TIME = TimeUnit.SECONDS.toMillis(5);
38 private final static long TEST_ITERATION_TIME = TimeUnit.SECONDS.toMillis(12);
/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.java148 intentQueue.offer(intent, 5, TimeUnit.SECONDS); in onReceive()
160 intent = intentQueue.poll(secondsToWait, TimeUnit.SECONDS); in pollForIntent()
218 assertTrue("Test receiver timed out ", receiverLatch.await(5, TimeUnit.SECONDS)); in requestAppAction()
421 assertFalse("Both callbacks were invoked", twoCallbackLatch.await(5, TimeUnit.SECONDS)); in testOnPackagesSuspendedNewAndOld()
423 assertTrue("No callback was invoked", twoCallbackLatch.await(2, TimeUnit.SECONDS)); in testOnPackagesSuspendedNewAndOld()
455 assertTrue("Callback not invoked", oneCallbackLatch.await(5, TimeUnit.SECONDS)); in testOnPackagesSuspendedOld()
590 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.java288 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBrightnessEvent()
298 assertEquals(mInjector.currentTimeMillis() - TimeUnit.SECONDS.toMillis(2), in testBrightnessEvent()
352 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testIgnoreAutomaticBrightnessChange()
389 mInjector.incrementTime(TimeUnit.SECONDS.toNanos(1)); in testLimitedBufferSize()
410 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents()
425 mInjector.currentTimeMillis() - i * TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents()
569 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testWriteThenRead()
572 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(3)); in testWriteThenRead()
613 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testWritePrunesOldEvents()
725 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBackgroundHandlerDelay()
[all …]
/frameworks/base/core/java/com/android/internal/infra/
DRemoteStream.java19 import static java.util.concurrent.TimeUnit.SECONDS;
202 orTimeout(30, SECONDS);
/frameworks/base/services/core/java/com/android/server/location/gnss/
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/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceAnimationRunnerTest.java31 import static java.util.concurrent.TimeUnit.SECONDS;
105 mFinishCallbackLatch.await(1, SECONDS); in testAnimation()
185 mFinishCallbackLatch.await(1, SECONDS); in testDeferStartingAnimations()
DAssistDataRequesterTest.java125 mGate.await(10, TimeUnit.SECONDS); in setUp()
137 mGate.await(10, TimeUnit.SECONDS); in setUp()
338 latch.await(2, TimeUnit.SECONDS); in waitForIdle()
373 mGate.await(10, TimeUnit.SECONDS); in onAssistRequestCompleted()
/frameworks/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/
DIorapWorkFlowTest.java116 TimeUnit.SECONDS.sleep(5L); in testNormalWorkFlow()
142 TimeUnit.SECONDS.sleep(5L); in testUpdateApp()
237 TimeUnit.SECONDS.sleep(1L); in closeApp()
353 TimeUnit.SECONDS.sleep(sleepIntervalSeconds);

123456