Home
last modified time | relevance | path

Searched refs:waitFor (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerTest.java316 assertTrue("Timed out to start fg service", uidListener1.waitFor( in testFgsProcStatsTracker()
353 final long waitFor = 5000; in testAppFreezerWithAllowOomAdj() local
371 Thread.sleep(waitFor); in testAppFreezerWithAllowOomAdj()
381 freezerDebounceTimeout.set(waitFor); in testAppFreezerWithAllowOomAdj()
389 ActivityManagerConstants.KEY_MAX_SERVICE_INACTIVITY + "=" + waitFor); in testAppFreezerWithAllowOomAdj()
418 Thread.sleep(waitFor * 4); in testAppFreezerWithAllowOomAdj()
439 waitFor, TimeUnit.MILLISECONDS)); in testAppFreezerWithAllowOomAdj()
445 assertTrue(TEST_APP2 + " should be in cached", uid2Listener.waitFor( in testAppFreezerWithAllowOomAdj()
446 RunningAppProcessInfo.IMPORTANCE_CACHED, waitFor)); in testAppFreezerWithAllowOomAdj()
449 Thread.sleep(waitFor * 4); in testAppFreezerWithAllowOomAdj()
[all …]
DServiceRestarterTest.java330 assertTrue("Timed out to restart " + TEST_PACKAGE1_NAME, uid1Listener1.waitFor( in startKillAndRestart()
332 assertTrue("Timed out to restart " + TEST_PACKAGE2_NAME, uid2Listener1.waitFor( in startKillAndRestart()
334 assertTrue("Timed out to restart " + TEST_PACKAGE3_NAME, uid3Listener1.waitFor( in startKillAndRestart()
353 uid1Listener2.waitFor(RunningAppProcessInfo.IMPORTANCE_GONE, WAIT_MS)); in startKillAndRestart()
355 uid2Listener2.waitFor(RunningAppProcessInfo.IMPORTANCE_GONE, WAIT_MS)); in startKillAndRestart()
357 uid3Listener2.waitFor(RunningAppProcessInfo.IMPORTANCE_GONE, WAIT_MS)); in startKillAndRestart()
448 uidListener.waitFor(RunningAppProcessInfo.IMPORTANCE_SERVICE, timeout)); in startServiceAndWait()
455 uidListener.waitFor(RunningAppProcessInfo.IMPORTANCE_GONE, timeout)); in killUidAndWait()
497 boolean waitFor(int expectedImportance, long timeout) throws Exception { in waitFor() method in ServiceRestarterTest.MyUidImportanceListener
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/bluetooth/
DBluetoothController.kt63 waitFor { adapter.state == BluetoothAdapter.STATE_ON } in enableBluetooth()
82 waitFor { device.bondState == BluetoothDevice.BOND_NONE } in unpairAllDevices()
86 private fun waitFor( in waitFor() method in android.companion.multidevices.bluetooth.BluetoothController
/frameworks/base/api/coverage/tools/
DExtractFlaggedApisTest.kt67 process.waitFor() in extractFlaggedApis_onlyMethodFlag_useMethodFlag()
98 process.waitFor() in extractFlaggedApis_onlyClassFlag_useClassFlag()
129 process.waitFor() in extractFlaggedApis_flaggedConstructorsAreFlaggedApis()
162 process.waitFor() in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag()
201 process.waitFor() in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag_deeplyNested()
/frameworks/base/core/tests/coretests/src/android/util/
DPollingCheck.java80 public static void waitFor(final PollingCheckCondition condition) { in waitFor() method in PollingCheck
95 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() method in PollingCheck
/frameworks/base/tests/testables/src/android/testing/
DPollingCheck.java76 public static void waitFor(final PollingCheckCondition condition) { in waitFor() method in PollingCheck
85 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() method in PollingCheck
/frameworks/base/core/tests/coretests/src/android/view/menu/
DContextMenuTest.java62 PollingCheck.waitFor( in testMenuPosition()
69 PollingCheck.waitFor( in testMenuPosition()
/frameworks/base/core/tests/coretests/src/android/widget/
DHorizontalScrollViewFunctionalTest.java77 PollingCheck.waitFor(() -> edgeEffect.getDistance() == 0f); in testScrollAfterFlingLeft()
91 PollingCheck.waitFor(() -> mHorizontalScrollView.mEdgeGlowRight.getDistance() == 0f); in testScrollAfterFlingRight()
122 PollingCheck.waitFor(() -> mMyHorizontalScrollView.getScrollX() != 0); in hasVelocityInSmoothScrollBy()
DScrollViewFunctionalTest.java77 PollingCheck.waitFor(() -> edgeEffect.getDistance() == 0f); in testScrollAfterFlingTop()
91 PollingCheck.waitFor(() -> edgeEffect.getDistance() == 0f); in testScrollAfterFlingBottom()
121 PollingCheck.waitFor(() -> mMyScrollView.getScrollY() != 0); in hasVelocityInSmoothScrollBy()
DAbsListViewFunctionalTest.java94 PollingCheck.waitFor(100, () -> mMyListView.isSetVelocityCalled); in testLsitViewSetVelocity()
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
DPowerMeasurement.java73 int exitVal = runsum.waitFor(); in testPageLoadStaticNYTimes()
76 exitVal = removal.waitFor(); in testPageLoadStaticNYTimes()
/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DWebViewCaptureHelperTest.java112 waitFor(loaded, 5, TimeUnit.SECONDS); in createScrollableContent()
131 private static boolean waitFor(CountDownLatch latch, long time, TimeUnit unit) { in waitFor() method in WebViewCaptureHelperTest
/frameworks/base/tests/JankBench/app/src/main/jni/
DWorkerPool.h36 void waitFor(uint64_t) const;
DWorkerPool.cpp228 void WorkerPool::waitFor(uint64_t) const { in waitFor() function in WorkerPool
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
DLoginTest.java136 watcher.waitFor(DESTROYED); in testActivityLaunchTime()
168 watcher.waitFor(DESTROYED); in testSendEventLatency()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontScaleConverterActivityTest.java140 PollingCheck.waitFor(/* timeout= */ 10000, () -> { in setSystemFontScale()
165 PollingCheck.waitFor( in restoreSystemFontScaleToDefault()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRemovalWaiter.java71 public void waitFor(int userId) { in waitFor() method in UserRemovalWaiter
/frameworks/base/tests/inputmethod/ConcurrentMultiSessionImeTest/src/com/android/server/inputmethod/multisessiontest/
DMainActivity.java94 PollingCheck.waitFor(WAIT_IME_TIMEOUT_MS, () -> isMyImeVisible(), in showMyImeAndWait()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityWorkProfileTest.java19 import static android.util.PollingCheck.waitFor;
341 waitFor(() -> { in switchToTab() method
DResolverActivityWorkProfileTest.java19 import static android.util.PollingCheck.waitFor;
319 waitFor(() -> { in switchToTab() method
/frameworks/base/services/core/java/com/android/server/power/
DPreRebootLogger.java136 Runtime.getRuntime().exec(cmdline).waitFor(); in dumpLogsLocked()
/frameworks/base/tests/Input/src/com/android/test/input/
DAnrTest.kt156 PollingCheck.waitFor { in waitForNewExitReasonAfter()
/frameworks/base/core/tests/coretests/src/android/os/
DCancellationSignalBeamerTest.java209 PollingCheck.waitFor(() -> { in waitForWithGc()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java293 int status = p.waitFor(); in pingTest()
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetCallsTest.java452 PollingCheck.waitFor(() -> { in waitForOnUiThread()

12