Home
last modified time | relevance | path

Searched refs:mLatch (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchHistoryManagerTest.java42 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/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DIwlanNetworkStatusTrackerTest.java79 CountDownLatch mLatch; field in IwlanNetworkStatusTrackerTest.TestHandler
91 if (mLatch != null) { in handleMessage()
92 mLatch.countDown(); in handleMessage()
144 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_InvalidSubID()
147 assertTrue(mHandlers[0].mLatch.await(200, TimeUnit.MILLISECONDS)); in testHandleMessage_InvalidSubID()
150 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_InvalidSubID()
153 assertFalse(mHandlers[0].mLatch.await(100, TimeUnit.MILLISECONDS)); in testHandleMessage_InvalidSubID()
161 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_ValidSubID()
167 assertTrue(mHandlers[0].mLatch.await(200, TimeUnit.MILLISECONDS)); in testHandleMessage_ValidSubID()
180 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_ValidSubID_DDS_over_nDDS()
[all …]
DCellularQualityMonitorTest.java78 CountDownLatch mLatch; field in CellularQualityMonitorTest
91 mLatch.countDown(); in onCellularThresholdChanged()
106 mLatch = new CountDownLatch(1); in setUp()
552 mLatch = new CountDownLatch(1); in testOnSignalStrengthsChanged_Matching()
568 mLatch = new CountDownLatch(1); in testOnSignalStrengthsChanged_Matching()
584 mLatch = new CountDownLatch(1); in testOnSignalStrengthsChanged_Matching()
600 mLatch = new CountDownLatch(1); in testOnSignalStrengthsChanged_Matching()
607 assertTrue(mLatch.await(100, TimeUnit.MILLISECONDS)); in verifyReportedThreshold()
643 mLatch = new CountDownLatch(1); in testOnSignalStrengthsChanged_NotMatching()
646 assertFalse(mLatch.await(100, TimeUnit.MILLISECONDS)); in testOnSignalStrengthsChanged_NotMatching()
[all …]
DAccessNetworkEvaluatorTest.java102 private CountDownLatch mLatch; field in AccessNetworkEvaluatorTest
130 mLatch.countDown(); in handleMessage()
143 mLatch = new CountDownLatch(1); in setUp()
264 mLatch = new CountDownLatch(1); in testNotifyForQualifiedNetworksChanged()
269 assertTrue(mLatch.await(3, TimeUnit.SECONDS)); in testNotifyForQualifiedNetworksChanged()
464 mLatch = new CountDownLatch(1); in testEvaluationOfQualifiedNetwork()
507 assertTrue(mLatch.await(3, TimeUnit.SECONDS)); in testEvaluationOfQualifiedNetwork()
868 mLatch = new CountDownLatch(1); in testOnWfcEnabledChanged_Home()
871 assertTrue(mLatch.await(200, TimeUnit.MILLISECONDS)); in testOnWfcEnabledChanged_Home()
878 mLatch = new CountDownLatch(1); in testOnWfcEnabledChanged_Home()
[all …]
/packages/modules/OnDevicePersonalization/tests/testutils/src/com/android/ondevicepersonalization/testing/utils/
DResultReceiver.java26 private final CountDownLatch mLatch = new CountDownLatch(1); field in ResultReceiver
37 mLatch.countDown(); in onResult()
44 mLatch.countDown(); in onError()
49 mLatch.await(); in getResult()
55 mLatch.await(); in getException()
61 mLatch.await(); in isSuccess()
67 mLatch.await(); in isError()
73 mLatch.await(); in isCalled()
79 mLatch.await(); in getErrorMessage()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DDeviceConfigUtils.java26 private CountDownLatch mLatch; field in DeviceConfigUtils
38 mLatch = new CountDownLatch(1); in deleteProperty()
39 mConfigListener.setLatchForProperty(mLatch, property); in deleteProperty()
41 mLatch.await(5, TimeUnit.SECONDS); in deleteProperty()
45 mLatch = new CountDownLatch(1); in setProperty()
46 mConfigListener.setLatchForProperty(mLatch, property); in setProperty()
48 mLatch.await(5, TimeUnit.SECONDS); in setProperty()
DFakeSdkSandboxProcessDeathCallback.java26 private CountDownLatch mLatch = new CountDownLatch(1); field in FakeSdkSandboxProcessDeathCallback
30 mLatch.countDown(); in onSdkSandboxDied()
38 return mLatch.await(5, TimeUnit.SECONDS); in waitForSandboxDeath()
46 mLatch = new CountDownLatch(1); in resetLatch()
DConfigListener.java26 private CountDownLatch mLatch; field in ConfigListener
30 mLatch = countDownLatch; in setLatchForProperty()
36 if (mLatch != null && properties.getKeyset().contains(mPropertyName)) { in onPropertiesChanged()
37 mLatch.countDown(); in onPropertiesChanged()
DWaitableCountDownLatch.java26 private final CountDownLatch mLatch; field in WaitableCountDownLatch
30 mLatch = new CountDownLatch(1); in WaitableCountDownLatch()
35 mLatch.countDown(); in countDown()
48 if (!mLatch.await(mWaitTimeSec, TimeUnit.SECONDS)) { in waitForLatch()
/packages/modules/OnDevicePersonalization/tests/systemserviceapitests/src/com/android/ondevicepersonalization/systemserviceapitests/
DOdpSystemServiceApiTest.java45 CountDownLatch mLatch = new CountDownLatch(3); field in OdpSystemServiceApiTest
64 mLatch.countDown(); in testInvokeSystemServerServiceSucceedsOnU()
69 mLatch.countDown(); in testInvokeSystemServerServiceSucceedsOnU()
78 mLatch.countDown(); in testInvokeSystemServerServiceSucceedsOnU()
82 mLatch.countDown(); in testInvokeSystemServerServiceSucceedsOnU()
90 mLatch.countDown(); in testInvokeSystemServerServiceSucceedsOnU()
94 mLatch.countDown(); in testInvokeSystemServerServiceSucceedsOnU()
97 mLatch.await(); in testInvokeSystemServerServiceSucceedsOnU()
/packages/modules/Telephony/libs/TelephonyStatsLib/tests/com/android/telephony/statslib/
DStatsLibStorageTest.java50 private CountDownLatch mLatch; field in StatsLibStorageTest
61 mLatch = new CountDownLatch(1); in setUp()
73 mLatch.countDown(); in dispatchMessage()
218 mLatch = new CountDownLatch(1); in testSerializableAtoms()
221 mLatch.await(1, TimeUnit.SECONDS); in testSerializableAtoms()
223 mLatch = new CountDownLatch(1); in testSerializableAtoms()
226 mLatch.await(1, TimeUnit.SECONDS); in testSerializableAtoms()
228 mLatch = new CountDownLatch(1); in testSerializableAtoms()
231 mLatch.await(1, TimeUnit.SECONDS); in testSerializableAtoms()
233 mLatch = new CountDownLatch(1); in testSerializableAtoms()
[all …]
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/federatedcompute/
DOdpExampleStoreServiceTests.java90 private CountDownLatch mLatch; field in OdpExampleStoreServiceTests
118 mLatch = new CountDownLatch(1); in setUp()
153 mLatch.await(5000, TimeUnit.MILLISECONDS)); in testStartQuery_lessThanMinExample_failure()
187 mLatch.await(5000, TimeUnit.MILLISECONDS)); in testStartQuery_moreThanMinExample_failure()
221 mLatch.await(5000, TimeUnit.MILLISECONDS)); in testWithStartQuery()
228 mLatch = new CountDownLatch(1); in testWithStartQuery()
233 mLatch.await(1000, TimeUnit.MILLISECONDS)); in testWithStartQuery()
238 mLatch = new CountDownLatch(1); in testWithStartQuery()
243 mLatch.await(1000, TimeUnit.MILLISECONDS)); in testWithStartQuery()
273 mLatch.await(1000, TimeUnit.MILLISECONDS); in testWithStartQueryMeasurementControlRevoked()
[all …]
DFederatedComputeServiceImplTest.java78 private CountDownLatch mLatch = new CountDownLatch(1); field in FederatedComputeServiceImplTest
139 mLatch.await(1000, TimeUnit.MILLISECONDS); in testSchedule()
161 mLatch.await(1000, TimeUnit.MILLISECONDS); in testScheduleMeasurementControlRevoked()
186 mLatch.await(1000, TimeUnit.MILLISECONDS); in testScheduleUrlOverride()
216 mLatch.await(1000, TimeUnit.MILLISECONDS); in testScheduleUrlDeviceConfigOverride()
236 mLatch.await(1000, TimeUnit.MILLISECONDS); in testScheduleErr()
252 mLatch.await(1000, TimeUnit.MILLISECONDS); in testCancel()
259 mLatch.await(1000, TimeUnit.MILLISECONDS); in testCancelNoPopulation()
275 mLatch.await(1000, TimeUnit.MILLISECONDS); in testCancelErr()
297 mLatch.countDown(); in onSuccess()
[all …]
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DIsolatedServiceTest.java62 private final CountDownLatch mLatch = new CountDownLatch(1); field in IsolatedServiceTest
107 mLatch.await(); in testOnExecute()
133 mLatch.await(); in testOnExecutePropagatesError()
150 mLatch.await(); in testOnExecuteWithoutAppParams()
171 mLatch.await(); in testOnExecuteThrowsIfInputMissing()
184 mLatch.await(); in testOnExecuteThrowsIfDataAccessServiceMissing()
195 mLatch.await(); in testOnExecuteThrowsIfFederatedComputeServiceMissing()
225 mLatch.await(); in testOnDownload()
247 mLatch.await(); in testOnDownloadThrowsIfInputMissing()
260 mLatch.await(); in testOnDownloadThrowsIfDataAccessServiceMissing()
[all …]
DIsolatedServiceExceptionSafetyTest.java66 private CountDownLatch mLatch; field in IsolatedServiceExceptionSafetyTest
92 mLatch = new CountDownLatch(1); in setUp()
120 assertTrue(mLatch.await(5000, TimeUnit.MILLISECONDS)); in testOnRequestExceptions()
137 assertTrue(mLatch.await(5000, TimeUnit.MILLISECONDS)); in testOnDownloadExceptions()
152 assertTrue(mLatch.await(5000, TimeUnit.MILLISECONDS)); in testOnRender()
167 assertTrue(mLatch.await(5000, TimeUnit.MILLISECONDS)); in testOnEvent()
184 assertTrue(mLatch.await(5000, TimeUnit.MILLISECONDS)); in testOnTrainingExamples()
199 assertTrue(mLatch.await(5000, TimeUnit.MILLISECONDS)); in testOnWebTrigger()
206 mLatch.countDown(); in onSuccess()
213 mLatch.countDown(); in onError()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DAsyncResultHolder.java35 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/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/serviceflow/
DWebTriggerFlowTest.java67 private final CountDownLatch mLatch = new CountDownLatch(1); field in WebTriggerFlowTest
116 mLatch.await(); in testWebTriggerFlow_GlobalKillswitchOn()
128 mLatch.await(); in testWebTriggerFlow_MeasurementControlRevoked()
143 mLatch.await(); in testWebTriggerFlow_EmptyWebTriggerParams()
163 mLatch.await(); in testWebTriggerFlow_EmptyDestionalUrl()
183 mLatch.await(); in testWebTriggerFlow_InvalidCertDigest()
203 mLatch.await(); in testWebTriggerFlow_InvalidClassName()
213 mLatch.await(); in testWebTriggerFlow_Success()
253 mLatch.countDown(); in onSuccess()
260 mLatch.countDown(); in onError()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DBlockingResultReceiver.java35 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()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java71 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/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DTestableContentObserverCallback.java26 @Nullable private CountDownLatch mLatch; field in TestableContentObserverCallback
31 this.mLatch = latch; in TestableContentObserverCallback()
37 if (mLatch != null) { in onNotificationReceived()
38 mLatch.countDown(); in onNotificationReceived()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackSettings.java49 private final CountDownLatch mLatch; field in SyncCallbackSettings
57 mLatch = new CountDownLatch(mExpectedNumberCalls); in SyncCallbackSettings()
99 + mLatch.getCount(); in toString()
110 mLatch.countDown(); in countDown()
116 if (!mLatch.await(timeoutMs, unit)) { in assertCalled()
122 return mLatch.getCount() == 0; in isCalled()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java90 private CountDownLatch mLatch; field in CarLocationServiceTest
113 mLatch = new CountDownLatch(1); in setUp()
135 mLatch.countDown(); in setUp()
222 mLatch.await(); in testLoadsLocationWithHeadlessSystemUser()
244 mLatch.await(); in testDoesNotLoadLocationWhenNoFileExists()
259 mLatch.await(); in testDoesNotLoadLocationFromIncompleteFile()
274 mLatch.await(); in testDoesNotLoadLocationFromCorruptFile()
290 mLatch.await(); in testDoesNotLoadIncompleteLocation()
309 mLatch.await(); in testDoesNotLoadOldLocation()
324 mLatch.await(); in testStoresLocationUponShutdownPrepare()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DProvisioningResultListener.java42 private final CountDownLatch mLatch = new CountDownLatch(3); field in ProvisioningResultListener
55 mLatch.countDown(); in onReceive()
59 mLatch.countDown(); in onReceive()
85 return mLatch.await(timeoutSeconds, TimeUnit.SECONDS); in await()
90 mLatch.countDown(); in setPreprovisioningActivityResult()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/mediacognitionservices/
DMediaCognitionServiceTest.java170 private CountDownLatch mLatch = new CountDownLatch(1); field in MediaCognitionServiceTest.TestProcessMediaCallback
177 mLatch.countDown(); in onProcessMediaSuccess()
183 mLatch.countDown(); in onProcessMediaFailure()
187 mLatch.await(time, unit); in await()
195 private CountDownLatch mLatch = new CountDownLatch(1); field in MediaCognitionServiceTest.TestGetVersionsCallback
206 mLatch.countDown(); in onGetProcessingVersionsSuccess()
212 mLatch.countDown(); in onGetProcessingVersionsFailure()
216 mLatch.await(time, unit); in await()
/packages/modules/HealthFitness/tests/integrationtests/TestApp/src/android/healthconnect/test/app/
DBlockingOutcomeReceiver.java27 private final CountDownLatch mLatch = new CountDownLatch(1); field in BlockingOutcomeReceiver
34 mLatch.countDown(); in onResult()
40 mLatch.countDown(); in onError()
66 if (!mLatch.await(10, TimeUnit.SECONDS)) { in await()

1234