Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/server/backup/
DUsageStatsBackupHelper.java5 import android.app.usage.UsageStatsManagerInternal;
36 UsageStatsManagerInternal localUsageStatsManager = in getBackupPayload()
37 LocalServices.getService(UsageStatsManagerInternal.class); in getBackupPayload()
56 UsageStatsManagerInternal localUsageStatsManager = in applyRestoredPayload()
57 LocalServices.getService(UsageStatsManagerInternal.class); in applyRestoredPayload()
/frameworks/base/services/core/java/com/android/server/content/
DSyncAdapterStateFetcher.java18 import android.app.usage.UsageStatsManagerInternal;
44 final UsageStatsManagerInternal usmi = in getStandbyBucket()
45 LocalServices.getService(UsageStatsManagerInternal.class); in getStandbyBucket()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java29 import android.app.usage.UsageStatsManagerInternal;
70 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in setUpOnce()
71 LocalServices.addService(UsageStatsManagerInternal.class, in setUpOnce()
72 mock(UsageStatsManagerInternal.class)); in setUpOnce()
73 sService.mUsageStatsService = LocalServices.getService(UsageStatsManagerInternal.class); in setUpOnce()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceManagerServiceTest.java36 import android.app.usage.UsageStatsManagerInternal;
75 LocalServices.addService(UsageStatsManagerInternal.class, in setUp()
76 mock(UsageStatsManagerInternal.class)); in setUp()
88 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in teardown()
/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/core/java/android/app/usage/
DUsageStatsManagerInternal.java33 public abstract class UsageStatsManagerInternal { class
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java34 import android.app.usage.UsageStatsManagerInternal;
85 public final UsageStatsManagerInternal usageStatsManagerInternal;
124 usageStatsManagerInternal = mock(UsageStatsManagerInternal.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java25 import android.app.usage.UsageStatsManagerInternal;
147 UsageStatsManagerInternal getUsageStatsManagerInternal() { in getUsageStatsManagerInternal()
/frameworks/base/services/core/java/com/android/server/
DAppStateTracker.java26 import android.app.usage.UsageStatsManagerInternal;
27 import android.app.usage.UsageStatsManagerInternal.AppIdleStateChangeListener;
93 UsageStatsManagerInternal mUsageStatsManagerInternal;
498 UsageStatsManagerInternal injectUsageStatsManagerInternal() { in injectUsageStatsManagerInternal()
499 return LocalServices.getService(UsageStatsManagerInternal.class); in injectUsageStatsManagerInternal()
/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java27 import android.app.usage.UsageStatsManagerInternal;
285 UsageStatsManagerInternal usageStats = in executeRunnableJob()
286 LocalServices.getService(UsageStatsManagerInternal.class); in executeRunnableJob()
DJobSchedulerService.java40 import android.app.usage.UsageStatsManagerInternal;
41 import android.app.usage.UsageStatsManagerInternal.AppIdleStateChangeListener;
212 final UsageStatsManagerInternal mUsageStats;
1319 mUsageStats = LocalServices.getService(UsageStatsManagerInternal.class); in JobSchedulerService()
2631 UsageStatsManagerInternal usageStats = LocalServices.getService( in standbyBucketForPackage()
2632 UsageStatsManagerInternal.class); in standbyBucketForPackage()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java26 import android.app.usage.UsageStatsManagerInternal;
539 UsageStatsManagerInternal usageStatsManager = in getInitializedStrategy()
540 LocalServices.getService(UsageStatsManagerInternal.class); in getInitializedStrategy()
DAppTimeLimitController.java21 import android.app.usage.UsageStatsManagerInternal;
645 public UsageStatsManagerInternal.AppUsageLimitData getAppUsageLimit( in getAppUsageLimit()
681 return new UsageStatsManagerInternal.AppUsageLimitData( in getAppUsageLimit()
DUsageStatsService.java45 import android.app.usage.UsageStatsManagerInternal;
159 private UsageStatsManagerInternal.AppIdleStateChangeListener mStandbyChangeListener =
160 new UsageStatsManagerInternal.AppIdleStateChangeListener() {
246 publishLocalService(UsageStatsManagerInternal.class, new LocalService()); in onStart()
1619 private final class LocalService extends UsageStatsManagerInternal {
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java41 import android.app.usage.UsageStatsManagerInternal;
140 mock(UsageStatsManagerInternal.class), in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java67 import android.app.usage.UsageStatsManagerInternal;
109 private UsageStatsManagerInternal.AppIdleStateChangeListener mAppStandbyListener;
117 private UsageStatsManagerInternal mUsageStatsManagerInternal;
258 () -> LocalServices.getService(UsageStatsManagerInternal.class)); in setUp()
289 ArgumentCaptor<UsageStatsManagerInternal.AppIdleStateChangeListener> captor = in setUp()
290 ArgumentCaptor.forClass(UsageStatsManagerInternal.AppIdleStateChangeListener.class); in setUp()
DAppStateTrackerTest.java47 import android.app.usage.UsageStatsManagerInternal;
48 import android.app.usage.UsageStatsManagerInternal.AppIdleStateChangeListener;
132 UsageStatsManagerInternal injectUsageStatsManagerInternal() { in injectUsageStatsManagerInternal()
179 private UsageStatsManagerInternal mMockUsageStatsManagerInternal;
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java26 import android.app.usage.UsageStatsManagerInternal;
998 UsageStatsManagerInternal.AppUsageLimitData group = getAppUsageLimit(PKG_SOC1); in testAppUsageLimitObserver_GetAppUsageLimit()
1016 UsageStatsManagerInternal.AppUsageLimitData group = getAppUsageLimit(PKG_SOC1); in testAppUsageLimitObserver_GetAppUsageLimitUsed()
1033 UsageStatsManagerInternal.AppUsageLimitData group = getAppUsageLimit(PKG_SOC1); in testAppUsageLimitObserver_GetAppUsageLimitAllUsed()
1106 private UsageStatsManagerInternal.AppUsageLimitData getAppUsageLimit(String packageName) { in getAppUsageLimit()
DAppStandbyControllerTests.java49 import android.app.usage.UsageStatsManagerInternal;
322 private class TestParoleListener extends UsageStatsManagerInternal.AppIdleStateChangeListener {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java39 import android.app.usage.UsageStatsManagerInternal;
78 doReturn(mock(UsageStatsManagerInternal.class)) in setUp()
79 .when(() -> LocalServices.getService(UsageStatsManagerInternal.class)); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java40 import android.app.usage.UsageStatsManagerInternal;
101 doReturn(mock(UsageStatsManagerInternal.class)) in setUp()
102 .when(() -> LocalServices.getService(UsageStatsManagerInternal.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java32 import android.app.usage.UsageStatsManagerInternal;
100 private final UsageStatsManagerInternal mAppUsageStats;
115 mAppUsageStats = LocalServices.getService(UsageStatsManagerInternal.class); in SliceManagerService()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java27 import android.app.usage.UsageStatsManagerInternal;
121 private final UsageStatsManagerInternal mUsageStatsManagerInternal;
141 LocalServices.getService(UsageStatsManagerInternal.class)); in LauncherAppsImpl()
644 final UsageStatsManagerInternal.AppUsageLimitData data = in getAppUsageLimit()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java47 import android.app.usage.UsageStatsManagerInternal;
618 protected UsageStatsManagerInternal mMockUsageStatsManagerInternal;
759 mMockUsageStatsManagerInternal = mock(UsageStatsManagerInternal.class); in setUp()
765 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in setUp()
766 LocalServices.addService(UsageStatsManagerInternal.class, mMockUsageStatsManagerInternal); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java92 import android.app.usage.UsageStatsManagerInternal;
298 final UsageStatsManagerInternal usageStats = in registerLocalServices()
299 addLocalServiceMock(UsageStatsManagerInternal.class); in registerLocalServices()
446 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in unregisterLocalServices()

12