Home
last modified time | relevance | path

Searched refs:mAppStateTracker (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/job/controllers/
DBackgroundJobsController.java57 private final AppStateTracker mAppStateTracker; field in BackgroundJobsController
62 mAppStateTracker = Preconditions.checkNotNull( in BackgroundJobsController()
64 mAppStateTracker.addListener(mForceAppStandbyListener); in BackgroundJobsController()
80 mAppStateTracker.dump(pw); in dumpControllerStateLocked()
90 pw.print(mAppStateTracker.isUidActive(uid) ? " active" : " idle"); in dumpControllerStateLocked()
91 if (mAppStateTracker.isUidPowerSaveWhitelisted(uid) || in dumpControllerStateLocked()
92 mAppStateTracker.isUidTempPowerSaveWhitelisted(uid)) { in dumpControllerStateLocked()
99 pw.print(mAppStateTracker.isRunAnyInBackgroundAppOpsAllowed(uid, sourcePkg) in dumpControllerStateLocked()
117 mAppStateTracker.dumpProto(proto, in dumpControllerStateLocked()
132 mAppStateTracker.isUidActive(sourceUid)); in dumpControllerStateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java287 private AppStateTracker mAppStateTracker; field in AlarmManagerService
1600 mAppStateTracker = LocalServices.getService(AppStateTracker.class); in onBootPhase()
1601 mAppStateTracker.addListener(mForceAppStandbyListener); in onBootPhase()
2105 || ((mAppStateTracker != null)
2106 && mAppStateTracker.isUidPowerSaveUserWhitelisted(callingUid)))) {
2199 if (mAppStateTracker != null) { in dumpImpl()
2200 mAppStateTracker.dump(pw, " "); in dumpImpl()
2603 if (mAppStateTracker != null) { in dumpProto()
2604 mAppStateTracker.dumpProto(proto, in dumpProto()
3435 return (mAppStateTracker != null) && in isBackgroundRestricted()
[all …]
DDeviceIdleController.java290 private final AppStateTracker mAppStateTracker; field in DeviceIdleController
1964 mAppStateTracker = mInjector.getAppStateTracker(context, FgThread.get().getLooper()); in DeviceIdleController()
1965 LocalServices.addService(AppStateTracker.class, mAppStateTracker); in DeviceIdleController()
2096 mAppStateTracker.onSystemServicesReady(); in onBootPhase()
3705 mAppStateTracker.setPowerSaveWhitelistAppIds( in passWhiteListsToForceAppStandbyTrackerLocked()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java121 private AppStateTracker mAppStateTracker; field in AlarmManagerServiceTest
255 doReturn(mAppStateTracker).when(() -> LocalServices.getService(AppStateTracker.class)); in setUp()
779 verify(mAppStateTracker).addListener(listenerArgumentCaptor.capture()); in testAlarmRestrictedInBatterSaver()
782 when(mAppStateTracker.areAlarmsRestricted(TEST_CALLING_UID, TEST_CALLING_PACKAGE, in testAlarmRestrictedInBatterSaver()
DDeviceIdleControllerTest.java113 private AppStateTrackerForTest mAppStateTracker; field in DeviceIdleControllerTest
163 return mAppStateTracker; in getAppStateTracker()
310 mAppStateTracker = new AppStateTrackerForTest(getContext(), Looper.getMainLooper()); in setUp()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java211 AppStateTracker mAppStateTracker; field in JobSchedulerService
990 return mAppStateTracker.isUidActiveSynced(uid); in isUidActive()
1406 mAppStateTracker = Preconditions.checkNotNull( in onBootPhase()