Home
last modified time | relevance | path

Searched defs:latch (Results 1 – 25 of 90) sorted by relevance

1234

/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java125 CountDownLatch latch = new CountDownLatch(3); // 3 for three users in test_backgroundUsersStopedOnGarageModeCancel() local
126 mockCarUserServiceStopUserCall(getEventListener(), latch); in test_backgroundUsersStopedOnGarageModeCancel() local
142 CountDownLatch latch = mockCarUserServiceStartUsersCall(userToStartInBackground); in test_restartingGarageModeStorePreviouslyStartedUsers() local
185 private void waitForHandlerThreadToFinish(CountDownLatch latch) throws Exception { in waitForHandlerThreadToFinish()
193 CountDownLatch latch = new CountDownLatch(1); in mockCarUserServiceStartUsersCall() local
211 CountDownLatch latch) { in mockCarUserServiceStopUserCall()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java270 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments() local
298 CountDownLatch latch = new CountDownLatch(1); in testCrossProfileDocuments_success() local
322 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithQuietModeException() local
343 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithNoPermissionException() local
367 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_bothError_showNoPermissionException() local
431 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments_failsWithNonRecentsAndEmptyStack() local
/packages/modules/AdServices/sdksandbox/SdkSandbox/tests/src/com/android/sdksandbox/
DSdkSandboxTest.java80 CountDownLatch latch = new CountDownLatch(1); in testLoadingSuccess() local
90 CountDownLatch latch = new CountDownLatch(2); in testDuplicateLoadingFails() local
121 CountDownLatch latch = new CountDownLatch(1); in testRequestSurfacePackage() local
136 CountDownLatch latch = new CountDownLatch(1); in testSurfacePackageError() local
168 RemoteCode(CountDownLatch latch) { in RemoteCode()
203 private void setLatch(CountDownLatch latch) { in setLatch()
/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/
DEventsLiveDataTest.java205 CountDownLatch latch = new CountDownLatch(1); in addObserver_oneEventResult() local
310 CountDownLatch latch = new CountDownLatch(1); in noCalendars_valueNull() local
333 CountDownLatch latch = new CountDownLatch(1); in multiDayEvent_createsMultipleEvents() local
350 CountDownLatch latch = new CountDownLatch(1); in multiDayEvent_keepsOriginalTimes() local
373 CountDownLatch latch = new CountDownLatch(1); in multipleEvents_resultsSortedStart() local
396 CountDownLatch latch = new CountDownLatch(1); in multipleEvents_resultsSortedTitle() local
418 CountDownLatch latch = new CountDownLatch(1); in allDayEvent_timesSetToLocal() local
442 CountDownLatch latch = new CountDownLatch(1); in allDayEvent_queryCoversLocalDayStart() local
457 private static void awaitAndAssertDone(CountDownLatch latch) throws InterruptedException { in awaitAndAssertDone()
461 private static void awaitAndAssertNotDone(CountDownLatch latch) throws InterruptedException { in awaitAndAssertNotDone()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/
DGetPermissionGroupInfoTest.kt40 val latch = CountDownLatch(1) in assertAllPlatformPermGroupPermListsMatch() constant
58 val latch = CountDownLatch(1) in assertAllPlatformPermGroupsMatch() constant
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java127 CountDownLatch latch = sendAsyncEvents(listener, 10, in testForSpecificEvents_receivedExtraEvents() local
159 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByUser() local
187 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByUserDuplicatedEventTypes() local
218 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByPreviousUser() local
250 CountDownLatch latch = sendAsyncEvents(listener, in testForSpecificEvents_filterByPreviousAndTargetUsers() local
276 CountDownLatch latch = new CountDownLatch(1); in sendAsyncEvents() local
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java59 final CountDownLatch latch = new CountDownLatch(1); in testCursorIsNotNull() local
89 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectCookies() local
116 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectColumns() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DBlockingAnswerTest.java42 CountDownLatch latch = new CountDownLatch(1); in testForReturn() local
66 CountDownLatch latch = new CountDownLatch(1); in testForVoidReturn() local
DJavaMockitoHelperTest.java68 CountDownLatch latch = new CountDownLatch(1); in testAwait_CountDownLatch() local
78 CountDownLatch latch = new CountDownLatch(1); in testSilentAwait_notCalled() local
86 CountDownLatch latch = new CountDownLatch(1); in testSilentAwait_called() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/
DCarOemProxyServiceHelperTest.java140 CountDownLatch latch = new CountDownLatch(1); in testDoBinderCallWithDefaultValueAndDelayedWaitAndCrash() local
170 CountDownLatch latch = new CountDownLatch( in testCircularCallSingleCaller() local
210 CountDownLatch latch = new CountDownLatch( in testCircularCallMultipleCaller() local
/packages/services/Car/car-test-lib/src/android/car/test/mocks/
DJavaMockitoHelper.java46 public static void await(@NonNull CountDownLatch latch, long timeoutMs) in await()
74 public static boolean silentAwait(@NonNull CountDownLatch latch, long timeoutMs) { in silentAwait()
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DLauncherPrefsTest.kt80 val latch = CountDownLatch(1) in addListener_listeningForStringItemUpdates_isCorrectlyNotifiedOfUpdates() constant
95 val latch = CountDownLatch(1) in removeListener_previouslyListeningForStringItemUpdates_isNoLongerNotifiedOfUpdates() constant
111 var latch = CountDownLatch(3) in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly() variable
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DArchivesProviderTest.java102 final CountDownLatch latch = new CountDownLatch(1); in testOpen_Success() local
154 final CountDownLatch latch = new CountDownLatch(1); in testOpen_Failure() local
261 final CountDownLatch latch = new CountDownLatch(1); in testNoNotificationAfterAllReleased() local
/packages/services/Telephony/src/com/android/phone/euicc/
DEuiccUiDispatcherActivity.java174 CountDownLatch latch = new CountDownLatch(1); in grantDefaultPermissionsToLuiApp() local
194 CountDownLatch latch = new CountDownLatch(1); in revokePermissionFromLuiApps() local
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProviderBroadcastReceiverTest.java41 final CountDownLatch latch = new CountDownLatch(1); in testBroadcastToRealProvider() local
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java273 CountDownLatch latch = new CountDownLatch(1); in testCameraState() local
355 CountDownLatch latch = new CountDownLatch(1); in testGpsScan() local
473 CountDownLatch latch = StatsdSyncAdapter.resetCountDownLatch(); in testSyncState() local
510 CountDownLatch latch = StatsdJobService.resetCountDownLatch(); in testScheduledJob() local
582 CountDownLatch latch = new CountDownLatch(NUM_THREADS); in testWakelockLoad() local
768 int maxWaitTimeMs, CountDownLatch latch, BroadcastReceiver receiver) { in waitForReceiver()
DWakelockLoadTestRunnable.java27 CountDownLatch latch; field in WakelockLoadTestRunnable
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java156 final CountDownLatch latch = new CountDownLatch(2); in updateProjectionStatus_defaultState() local
264 final CountDownLatch latch = new CountDownLatch(1); in updateProjectionStatus_subscribeAfterUpdate() local
308 final CountDownLatch latch = new CountDownLatch(2); in updateProjectionStatus_subscribeBeforeUpdate() local
/packages/modules/Scheduling/tests/src/com/android/cts/scheduling/
DRebootReadinessManagerTest.java139 CountDownLatch latch = new CountDownLatch(1); in testCallbackReadyToReboot() local
200 CountDownLatch latch = new CountDownLatch(1); in testCancelPendingReboot() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DBluetoothTestUtils.java59 CountDownLatch latch = new CountDownLatch(1); in setBluetoothState() local
84 private LatchBroadcastReceiver(CountDownLatch latch, boolean enable) { in LatchBroadcastReceiver()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/dashboard/
DUiBlockerControllerTest.java54 final CountDownLatch latch = new CountDownLatch(1); in start_isSyncedReturnFalseUntilAllWorkDone() local
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/
DRebootReadinessUnitTest.java224 CountDownLatch latch = new CountDownLatch(1); in testRegisteredListenerIsCalled() local
384 CountDownLatch latch = new CountDownLatch(2); in testLongSubsystemBlockingReported() local
623 private IRequestRebootReadinessStatusListener getStatusListener(CountDownLatch latch) { in getStatusListener()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DForegroundThread.java79 final CountDownLatch latch = new CountDownLatch(1); in waitForIdle() local
/packages/modules/Scheduling/tests/hostsidetests/testapp/src/com/android/tests/scheduling/
DRebootReadinessTest.java52 CountDownLatch latch = new CountDownLatch(1); in testRebootReadyBroadcastReceived() local
/packages/apps/Settings/src/com/android/settings/network/
DCarrierConfigChangedReceiver.java36 public CarrierConfigChangedReceiver(CountDownLatch latch) { in CarrierConfigChangedReceiver()

1234