Home
last modified time | relevance | path

Searched refs:countDownLatch (Results 1 – 10 of 10) 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/row/
DNotificationContentInflaterTest.java175 CountDownLatch countDownLatch = new CountDownLatch(1); in testInflationIsRetriedIfAsyncFails() local
187 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails()
194 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails()
208 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in testInflationIsRetriedIfAsyncFails()
261 CountDownLatch countDownLatch = new CountDownLatch(1); in runThenWaitForInflation() local
271 countDownLatch.countDown(); in runThenWaitForInflation()
281 countDownLatch.countDown(); in runThenWaitForInflation()
285 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in runThenWaitForInflation()
/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/core/tests/utiltests/src/android/util/
DMemoryIntArrayTest.java267 CountDownLatch countDownLatch = new CountDownLatch(2); in testAshmemSizeMatchesMemoryIntArraySize() local
273 if (countDownLatch.getCount() == 1) { in testAshmemSizeMatchesMemoryIntArraySize()
274 countDownLatch.countDown(); in testAshmemSizeMatchesMemoryIntArraySize()
288 countDownLatch.countDown(); in testAshmemSizeMatchesMemoryIntArraySize()
289 countDownLatch.await(1000, TimeUnit.MILLISECONDS); in testAshmemSizeMatchesMemoryIntArraySize()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java92 CountDownLatch countDownLatch = new CountDownLatch(1); in stopUser() local
98 countDownLatch.countDown(); in stopUser()
107 countDownLatch.await(MAX_TIME_STOP_USER_IN_SECOND, TimeUnit.SECONDS); in stopUser()
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java53 CountDownLatch countDownLatch = new CountDownLatch(1); in testImageDispose() local
56 bufferedImage -> countDownLatch.countDown()); in testImageDispose()
63 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDispose()
142 CountDownLatch countDownLatch = new CountDownLatch(1); in testBufferedImageReleased() local
144 bufferedImage -> countDownLatch.countDown()); in testBufferedImageReleased()
149 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testBufferedImageReleased()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DTestableDeviceConfigTest.java94 CountDownLatch countDownLatch = new CountDownLatch(1); in testListener() local
102 countDownLatch.countDown(); in testListener()
108 assertThat(countDownLatch.await( in testListener()
/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java375 final CountDownLatch countDownLatch = new CountDownLatch(1); in testOnPropertiesChangedListener() local
381 countDownLatch.countDown(); in testOnPropertiesChangedListener()
388 assertThat(countDownLatch.await( in testOnPropertiesChangedListener()
399 CountDownLatch countDownLatch = new CountDownLatch(1); in testOnPropertyChangedListener() local
405 countDownLatch.countDown(); in testOnPropertyChangedListener()
412 assertThat(countDownLatch.await( in testOnPropertyChangedListener()
/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/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackChangedListenerTest.java368 void setDetachedFromWindowLatch(CountDownLatch countDownLatch) { in setDetachedFromWindowLatch() argument
369 mOnDetachedFromWindowCountDownLatch = countDownLatch; in setDetachedFromWindowLatch()