/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/ |
D | SearchHistoryManagerTest.java | 42 private CountDownLatch mLatch ; field in SearchHistoryManagerTest 73 mLatch = new CountDownLatch(2); in testAddHistory() 78 mLatch.countDown(); in testAddHistory() 88 mLatch.await(1, TimeUnit.SECONDS); in testAddHistory() 96 mLatch = new CountDownLatch(2); in testDeleteHistory() 101 mLatch.countDown(); in testDeleteHistory() 108 mLatch.countDown(); in testDeleteHistory() 114 mLatch.await(1, TimeUnit.SECONDS); in testDeleteHistory() 123 mLatch = new CountDownLatch(2); in testDeleteHistory() 125 mLatch.await(1, TimeUnit.SECONDS); in testDeleteHistory() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarLocationServiceTest.java | 91 private CountDownLatch mLatch; field in CarLocationServiceTest 117 mLatch = new CountDownLatch(1); in setUp() 123 mLatch.countDown(); in setUp() 221 mLatch.await(); in testLoadsLocationWithHeadlessSystemUser() 243 mLatch.await(); in testDoesNotLoadLocationWhenNoFileExists() 258 mLatch.await(); in testDoesNotLoadLocationFromIncompleteFile() 273 mLatch.await(); in testDoesNotLoadLocationFromCorruptFile() 289 mLatch.await(); in testDoesNotLoadIncompleteLocation() 308 mLatch.await(); in testDoesNotLoadOldLocation() 323 mLatch.await(); in testStoresLocationUponShutdownPrepare() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocketTestBase.java | 169 final TestCountDownLatch mLatch; field in IkeSocketTestBase.DummyPacketReceiver 172 mLatch = latch; in DummyPacketReceiver() 178 mLatch.countDown(); in handlePacket() 183 private CountDownLatch mLatch; field in IkeSocketTestBase.TestCountDownLatch 190 mLatch = new CountDownLatch(1); in reset() 194 mLatch.countDown(); in countDown() 199 if (!mLatch.await(TIMEOUT, TimeUnit.MILLISECONDS)) { in await()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
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()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
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()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/theme/ |
D | ThemeOverlayManagerTest.java | 63 CountDownLatch mLatch; field in ThemeOverlayManagerTest 74 mLatch = new CountDownLatch(1); in setUp() 76 mCallback = result -> mLatch.countDown(); in setUp() 106 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldSetEnabled() 118 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldGetOverlayInfo() 148 mLatch.await(5, TimeUnit.SECONDS); in testDefaultDisabled_applyOverlays_shouldEnabled() 165 mLatch.await(5, TimeUnit.SECONDS); in testDefaultEnabled_applyOverlays_shouldDisabled()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
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()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/ |
D | ScanFragment.java | 291 private CountDownLatch mLatch; field in ScanFragment.ChannelScanTask 388 if (mLatch != null) { in stopScan() 389 mLatch.countDown(); in stopScan() 413 mLatch = new CountDownLatch(1); in scanChannels() 415 mLatch.await(CHANNEL_SCAN_PERIOD_MS, TimeUnit.MILLISECONDS); in scanChannels() 507 if (mLatch != null) { in onChannelScanDone() 508 mLatch.countDown(); in onChannelScanDone()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/ |
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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/ |
D | BaseTimeZoneAdapterTest.java | 70 private final CountDownLatch mLatch = new CountDownLatch(1); field in BaseTimeZoneAdapterTest.Observer 81 mLatch.countDown(); in onChanged() 85 mLatch.await(2L, TimeUnit.SECONDS); in await()
|
/packages/modules/Cronet/tests/apitest/src/org/chromium/net/test/ |
D | CronetApiTest.java | 82 private final CountDownLatch mLatch = new CountDownLatch(1); field in CronetApiTest.VerifyUrlRequestCallback 90 return mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForAnswer() 116 mLatch.countDown(); in onSucceeded()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ScanManager.java | 101 private CountDownLatch mLatch; field in ScanManager 243 mLatch.countDown(); in callbackDone() 567 mLatch = new CountDownLatch(1); in resetCountDownLatch() 573 return mLatch.await(OPERATION_TIME_OUT_MILLIS, TimeUnit.MILLISECONDS); in waitForCallback()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 2612 private final CountDownLatch mLatch; field in NetworkMonitor.ProbeThread 2617 mLatch = latch; in ProbeThread() 2635 while (mLatch.getCount() > 0) { in run() 2636 mLatch.countDown(); in run() 2640 mLatch.countDown(); in run()
|