Home
last modified time | relevance | path

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

12345678

/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
H A DGarageModeTest.java105 CountDownLatch latch = new CountDownLatch(3); // 3 for three users in test_backgroundUsersStopedOnGarageModeCancel() local
106 mockCarUserServiceStopUserCall(getEventListener(), latch); in test_backgroundUsersStopedOnGarageModeCancel() local
122 CountDownLatch latch = mockCarUserServiceStartUsersCall(userToStartInBackground); in test_restartingGarageModeStorePreviouslyStartedUsers() local
173 private void waitForHandlerThreadToFinish(CountDownLatch latch) throws Exception { in waitForHandlerThreadToFinish()
181 CountDownLatch latch = new CountDownLatch(1); in mockCarUserServiceStartUsersCall() local
199 CountDownLatch latch) { in mockCarUserServiceStopUserCall()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java562 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithoutPasswordForwarding() local
593 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithPasswordForwarding() local
633 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithInvalidIntent() local
662 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithValidIntent() local
693 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionError() local
748 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionSuccessWithoutPasswordForwarding() local
778 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionSuccessWithPasswordForwarding() local
817 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionReturnWithInvalidIntent() local
846 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionReturnWithValidIntent() local
877 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionError() local
[all …]
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A 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
/aosp12/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
H A DJavaMockitoHelperTest.java51 CountDownLatch latch = new CountDownLatch(1); in testAwait_CountDownLatch() local
61 CountDownLatch latch = new CountDownLatch(1); in testSilentAwait_notCalled() local
69 CountDownLatch latch = new CountDownLatch(1); in testSilentAwait_called() local
H A DBlockingAnswerTest.java42 CountDownLatch latch = new CountDownLatch(1); in testForReturn() local
66 CountDownLatch latch = new CountDownLatch(1); in testForVoidReturn() local
/aosp12/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/
H A 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()
/aosp12/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
H A DUserLifecycleTests.java161 final CountDownLatch latch = new CountDownLatch(1); in createAndStartUser() local
182 final CountDownLatch latch = new CountDownLatch(1); in startUser() local
238 final CountDownLatch latch = new CountDownLatch(1); in switchUser_stopped() local
276 final CountDownLatch latch = new CountDownLatch(1); in stopUser() local
296 final CountDownLatch latch = new CountDownLatch(1); in lockedBootCompleted() local
317 final CountDownLatch latch = new CountDownLatch(1); in ephemeralUserStopped() local
614 final CountDownLatch latch = new CountDownLatch(1); in switchUserNoCheck() local
626 final CountDownLatch latch = new CountDownLatch(1); in stopUser() local
672 final CountDownLatch latch = new CountDownLatch(1); in installPreexistingApp() local
724 private void registerBroadcastReceiver(final String action, final CountDownLatch latch, in registerBroadcastReceiver()
[all …]
/aosp12/frameworks/base/tests/GamePerformance/src/android/gameperformance/
H A DGamePerformanceActivity.java59 final CountDownLatch latch = new CountDownLatch(1); in attachSurfaceView() local
79 final CountDownLatch latch = new CountDownLatch(1); in attachOpenGLView() local
98 final CountDownLatch latch = new CountDownLatch(1); in attachControlView() local
/aosp12/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTextToSpeechTests.java191 final CountDownLatch latch = new CountDownLatch(1); in blockingCallSpeak() local
204 final CountDownLatch latch = new CountDownLatch(1); in blockingInitAndVerify() local
222 public static CountDownBehaviour doCountDown(final CountDownLatch latch) { in doCountDown()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
H A 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
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/database/
H A 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
/aosp12/frameworks/base/core/java/com/android/internal/inputmethod/
H A DCancellationGroup.java49 boolean registerLatch(@NonNull CountDownLatch latch) { in registerLatch()
65 void unregisterLatch(@NonNull CountDownLatch latch) { in unregisterLatch()
/aosp12/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DAutofillManagerServiceShellCommand.java252 final CountDownLatch latch = new CountDownLatch(1); in getFieldClassificationScore() local
353 CountDownLatch latch = new CountDownLatch(1); in getSavedPasswordCount() local
376 final CountDownLatch latch = new CountDownLatch(1); in requestDestroy() local
392 final CountDownLatch latch = new CountDownLatch(1); in requestList() local
416 private int requestSessionCommon(PrintWriter pw, CountDownLatch latch, in requestSessionCommon()
422 private int waitForLatch(PrintWriter pw, CountDownLatch latch) { in waitForLatch()
/aosp12/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
H A DContentCaptureManagerServiceShellCommand.java185 final CountDownLatch latch = new CountDownLatch(1); in requestDestroy() local
201 final CountDownLatch latch = new CountDownLatch(1); in requestList() local
225 private int requestSessionCommon(PrintWriter pw, CountDownLatch latch, in requestSessionCommon()
231 private int waitForLatch(PrintWriter pw, CountDownLatch latch) { in waitForLatch()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
H A DAndroidFutureTest.java53 CountDownLatch latch = new CountDownLatch(1); in testWhenComplete_AlreadyComplete() local
65 CountDownLatch latch = new CountDownLatch(1); in testWhenComplete_NotYetComplete() local
92 CountDownLatch latch = new CountDownLatch(1); in testCompleteExceptionally_Listener() local
/aosp12/packages/services/Car/car-test-lib/src/android/car/test/mocks/
H A DJavaMockitoHelper.java44 public static void await(@NonNull CountDownLatch latch, long timeoutMs) in await()
72 public static boolean silentAwait(@NonNull CountDownLatch latch, long timeoutMs) { in silentAwait()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DRecoverySnapshotListenersStorageTest.java58 CountDownLatch latch = new CountDownLatch(1); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() local
79 CountDownLatch latch = new CountDownLatch(2); in setSnapshotListener_doesNotRepeatedlyInvokeListener() local
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
H A DBluetoothTestUtils.java52 CountDownLatch latch = new CountDownLatch(1); in setBluetoothState() local
77 private LatchBroadcastReceiver(CountDownLatch latch, boolean enable) { in LatchBroadcastReceiver()
/aosp12/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/
H A DGetPermissionGroupInfoTest.kt40 val latch = CountDownLatch(1) regex
58 val latch = CountDownLatch(1) regex
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DShellExecutor.java47 final CountDownLatch latch = new CountDownLatch(1); in executeBlocking() local
71 final CountDownLatch latch = new CountDownLatch(1); in executeBlockingForResult() local
/aosp12/frameworks/base/core/tests/coretests/src/android/content/
H A DAbstractCrossUserContentResolverTest.java83 final CountDownLatch latch = new CountDownLatch(1); in unlockUser() local
166 public CrossUserContentServiceConnection(CountDownLatch latch) { in CrossUserContentServiceConnection()
190 public TestContentObserver(CountDownLatch latch, Uri exptectedUri, int expectedUserId) { in TestContentObserver()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/utils/
H A DTestUtils.java49 CountDownLatch latch = new CountDownLatch(1); in accept() local
70 CountDownLatch latch = new CountDownLatch(1); in test() local
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
H A DPhysicsAnimatorTestUtils.kt80 val latch = CountDownLatch(1) regex
129 val latch = CountDownLatch(animatingProperties.size) regex
185 val latch = CountDownLatch(1) regex
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
H A DCarProjectionServiceTest.java109 final CountDownLatch latch = new CountDownLatch(2); in updateProjectionStatus_defaultState() local
131 final CountDownLatch latch = new CountDownLatch(1); in updateProjectionStatus_subscribeAfterUpdate() local
175 final CountDownLatch latch = new CountDownLatch(2); in updateProjectionStatus_subscribeBeforeUpdate() local
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskStackChangedListenerTest.java125 final CountDownLatch latch = new CountDownLatch(1); in testTaskStackChanged_afterFinish() local
140 final CountDownLatch latch = new CountDownLatch(1); in testTaskStackChanged_resumeWhilePausing() local
156 final CountDownLatch latch = new CountDownLatch(1); in testTaskDescriptionChanged() local
189 final CountDownLatch latch = new CountDownLatch(1); in testActivityRequestedOrientationChanged() local
403 private void waitForCallback(CountDownLatch latch) { in waitForCallback()

12345678