Home
last modified time | relevance | path

Searched refs:countDownLatch (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java70 final CountDownLatch countDownLatch = new CountDownLatch(1); in startTargetPackage() local
72 intent.putExtra(Intent.EXTRA_RESULT_RECEIVER, new CountDownResultReceiver(countDownLatch)); in startTargetPackage()
77 final boolean targetPackageIdleSuccess = countDownLatch.await(AWAIT_SERVICE_CONNECT_MS, in startTargetPackage()
114 final CountDownLatch countDownLatch = new CountDownLatch(1); in bindAndWaitForConnectedService() local
118 countDownLatch.countDown(); in bindAndWaitForConnectedService()
131 final boolean connectedSuccess = countDownLatch.await(AWAIT_SERVICE_CONNECT_MS, in bindAndWaitForConnectedService()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationInflaterTest.java156 CountDownLatch countDownLatch = new CountDownLatch(1); in testInflationIsRetriedIfAsyncFails() local
164 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails()
170 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails()
184 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in testInflationIsRetriedIfAsyncFails()
221 CountDownLatch countDownLatch = new CountDownLatch(1); in runThenWaitForInflation() local
230 countDownLatch.countDown(); in runThenWaitForInflation()
239 countDownLatch.countDown(); in runThenWaitForInflation()
248 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in runThenWaitForInflation()
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
DFragmentViewLifecycleTest.java108 final CountDownLatch countDownLatch = new CountDownLatch(1); in testFragmentViewLifecycleRunOnCommit() local
116 countDownLatch.countDown(); in testFragmentViewLifecycleRunOnCommit()
120 countDownLatch.await(1, TimeUnit.SECONDS); in testFragmentViewLifecycleRunOnCommit()
128 final CountDownLatch countDownLatch = new CountDownLatch(2); in testFragmentViewLifecycleOwnerLiveData() local
142 countDownLatch.countDown(); in testFragmentViewLifecycleOwnerLiveData()
147 countDownLatch.countDown(); in testFragmentViewLifecycleOwnerLiveData()
156 countDownLatch.await(1, TimeUnit.SECONDS); in testFragmentViewLifecycleOwnerLiveData()
/frameworks/base/core/tests/utiltests/src/android/util/
DMemoryIntArrayTest.java262 CountDownLatch countDownLatch = new CountDownLatch(2); in testAshmemSizeMatchesMemoryIntArraySize() local
268 if (countDownLatch.getCount() == 1) { in testAshmemSizeMatchesMemoryIntArraySize()
269 countDownLatch.countDown(); in testAshmemSizeMatchesMemoryIntArraySize()
283 countDownLatch.countDown(); in testAshmemSizeMatchesMemoryIntArraySize()
284 countDownLatch.await(1000, TimeUnit.MILLISECONDS); in testAshmemSizeMatchesMemoryIntArraySize()
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DCountDownResultReceiver.java27 public CountDownResultReceiver(CountDownLatch countDownLatch) { in CountDownResultReceiver() argument
29 mCountDownLatch = countDownLatch; in CountDownResultReceiver()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java91 CountDownLatch countDownLatch = new CountDownLatch(1); in stopUser() local
97 countDownLatch.countDown(); in stopUser()
106 countDownLatch.await(MAX_TIME_STOP_USER_IN_SECOND, TimeUnit.SECONDS); in stopUser()
/frameworks/base/core/java/com/android/internal/util/
DConcurrentUtils.java104 public static void waitForCountDownNoInterrupt(CountDownLatch countDownLatch, long timeoutMs,
107 if (!countDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS)) {
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/
DNestedScrollViewTest.java256 final CountDownLatch countDownLatch = new CountDownLatch(1); in smoothScrollBy_scrollsEntireDistanceIncludingMargins() local
269 countDownLatch.countDown(); in smoothScrollBy_scrollsEntireDistanceIncludingMargins()
276 assertThat(countDownLatch.await(2000, TimeUnit.SECONDS), is(true)); in smoothScrollBy_scrollsEntireDistanceIncludingMargins()
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/
DLoaderManagerTest.java130 CountDownLatch countDownLatch = new CountDownLatch(1); in testDestroyLoaderAfterDeliverData() local
132 new DelayLoaderCallbacks(mock(Context.class), countDownLatch); in testDestroyLoaderAfterDeliverData()
140 countDownLatch.await(1, TimeUnit.SECONDS); in testDestroyLoaderAfterDeliverData()
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DRecyclerViewLayoutTest.java3129 final CountDownLatch countDownLatch = new CountDownLatch(eventCount); in smoothScrollToPosition_initialScroll() local
3156 countDownLatch.countDown(); in smoothScrollToPosition_initialScroll()
3178 countDownLatch.countDown(); in smoothScrollToPosition_initialScroll()
3186 countDownLatch.countDown(); in smoothScrollToPosition_initialScroll()
3203 assertTrue(countDownLatch.await(2, TimeUnit.SECONDS)); in smoothScrollToPosition_initialScroll()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java11994 final CountDownLatch countDownLatch = new CountDownLatch(1); in setMandatoryBackupTransport() local
12000 countDownLatch.countDown(); in setMandatoryBackupTransport()
12004 countDownLatch.countDown(); in setMandatoryBackupTransport()
12016 countDownLatch.await(); in setMandatoryBackupTransport()