/frameworks/base/core/java/com/android/server/backup/ |
D | UsageStatsBackupHelper.java | 5 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/ |
D | SyncAdapterStateFetcher.java | 18 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/ |
D | OomAdjusterTests.java | 29 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/ |
D | SliceManagerServiceTest.java | 36 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/ |
D | CacheQuotaStrategy.java | 25 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/ |
D | UsageStatsManagerInternal.java | 33 public abstract class UsageStatsManagerInternal { class
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 34 import android.app.usage.UsageStatsManagerInternal; 85 public final UsageStatsManagerInternal usageStatsManagerInternal; 124 usageStatsManagerInternal = mock(UsageStatsManagerInternal.class); in MockSystemServices()
|
D | DevicePolicyManagerServiceTestable.java | 25 import android.app.usage.UsageStatsManagerInternal; 147 UsageStatsManagerInternal getUsageStatsManagerInternal() { in getUsageStatsManagerInternal()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 26 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/ |
D | JobServiceContext.java | 27 import android.app.usage.UsageStatsManagerInternal; 285 UsageStatsManagerInternal usageStats = in executeRunnableJob() 286 LocalServices.getService(UsageStatsManagerInternal.class); in executeRunnableJob()
|
D | JobSchedulerService.java | 40 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/ |
D | StorageStatsService.java | 26 import android.app.usage.UsageStatsManagerInternal; 539 UsageStatsManagerInternal usageStatsManager = in getInitializedStrategy() 540 LocalServices.getService(UsageStatsManagerInternal.class); in getInitializedStrategy()
|
D | AppTimeLimitController.java | 21 import android.app.usage.UsageStatsManagerInternal; 645 public UsageStatsManagerInternal.AppUsageLimitData getAppUsageLimit( in getAppUsageLimit() 681 return new UsageStatsManagerInternal.AppUsageLimitData( in getAppUsageLimit()
|
D | UsageStatsService.java | 45 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/ |
D | RoleObserverTest.java | 41 import android.app.usage.UsageStatsManagerInternal; 140 mock(UsageStatsManagerInternal.class), in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AlarmManagerServiceTest.java | 67 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()
|
D | AppStateTrackerTest.java | 47 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/ |
D | AppTimeLimitControllerTests.java | 26 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()
|
D | AppStandbyControllerTests.java | 49 import android.app.usage.UsageStatsManagerInternal; 322 private class TestParoleListener extends UsageStatsManagerInternal.AppIdleStateChangeListener {
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | JobStatusTest.java | 39 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/ |
D | JobSchedulerServiceTest.java | 40 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/ |
D | SliceManagerService.java | 32 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/ |
D | LauncherAppsService.java | 27 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/ |
D | BaseShortcutManagerTest.java | 47 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/ |
D | NetworkPolicyManagerServiceTest.java | 92 import android.app.usage.UsageStatsManagerInternal; 298 final UsageStatsManagerInternal usageStats = in registerLocalServices() 299 addLocalServiceMock(UsageStatsManagerInternal.class); in registerLocalServices() 446 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in unregisterLocalServices()
|