/frameworks/base/tools/preload2/src/com/android/preload/ |
D | DeviceUtils.java | 95 doShell(device, "am start -n " + name + " /." + activity, 30, TimeUnit.SECONDS); in doAMStart() 158 doShellReturnString(device, READ_PRELOADED_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 166 doShell(device, STOP_SHELL_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 168 doShell(device, REMOUNT_SYSTEM_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 170 doShell(device, DELETE_PRELOADED_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 172 doShell(device, DELETE_CACHE_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 181 doShell(device, UNSET_BOOTCOMPLETE_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 183 doShell(device, START_SHELL_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 210 TimeUnit.SECONDS.convert(endDate.getTime() - startDate.getTime(), TimeUnit.MILLISECONDS); in waitForBootComplete()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ClockPreference.java | 28 private static final String SECONDS = "seconds"; field in ClockPreference 43 setEntryValues(new CharSequence[] { SECONDS, DEFAULT, DISABLED }); in ClockPreference() 75 setValue(SECONDS); in onTuningChanged() 86 Dependency.get(TunerService.class).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 in persistString()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTest.java | 112 latch.await(TIMEOUT_USER_START_SEC, TimeUnit.SECONDS); in createAndStartUserPerf() 145 latch.await(TIMEOUT_USER_START_SEC, TimeUnit.SECONDS); in stopUserPerf() 167 latch.await(TIMEOUT_LOCKED_BOOT_COMPLETE_MS, TimeUnit.SECONDS); in lockedBootCompletedPerf() 187 latch.await(TIMEOUT_MANAGED_PROFILE_UNLOCK_SEC, TimeUnit.SECONDS); in managedProfileUnlockPerf() 218 latch.await(TIMEOUT_EPHERMAL_USER_STOP_SEC, TimeUnit.SECONDS); in ephemeralUserStoppedPerf() 221 switchLatch.await(TIMEOUT_USER_SWITCH_SEC, TimeUnit.SECONDS); in ephemeralUserStoppedPerf() 231 latch.await(TIMEOUT_USER_SWITCH_SEC, TimeUnit.SECONDS); in switchUser() 246 latch.await(TIMEOUT_USER_STOP_SEC, TimeUnit.SECONDS); in stopUser()
|
/frameworks/support/compat/tests/java/android/support/v4/content/ |
D | ModernAsyncTaskTest.java | 72 if (!readyToCancel.await(5, TimeUnit.SECONDS)) { in testCancellationWithException() 77 if (!calledOnCancelled.await(5, TimeUnit.SECONDS)) { in testCancellationWithException() 126 if (!calledOnCancelled.await(5, TimeUnit.SECONDS)) { in testException()
|
/frameworks/base/tools/preload2/src/com/android/preload/actions/ |
D | RunMonkeyAction.java | 119 DeviceUtils.doShell(device, "force-stop " + packageName, 5, TimeUnit.SECONDS); in forceStop() 120 DeviceUtils.doShell(device, "kill " + packageName, 5, TimeUnit.SECONDS); in forceStop() 121 DeviceUtils.doShell(device, "kill `pid " + packageName + "`", 5, TimeUnit.SECONDS); in forceStop()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | InvalidateAllTest.java | 34 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); in testRefreshViaInvalidateAll() 40 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); in testRefreshViaInvalidateAll()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 114 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader() 127 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader() 141 assertFalse(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader()
|
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 55 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived() 89 return get(5, TimeUnit.SECONDS); in get() 98 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AbstractCrossUserContentResolverTest.java | 73 if (!connectionLatch.await(TIMEOUT_SERVICE_CONNECTION_SEC, TimeUnit.SECONDS)) { in setUp() 114 if (!updateLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testRegisterContentObserver() 131 if (!notifyLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testNotifyChange()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | BaseGridLayoutManagerTest.java | 23 import static java.util.concurrent.TimeUnit.SECONDS; 262 mLayoutLatch.await(seconds * (DEBUG ? 1000 : 1), SECONDS); in waitForLayout() 279 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForPrefetch() 308 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap()
|
D | AsyncListUtilLayoutTest.java | 22 import static java.util.concurrent.TimeUnit.SECONDS; 223 return mTilesLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForTiles() 308 return mItemsLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForItems() 325 mLayoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForLayout()
|
D | BaseLinearLayoutManagerTest.java | 27 import static java.util.concurrent.TimeUnit.SECONDS; 395 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForLayout() 408 callbackLatch.await(timeout, TimeUnit.SECONDS); in assertNoCallbacks() 419 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForPrefetch() 448 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap() 538 latch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForAnimationsToEnd()
|
D | BaseRecyclerViewInstrumentationTest.java | 30 import static java.util.concurrent.TimeUnit.SECONDS; 297 latch.await(seconds, TimeUnit.SECONDS)); in waitForAnimations() 321 assertTrue("should go idle in 10 seconds", latch.await(10, TimeUnit.SECONDS)); in waitForIdleScroll() 490 viewAdded.await(10, TimeUnit.SECONDS), in smoothScrollToPosition() 570 layoutLatch.await(seconds * (mDebug ? 1000 : 1), SECONDS); in waitForLayout() 596 layoutLatch.await(timeout, TimeUnit.SECONDS); in assertLayoutCount() 601 layoutLatch.await(timeout, TimeUnit.SECONDS); in assertNoLayout()
|
D | TestActivity.java | 68 if (!done.await(5, TimeUnit.SECONDS)) { in resetContent()
|
D | WrappedRecyclerView.java | 96 latch.await(60, TimeUnit.SECONDS), CoreMatchers.is(true)); in waitUntilAnimations()
|
D | RecyclerViewPrefetchTest.java | 67 assertThat(prefetchLatch.await(time, TimeUnit.SECONDS), in waitForPrefetch()
|
/frameworks/support/fragment/tests/java/android/support/v4/app/ |
D | NestedFragmentTest.java | 69 assertTrue(latch.await(1, TimeUnit.SECONDS)); in setup() 101 assertTrue(latch.await(1, TimeUnit.SECONDS)); in testNestedFragmentStartActivityForResult()
|
D | FragmentReceiveResultTest.java | 133 assertTrue(mFragment.mResultReceiveLatch.await(1, TimeUnit.SECONDS)); in startActivityForResult() 157 assertTrue(mFragment.mResultReceiveLatch.await(1, TimeUnit.SECONDS)); in startIntentSenderForResult()
|
D | LoaderTest.java | 167 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData() 191 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData()
|
D | FragmentTestUtil.java | 269 assertTrue(RecreatedActivity.sResumed.await(1, TimeUnit.SECONDS)); in recreateActivity() 270 assertTrue(RecreatedActivity.sDestroyed.await(1, TimeUnit.SECONDS)); in recreateActivity()
|
D | NestedFragmentRestoreTest.java | 87 assertTrue("timeout waiting for recreate", latch.await(10, TimeUnit.SECONDS)); in recreateActivity()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoService.java | 46 public static long SECONDS = 1000; field in NekoService 47 public static long MINUTES = 60 * SECONDS;
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TestVrActivity.java | 54 result = mLatch.await(2L, TimeUnit.SECONDS); in waitForActivityStart()
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | RenderTests.java | 224 renderAndVerify(params, "animated_vector.png", TimeUnit.SECONDS.toNanos(2)); in testVectorAnimation() 230 renderAndVerify(params, "animated_vector_1.png", TimeUnit.SECONDS.toNanos(3)); in testVectorAnimation() 250 renderAndVerify(params, "vector_drawable.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable() 269 renderAndVerify(params, "vector_drawable_91383.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable91383()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | ActionSendMultipleConsumerActivity.java | 118 bundle = mQueue.poll(2 * TIMEOUT, TimeUnit.SECONDS); in getExtras()
|