/packages/modules/Nfc/NfcNci/src/com/android/nfc/ |
D | NfcWatchdog.java | 40 CountDownLatch mCountDownLatch; field in NfcWatchdog 52 if (mCountDownLatch != null) { in notifyHasReturned() 53 mCountDownLatch.countDown(); in notifyHasReturned() 65 if (mCountDownLatch != null) { in monitor() 69 mCountDownLatch = new CountDownLatch(1); in monitor() 104 if (!mCountDownLatch.await(NFC_SERVICE_TIMEOUT_MS, in run() 109 mCountDownLatch = null; in run()
|
D | NfcCallbackResultReceiver.java | 25 CountDownLatch mCountDownLatch; field in NfcCallbackResultReceiver 30 mCountDownLatch = latch; in NfcCallbackResultReceiver() 36 mCountDownLatch.countDown(); in onReceiveResult()
|
/packages/services/Car/tests/common_utils/src/com/android/car/test/ |
D | TestPropertyAsyncCallback.java | 33 private final CountDownLatch mCountDownLatch; field in TestPropertyAsyncCallback 48 mCountDownLatch = new CountDownLatch(mNumberOfRequests); in TestPropertyAsyncCallback() 64 mCountDownLatch.countDown(); in onSuccess() 79 mCountDownLatch.countDown(); in onSuccess() 94 mCountDownLatch.countDown(); in onFailure() 98 boolean res = mCountDownLatch.await(timeoutInMs, TimeUnit.MILLISECONDS); in waitAndFinish()
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | PanelSlicesLoaderCountdownLatch.java | 45 private final CountDownLatch mCountDownLatch; field in PanelSlicesLoaderCountdownLatch 50 mCountDownLatch = new CountDownLatch(countdownSize); in PanelSlicesLoaderCountdownLatch() 62 mCountDownLatch.countDown(); in markSliceLoaded() 80 if ((mCountDownLatch.getCount() == 0) && !slicesReadyToLoad) { in isPanelReadyToLoad()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DynamicDataObserver.java | 33 private CountDownLatch mCountDownLatch; field in DynamicDataObserver 38 mCountDownLatch = new CountDownLatch(1); in DynamicDataObserver() 59 return mCountDownLatch; in getCountDownLatch() 72 mCountDownLatch.countDown(); in post()
|
D | UiBlockerController.java | 42 private CountDownLatch mCountDownLatch; field in UiBlockerController 52 mCountDownLatch = new CountDownLatch(keys.size()); in UiBlockerController() 71 mCountDownLatch.await(mTimeoutMillis, TimeUnit.MILLISECONDS); in start() 95 mCountDownLatch.countDown(); in countDown()
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/ |
D | DisplayHashingServiceImplTest.java | 141 private CountDownLatch mCountDownLatch = new CountDownLatch(1); field in DisplayHashingServiceImplTest.SyncDisplayHashResultCallback 144 mCountDownLatch = new CountDownLatch(1); in reset() 149 mCountDownLatch.await(DISPLAY_HASH_WAIT_TIME_S, TimeUnit.SECONDS); in getDisplayHash() 157 mCountDownLatch.await(DISPLAY_HASH_WAIT_TIME_S, TimeUnit.SECONDS); in getError() 166 mCountDownLatch.countDown(); in onDisplayHashResult() 172 mCountDownLatch.countDown(); in onDisplayHashError()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | FileDeleteUiTest.java | 71 if (mCountDownLatch != null) { 72 mCountDownLatch.countDown(); 78 private CountDownLatch mCountDownLatch; field in FileDeleteUiTest 113 mCountDownLatch = new CountDownLatch(1); in setUp() 119 mCountDownLatch = null; in tearDown() 174 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in testDeleteAllDocument()
|
D | CancelFromNotificationUiTest.java | 69 mCountDownLatch.countDown(); 74 private CountDownLatch mCountDownLatch; field in CancelFromNotificationUiTest 112 mCountDownLatch = new CountDownLatch(1); in setUp() 117 mCountDownLatch.countDown(); in tearDown() 118 mCountDownLatch = null; in tearDown() 185 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in testCopyDocument_CancelFromNotification() 240 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in ignored_testMoveDocument_CancelFromNotification()
|
D | FileCopyUiTest.java | 88 if (mCountDownLatch != null) { 89 mCountDownLatch.countDown(); 95 private CountDownLatch mCountDownLatch; field in FileCopyUiTest 222 mCountDownLatch = null; in tearDown() 388 mCountDownLatch = new CountDownLatch(1); in copyFiles() 401 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in copyFiles() 516 mCountDownLatch = new CountDownLatch(1); in testRecursiveCopyDocuments_InternalStorageToDownloadsProvider() 540 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in testRecursiveCopyDocuments_InternalStorageToDownloadsProvider()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/ |
D | ChreCommunication.java | 82 private CountDownLatch mCountDownLatch; field in ChreCommunication 182 if (mCountDownLatch == null || mCountDownLatch.getCount() == 0) { in queryNanoAppVersion() 187 boolean success = mCountDownLatch.await(1, TimeUnit.SECONDS); in queryNanoAppVersion() 273 mCountDownLatch = new CountDownLatch(1); in onComplete() 294 mCountDownLatch.countDown(); in onComplete() 312 mCountDownLatch.countDown(); in onComplete()
|
/packages/modules/Uwb/ranging/uwb_backend/src/com/android/ranging/uwb/backend/internal/ |
D | UwbHwSwitchHelper.java | 78 private final CountDownLatch mCountDownLatch; field in UwbHwSwitchHelper.AdapterStateCallback 82 mCountDownLatch = countDownLatch; in AdapterStateCallback() 91 mCountDownLatch.countDown(); in onStateChanged() 94 mCountDownLatch.countDown(); in onStateChanged()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/ |
D | ReportEventDisabledImplTest.java | 98 private final CountDownLatch mCountDownLatch; field in ReportEventDisabledImplTest.ReportEventTestCallback 103 mCountDownLatch = countDownLatch; in ReportEventTestCallback() 109 mCountDownLatch.countDown(); in onSuccess() 115 mCountDownLatch.countDown(); in onFailure()
|
D | UpdateAdCounterHistogramWorkerTest.java | 443 protected final CountDownLatch mCountDownLatch; field in UpdateAdCounterHistogramWorkerTest.UpdateAdCounterHistogramTestCallback 448 mCountDownLatch = countDownLatch; in UpdateAdCounterHistogramTestCallback() 454 mCountDownLatch.countDown(); in onSuccess() 460 mCountDownLatch.countDown(); in onFailure() 471 + mCountDownLatch in toString() 489 mCountDownLatch.countDown(); in onSuccess() 496 mCountDownLatch.countDown(); in onFailure()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/process/ |
D | IsolatedServiceBindingRunnerTest.java | 103 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in IsolatedServiceBindingRunnerTest 108 mCountDownLatch.countDown(); 113 mCountDownLatch.countDown(); 205 mCountDownLatch.await(CALLBACK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testLoadIsolatedService_packageManagerNameNotFoundException_failedFuture() 227 mCountDownLatch.await(CALLBACK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testRunIsolatedService_serviceBinderException_failedFutureOdpServiceException() 251 mCountDownLatch.await(CALLBACK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testRunIsolatedService_serviceBinderError_failedFutureOdpServiceException() 277 mCountDownLatch.await(CALLBACK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testRunIsolatedService_serviceBinderTimeout_failedFutureTimeoutException()
|
/packages/modules/Nfc/tests/cts/tests/src/android/nfc/cts/ |
D | NfcUtils.java | 109 private final CountDownLatch mCountDownLatch; field in NfcUtils.NfcStateChangeListener 113 mCountDownLatch = new CountDownLatch(1); in NfcStateChangeListener() 123 mCountDownLatch.countDown(); in onReceive() 129 boolean success = mCountDownLatch.await(20, TimeUnit.SECONDS); in awaitStateChange()
|
/packages/modules/Uwb/ranging/tests/multidevices/snippet/bluetooth/ |
D | BluetoothGattMultiDevicesServer.java | 116 private final CountDownLatch mCountDownLatch; field in BluetoothGattMultiDevicesServer.OobDataCallbackImpl 119 mCountDownLatch = countDownLatch; in OobDataCallbackImpl() 126 mCountDownLatch.countDown(); in onOobData() 134 mCountDownLatch.countDown(); in onError()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | PermissionUpdateListenerTest.java | 210 private final CountDownLatch mCountDownLatch; field in PermissionUpdateListenerTest.TestOnPermissionsChangedListener 213 mCountDownLatch = new CountDownLatch(expectedCallbackCount); in TestOnPermissionsChangedListener() 224 mCountDownLatch.countDown(); in onPermissionsChanged() 234 mCountDownLatch.await(TIMEOUT, TimeUnit.MILLISECONDS); in waitForPermissionChangedCallbacks() 235 assertThat(mCountDownLatch.getCount()).isEqualTo(0); in waitForPermissionChangedCallbacks()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/applications/performance/ |
D | PerfImpactingAppsItemManagerTest.java | 51 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in PerfImpactingAppsItemManagerTest 85 mCountDownLatch.await(CALLBACK_TIMEOUT_MS, TimeUnit.MILLISECONDS); in startLoading_getDisabledPackagesCount() 96 mCountDownLatch.countDown(); in onPerfImpactingAppsLoaded()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/system/ |
D | BuildNumberPreferenceControllerTest.java | 65 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in BuildNumberPreferenceControllerTest 167 mCountDownLatch.await(mDebounceInterval, TimeUnit.MILLISECONDS); in testHandlePreferenceClicked_devSettingsDisabled_someClicks_showToast() 180 mCountDownLatch.await(mDebounceInterval, TimeUnit.MILLISECONDS); in testHandlePreferenceClicked_devSettingsDisabled_allClicks_showDevEnabledToast() 190 mCountDownLatch.await(mDebounceInterval, TimeUnit.MILLISECONDS); in testHandlePreferenceClicked_devSettingsDisabled_allClicks_devSettingsEnabled() 201 mCountDownLatch.await(mDebounceInterval, TimeUnit.MILLISECONDS); in testHandlePreferenceClicked_devSettingsDisabled_extraClicks_noAlreadyDevToast()
|
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/direct/ |
D | WifiDirectSnippet.java | 116 private final CountDownLatch mCountDownLatch; field in WifiDirectSnippet.WifiP2pActionListener 118 mCountDownLatch = new CountDownLatch(1); in WifiP2pActionListener() 123 mCountDownLatch.await(1000, TimeUnit.MILLISECONDS); in await() 129 mCountDownLatch.countDown(); in onSuccess() 134 mCountDownLatch.countDown(); in onFailure()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/applications/ |
D | HibernatedAppsItemManagerTest.java | 54 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in HibernatedAppsItemManagerTest 83 mCountDownLatch.await(CALLBACK_TIMEOUT_MS, TimeUnit.MILLISECONDS); in getSummary_getsRightCountForHibernatedPackage() 95 mCountDownLatch.countDown(); in onHibernatedAppsCountLoaded()
|
/packages/modules/Uwb/ranging/tests/cts/tests/src/android/ranging/cts/ |
D | RangingManagerTest.java | 141 assertThat(callback.mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in setup() 646 assertThat(callback.mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in testCapabilitiesListener() 656 assertThat(callback.mCountDownLatch.await(4, TimeUnit.SECONDS)).isTrue(); in testCapabilitiesListener() 662 assertThat(callback.mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in testCapabilitiesListener() 690 assertThat(callback.mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in testAllCapabilities() 746 assertThat(capabilitiesCallback.mCountDownLatch.await(3, TimeUnit.SECONDS)).isTrue(); in testRttRangingInitiator() 816 assertThat(capabilitiesCallback.mCountDownLatch.await(3, TimeUnit.SECONDS)).isTrue(); in testRttRangingResponder() 863 assertThat(capabilitiesCallback.mCountDownLatch.await(3, TimeUnit.SECONDS)).isTrue(); in testRttRangingResponder_WithMeasurementLimit() 913 assertThat(capabilitiesCallback.mCountDownLatch.await(3, TimeUnit.SECONDS)).isTrue(); in testMultiRangingSession() 1193 private CountDownLatch mCountDownLatch; field in RangingManagerTest.CapabilitiesCallback [all …]
|
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/ |
D | NfcWatchdogTest.java | 68 CountDownLatch mCountDownLatch = mock(CountDownLatch.class); in testNotifyHasReturned() local 72 mCountDownLatch); in testNotifyHasReturned() 79 verify(mCountDownLatch).countDown(); in testNotifyHasReturned()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkDiagnostics.java | 136 private final CountDownLatch mCountDownLatch; field in NetworkDiagnostics 157 if (mCountDownLatch != null) { in recordSuccess() 158 mCountDownLatch.countDown(); in recordSuccess() 166 if (mCountDownLatch != null) { in recordFailure() 167 mCountDownLatch.countDown(); in recordFailure() 249 mCountDownLatch = new CountDownLatch(totalMeasurementCount()); in NetworkDiagnostics() 415 mCountDownLatch.await(mDeadlineTime - now(), TimeUnit.MILLISECONDS); in waitForMeasurements() 476 final long unfinished = mCountDownLatch.getCount(); in dump() 564 mCountDownLatch.countDown(); in ensureMeasurementNecessary()
|