/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | ExplicitHealthCheckServiceTest.java | 51 CountDownLatch countDownLatch = new CountDownLatch(1); in testNotifyHealthCheckPassed() local 55 countDownLatch.countDown(); in testNotifyHealthCheckPassed() 59 countDownLatch.await(); in testNotifyHealthCheckPassed()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ScreenshotTests.java | 125 CountDownLatch countDownLatch = new CountDownLatch(1); in testScreenshotSecureLayers() local 129 .addTransactionCommittedListener(Runnable::run, countDownLatch::countDown) in testScreenshotSecureLayers() 132 countDownLatch.await(WAIT_TIME_S, TimeUnit.SECONDS)); in testScreenshotSecureLayers() 204 CountDownLatch countDownLatch = new CountDownLatch(1); in testCaptureDisplay() local 209 .addTransactionCommittedListener(Runnable::run, countDownLatch::countDown) in testCaptureDisplay() 213 countDownLatch.await(WAIT_TIME_S, TimeUnit.SECONDS)); in testCaptureDisplay() 289 CountDownLatch countDownLatch = new CountDownLatch(1); in addChildSc() local 293 countDownLatch.countDown(); in addChildSc() 297 countDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS); in addChildSc()
|
D | SynchedDeviceConfigTests.java | 101 final CountDownLatch countDownLatch = new CountDownLatch(4); in testWhenUpdated_onlyEnabledChanges() local 105 countDownLatch.countDown(); in testWhenUpdated_onlyEnabledChanges() 115 assertThat(countDownLatch.await( in testWhenUpdated_onlyEnabledChanges()
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | TestableDeviceConfigTest.java | 173 CountDownLatch countDownLatch = new CountDownLatch(1); in testListener_setProperty() local 180 countDownLatch.countDown(); in testListener_setProperty() 186 assertThat(countDownLatch.await( in testListener_setProperty() 197 CountDownLatch countDownLatch = new CountDownLatch(1); in testListener_setProperties() local 207 countDownLatch.countDown(); in testListener_setProperties() 214 assertThat(countDownLatch.await( in testListener_setProperties() 225 CountDownLatch countDownLatch = new CountDownLatch(1); in testListener_deleteProperty() local 232 countDownLatch.countDown(); in testListener_deleteProperty() 238 assertThat(countDownLatch.await( in testListener_deleteProperty()
|
/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/services/tests/mockingservicestests/src/android/service/games/ |
D | GameSessionTest.java | 120 CountDownLatch countDownLatch = new CountDownLatch(1); in takeScreenshot_gameManagerException_returnsInternalError() local 128 countDownLatch.countDown(); in takeScreenshot_gameManagerException_returnsInternalError() 137 assertTrue(countDownLatch.await( in takeScreenshot_gameManagerException_returnsInternalError() 149 CountDownLatch countDownLatch = new CountDownLatch(1); in takeScreenshot_gameManagerError_returnsInternalError() local 157 countDownLatch.countDown(); in takeScreenshot_gameManagerError_returnsInternalError() 166 assertTrue(countDownLatch.await( in takeScreenshot_gameManagerError_returnsInternalError() 178 CountDownLatch countDownLatch = new CountDownLatch(1); in takeScreenshot_gameManagerSuccess() local 189 countDownLatch.countDown(); in takeScreenshot_gameManagerSuccess() 193 assertTrue(countDownLatch.await( in takeScreenshot_gameManagerSuccess()
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | MemoryIntArrayTest.java | 274 CountDownLatch countDownLatch = new CountDownLatch(2); in testAshmemSizeMatchesMemoryIntArraySize() local 280 if (countDownLatch.getCount() == 1) { in testAshmemSizeMatchesMemoryIntArraySize() 281 countDownLatch.countDown(); in testAshmemSizeMatchesMemoryIntArraySize() 295 countDownLatch.countDown(); in testAshmemSizeMatchesMemoryIntArraySize() 296 countDownLatch.await(1000, TimeUnit.MILLISECONDS); in testAshmemSizeMatchesMemoryIntArraySize()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentInflaterTest.java | 234 CountDownLatch countDownLatch = new CountDownLatch(1); in testInflationIsRetriedIfAsyncFails() local 250 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails() 256 countDownLatch.countDown(); in testInflationIsRetriedIfAsyncFails() 271 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in testInflationIsRetriedIfAsyncFails() 396 CountDownLatch countDownLatch = new CountDownLatch(1); in inflateAndWait() local 406 countDownLatch.countDown(); in inflateAndWait() 415 countDownLatch.countDown(); in inflateAndWait() 425 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in inflateAndWait()
|
D | NotificationRowContentBinderImplTest.kt | 232 val countDownLatch = CountDownLatch(1) in <lambda>() constant 248 countDownLatch.countDown() in <lambda>() 253 countDownLatch.countDown() in <lambda>() 273 Assert.assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)) in <lambda>() 537 val countDownLatch = CountDownLatch(1) in <lambda>() constant 546 countDownLatch.countDown() in <lambda>() 557 countDownLatch.countDown() in <lambda>() 568 Assert.assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)) in <lambda>()
|
D | NotificationTestHelper.java | 682 CountDownLatch countDownLatch = new CountDownLatch(1); in inflateAndWait() local 683 mBindStage.requestRebind(entry, en -> countDownLatch.countDown()); in inflateAndWait() 685 assertTrue(countDownLatch.await(500, TimeUnit.MILLISECONDS)); in inflateAndWait()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserLifecycleStressTest.java | 243 runWithLatch("stop user", countDownLatch -> { in stopUser() 248 countDownLatch.countDown(); in stopUser() 316 final CountDownLatch countDownLatch = new CountDownLatch(1); in runWithLatch() local 319 consumer.acceptOrThrow(countDownLatch); in runWithLatch() 320 final boolean doneBeforeTimeout = countDownLatch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in runWithLatch()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ConcurrentUtils.java | 107 public static void waitForCountDownNoInterrupt(CountDownLatch countDownLatch, long timeoutMs, 110 if (!countDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS)) {
|
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/serviceforward/ |
D | ServiceManager.java | 118 CountDownLatch countDownLatch = new CountDownLatch(1); in bindServiceSync() local 124 countDownLatch.countDown(); in bindServiceSync() 143 boolean success = countDownLatch.await(SERVICE_DELAY_MS, TimeUnit.MILLISECONDS); in bindServiceSync()
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerNativeTest.java | 159 private boolean waitForCountDown(CountDownLatch countDownLatch, long timeoutInSeconds) { in waitForCountDown() argument 161 return !countDownLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForCountDown()
|
D | AttachedChoreographerTest.java | 581 private boolean waitForCountDown(CountDownLatch countDownLatch, long timeoutInSeconds) { in waitForCountDown() argument 583 return !countDownLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForCountDown()
|
/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
D | BlobStoreManager.java | 551 final CountDownLatch countDownLatch = new CountDownLatch(1); in waitForIdle() local 552 mService.waitForIdle(new RemoteCallback((result) -> countDownLatch.countDown())); in waitForIdle() 553 if (!countDownLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)) { in waitForIdle()
|
/frameworks/base/keystore/java/android/security/ |
D | KeyChain.java | 1085 final CountDownLatch countDownLatch = new CountDownLatch(1); in bindAsUser() local 1094 countDownLatch.countDown(); in bindAsUser() 1100 countDownLatch.countDown(); in bindAsUser() 1123 countDownLatch.await(); in bindAsUser()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 1646 final CountDownLatch countDownLatch = new CountDownLatch(1); in testSetPkgStateLibraryFiles_addNewFiles() local 1650 countDownLatch.countDown(); in testSetPkgStateLibraryFiles_addNewFiles() 1659 assertThat(countDownLatch.getCount(), is(0L)); in testSetPkgStateLibraryFiles_addNewFiles() 1670 final CountDownLatch countDownLatch = new CountDownLatch(1); in testSetPkgStateLibraryFiles_removeOneExistingFile() local 1674 countDownLatch.countDown(); in testSetPkgStateLibraryFiles_removeOneExistingFile() 1683 assertThat(countDownLatch.getCount(), is(0L)); in testSetPkgStateLibraryFiles_removeOneExistingFile() 1693 final CountDownLatch countDownLatch = new CountDownLatch(1); in testSetPkgStateLibraryFiles_changeOneOfFile() local 1697 countDownLatch.countDown(); in testSetPkgStateLibraryFiles_changeOneOfFile() 1706 assertThat(countDownLatch.getCount(), is(0L)); in testSetPkgStateLibraryFiles_changeOneOfFile() 1716 final CountDownLatch countDownLatch = new CountDownLatch(1); in testSetPkgStateLibraryFiles_nothingChanged() local [all …]
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/content/pm/ |
D | PackageInstallerBenchmark.java | 75 @NonNull CountDownLatch countDownLatch) { in SessionCallback() argument 77 mCountDownLatch = countDownLatch; in SessionCallback()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccController.java | 1818 final CountDownLatch countDownLatch = new CountDownLatch(1); in dump() local 1824 countDownLatch.countDown(); in dump() 1830 countDownLatch.countDown(); in dump() 1835 if (!countDownLatch.await(EUICC_DUMP_TIME_OUT_SECONDS, TimeUnit.SECONDS)) { in dump()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 8956 CountDownLatch countDownLatch = new CountDownLatch(1); in syncInputTransactions() local 8957 t.addWindowInfosReportedListener(countDownLatch::countDown).apply(); in syncInputTransactions() 8958 countDownLatch.await(SYNC_INPUT_TRANSACTIONS_TIMEOUT_MS, TimeUnit.MILLISECONDS); in syncInputTransactions()
|