Home
last modified time | relevance | path

Searched refs:CountDownLatch (Results 1 – 25 of 124) sorted by relevance

12345

/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/
DEventsLiveDataTest.java69 import java.util.concurrent.CountDownLatch;
142 CountDownLatch latch = new CountDownLatch(2); in addObserver_queryMade()
155 CountDownLatch latch = new CountDownLatch(2); in addObserver_contentObserved()
168 final CountDownLatch latch = new CountDownLatch(2); in removeObserver_contentNotObserved()
175 final CountDownLatch latch2 = new CountDownLatch(1); in removeObserver_contentNotObserved()
190 CountDownLatch latch = new CountDownLatch(2); in addObserver_oneEventResult()
218 CountDownLatch initializeCountdownLatch = new CountDownLatch(2); in changeCursorData_onChangedCalled()
221 CountDownLatch changeCountdownLatch = new CountDownLatch(3); in changeCursorData_onChangedCalled()
270 CountDownLatch latch = new CountDownLatch(2); in noCalendars_valueNull()
285 CountDownLatch latch = new CountDownLatch(2); in noCalendars_contentObserved()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java65 import java.util.concurrent.CountDownLatch;
156 CountDownLatch latch = mockUnbindService(); in uiHiddenWhenBroadcastOffReceived()
166 CountDownLatch latch = mockUnbindService(); in uiShownWhenBroadcastOnReceived()
182 CountDownLatch latch = mockUnbindService(); in uiHiddenWhenPowerShutDown()
192 CountDownLatch latch = mockUnbindService(); in uiShownWhenPowerOn()
208 CountDownLatch latch = mockUnbindService(); in uiNotShownIfKeyDisabled()
222 private static void assertLatchCalled(CountDownLatch latch) throws Exception { in assertLatchCalled()
232 private CountDownLatch mockBindService() { in mockBindService()
233 CountDownLatch latch = new CountDownLatch(1); in mockBindService()
242 private CountDownLatch mockUnbindService() { in mockUnbindService()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java57 import java.util.concurrent.CountDownLatch;
270 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments()
298 CountDownLatch latch = new CountDownLatch(1); in testCrossProfileDocuments_success()
322 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithQuietModeException()
343 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithNoPermissionException()
367 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_bothError_showNoPermissionException()
398 CountDownLatch latch1 = new CountDownLatch(1); in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
409 CountDownLatch latch2 = new CountDownLatch(1); in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
431 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments_failsWithNonRecentsAndEmptyStack()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2ePerformanceTest.java48 import java.util.concurrent.CountDownLatch;
112 SparseArray<CountDownLatch> eventsCounters = new SparseArray<>(); in benchmarkEventBandwidthThroughCarService()
114 eventsCounters.put(mgrProperties[i], new CountDownLatch(EXPECTED_EVENTS_PER_PROPERTY)); in benchmarkEventBandwidthThroughCarService()
122 CountDownLatch[] latches = new CountDownLatch[eventsCounters.size()]; in benchmarkEventBandwidthThroughCarService()
208 CountDownLatch counter = new CountDownLatch(EXPECTED_INVOCATIONS); in stressTestHvacProperties()
229 CarPropertyConfig<Float> cfg, int areaId, CountDownLatch counter) { in invokeSetAndGetForHvacFloat()
279 CountDownLatch latch = new CountDownLatch(EXPECTED_EVENTS); in verifyEventsFromSingleProperty()
292 private static boolean awaitCountDownLatches(CountDownLatch[] latches, long timeoutMs) in awaitCountDownLatches()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchHistoryManagerTest.java34 import java.util.concurrent.CountDownLatch;
42 private CountDownLatch mLatch ;
73 mLatch = new CountDownLatch(2); in testAddHistory()
96 mLatch = new CountDownLatch(2); in testDeleteHistory()
123 mLatch = new CountDownLatch(2); in testDeleteHistory()
132 mLatch = new CountDownLatch(2); in testGetHistoryList()
148 mLatch = new CountDownLatch(2); in testGetHistoryList()
152 mLatch = new CountDownLatch(2); in testGetHistoryList()
/packages/modules/ExtServices/tests/src/android/ext/services/watchdog/
DExplicitHealthCheckServiceImplTest.java51 import java.util.concurrent.CountDownLatch;
110 CountDownLatch latch = new CountDownLatch(1); in testHealthCheckSupportedPackage()
130 CountDownLatch latch1 = new CountDownLatch(1); in testHealthCheckRequests()
131 CountDownLatch latch2 = new CountDownLatch(1); in testHealthCheckRequests()
132 CountDownLatch latch3 = new CountDownLatch(1); in testHealthCheckRequests()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarActivityViewDisplayIdTestBase.java43 import java.util.concurrent.CountDownLatch;
94 private final CountDownLatch mActivityViewReadyLatch = new CountDownLatch(1);
95 private final CountDownLatch mActivityViewDestroyedLatch = new CountDownLatch(1);
192 private static void waitForLatch(CountDownLatch latch) throws Exception { in waitForLatch()
201 private final CountDownLatch mResumed = new CountDownLatch(1);
/packages/apps/Car/libs/car-ui-lib/tests/unit/src/com/android/car/ui/
DFocusAreaTest.java31 import java.util.concurrent.CountDownLatch;
64 CountDownLatch latch = new CountDownLatch(1); in testLoseFocus()
83 CountDownLatch latch = new CountDownLatch(1); in testGetFocus()
93 private void assertDrawMethodsCalled(CountDownLatch latch) throws Exception { in assertDrawMethodsCalled()
DFocusParkingViewTest.java29 import java.util.concurrent.CountDownLatch;
52 CountDownLatch latch = new CountDownLatch(1); in testFocusParkingViewCanTakeFocus()
68 CountDownLatch latch = new CountDownLatch(1); in testFocusParkingViewFocusedWhenWindowLostFocus()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java26 import java.util.concurrent.CountDownLatch;
59 final CountDownLatch latch = new CountDownLatch(1); in testCursorIsNotNull()
89 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectCookies()
116 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectColumns()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java45 import java.util.concurrent.CountDownLatch;
126 CountDownLatch latch = sendAsyncEvents(listener, 10, in testForSpecificEvents_receivedExtraEvents()
158 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByUser()
186 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByUserDuplicatedEventTypes()
217 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByPreviousUser()
249 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByPreviousAndTargetUsers()
263 private static CountDownLatch sendAsyncEvents(@NonNull BlockingUserLifecycleListener listener, in sendAsyncEvents()
272 private static CountDownLatch sendAsyncEvents(@NonNull BlockingUserLifecycleListener listener, in sendAsyncEvents()
275 CountDownLatch latch = new CountDownLatch(1); in sendAsyncEvents()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallServiceFixture.java33 import java.util.concurrent.CountDownLatch;
51 public CountDownLatch mUpdateCallLock = new CountDownLatch(1);
52 public CountDownLatch mAddCallLock = new CountDownLatch(1);
177 mUpdateCallLock = new CountDownLatch(1); in waitForUpdate()
184 mAddCallLock = new CountDownLatch(1); in waitUntilNumCalls()
DTelecomTestCase.java28 import java.util.concurrent.CountDownLatch;
56 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerAction()
68 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerActionDelayed()
/packages/apps/Dialer/java/com/android/incallui/multisim/
DSwapSimWorker.java40 import java.util.concurrent.CountDownLatch;
57 private final CountDownLatch disconnectLatch = new CountDownLatch(1);
58 private final CountDownLatch dialingLatch = new CountDownLatch(1);
65 private CountDownLatch latchForTest;
156 void setLatchForTest(CountDownLatch latch) { in setLatchForTest()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java53 import java.util.concurrent.CountDownLatch;
284 public CountDownLatch programUpdatedLatch = new CountDownLatch(1);
285 public CountDownLatch channelUpdatedLatch = new CountDownLatch(1);
298 programUpdatedLatch = new CountDownLatch(1); in reset()
299 channelUpdatedLatch = new CountDownLatch(1); in reset()
305 public final CountDownLatch currentProgramUpdatedLatch = new CountDownLatch(1);
/packages/services/Mtp/src/com/android/mtp/
DRootScanner.java26 import java.util.concurrent.CountDownLatch;
81 synchronized CountDownLatch resume() { in resume()
121 final CountDownLatch mStopped = new CountDownLatch(1);
126 final CountDownLatch mFirstScanCompleted = new CountDownLatch(1);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java65 import java.util.concurrent.CountDownLatch;
236 private final Map<String, CountDownLatch> mBoundLatches = new HashMap<>();
237 private final Map<String, CountDownLatch> mStartedLatches = new HashMap<>();
278 mBoundLatches.put(service, new CountDownLatch(1)); in expectServices()
279 mStartedLatches.put(service, new CountDownLatch(1)); in expectServices()
283 private void await(Map<String, CountDownLatch> latches, String service, String method) in await()
285 CountDownLatch latch = latches.get(service); in await()
298 private void countdown(Map<String, CountDownLatch> latches, Intent service, String action) { in countdown()
300 CountDownLatch latch = latches.get(serviceName); in countdown()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestContentResolver.java26 import java.util.concurrent.CountDownLatch;
38 private CountDownLatch mReadySignal;
39 private CountDownLatch mNotificationSignal;
44 mReadySignal = new CountDownLatch(1); in TestContentResolver()
62 mNotificationSignal = new CountDownLatch(count); in waitForChanges()
/packages/services/Telephony/tests/src/com/android/
DTelephonyTestBase.java29 import java.util.concurrent.CountDownLatch;
62 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerAction()
74 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerActionDelayed()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardRequest.java46 import java.util.concurrent.CountDownLatch;
91 final CountDownLatch signal = new CountDownLatch(1); in loadMediaBlocking()
118 private boolean parseVCard(final Uri targetUri, final CountDownLatch signal) { in parseVCard()
153 final CountDownLatch signal) { in doActuallyReadOneVCard()
244 final CountDownLatch mSignal;
246 public ContactVCardEntryHandler(final CountDownLatch signal) { in ContactVCardEntryHandler()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DLatchedConsumer.java6 import java.util.concurrent.CountDownLatch;
16 private CountDownLatch latch;
19 latch = new CountDownLatch(expectedCount); in LatchedConsumer()
22 public CountDownLatch getLatch() { return latch; } in getLatch()
/packages/services/Car/car-lib/src/android/car/vms/
DVmsSubscriberManager.java32 import java.util.concurrent.CountDownLatch;
112 CountDownLatch clientReady; in setVmsSubscriberClientCallback()
117 clientReady = new CountDownLatch(1); in setVmsSubscriberClientCallback()
251 private final CountDownLatch mClientReady;
254 CountDownLatch clientReady) { in SubscriberCallbackWrapper()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java53 import java.util.concurrent.CountDownLatch;
677 public CountDownLatch loadFinishedLatch = new CountDownLatch(1);
678 public CountDownLatch channelListUpdatedLatch = new CountDownLatch(1);
697 loadFinishedLatch = new CountDownLatch(1); in reset()
698 channelListUpdatedLatch = new CountDownLatch(1); in reset()
705 public CountDownLatch channelChangedLatch = new CountDownLatch(1);
722 channelChangedLatch = new CountDownLatch(1); in reset()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DArchivesProviderTest.java55 import java.util.concurrent.CountDownLatch;
102 final CountDownLatch latch = new CountDownLatch(1); in testOpen_Success()
154 final CountDownLatch latch = new CountDownLatch(1); in testOpen_Failure()
261 final CountDownLatch latch = new CountDownLatch(1); in testNoNotificationAfterAllReleased()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DStartManagedProfileTaskTest.java47 import java.util.concurrent.CountDownLatch;
71 private final CountDownLatch mStartInBackgroundLatch = new CountDownLatch(1);
72 private final CountDownLatch mSuccessLatch = new CountDownLatch(1);

12345