Home
last modified time | relevance | path

Searched refs:mJobSchedulerService (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/restrictions/
DThermalStatusRestrictionTest.java84 private JobSchedulerService mJobSchedulerService; field in ThermalStatusRestrictionTest
138 JobStatusContainer(String jobName, JobSchedulerService mJobSchedulerService) { in JobStatusContainer() argument
199 when(mJobSchedulerService.isCurrentlyRunningLocked(jobLowPriorityRunning)) in JobStatusContainer()
201 when(mJobSchedulerService.isCurrentlyRunningLocked(jobHighPriorityRunning)) in JobStatusContainer()
203 when(mJobSchedulerService.isCurrentlyRunningLocked(jobLowPriorityRunningLong)) in JobStatusContainer()
205 when(mJobSchedulerService.isCurrentlyRunningLocked(jobHighPriorityRunningLong)) in JobStatusContainer()
207 when(mJobSchedulerService.isCurrentlyRunningLocked(ejRunning)).thenReturn(true); in JobStatusContainer()
208 when(mJobSchedulerService.isCurrentlyRunningLocked(ejRunningLong)).thenReturn(true); in JobStatusContainer()
209 when(mJobSchedulerService.isCurrentlyRunningLocked(uiRunning)).thenReturn(true); in JobStatusContainer()
210 when(mJobSchedulerService.isCurrentlyRunningLocked(uiRunningLong)).thenReturn(true); in JobStatusContainer()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java74 private JobSchedulerService mJobSchedulerService; field in StateControllerTest
107 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setUp()
108 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setUp()
109 when(mJobSchedulerService.getConstants()).thenReturn(mConstants); in setUp()
124 mStateController = new TestStateController(mJobSchedulerService); in setUp()
151 when(mJobSchedulerService.areComponentsInPlaceLocked(job)).thenReturn(false); in testWouldBeReadyWithConstraintLocked()
155 when(mJobSchedulerService.areComponentsInPlaceLocked(job)).thenReturn(true); in testWouldBeReadyWithConstraintLocked()
DPrefetchControllerTest.java102 private JobSchedulerService mJobSchedulerService; field in PrefetchControllerTest
116 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setUp()
117 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setUp()
136 when(mJobSchedulerService.getPackagesForUidLocked(anyInt())) in setUp()
160 mPrefetchController = new PrefetchController(mJobSchedulerService); in setUp()
213 int prevBias = mJobSchedulerService.getUidBias(uid); in setUidBias()
214 doReturn(bias).when(mJobSchedulerService).getUidBias(uid); in setUidBias()
321 verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)).onControllerStateChanged(any()); in testConstraintSatisfiedWhenLaunchSoon()
332 when(mJobSchedulerService.isCurrentlyRunningLocked(jobPending)).thenReturn(false); in testConstraintSatisfiedWhenTop()
333 when(mJobSchedulerService.isCurrentlyRunningLocked(jobRunning)).thenReturn(true); in testConstraintSatisfiedWhenTop()
[all …]
DBatteryControllerTest.java70 private JobSchedulerService mJobSchedulerService; field in BatteryControllerTest
85 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setUp()
86 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setUp()
87 when(mJobSchedulerService.getConstants()).thenReturn(mConstants); in setUp()
100 new FlexibilityController(mJobSchedulerService, mock(PrefetchController.class)); in setUp()
101 mBatteryController = new BatteryController(mJobSchedulerService, mFlexibilityController); in setUp()
108 .when(mJobSchedulerService).getPackagesForUidLocked(mSourceUid); in setUp()
123 doReturn(notLow).when(mJobSchedulerService).isBatteryNotLow(); in setBatteryNotLow()
131 doReturn(true).when(mJobSchedulerService).isBatteryCharging(); in setCharging()
139 doReturn(false).when(mJobSchedulerService).isBatteryCharging(); in setDischarging()
[all …]
DBackgroundJobsControllerTest.java95 private JobSchedulerService mJobSchedulerService; field in BackgroundJobsControllerTest
114 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setUp()
115 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setUp()
124 when(mJobSchedulerService.getJobStore()).thenReturn(mJobStore); in setUp()
139 mBackgroundJobsController = new BackgroundJobsController(mJobSchedulerService); in setUp()
151 .when(mJobSchedulerService).getPackagesForUidLocked(SOURCE_UID); in setUp()
153 .when(mJobSchedulerService).getPackagesForUidLocked(ALTERNATE_UID); in setUp()
DFlexibilityControllerTest.java141 private JobSchedulerService mJobSchedulerService; field in FlexibilityControllerTest
161 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setup()
162 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setup()
163 when(mJobSchedulerService.getConstants()).thenReturn( in setup()
193 doReturn(mJobStore).when(mJobSchedulerService).getJobStore(); in setup()
208 mFlexibilityController = new FlexibilityController(mJobSchedulerService, in setup()
955 doReturn(true).when(mJobSchedulerService).isCurrentlyRunningLocked(js); in testWontStopAlreadyRunningJob()
1299 doReturn(JobInfo.BIAS_DEFAULT).when(mJobSchedulerService).getUidBias(mSourceUid); in testForegroundAppBypass()
1331 doReturn(JobInfo.BIAS_DEFAULT).when(mJobSchedulerService).getUidBias(mSourceUid); in testTopAppBypass()
1877 doReturn(pkgs).when(mJobSchedulerService).getPackagesForUidLocked(mSourceUid); in testUidUpdatesLifeCycle()
[all …]
DTimeControllerTest.java85 private JobSchedulerService mJobSchedulerService; field in TimeControllerTest
96 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setUp()
97 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setUp()
98 when(mJobSchedulerService.getConstants()).thenReturn(mock(Constants.class)); in setUp()
115 mTimeController = new TimeController(mJobSchedulerService); in setUp()
DQuotaControllerTest.java152 private JobSchedulerService mJobSchedulerService; field in QuotaControllerTest
178 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setUp()
179 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setUp()
180 when(mJobSchedulerService.getConstants()).thenReturn(mConstants); in setUp()
210 when(mJobSchedulerService.getJobStore()).thenReturn(mJobStore); in setUp()
249 mQuotaController = new QuotaController(mJobSchedulerService, in setUp()
269 .when(mJobSchedulerService).getPackagesForUidLocked(mSourceUid); in setUp()
293 doReturn(true).when(mJobSchedulerService).isBatteryCharging(); in setCharging()
300 doReturn(false).when(mJobSchedulerService).isBatteryCharging(); in setDischarging()
2123 .when(mJobSchedulerService).getPackagesForUidLocked(unaffectedUid); in testIsWithinQuotaLocked_UnderDuration_UnderJobCount_MultiStateChange_SeparateApps()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/
DDeviceIdlenessTrackerTest.java83 private JobSchedulerService mJobSchedulerService; field in DeviceIdlenessTrackerTest
99 when(mJobSchedulerService.getTestableContext()).thenReturn(mContext); in setUp()
100 when(mJobSchedulerService.getLock()).thenReturn(mJobSchedulerService); in setUp()
101 when(mJobSchedulerService.getConstants()).thenReturn(mConstants); in setUp()
132 mJobSchedulerService, mock(IdlenessListener.class)); in setUp()
155 doReturn(isCharging).when(mJobSchedulerService).isBatteryCharging(); in setBatteryState()
156 doReturn(isBatteryNotLow).when(mJobSchedulerService).isBatteryNotLow(); in setBatteryState()