Home
last modified time | relevance | path

Searched refs:startWork (Results 1 – 24 of 24) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/worker/
DDeviceCheckInWorkerTest.java127 final Result result = Futures.getUnchecked(mWorker.startWork()); in checkIn_allInfoAvailable_checkInResponseSuccessfulAndHandleable_successAndLogged()
146 final Result result = Futures.getUnchecked(mWorker.startWork()); in checkIn_allInfoAvailable_checkInResponseSuccessfulNotHandleable_retryAndLogged()
165 final Result result = Futures.getUnchecked(mWorker.startWork()); in checkIn_allInfoAvailable_checkInResponseHasRecoverableError_retryAndLogCheckIn()
184 final Result result = Futures.getUnchecked(mWorker.startWork()); in checkIn_allInfoAvailable_checkInResponseHasNonRecoverableError_failAndLogCheckIn()
206 Futures.getUnchecked(mWorker.startWork()); in checkIn_carrierInfoUnavailable_shouldAtLeastSendCheckInRequest()
223 Futures.getUnchecked(mWorker.startWork()); in checkIn_deviceIdsUnavailable_shouldNotSendCheckInRequest()
245 final Result result = Futures.getUnchecked(mWorker.startWork()); in checkIn_fcmTokenUnavailable_responseSuccessfulAndLogged()
DReportDeviceProvisionStateWorkerTest.java138 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.retry()); in doWork_responseHasRecoverableError_returnRetryAndNotLogged()
147 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.failure()); in doWork_responseHasFatalError_returnFailureAndNotLogged()
159 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_responseIsSuccessful_globalParametersSetAndEventLogged()
177 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_mandatory_doesNotSendNotificationOrScheduleAlarm()
197 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_deferred_retryState_schedulesAlarm()
213 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_deferred_dismissibleUiState_schedulesAlarmAndSendsNotification()
243 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_deferred_persistentUiState_schedulesAlarmAndSendsOngoingNotification()
273 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_deferred_factoryResetState_schedulesResetDeviceAlarm()
DSetupWizardCompletionTimeoutWorkerTest.java92 assertThat(Futures.getUnchecked(mWorker.startWork())) in doWork_suwComplete_doesNotStartFlow()
107 assertThat(Futures.getUnchecked(mWorker.startWork())) in doWork_suwNotComplete_notUnprovisioned_doesNotStartFlow()
125 assertThat(Futures.getUnchecked(mWorker.startWork())) in doWork_suwNotComplete_unprovisioned_provisionNotReady_doesNotStartFlow()
145 assertThat(Futures.getUnchecked(mWorker.startWork())) in doWork_suwNotComplete_unprovisioned_provisionReady_startsFlow()
DReportDeviceLockProgramCompleteWorkerTest.java94 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_responseIsSuccessful_returnSuccess()
102 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.retry()); in doWork_responseHasRecoverableError_returnRetry()
110 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.failure()); in doWork_responseHasFatalError_returnFailure()
DIsDeviceInApprovedCountryWorkerTest.java98 Result actual = Futures.getUnchecked(mWorker.startWork()); in doWork_responseIsSuccessful_isInApprovedCountry_correctResultAndLog()
113 Result actual = Futures.getUnchecked(mWorker.startWork()); in doWork_responseIsSuccessful_isNotInApprovedCountry_correctResultAndLog()
127 Result actual = Futures.getUnchecked(mWorker.startWork()); in doWork_responseIsNotSuccessful_failureResultAndLog()
DPauseProvisioningWorkerTest.java95 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.success()); in doWork_responseIsSuccessful_resultSuccessAndLogged()
104 assertThat(Futures.getUnchecked(mWorker.startWork())).isEqualTo(Result.failure()); in doWork_responseIsNotSuccessful_resultFailure()
DGetFcmTokenWorkerTest.java105 final Result result = Futures.getUnchecked(mWorker.startWork()); in startWork_returnsExpectedResult()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DStartLockTaskModeWorkerTest.java135 final Result result = mBgExecutor.submit(() -> mWorker.startWork().get()).get(); in doWork_launchesActivityInLockedTaskMode()
160 final Result result = mBgExecutor.submit(() -> mWorker.startWork().get()).get(); in doWork_hitsException_failsAndEnforcesCriticalFailure()
174 final Result result = mBgExecutor.submit(() -> mWorker.startWork().get()).get(); in doWork_alreadyLockedDoesNothing()
190 final Result result = mBgExecutor.submit(() -> mWorker.startWork().get()).get(); in doWork_failsWhenNoLaunchIntent()
204 final Result result = mBgExecutor.submit(() -> mWorker.startWork().get()).get(); in doWork_failsLaunchIntentNotPermitted()
DFinalizationControllerImplTest.java287 public ListenableFuture<Result> startWork() { in startWork() method in FinalizationControllerImplTest.TestWorker
DProvisionHelperImplTest.java725 public ListenableFuture<Result> startWork() { in createWorker()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/worker/
DGetFcmTokenWorker.java63 public ListenableFuture<Result> startWork() { in startWork() method in GetFcmTokenWorker
DIsDeviceInApprovedCountryWorker.java63 public ListenableFuture<Result> startWork() { in startWork() method in IsDeviceInApprovedCountryWorker
DReportDeviceLockProgramCompleteWorker.java95 public ListenableFuture<Result> startWork() { in startWork() method in ReportDeviceLockProgramCompleteWorker
DSetupWizardCompletionTimeoutWorker.java71 public ListenableFuture<Result> startWork() { in startWork() method in SetupWizardCompletionTimeoutWorker
DDeviceCheckInWorker.java76 public ListenableFuture<Result> startWork() { in startWork() method in DeviceCheckInWorker
DPauseProvisioningWorker.java124 public ListenableFuture<Result> startWork() { in startWork() method in PauseProvisioningWorker
DReportDeviceProvisionStateWorker.java166 public ListenableFuture<Result> startWork() { in startWork() method in ReportDeviceProvisionStateWorker
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/common/
DBlockingCallableWrapper.java70 public void startWork() { in startWork() method in BlockingCallableWrapper
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/
DTestDeviceLockControllerApplication.java181 public ListenableFuture<Result> startWork() { in startWork() method in TestDeviceLockControllerApplication.PlayInstallPackageWorker
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DStartLockTaskModeWorker.java87 public ListenableFuture<Result> startWork() { in startWork() method in StartLockTaskModeWorker
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/common/
DBlockingCallableWrapperTest.java111 toTest.startWork(); in testCommandExecutionStartsWhenTriggered()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DToolboxProxy.kt168 override fun startWork(): ListenableFuture<Result> = in startWork() method
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/activities/
DProgressFragmentTest.java259 public ListenableFuture<Result> startWork() { in getWorkerFactory()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/
DShellCommandServiceImplTest.java284 waitingCommand.startWork(); in testRunShellCommand_offloadsWorkToExecutor()