Home
last modified time | relevance | path

Searched refs:mJobParameters (Results 1 – 5 of 5) sorted by relevance

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java68 @Mock private JobParameters mJobParameters; field in AutomaticStorageManagementJobServiceTest
82 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 …]
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementPollingServiceTest.java67 @Mock private JobParameters mJobParameters; field in ImsEntitlementPollingServiceTest
98 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobServiceTest.java100 private JobParameters mJobParameters; field in AnomalyDetectionJobServiceTest
299 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()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DProcessMetricsJobService.java93 private final JobParameters mJobParameters; field in ProcessMetricsJobService.ReadDeferredMetricsAsyncTask
100 mJobParameters = params; in ReadDeferredMetricsAsyncTask()
122 jobFinished(mJobParameters, false); in onPostExecute()
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/fcm/
DFcmRegistrationServiceTest.java57 @Mock private JobParameters mJobParameters; field in FcmRegistrationServiceTest
95 mService.onStartJob(mJobParameters); in onStartJob_setToken_getToken()
103 assertThat(mService.onStopJob(mJobParameters)).isTrue(); in onStopJob_alwaysRetunedTrue()