Home
last modified time | relevance | path

Searched refs:UsageStatsManagerInternal (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/backup/
DUsageStatsBackupHelper.java6 import android.app.usage.UsageStatsManagerInternal;
44 UsageStatsManagerInternal localUsageStatsManager = in getBackupPayload()
45 LocalServices.getService(UsageStatsManagerInternal.class); in getBackupPayload()
66 UsageStatsManagerInternal localUsageStatsManager = in applyRestoredPayload()
67 LocalServices.getService(UsageStatsManagerInternal.class); in applyRestoredPayload()
/frameworks/base/services/core/java/com/android/server/content/
DSyncAdapterStateFetcher.java19 import android.app.usage.UsageStatsManagerInternal;
43 final UsageStatsManagerInternal usmi = in getStandbyBucket()
44 LocalServices.getService(UsageStatsManagerInternal.class); in getStandbyBucket()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUsageStatsServiceTest.java32 import android.app.usage.UsageStatsManagerInternal;
96 UsageStatsManagerInternal usmi = LocalServices.getService(UsageStatsManagerInternal.class); in testUsageEventListener()
113 UsageStatsManagerInternal.UsageEventListener {
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceManagerServiceTest.java36 import android.app.usage.UsageStatsManagerInternal;
76 LocalServices.addService(UsageStatsManagerInternal.class, in setUp()
77 mock(UsageStatsManagerInternal.class)); in setUp()
88 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in teardown()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsIdleService.java23 import android.app.usage.UsageStatsManagerInternal;
119 final UsageStatsManagerInternal usageStatsManagerInternal = LocalServices.getService( in onStartJob()
120 UsageStatsManagerInternal.class); in onStartJob()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java30 import android.app.usage.UsageStatsManagerInternal;
97 LocalServices.addService(UsageStatsManagerInternal.class, in setUpOnce()
98 mock(UsageStatsManagerInternal.class)); in setUpOnce()
99 sService.mUsageStatsService = LocalServices.getService(UsageStatsManagerInternal.class); in setUpOnce()
118 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in tearDownOnce()
/frameworks/base/services/people/java/com/android/server/people/data/
DUsageStatsQueryHelper.java24 import android.app.usage.UsageStatsManagerInternal;
41 private final UsageStatsManagerInternal mUsageStatsManagerInternal;
231 private static UsageStatsManagerInternal getUsageStatsManagerInternal() { in getUsageStatsManagerInternal()
232 return LocalServices.getService(UsageStatsManagerInternal.class); in getUsageStatsManagerInternal()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundInstallControlService.java26 import android.app.usage.UsageStatsManagerInternal;
142 UsageStatsManagerInternal usageStatsManagerInternal = in BackgroundInstallControlService()
617 UsageStatsManagerInternal getUsageStatsManagerInternal(); in getUsageStatsManagerInternal()
652 public UsageStatsManagerInternal getUsageStatsManagerInternal() { in getUsageStatsManagerInternal()
653 return LocalServices.getService(UsageStatsManagerInternal.class); in getUsageStatsManagerInternal()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceTimeoutTest.java37 import android.app.usage.UsageStatsManagerInternal;
87 private UsageStatsManagerInternal mUsageStatsManagerInt;
DAsyncProcessStartTest.java36 import android.app.usage.UsageStatsManagerInternal;
93 private UsageStatsManagerInternal mUsageStatsManagerInt;
DProcessObserverTest.java36 import android.app.usage.UsageStatsManagerInternal;
92 private UsageStatsManagerInternal mUsageStatsManagerInt;
DBaseBroadcastQueueTest.java29 import android.app.usage.UsageStatsManagerInternal;
107 UsageStatsManagerInternal mUsageStatsManagerInt;
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DUsageStatsQueryHelperTest.java37 import android.app.usage.UsageStatsManagerInternal;
75 private UsageStatsManagerInternal mUsageStatsManagerInternal;
86 addLocalServiceMock(UsageStatsManagerInternal.class, mUsageStatsManagerInternal); in setUp()
104 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in tearDown()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java50 import android.app.usage.UsageStatsManagerInternal;
301 final UsageStatsManagerInternal usmi = mock(UsageStatsManagerInternal.class);
302 LocalServices.addService(UsageStatsManagerInternal.class, usmi);
496 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class);
642 setUsageStatsManager(LocalServices.getService(UsageStatsManagerInternal.class));
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java25 import android.app.usage.UsageStatsManagerInternal;
88 private final UsageStatsManagerInternal mUsageStats;
96 Context context, UsageStatsManagerInternal usageStatsManager, Installer installer, in CacheQuotaStrategy()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DPrefetchController.java29 import android.app.usage.UsageStatsManagerInternal;
30 import android.app.usage.UsageStatsManagerInternal.EstimatedLaunchTimeChangedListener;
74 private final UsageStatsManagerInternal mUsageStatsManagerInternal;
136 mUsageStatsManagerInternal = LocalServices.getService(UsageStatsManagerInternal.class); in PrefetchController()
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/
DAppHibernationServiceTest.java46 import android.app.usage.UsageStatsManagerInternal;
47 import android.app.usage.UsageStatsManagerInternal.UsageEventListener;
118 private UsageStatsManagerInternal mUsageStatsManagerInternal;
577 public UsageStatsManagerInternal getUsageStatsManagerInternal() { in getUsageStatsManagerInternal()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DPrefetchControllerTest.java45 import android.app.usage.UsageStatsManagerInternal;
46 import android.app.usage.UsageStatsManagerInternal.EstimatedLaunchTimeChangedListener;
104 private UsageStatsManagerInternal mUsageStatsManagerInternal;
120 .when(() -> LocalServices.getService(UsageStatsManagerInternal.class)); in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java45 import android.app.usage.UsageStatsManagerInternal;
163 mock(UsageStatsManagerInternal.class), in setUp()
170 mock(UsageStatsManagerInternal.class), mock(TelecomManager.class), in setUp()
/frameworks/base/services/core/java/com/android/server/apphibernation/
DAppHibernationService.java41 import android.app.usage.UsageStatsManagerInternal;
42 import android.app.usage.UsageStatsManagerInternal.UsageEventListener;
1002 UsageStatsManagerInternal getUsageStatsManagerInternal(); in getUsageStatsManagerInternal()
1059 public UsageStatsManagerInternal getUsageStatsManagerInternal() { in getUsageStatsManagerInternal()
1060 return LocalServices.getService(UsageStatsManagerInternal.class); in getUsageStatsManagerInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java38 import android.app.usage.UsageStatsManagerInternal;
106 public final UsageStatsManagerInternal usageStatsManagerInternal;
164 usageStatsManagerInternal = mock(UsageStatsManagerInternal.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java27 import android.app.usage.UsageStatsManagerInternal;
137 UsageStatsManagerInternal getUsageStatsManagerInternal() { in getUsageStatsManagerInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java33 import android.app.usage.UsageStatsManagerInternal;
1046 UsageStatsManagerInternal.AppUsageLimitData group = getAppUsageLimit(PKG_SOC1); in testAppUsageLimitObserver_GetAppUsageLimit()
1064 UsageStatsManagerInternal.AppUsageLimitData group = getAppUsageLimit(PKG_SOC1); in testAppUsageLimitObserver_GetAppUsageLimitUsed()
1081 UsageStatsManagerInternal.AppUsageLimitData group = getAppUsageLimit(PKG_SOC1); in testAppUsageLimitObserver_GetAppUsageLimitAllUsed()
1154 private UsageStatsManagerInternal.AppUsageLimitData getAppUsageLimit(String packageName) { in getAppUsageLimit()
/frameworks/base/services/core/java/android/app/usage/
DUsageStatsManagerInternal.java43 public abstract class UsageStatsManagerInternal { class
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPolicyEnforcerCallbacks.java37 import android.app.usage.UsageStatsManagerInternal;
232 LocalServices.getService(UsageStatsManagerInternal.class)

123