/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/ |
H A D | SearchHistoryManagerTest.java | 42 private CountDownLatch mLatch ; field in SearchHistoryManagerTest 73 mLatch = new CountDownLatch(2); in testAddHistory() 78 mLatch.countDown(); in testAddHistory() 96 mLatch = new CountDownLatch(2); in testDeleteHistory() 101 mLatch.countDown(); in testDeleteHistory() 108 mLatch.countDown(); in testDeleteHistory() 123 mLatch = new CountDownLatch(2); in testDeleteHistory() 132 mLatch = new CountDownLatch(2); in testGetHistoryList() 140 mLatch.countDown(); in testGetHistoryList() 148 mLatch = new CountDownLatch(2); in testGetHistoryList() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | AsyncResultHolder.java | 35 private final CountDownLatch mLatch; field in AsyncResultHolder 39 mLatch = new CountDownLatch(1); in AsyncResultHolder() 49 if (mLatch.getCount() > 0) { in set() 51 mLatch.countDown(); in set() 66 return mLatch.await(timeOut, TimeUnit.MILLISECONDS) ? mResult : defaultValue; in get()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
H A D | CarLocationServiceTest.java | 219 mLatch.await(); in testLoadsLocationWithHeadlessSystemUser() 241 mLatch.await(); in testDoesNotLoadLocationWhenNoFileExists() 256 mLatch.await(); in testDoesNotLoadLocationFromIncompleteFile() 271 mLatch.await(); in testDoesNotLoadLocationFromCorruptFile() 287 mLatch.await(); in testDoesNotLoadIncompleteLocation() 306 mLatch.await(); in testDoesNotLoadOldLocation() 321 mLatch.await(); in testStoresLocationUponShutdownPrepare() 337 mLatch.await(); in testStoresLocationUponShutdownPrepare() 375 mLatch.await(); in testDoesNotStoreNullLocation() 383 mLatch.await(); in testDoesNotStoreNullLocation() [all …]
|
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | NonRequiredPackageDeleteObserver.java | 37 private final CountDownLatch mLatch; field in NonRequiredPackageDeleteObserver 41 this.mLatch = new CountDownLatch(packageCount); in NonRequiredPackageDeleteObserver() 49 mLatch.notifyAll(); in packageDeleted() 58 mLatch.countDown(); in packageDeleted() 63 mLatch.await(PACKAGE_DELETE_TIMEOUT_SEC, TimeUnit.SECONDS); in awaitPackagesDeletion()
|
/aosp12/packages/services/Car/car-test-lib/src/android/car/test/util/ |
H A D | BlockingResultReceiver.java | 35 private final CountDownLatch mLatch = new CountDownLatch(1); field in BlockingResultReceiver 53 + mLatch.getCount()); in send() 54 Preconditions.checkState(mLatch.getCount() == 1, in send() 58 mLatch.countDown(); in send() 62 boolean called = mLatch.await(mTimeoutMs, TimeUnit.MILLISECONDS); in assertCalled()
|
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
H A D | AdbRestoreFinishedLatch.java | 39 final CountDownLatch mLatch; field in AdbRestoreFinishedLatch 46 mLatch = new CountDownLatch(1); in AdbRestoreFinishedLatch() 58 latched = mLatch.await(fullBackupAgentTimeoutMillis, TimeUnit.MILLISECONDS); in await() 74 mLatch.countDown(); in operationComplete() 83 mLatch.countDown(); in handleCancel()
|
/aosp12/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadScanner.java | 71 private CountDownLatch mLatch; field in DownloadScanner 84 scanner.mLatch = new CountDownLatch(1); in requestScanBlocking() 87 scanner.mLatch.await(SCAN_TIMEOUT, TimeUnit.MILLISECONDS); in requestScanBlocking() 161 if (mLatch != null) { in onScanCompleted() 162 mLatch.countDown(); in onScanCompleted() 183 if (mLatch != null) { in onScanCompleted() 184 mLatch.countDown(); in onScanCompleted()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | TestVrActivity.java | 29 private CountDownLatch mLatch; field in TestVrActivity 34 mLatch = new CountDownLatch(1); in onCreate() 40 mLatch.countDown(); in onStart() 53 result = mLatch.await(2L, TimeUnit.SECONDS); in waitForActivityStart()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
H A D | ProvisioningResultListener.java | 42 private final CountDownLatch mLatch = new CountDownLatch(3); field in ProvisioningResultListener 55 mLatch.countDown(); in onReceive() 59 mLatch.countDown(); in onReceive() 83 return mLatch.await(timeoutSeconds, TimeUnit.SECONDS); in await() 88 mLatch.countDown(); in setPreprovisioningActivityResult()
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | PersisterQueueTests.java | 322 private CountDownLatch mLatch; field in PersisterQueueTests.TestWriteQueueItemFactory 329 mLatch = new CountDownLatch(countDown); in setExpectedProcessedItemNumber() 334 return mLatch.await(timeoutInMilliseconds, TimeUnit.MILLISECONDS); in waitForAllExpectedItemsProcessed() 338 return new TestItem(mItemCount, mLatch); in createItem() 342 return new FilterableTestItem(shouldKeepOnFilter, mItemCount, mLatch); in createFilterableItem() 349 private CountDownLatch mLatch; field in PersisterQueueTests.TestItem 353 mLatch = latch; in TestItem() 359 if (mLatch != null) { in process() 362 mLatch.countDown(); in process() 377 CountDownLatch mLatch) { in FilterableTestItem() argument [all …]
|
/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
H A D | ThemeOverlayManagerTest.java | 70 CountDownLatch mLatch; field in ThemeOverlayManagerTest 81 mLatch = new CountDownLatch(1); in setUp() 83 mCallback = result -> mLatch.countDown(); in setUp() 102 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldSetEnabled() 114 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldGetOverlayInfo() 144 mLatch.await(5, TimeUnit.SECONDS); in testDefaultDisabled_applyOverlays_shouldEnabled() 161 mLatch.await(5, TimeUnit.SECONDS); in testDefaultEnabled_applyOverlays_shouldDisabled()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/ |
H A D | BluetoothTestUtils.java | 74 private final CountDownLatch mLatch; field in BluetoothTestUtils.LatchBroadcastReceiver 78 mLatch = latch; in LatchBroadcastReceiver() 86 mLatch.countDown(); in onReceive() 88 mLatch.countDown(); in onReceive()
|
/aosp12/packages/services/Car/car-test-lib/src/android/car/test/mocks/ |
H A D | BlockingAnswer.java | 51 private final CountDownLatch mLatch = new CountDownLatch(1); field in BlockingAnswer 72 Log.v(TAG, "Unblocking " + mLatch); in unblock() 73 mLatch.countDown(); in unblock() 107 JavaMockitoHelper.silentAwait(mLatch, mTimeoutMs); in answer()
|
H A D | SyncAnswer.java | 44 private final CountDownLatch mLatch = new CountDownLatch(1); field in SyncAnswer 73 JavaMockitoHelper.await(mLatch, timeoutMs); in await() 79 mLatch.countDown(); in answer()
|
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A D | PacProxyManagerTest.java | 103 private final CountDownLatch mLatch = new CountDownLatch(1); field in PacProxyManagerTest.TestPacProxyInstalledListener 107 mLatch.countDown(); in onPacProxyInstalled() 111 final boolean result = mLatch.await(CALLBACK_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForCallback() 117 private final CountDownLatch mLatch = new CountDownLatch(1); field in PacProxyManagerTest.ProxyBroadcastReceiver 139 mLatch.countDown(); in onReceive() 144 final boolean result = mLatch.await(PROXY_CHANGED_BROADCAST_TIMEOUT_MS, in waitForProxyChanged()
|
H A D | DnsResolverTest.java | 209 private final CountDownLatch mLatch = new CountDownLatch(1); field in DnsResolverTest.VerifyCancelCallback 226 return mLatch.await(timeout, TimeUnit.MILLISECONDS); in waitForAnswer() 241 mLatch.countDown(); in onAnswer() 250 mLatch.countDown(); in onAnswer() 254 mLatch.countDown(); in onAnswer() 260 mLatch.countDown(); in onError() 517 private final CountDownLatch mLatch = new CountDownLatch(1); field in DnsResolverTest.VerifyCancelInetAddressCallback 530 return mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForAnswer() 563 mLatch.countDown(); in onAnswer() 571 mLatch.countDown(); in onAnswer() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | AbstractCrossUserContentResolverTest.java | 164 private final CountDownLatch mLatch; field in AbstractCrossUserContentResolverTest.CrossUserContentServiceConnection 167 mLatch = latch; in CrossUserContentServiceConnection() 173 mLatch.countDown(); in onServiceConnected() 186 private final CountDownLatch mLatch; field in AbstractCrossUserContentResolverTest.TestContentObserver 192 mLatch = latch; in TestContentObserver() 200 mLatch.countDown(); in onChange()
|
/aosp12/packages/apps/Settings/src/com/android/settings/network/ |
H A D | CarrierConfigChangedReceiver.java | 34 private final CountDownLatch mLatch; field in CarrierConfigChangedReceiver 37 mLatch = latch; in CarrierConfigChangedReceiver() 59 mLatch.countDown(); in checkSubscriptionIndex()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/ |
H A D | ActivityLifecycleWaiter.java | 29 private final CountDownLatch mLatch = new CountDownLatch(1); field in ActivityLifecycleWaiter 42 mLatch.countDown(); in onActivityLifecycleChanged() 54 mLatch.await(millis, TimeUnit.MILLISECONDS); in waitForStage()
|
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
H A D | PacketReaderTest.java | 71 protected CountDownLatch mLatch; field in PacketReaderTest 104 mLatch.countDown(); in handlePacket() 110 mLatch.countDown(); in onStart() 116 mLatch.countDown(); in onStop() 144 mLatch = new CountDownLatch(1); in resetLatch() 149 mLatch.await(1000, TimeUnit.MILLISECONDS); in waitForActivity()
|
/aosp12/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | Completable.java | 55 private final CountDownLatch mLatch = new CountDownLatch(1); field in Completable.ValueBase 162 mLatch.countDown(); in onComplete() 215 if (!cancellationGroup.registerLatch(mLatch)) { in await() 222 cancellationGroup.unregisterLatch(mLatch); in await() 228 return mLatch.await(timeout, timeUnit); in awaitInner() 243 mLatch.await(); in await()
|
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
H A D | IkeSocketTestBase.java | 184 final TestCountDownLatch mLatch; field in IkeSocketTestBase.DummyPacketReceiver 187 mLatch = latch; in DummyPacketReceiver() 194 mLatch.countDown(); in handlePacket() 199 private CountDownLatch mLatch; field in IkeSocketTestBase.TestCountDownLatch 206 mLatch = new CountDownLatch(1); in reset() 210 mLatch.countDown(); in countDown() 215 if (!mLatch.await(TIMEOUT, TimeUnit.MILLISECONDS)) { in await()
|
/aosp12/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | OneTimeSettingsListener.java | 38 private final CountDownLatch mLatch = new CountDownLatch(1); field in OneTimeSettingsListener 63 mLatch.countDown(); in onChange() 72 final boolean updated = mLatch.await(mTimeoutMs, TimeUnit.MILLISECONDS); in assertCalled()
|
/aosp12/packages/services/Car/car-test-lib/src/android/car/testapi/ |
H A D | BlockingUserLifecycleListener.java | 61 private final CountDownLatch mLatch = new CountDownLatch(1); field in BlockingUserLifecycleListener 214 if (mExpectedEventTypesLeft.isEmpty() && mLatch.getCount() == 1) { in onEvent() 215 Log.d(TAG, "all expected events received, counting down " + mLatch); in onEvent() 216 mLatch.countDown(); in onEvent() 294 if (!mLatch.await(mTimeoutMs, TimeUnit.MILLISECONDS)) { in waitForExpectedEvents()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/ |
H A D | CarPowerManagerUnitTest.java | 514 private final CountDownLatch mLatch; field in CarPowerManagerUnitTest.WaitablePowerStateListener 524 mLatch = new CountDownLatch(initialCount); in WaitablePowerStateListener() 528 mLatch.countDown(); in WaitablePowerStateListener() 533 JavaMockitoHelper.await(mLatch, WAIT_TIMEOUT_MS); in await() 545 private final CountDownLatch mLatch; field in CarPowerManagerUnitTest.WaitablePowerStateListenerWithCompletion 548 mLatch = new CountDownLatch(initialCount); in WaitablePowerStateListenerWithCompletion() 558 mLatch.countDown(); in WaitablePowerStateListenerWithCompletion() 563 JavaMockitoHelper.await(mLatch, WAIT_TIMEOUT_MS); in await() 621 private final CountDownLatch mLatch = new CountDownLatch(1); field in CarPowerManagerUnitTest.MockedPowerPolicyListener 627 mLatch.countDown(); in onPolicyChanged() [all …]
|