Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/content/
DSyncAdapterStateFetcher.java44 final UsageStatsManagerInternal usmi = in getStandbyBucket() local
46 if (usmi == null) { in getStandbyBucket()
50 final int value = usmi.getAppStandbyBucket(packageName, userId, in getStandbyBucket()
DSyncManager.java1658 final UsageStatsManagerInternal usmi = in scheduleSyncOperationH() local
1660 if (usmi != null) { in scheduleSyncOperationH()
1663 usmi.reportSyncScheduled(syncOperation.owningPackage, in scheduleSyncOperationH()
3538 final UsageStatsManagerInternal usmi = LocalServices.getService( in dispatchSyncOperation() local
3540 if (usmi != null) { in dispatchSyncOperation()
3541 usmi.reportExemptedSyncStart(op.owningPackage, in dispatchSyncOperation()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUsageStatsServiceTest.java96 UsageStatsManagerInternal usmi = LocalServices.getService(UsageStatsManagerInternal.class); in testUsageEventListener() local
97 usmi.registerListener(listener); in testUsageEventListener()
100 usmi.reportEvent("com.android.test", 10, event.getEventType()); in testUsageEventListener()
104 usmi.unregisterListener(listener); in testUsageEventListener()
107 usmi.reportEvent("com.android.test", 0, UsageEvents.Event.CHOOSER_ACTION); in testUsageEventListener()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java211 final UsageStatsManagerInternal usmi = mock(UsageStatsManagerInternal.class);
212 LocalServices.addService(UsageStatsManagerInternal.class, usmi);
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java477 final UsageStatsManagerInternal usmi = in setAppIdleEnabled() local
480 usmi.registerListener(this); in setAppIdleEnabled()
482 usmi.unregisterListener(this); in setAppIdleEnabled()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java598 UsageStatsManagerInternal usmi = LocalServices.getService(UsageStatsManagerInternal.class); in QuotaController() local
599 usmi.registerListener(new UsageEventTracker()); in QuotaController()