/packages/apps/Settings/src/com/android/settings/applications/ |
D | RecentAppStatsMixin.java | 124 final Optional<UsageStatsManager> usageStatsManager; in loadDisplayableRecentApps() local 126 usageStatsManager = Optional.ofNullable(userHandle).map( in loadDisplayableRecentApps() 129 usageStatsManager = Optional.ofNullable(userHandle).map( in loadDisplayableRecentApps() 134 List<UsageStats> profileStats = usageStatsManager in loadDisplayableRecentApps() 148 private List<UsageStats> getRecentAppsStats(UsageStatsManager usageStatsManager, int userId) { in getRecentAppsStats() argument 151 : usageStatsManager.queryUsageStats( in getRecentAppsStats()
|
D | AppStateNotificationBridge.java | 57 Callback callback, IUsageStatsManager usageStatsManager, in AppStateNotificationBridge() argument 61 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | DigitalWellBeingToastTest.java | 38 final UsageStatsManager usageStatsManager = in testToast() local 47 usageStatsManager.registerAppUsageLimitObserver(observerId, packages, in testToast() 61 () -> usageStatsManager.unregisterAppUsageLimitObserver(observerId)); in testToast() 67 () -> usageStatsManager.unregisterAppUsageLimitObserver(observerId)); in testToast()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/ |
D | UsageStatsManagerHelper.java | 57 public static void reportUserInteraction(@NonNull UsageStatsManager usageStatsManager, in reportUserInteraction() argument 63 Objects.requireNonNull(usageStatsManager); in reportUserInteraction() 65 usageStatsManager.reportUserInteraction(packageName, userId); in reportUserInteraction()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/hibernation/ |
D | HibernationControllerTest.kt | 76 lateinit var usageStatsManager: UsageStatsManager variable in com.android.permissioncontroller.tests.mocking.hibernation.HibernationControllerTest 93 doReturn(usageStatsManager).`when`(context).getSystemService(USAGE_STATS_SERVICE) in setUp() 126 whenever(usageStatsManager.getLastTimeAnyComponentUsed(PACKAGE_NAME_1)).thenReturn( in testHibernateApps_globallyUnusedAppIsGloballyHibernated() 141 whenever(usageStatsManager.getLastTimeAnyComponentUsed(PACKAGE_NAME_1)).thenReturn( in testHibernateApps_globallyUsedAppIsNotGloballyHibernated()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/notification/ |
D | AppNotificationRepositoryTest.kt | 64 private lateinit var usageStatsManager: IUsageStatsManager variable in com.android.settings.spa.notification.AppNotificationRepositoryTest 76 usageStatsManager, in setUp() 121 usageStatsManager.queryEventsForPackageForUser( in mockSentCount() 146 whenever(usageStatsManager.queryEventsForUser(any(), any(), eq(USER_ID), any())) in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | ConvertUtils.java | 220 Context context, IUsageStatsManager usageStatsManager, final Event event, in convertToAppUsageEvent() argument 247 context, usageStatsManager, packageName, taskRootPackageName); in convertToAppUsageEvent() 399 Context context, IUsageStatsManager usageStatsManager, final String packageName, in getEffectivePackageName() argument 401 final int usageSource = getUsageSource(context, usageStatsManager); in getEffectivePackageName() 446 private static int getUsageSource(Context context, IUsageStatsManager usageStatsManager) { in getUsageSource() argument 448 sUsageSource = DatabaseUtils.getUsageSource(context, usageStatsManager); in getUsageSource()
|
D | DatabaseUtils.java | 678 static int getUsageSource(Context context, IUsageStatsManager usageStatsManager) { in getUsageSource() argument 687 usageSource = usageStatsManager.getUsageSource(); in getUsageSource()
|
D | DataProcessor.java | 1021 final IUsageStatsManager usageStatsManager, final long startTime, final long endTime, in loadAppUsageEventsForUserFromService() argument 1026 events = usageStatsManager.queryEventsForUser( in loadAppUsageEventsForUserFromService()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/v31/ |
D | HibernationController.kt | 78 val usageStatsManager = context.getSystemService(USAGE_STATS_SERVICE) as UsageStatsManager in hibernateApps() constant 89 val lastUsedGlobally = usageStatsManager.getLastTimeAnyComponentUsed(pkgName) in hibernateApps()
|
/packages/apps/Settings/src/com/android/settings/spa/notification/ |
D | AppNotificationRepository.kt | 63 private val usageStatsManager: IUsageStatsManager = IUsageStatsManager.Stub.asInterface( constant in com.android.settings.spa.notification.AppNotificationRepository 86 usageStatsManager.queryEventsForUser(startTime, now, userId, context.packageName) in queryEventsForUser() 156 usageStatsManager.queryEventsForPackageForUser( in queryEventsForPackageForUser()
|
/packages/apps/Settings/src/com/android/settings/spa/development/ |
D | UsageStatsListModel.kt | 45 private val usageStatsManager = in <lambda>() constant in com.android.settings.spa.development.UsageStatsListModel 94 return usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_BEST, startTime, now) in <lambda>()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoader.java | 260 public Builder setUsageStatsManager(UsageStatsManager usageStatsManager) { in setUsageStatsManager() argument 261 this.mUsageStatsManager = usageStatsManager; in setUsageStatsManager()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/ |
D | UserDataCollector.java | 665 UsageStatsManager usageStatsManager = mContext.getSystemService(UsageStatsManager.class); in getAppUsageStats() local 666 final List<UsageStats> statsList = usageStatsManager.queryUsageStats( in getAppUsageStats()
|