Home
last modified time | relevance | path

Searched refs:AppStateTracker (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/content/
DSyncAdapterStateFetcher.java22 import com.android.server.AppStateTracker;
60 final AppStateTracker ast = in isAppActive()
61 LocalServices.getService(AppStateTracker.class); in isAppActive()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DBackgroundJobsController.java27 import com.android.server.AppStateTracker;
28 import com.android.server.AppStateTracker.Listener;
57 private final AppStateTracker mAppStateTracker;
63 LocalServices.getService(AppStateTracker.class)); in BackgroundJobsController()
/frameworks/base/services/core/java/com/android/server/
DAppStateTracker.java77 public class AppStateTracker { class
261 private void onRunAnyAppOpsChanged(AppStateTracker sender, in onRunAnyAppOpsChanged()
282 private void onUidForegroundStateChanged(AppStateTracker sender, int uid) { in onUidForegroundStateChanged()
289 private void onUidActiveStateChanged(AppStateTracker sender, int uid) { in onUidActiveStateChanged()
302 private void onPowerSaveUnwhitelisted(AppStateTracker sender) { in onPowerSaveUnwhitelisted()
311 private void onPowerSaveWhitelistedChanged(AppStateTracker sender) { in onPowerSaveWhitelistedChanged()
318 private void onTempPowerSaveWhitelistChanged(AppStateTracker sender) { in onTempPowerSaveWhitelistChanged()
331 private void onExemptChanged(AppStateTracker sender) { in onExemptChanged()
340 private void onForceAllAppsStandbyChanged(AppStateTracker sender) { in onForceAllAppsStandbyChanged()
404 public AppStateTracker(Context context, Looper looper) { in AppStateTracker() method in AppStateTracker
[all …]
DDeviceIdleController.java290 private final AppStateTracker mAppStateTracker;
1717 AppStateTracker getAppStateTracker(Context ctx, Looper looper) { in getAppStateTracker()
1718 return new AppStateTracker(ctx, looper); in getAppStateTracker()
1791 LocalServices.addService(AppStateTracker.class, mAppStateTracker); in DeviceIdleController()
DAlarmManagerService.java100 import com.android.server.AppStateTracker.Listener;
288 private AppStateTracker mAppStateTracker;
1602 mAppStateTracker = LocalServices.getService(AppStateTracker.class); in onBootPhase()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java21 import static com.android.server.AppStateTracker.TARGET_OP;
69 import com.android.server.AppStateTracker.Listener;
101 private class AppStateTrackerTestable extends AppStateTracker {
690 AppStateTracker.TARGET_OP, in loadPersistedAppOps()
698 AppStateTracker.TARGET_OP, in loadPersistedAppOps()
706 AppStateTracker.TARGET_OP, in loadPersistedAppOps()
714 AppStateTracker.TARGET_OP, in loadPersistedAppOps()
1220 expected, AppStateTracker.isAnyAppIdUnwhitelisted(prevArray, newArray)); in checkAnyAppIdUnwhitelisted()
1252 final boolean actual = AppStateTracker.isAnyAppIdUnwhitelisted(array1, array2); in isAnyAppIdUnwhitelisted()
DAlarmManagerServiceTest.java119 private AppStateTracker mAppStateTracker;
254 doReturn(mAppStateTracker).when(() -> LocalServices.getService(AppStateTracker.class)); in setUp()
775 final ArgumentCaptor<AppStateTracker.Listener> listenerArgumentCaptor = in testAlarmRestrictedInBatterSaver()
776 ArgumentCaptor.forClass(AppStateTracker.Listener.class); in testAlarmRestrictedInBatterSaver()
DDeviceIdleControllerTest.java148 AppStateTracker getAppStateTracker(Context ctx, Looper loop) { in getAppStateTracker()
213 private class AppStateTrackerForTest extends AppStateTracker {
283 LocalServices.removeServiceForTest(AppStateTracker.class); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java53 import com.android.server.AppStateTracker;
104 doReturn(mock(AppStateTracker.class)) in setUp()
105 .when(() -> LocalServices.getService(AppStateTracker.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java92 import com.android.server.AppStateTracker;
211 AppStateTracker mAppStateTracker;
1407 LocalServices.getService(AppStateTracker.class)); in onBootPhase()
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java93 import com.android.server.AppStateTracker;
191 class ForcedStandbyListener extends AppStateTracker.Listener {
366 AppStateTracker ast = LocalServices.getService(AppStateTracker.class); in systemServicesReady()
/frameworks/base/services/
Dart-profile257 HSPLcom/android/server/-$$Lambda$AppStateTracker$zzioY8jvEm-1GnJ13CUiQGauPEE;->accept(Ljava/lang/Ob…
444 …Service;->access$1200(Lcom/android/server/AlarmManagerService;)Lcom/android/server/AppStateTracker;
517 HSPLcom/android/server/AppStateTracker$FeatureFlagsObserver;->isForcedAppStandbyEnabled()Z
518 HSPLcom/android/server/AppStateTracker$FeatureFlagsObserver;->isForcedAppStandbyForSmallBatteryEnab…
519 HSPLcom/android/server/AppStateTracker$FeatureFlagsObserver;->register()V
520 HSPLcom/android/server/AppStateTracker$Listener;->onUidForeground(IZ)V
521 HSPLcom/android/server/AppStateTracker$Listener;->unblockAlarmsForUid(I)V
522 HSPLcom/android/server/AppStateTracker$Listener;->unblockAllUnrestrictedAlarms()V
523 HSPLcom/android/server/AppStateTracker$Listener;->updateAllJobs()V
524 HSPLcom/android/server/AppStateTracker$Listener;->updateJobsForUid(IZ)V
[all …]