Home
last modified time | relevance | path

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

/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DDigitalWellBeingToastTest.java38 final UsageStatsManager usageStatsManager = in testToast() local
47 usageStatsManager.registerAppUsageLimitObserver(observerId, packages, in testToast()
59 () -> usageStatsManager.unregisterAppUsageLimitObserver(observerId)); in testToast()
65 () -> usageStatsManager.unregisterAppUsageLimitObserver(observerId)); in testToast()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/hibernation/
DHibernationControllerTest.kt75 lateinit var usageStatsManager: UsageStatsManager variable in com.android.permissioncontroller.hibernation.HibernationControllerTest
92 doReturn(usageStatsManager).`when`(context).getSystemService(USAGE_STATS_SERVICE) in setUp()
125 whenever(usageStatsManager.getLastTimeAnyComponentUsed(PACKAGE_NAME_1)).thenReturn( in testHibernateApps_globallyUnusedAppIsGloballyHibernated()
140 whenever(usageStatsManager.getLastTimeAnyComponentUsed(PACKAGE_NAME_1)).thenReturn( in testHibernateApps_globallyUsedAppIsNotGloballyHibernated()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/
DHibernationController.kt76 val usageStatsManager = context.getSystemService(USAGE_STATS_SERVICE) as UsageStatsManager in hibernateApps() constant
87 val lastUsedGlobally = usageStatsManager.getLastTimeAnyComponentUsed(pkgName) in hibernateApps()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java61 Callback callback, IUsageStatsManager usageStatsManager, in AppStateNotificationBridge() argument
65 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoader.java260 public Builder setUsageStatsManager(UsageStatsManager usageStatsManager) { in setUsageStatsManager() argument
261 this.mUsageStatsManager = usageStatsManager; in setUsageStatsManager()