Searched refs:mJobParameters (Results 1 – 5 of 5) sorted by relevance
68 @Mock private JobParameters mJobParameters; field in AutomaticStorageManagementJobServiceTest82 when(mJobParameters.getJobId()).thenReturn(0); in setUp()141 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testJobRequiresCharging()146 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testJobRequiresCharging()152 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testStartJobTriesUpsellWhenASMDisabled()171 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testASMJobRunsWithValidConditions()178 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testASMJobRunsWithValidConditionsIfEnabledByDefaultAndUnset()188 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testJobDoesntRunIfStorageNotFull()198 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testJobOnlyRunsIfFreeStorageIsUnder15Percent()204 assertThat(mJobService.onStartJob(mJobParameters)).isFalse(); in testJobOnlyRunsIfFreeStorageIsUnder15Percent()[all …]
67 @Mock private JobParameters mJobParameters; field in ImsEntitlementPollingServiceTest98 mService.onStartJob(mJobParameters); in doEntitlementCheck_isWfcEnabledByUserFalse_doNothing()110 mService.onStartJob(mJobParameters); in doEntitlementCheck_shouldTurnOffWfc_disableWfc()121 mService.onStartJob(mJobParameters); in doEntitlementCheck_shouldNotTurnOffWfc_enableWfc()137 mService.onStartJob(mJobParameters); in doEntitlementCheck_shouldTurnOffImsApps_setAllProvisionedFalse()155 mService.onStartJob(mJobParameters); in doEntitlementCheck_shouldTurnOnImsApps_setAllProvisionedTrue()170 mService.onStartJob(mJobParameters); in doEntitlementCheck_ImsEntitlementShouldRetry_rescheduleJob()188 mService.onStartJob(mJobParameters); in doEntitlementCheck_WfcEntitlementShouldRetry_rescheduleJob()233 when(mJobParameters.getExtras()).thenReturn(bundle); in setJobParameters()234 when(mJobParameters.getJobId()).thenReturn(JobManager.QUERY_ENTITLEMENT_STATUS_JOB_ID); in setJobParameters()
100 private JobParameters mJobParameters; field in AnomalyDetectionJobServiceTest299 when(mJobParameters.dequeueWork()).thenThrow(new SecurityException()); in stopJobWhileDequeuingWork_shouldNotCrash()301 mAnomalyDetectionJobService.onStopJob(mJobParameters); in stopJobWhileDequeuingWork_shouldNotCrash()304 mAnomalyDetectionJobService.dequeueWork(mJobParameters); in stopJobWhileDequeuingWork_shouldNotCrash()309 doThrow(new SecurityException()).when(mJobParameters).completeWork(any()); in stopJobWhileCompletingWork_shouldNotCrash()311 mAnomalyDetectionJobService.onStopJob(mJobParameters); in stopJobWhileCompletingWork_shouldNotCrash()314 mAnomalyDetectionJobService.completeWork(mJobParameters, mJobWorkItem); in stopJobWhileCompletingWork_shouldNotCrash()319 mAnomalyDetectionJobService.onStopJob(mJobParameters); in restartWorkAfterBeenStopped_jobStarted()320 mAnomalyDetectionJobService.onStartJob(mJobParameters); in restartWorkAfterBeenStopped_jobStarted()
93 private final JobParameters mJobParameters; field in ProcessMetricsJobService.ReadDeferredMetricsAsyncTask100 mJobParameters = params; in ReadDeferredMetricsAsyncTask()122 jobFinished(mJobParameters, false); in onPostExecute()
57 @Mock private JobParameters mJobParameters; field in FcmRegistrationServiceTest95 mService.onStartJob(mJobParameters); in onStartJob_setToken_getToken()103 assertThat(mService.onStopJob(mJobParameters)).isTrue(); in onStopJob_alwaysRetunedTrue()