Home
last modified time | relevance | path

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

123456

/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DHealthConnectServiceLogsTests.java162 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectReadRecords() local
190 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectReadRecordsError() local
222 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectGetChangeLogTokenError() local
258 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectGetChangeLogs() local
281 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectGetChangeLogsError() local
304 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectAggregatedData() local
329 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectAggregatedDataError() local
361 CountDownLatch latch = new CountDownLatch(1); in getChangeLogToken() local
388 CountDownLatch latch = new CountDownLatch(1); in updateRecords() local
DTestHelperUtils.java118 CountDownLatch latch = new CountDownLatch(1); in insertRecords() local
145 CountDownLatch latch = new CountDownLatch(1); in deleteRecords() local
181 CountDownLatch latch = new CountDownLatch(1); in queryAccessLogs() local
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/
DCancelableAlarmTest.java39 TestCountDownLatch latch = new TestCountDownLatch(1); in alarmRuns_singleExecution() local
47 TestCountDownLatch latch = new TestCountDownLatch(2); in alarmRuns_periodicExecution() local
55 TestCountDownLatch latch = new TestCountDownLatch(1); in canceledAlarmDoesNotRun_singleExecution() local
68 TestCountDownLatch latch = new TestCountDownLatch(2); in canceledAlarmDoesNotRun_periodicExecution() local
82 TestCountDownLatch latch = new TestCountDownLatch(1); in cancelOfRunAlarmReturnsFalse() local
98 CountDownRunnable(CountDownLatch latch) { in CountDownRunnable()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java295 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments() local
327 CountDownLatch latch = new CountDownLatch(1); in testCrossProfileDocuments_success() local
355 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithQuietModeException() local
376 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithNoPermissionException() local
400 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_bothError_showNoPermissionException() local
472 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments_failsWithNonRecentsAndEmptyStack() local
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java143 CountDownLatch latch = new CountDownLatch(1); in test_backgroundUsersStopedOnGarageModeCancel() local
165 CountDownLatch latch = new CountDownLatch(1); in test_backgroundUsersStopedOnGarageModeCancel_beforeStartingBgUsers() local
184 CountDownLatch latch = new CountDownLatch(1); in test_backgroundUsersStoppedOnGarageModeFinish() local
202 CountDownLatch latch = mockCarUserServiceStartUsersCall(userToStartInBackground); in test_restartingGarageModeStorePreviouslyStartedUsers() local
245 private void waitForHandlerThreadToFinish(CountDownLatch latch) throws Exception { in waitForHandlerThreadToFinish()
253 CountDownLatch latch = new CountDownLatch(1); in mockCarUserServiceStartUsersCall() local
/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/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DGetApplicationInfoTest.java71 CountDownLatch latch = new CountDownLatch(1); in testEmptyApplicationInfo() local
101 CountDownLatch latch = new CountDownLatch(1); in testEmptyApplicationInfo_no_perm() local
118 CountDownLatch latch = new CountDownLatch(1); in testGetApplicationInfo() local
DHealthConnectManagerTest.java238 CountDownLatch latch = new CountDownLatch(1); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
303 CountDownLatch latch = new CountDownLatch(1); in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
374 CountDownLatch latch = new CountDownLatch(1); in testUpdateRecords_recordWithInvalidPackageName_noChangeInDataBase() local
777 CountDownLatch latch = new CountDownLatch(1); in testStageRemoteData_withValidInput_noExceptionsReturned() local
831 CountDownLatch latch = new CountDownLatch(1); in testStageRemoteData_whenNotReadMode_errorIoReturned() local
903 CountDownLatch latch = new CountDownLatch(1); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned() local
973 CountDownLatch latch = new CountDownLatch(1); in testStageRemoteData_withoutPermission_errorSecurityReturned() local
1050 CountDownLatch latch = new CountDownLatch(1); in testGetHealthConnectDataState_beforeDownload_returnsIdleState() local
1088 CountDownLatch latch = new CountDownLatch(1); in testGetHealthConnectDataState_beforeDownload_withMigrationPermission_returnsIdleState() local
1125 CountDownLatch latch = new CountDownLatch(1); in testGetHealthConnectDataState_duringDownload_returnsRestorePendingState() local
[all …]
/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
292 CountDownLatch latch = new CountDownLatch(1); in sendAsyncEvents() local
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java60 final CountDownLatch latch = new CountDownLatch(1); in testCursorIsNotNull() local
90 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectCookies() local
117 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectColumns() local
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DLauncherPrefsTest.kt65 val latch = CountDownLatch(1) in addListener_listeningForStringItemUpdates_isCorrectlyNotifiedOfUpdates() constant
80 val latch = CountDownLatch(1) in removeListener_previouslyListeningForStringItemUpdates_isNoLongerNotifiedOfUpdates() constant
96 var latch = CountDownLatch(3) in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly() variable
/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.java67 CountDownLatch latch = new CountDownLatch(1); in testAwait_CountDownLatch() local
77 CountDownLatch latch = new CountDownLatch(1); in testSilentAwait_notCalled() local
85 CountDownLatch latch = new CountDownLatch(1); in testSilentAwait_called() local
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreApiTest.java185 CountDownLatch latch = new CountDownLatch(1); in restoreBackupData() local
221 CountDownLatch latch = new CountDownLatch(1); in readRecords() local
255 CountDownLatch latch = new CountDownLatch(1); in verifyDeleteRecords() 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/libs/car-test-lib/src/android/car/test/mocks/
DJavaMockitoHelper.java46 public static void await(@NonNull CountDownLatch latch, long timeoutMs) in await()
78 public static boolean silentAwait(@NonNull CountDownLatch latch, long timeoutMs) { in silentAwait()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerManagerServiceTest.java244 CountDownLatch latch = setupLatch(1, /* listenForSchemaChanges= */ false); in testAddPackage() local
301 CountDownLatch latch = setupLatch(1, /* listenForSchemaChanges= */ false); in testUpdatePackage() local
362 CountDownLatch latch = setupLatch(1, /* listenForSchemaChanges= */ true); in testRemovePackage() local
/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/modules/Scheduling/tests/src/com/android/cts/scheduling/
DRebootReadinessManagerTest.java174 CountDownLatch latch = new CountDownLatch(1); in testCallbackReadyToReboot() local
235 CountDownLatch latch = new CountDownLatch(1); in testCancelPendingReboot() local
331 CountDownLatch latch = new CountDownLatch(1); in waitForPolling() local
/packages/modules/OnDevicePersonalization/samples/odpclient/src/main/java/com/example/odpclient/
DMainActivity.java124 CountDownLatch latch = new CountDownLatch(1); in makeRequest() local
208 CountDownLatch latch = new CountDownLatch(1); in scheduleTraining() local
267 CountDownLatch latch = new CountDownLatch(1); in cancelTraining() local
308 CountDownLatch latch = new CountDownLatch(1); in reportConversion() local
/packages/services/Telecomm/src/com/android/server/telecom/voip/
DCallEventCallbackAckTransaction.java57 public AckResultReceiver(CountDownLatch latch) { in AckResultReceiver()
101 CountDownLatch latch = new CountDownLatch(1); in processTransaction() local
/packages/services/Telephony/src/com/android/phone/euicc/
DEuiccUiDispatcherActivity.java202 CountDownLatch latch = new CountDownLatch(1); in grantDefaultPermissionsToLuiApp() local
222 CountDownLatch latch = new CountDownLatch(1); in revokePermissionFromLuiApps() local
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DFederatedComputeScheduler.java79 CountDownLatch latch = new CountDownLatch(1); in schedule() local
133 CountDownLatch latch = new CountDownLatch(1); in cancel() 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()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProviderBroadcastReceiverTest.java42 final CountDownLatch latch = new CountDownLatch(1); in testBroadcastToRealProvider() local

123456