/aosp12/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
H A D | ExplicitHealthCheckServiceTest.java | 51 CountDownLatch countDownLatch = new CountDownLatch(1); in testNotifyHealthCheckPassed() local 55 countDownLatch.countDown(); in testNotifyHealthCheckPassed() 59 countDownLatch.await(); in testNotifyHealthCheckPassed()
|
/aosp12/frameworks/base/core/tests/utiltests/src/android/util/ |
H A 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()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
H A D | TestableDeviceConfigTest.java | 146 CountDownLatch countDownLatch = new CountDownLatch(1); in testListener_setProperty() local 153 countDownLatch.countDown(); in testListener_setProperty() 159 assertThat(countDownLatch.await( in testListener_setProperty() 168 CountDownLatch countDownLatch = new CountDownLatch(1); in testListener_setProperties() local 178 countDownLatch.countDown(); in testListener_setProperties() 185 assertThat(countDownLatch.await( in testListener_setProperties()
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | WifiShellCommand.java | 174 mCountDownLatch = countDownLatch; in WifiScorer() 452 countDownLatch.countDown(); in onCommand() 461 countDownLatch.countDown(); in onCommand() 597 countDownLatch.countDown(); in onCommand() 603 countDownLatch.countDown(); in onCommand() 619 countDownLatch.countDown(); in onCommand() 625 countDownLatch.countDown(); in onCommand() 642 countDownLatch.countDown(); in onCommand() 648 countDownLatch.countDown(); in onCommand() 1414 countDownLatch.countDown(); in waitForWifiEnabled() [all …]
|
H A D | WifiServiceImpl.java | 2860 final CountDownLatch countDownLatch = new CountDownLatch(1); in triggerConnectAndReturnStatus() local 2866 countDownLatch.countDown(); in triggerConnectAndReturnStatus() 2871 countDownLatch.countDown(); in triggerConnectAndReturnStatus() 2884 countDownLatch.await(RUN_WITH_SCISSORS_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in triggerConnectAndReturnStatus()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationContentInflaterTest.java | 220 CountDownLatch countDownLatch = new CountDownLatch(1); in testInflationIsRetriedIfAsyncFails() local 235 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails() 241 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails() 255 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in testInflationIsRetriedIfAsyncFails() 346 CountDownLatch countDownLatch = new CountDownLatch(1); in inflateAndWait() local 356 countDownLatch.countDown(); in inflateAndWait() 365 countDownLatch.countDown(); in inflateAndWait() 375 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in inflateAndWait()
|
H A D | NotificationTestHelper.java | 507 CountDownLatch countDownLatch = new CountDownLatch(1); in inflateAndWait() local 508 mBindStage.requestRebind(entry, en -> countDownLatch.countDown()); in inflateAndWait() 510 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in inflateAndWait()
|
/aosp12/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/ |
H A D | ImagePoolImplTest.java | 54 CountDownLatch countDownLatch = new CountDownLatch(1); in testImageDispose() local 57 bufferedImage -> countDownLatch.countDown()); in testImageDispose() 64 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDispose() 143 CountDownLatch countDownLatch = new CountDownLatch(1); in testBufferedImageReleased() local 145 bufferedImage -> countDownLatch.countDown()); in testBufferedImageReleased() 150 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testBufferedImageReleased()
|
/aosp12/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/ |
H A D | TargetPackageUtils.java | 83 final CountDownLatch countDownLatch = new CountDownLatch(1); in startTargetPackage() local 85 intent.putExtra(Intent.EXTRA_RESULT_RECEIVER, new CountDownResultReceiver(countDownLatch)); in startTargetPackage() 90 final boolean targetPackageIdleSuccess = countDownLatch.await(AWAIT_SERVICE_CONNECT_MS, in startTargetPackage() 127 final CountDownLatch countDownLatch = new CountDownLatch(1); in bindAndWaitForConnectedService() local 131 countDownLatch.countDown(); in bindAndWaitForConnectedService() 144 final boolean connectedSuccess = countDownLatch.await(AWAIT_SERVICE_CONNECT_MS, in bindAndWaitForConnectedService()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A 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()
|
/aosp12/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/ |
H A D | CountDownResultReceiver.java | 27 public CountDownResultReceiver(CountDownLatch countDownLatch) { in CountDownResultReceiver() argument 29 mCountDownLatch = countDownLatch; in CountDownResultReceiver()
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | ConcurrentUtils.java | 107 public static void waitForCountDownNoInterrupt(CountDownLatch countDownLatch, long timeoutMs, 110 if (!countDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS)) {
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | ScreenshotTests.java | 137 CountDownLatch countDownLatch = new CountDownLatch(1); in addChildSc() local 141 countDownLatch.countDown(); in addChildSc() 145 countDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS); in addChildSc()
|
H A D | TaskStackChangedListenerTest.java | 510 void setDetachedFromWindowLatch(CountDownLatch countDownLatch) { in setDetachedFromWindowLatch() argument 511 mOnDetachedFromWindowCountDownLatch = countDownLatch; in setDetachedFromWindowLatch()
|
/aosp12/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
H A D | BlobStoreManager.java | 535 final CountDownLatch countDownLatch = new CountDownLatch(1); in waitForIdle() local 536 mService.waitForIdle(new RemoteCallback((result) -> countDownLatch.countDown())); in waitForIdle() 537 if (!countDownLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)) { in waitForIdle()
|
/aosp12/frameworks/base/keystore/java/android/security/ |
H A D | KeyChain.java | 1085 final CountDownLatch countDownLatch = new CountDownLatch(1); in bindAsUser() local 1094 countDownLatch.countDown(); in bindAsUser() 1100 countDownLatch.countDown(); in bindAsUser() 1122 countDownLatch.await(); in bindAsUser()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | ExpandableBinaryDictionary.java | 666 final CountDownLatch countDownLatch = new CountDownLatch(1); in waitAllTasksForTests() local 670 countDownLatch.countDown(); in waitAllTasksForTests() 674 countDownLatch.await(); in waitAllTasksForTests()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
H A D | EuiccController.java | 1312 final CountDownLatch countDownLatch = new CountDownLatch(1); in dump() local 1318 countDownLatch.countDown(); in dump() 1324 countDownLatch.countDown(); in dump() 1329 if (!countDownLatch.await(EUICC_DUMP_TIME_OUT_SECONDS, TimeUnit.SECONDS)) { in dump()
|