Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActiveServicesTest.java68 private ActiveServices mActiveServices; field in ActiveServicesTest
104 mActiveServices.rescheduleServiceRestartOnMemoryPressureIfNeededLocked(false, true, now); in testRescheduleServiceRestartsOnChanges()
108 mActiveServices.rescheduleServiceRestartOnMemoryPressureIfNeededLocked(true, false, now); in testRescheduleServiceRestartsOnChanges()
113 mActiveServices.rescheduleServiceRestartOnMemoryPressureIfNeededLocked(false, true, now2); in testRescheduleServiceRestartsOnChanges()
118 mActiveServices.rescheduleServiceRestartOnMemoryPressureIfNeededLocked(true, false, now2); in testRescheduleServiceRestartsOnChanges()
128 mActiveServices.rescheduleServiceRestartOnMemoryPressureIfNeededLocked( in testRescheduleServiceRestartsOnChanges()
139 mActiveServices.rescheduleServiceRestartOnMemoryPressureIfNeededLocked( in testRescheduleServiceRestartsOnChanges()
150 mActiveServices.rescheduleServiceRestartOnMemoryPressureIfNeededLocked( in testRescheduleServiceRestartsOnChanges()
175 mActiveServices.mRestartingServices.remove(1); in testRescheduleServiceRestartsOnOtherChanges()
176 mActiveServices.rescheduleServiceRestartIfPossibleLocked(extra, btwn, "test", now); in testRescheduleServiceRestartsOnOtherChanges()
[all …]
DServiceTimeoutTest.java91 private ActiveServices mActiveServices; field in ServiceTimeoutTest
158 mActiveServices.scheduleServiceTimeoutLocked(app); in testServiceTimeoutAndProcessKill()
160 verify(mActiveServices, timeout(DEFAULT_SERVICE_TIMEOUT * 2).times(1)) in testServiceTimeoutAndProcessKill()
163 clearInvocations(mActiveServices); in testServiceTimeoutAndProcessKill()
166 mActiveServices.scheduleServiceTimeoutLocked(app); in testServiceTimeoutAndProcessKill()
171 verify(mActiveServices, after(DEFAULT_SERVICE_TIMEOUT * 4) in testServiceTimeoutAndProcessKill()
198 if (mActiveServices == null) { in getActiveServices()
199 mActiveServices = spy(new ActiveServices(service)); in getActiveServices()
201 return mActiveServices; in getActiveServices()
DServiceBindingOomAdjPolicyTest.java137 private ActiveServices mActiveServices; field in ServiceBindingOomAdjPolicyTest
634 if (mActiveServices == null) { in getActiveServices()
635 mActiveServices = spy(new ActiveServices(service)); in getActiveServices()
637 return mActiveServices; in getActiveServices()
DActivityManagerServiceTest.java236 private ActiveServices mActiveServices; field in ActivityManagerServiceTest
1380 doReturn(true).when(mActiveServices) in testStartForegroundServiceDelegate()
1382 doReturn(REASON_DENIED).when(mActiveServices) in testStartForegroundServiceDelegate()
1541 if (mActiveServices == null) { in getActiveServices()
1542 mActiveServices = spy(new ActiveServices(service)); in getActiveServices()
1544 return mActiveServices; in getActiveServices()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java72 private ArrayMap<ServiceConnection, ComponentName> mActiveServices; field in TestableContext
323 if (mActiveServices == null) mActiveServices = new ArrayMap<>(); in checkMocks()
324 mActiveServices.put(conn, serviceComponent); in checkMocks()
348 if (mActiveServices != null && mActiveServices.containsKey(conn)) { in unbindService()
349 conn.onServiceDisconnected(mActiveServices.get(conn)); in unbindService()
350 mActiveServices.remove(conn); in unbindService()
364 return mActiveServices != null && mActiveServices.containsValue(component); in isBound()
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java120 private final ArrayMap<ComponentName, RemotePrintService> mActiveServices = field in UserState
193 service = mActiveServices.get(printServiceName); in onPrintJobQueued()
210 service = mActiveServices.get(printService); in onAllPrintJobsForServiceHandled()
334 RemotePrintService service = mActiveServices.get(printerId.getServiceName()); in getCustomPrinterIcon()
359 printService = mActiveServices.get(printServiceName); in cancelPrintJob()
393 installedService.setIsEnabled(mActiveServices.containsKey(componentName)); in getPrintServices()
526 if (mActiveServices.isEmpty()) { in validatePrinters()
542 if (mActiveServices.isEmpty()) { in startPrinterStateTracking()
558 if (mActiveServices.isEmpty()) { in stopPrinterStateTracking()
736 if (mActiveServices.isEmpty()) { in onPrintersAdded()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobConcurrencyManager.java407 final List<JobServiceContext> mActiveServices = new ArrayList<>(); field in JobConcurrencyManager
686 for (int i = mActiveServices.size() - 1; i >= 0; --i) { in isJobInOvertimeLocked()
687 final JobServiceContext jsc = mActiveServices.get(i); in isJobInOvertimeLocked()
827 final List<JobServiceContext> activeServices = mActiveServices; in prepareForAssignmentDeterminationLocked()
915 final List<JobServiceContext> activeServices = mActiveServices; in determineAssignmentsLocked()
1308 for (int i = 0; i < mActiveServices.size(); i++) { in getRunningJobServiceContextLocked()
1309 JobServiceContext jsc = mActiveServices.get(i); in getRunningJobServiceContextLocked()
1327 for (int i = 0; i < mActiveServices.size(); i++) { in stopJobOnServiceContextLocked()
1328 JobServiceContext jsc = mActiveServices.get(i); in stopJobOnServiceContextLocked()
1344 for (int i = 0; i < mActiveServices.size(); i++) { in stopUnexemptedJobsForDoze()
[all …]
DJobSchedulerService.java3456 for (int i = mConcurrencyManager.mActiveServices.size() - 1; i >= 0;
3459 mConcurrencyManager.mActiveServices.get(i);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobConcurrencyManagerTest.java403 && mJobConcurrencyManager.mActiveServices.size() in testDetermineAssignments_allPreferredUidOnly_mediumTimeLeft_onlyRegRunning()
475 && mJobConcurrencyManager.mActiveServices.size() in testDetermineAssignments_allPreferredUidOnly_mediumTimeLeft_onlyUiRunning()