/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/ |
D | TargetPackageUtils.java | 70 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/ |
D | NotificationContentInflaterTest.java | 175 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/ |
D | CountDownResultReceiver.java | 27 public CountDownResultReceiver(CountDownLatch countDownLatch) { in CountDownResultReceiver() argument 29 mCountDownLatch = countDownLatch; in CountDownResultReceiver()
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | MemoryIntArrayTest.java | 267 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/ |
D | UserLifecycleStressTest.java | 92 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/ |
D | ImagePoolImplTest.java | 53 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/ |
D | TestableDeviceConfigTest.java | 94 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/ |
D | DeviceConfigTest.java | 375 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/ |
D | ConcurrentUtils.java | 104 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/ |
D | TaskStackChangedListenerTest.java | 368 void setDetachedFromWindowLatch(CountDownLatch countDownLatch) { in setDetachedFromWindowLatch() argument 369 mOnDetachedFromWindowCountDownLatch = countDownLatch; in setDetachedFromWindowLatch()
|