Searched refs:usageStatsManager (Results 1 – 5 of 5) sorted by relevance
38 final UsageStatsManager usageStatsManager = in testToast() local47 usageStatsManager.registerAppUsageLimitObserver(observerId, packages, in testToast()59 () -> usageStatsManager.unregisterAppUsageLimitObserver(observerId)); in testToast()65 () -> usageStatsManager.unregisterAppUsageLimitObserver(observerId)); in testToast()
75 lateinit var usageStatsManager: UsageStatsManager variable in com.android.permissioncontroller.hibernation.HibernationControllerTest92 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()
76 val usageStatsManager = context.getSystemService(USAGE_STATS_SERVICE) as UsageStatsManager in hibernateApps() constant87 val lastUsedGlobally = usageStatsManager.getLastTimeAnyComponentUsed(pkgName) in hibernateApps()
61 Callback callback, IUsageStatsManager usageStatsManager, in AppStateNotificationBridge() argument65 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge()
260 public Builder setUsageStatsManager(UsageStatsManager usageStatsManager) { in setUsageStatsManager() argument261 this.mUsageStatsManager = usageStatsManager; in setUsageStatsManager()