Home
last modified time | relevance | path

Searched refs:usageStatsManager (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DRecentAppStatsMixin.java124 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()
DAppStateNotificationBridge.java57 Callback callback, IUsageStatsManager usageStatsManager, in AppStateNotificationBridge() argument
61 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DDigitalWellBeingToastTest.java38 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/
DUsageStatsManagerHelper.java57 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/
DHibernationControllerTest.kt76 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/
DAppNotificationRepositoryTest.kt64 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/
DConvertUtils.java220 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()
DDatabaseUtils.java678 static int getUsageSource(Context context, IUsageStatsManager usageStatsManager) { in getUsageSource() argument
687 usageSource = usageStatsManager.getUsageSource(); in getUsageSource()
DDataProcessor.java1021 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/
DHibernationController.kt78 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/
DAppNotificationRepository.kt63 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/
DUsageStatsListModel.kt45 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/
DAppsAsyncLoader.java260 public Builder setUsageStatsManager(UsageStatsManager usageStatsManager) { in setUsageStatsManager() argument
261 this.mUsageStatsManager = usageStatsManager; in setUsageStatsManager()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/
DUserDataCollector.java665 UsageStatsManager usageStatsManager = mContext.getSystemService(UsageStatsManager.class); in getAppUsageStats() local
666 final List<UsageStats> statsList = usageStatsManager.queryUsageStats( in getAppUsageStats()