Home
last modified time | relevance | path

Searched refs:mUsageStatsManager (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java61 private UsageStatsManager mUsageStatsManager; field in RecentAppStatsMixinTest
83 doReturn(mUsageStatsManager).when(context).getSystemService(Context.USAGE_STATS_SERVICE); in setUp()
104 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
139 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
175 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
199 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
231 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash()
277 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_hiddenSystemModuleSet_shouldNotHaveHiddenSystemModule()
301 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_powerSaverModeOn_shouldHaveEmptyList()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceControllerTest.java82 private UsageStatsManager mUsageStatsManager; field in RecentAppsPreferenceControllerTest
101 doReturn(mUsageStatsManager).when(mContext).getSystemService(Context.USAGE_STATS_SERVICE); in setUp()
165 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in display_showRecents()
203 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in display_showRecentsWithInstantApp()
239 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in display_showRecentsWithNullAppEntryOrInfo()
266 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in display_hasRecentButNoneDisplayable_showAllApps()
286 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in display_showRecents_formatSummary()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoader.java74 private UsageStatsManager mUsageStatsManager; field in AppsAsyncLoader
89 mUsageStatsManager = um; in AppsAsyncLoader()
105 mUsageStatsManager.queryAndAggregateUsageStats(startTime, now); in loadApps()
181 mUsageStatsManager.queryUsageStats( in getLatestUsageStatsByPackageName()
233 private UsageStatsManager mUsageStatsManager; field in AppsAsyncLoader.Builder
261 this.mUsageStatsManager = usageStatsManager; in setUsageStatsManager()
277 mUsageStatsManager, in build()
DAppStateUsageStatsBridge.java53 private UsageStatsManager mUsageStatsManager; field in AppStateUsageStatsBridge
62 mUsageStatsManager = in AppStateUsageStatsBridge()
126 return mUsageStatsManager.queryAndAggregateUsageStats(startTime, now); in getAggregatedUsageStats()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java53 private IUsageStatsManager mUsageStatsManager; field in AppStateNotificationBridge
63 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge()
147 events = mUsageStatsManager.queryEventsForUser( in getAggregatedUsageEvents()
183 events = mUsageStatsManager.queryEventsForPackageForUser( in getAggregatedUsageEvents()
DRecentAppStatsMixin.java64 private final UsageStatsManager mUsageStatsManager; field in RecentAppStatsMixin
86 mUsageStatsManager = mContext.getSystemService(UsageStatsManager.class); in RecentAppStatsMixin()
120 : mUsageStatsManager.queryUsageStats( in loadDisplayableRecentApps()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateNotificationBridge.java53 private IUsageStatsManager mUsageStatsManager; field in AppStateNotificationBridge
63 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge()
145 events = mUsageStatsManager.queryEventsForUser( in getAggregatedUsageEvents()
181 events = mUsageStatsManager.queryEventsForPackageForUser( in getAggregatedUsageEvents()
DRecentAppStatsMixin.java64 private final UsageStatsManager mUsageStatsManager; field in RecentAppStatsMixin
86 mUsageStatsManager = mContext.getSystemService(UsageStatsManager.class); in RecentAppStatsMixin()
120 : mUsageStatsManager.queryUsageStats( in loadDisplayableRecentApps()
/packages/apps/Settings/src/com/android/settings/
DUsageStatsActivity.java54 private UsageStatsManager mUsageStatsManager; field in UsageStatsActivity
114 mUsageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_BEST, in UsageStatsAdapter()
234 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUsageStatsActivity.java54 private UsageStatsManager mUsageStatsManager; field in UsageStatsActivity
114 mUsageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_BEST, in UsageStatsAdapter()
234 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceController.java65 private final UsageStatsManager mUsageStatsManager; field in RecentAppsPreferenceController
95 mUsageStatsManager = in RecentAppsPreferenceController()
204 mStats = mUsageStatsManager.queryUsageStats( in reloadData()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java65 @Mock private UsageStatsManager mUsageStatsManager; field in AppsAsyncLoaderTest
80 app.setSystemService(Context.USAGE_STATS_SERVICE, mUsageStatsManager); in setUp()
99 when(mUsageStatsManager.queryAndAggregateUsageStats(anyLong(), anyLong())) in setUp()
109 .setUsageStatsManager(mUsageStatsManager) in setUp()
DAppStateUsageStatsBridgeTest.java63 @Mock private UsageStatsManager mUsageStatsManager; field in AppStateUsageStatsBridgeTest
83 app.setSystemService(Context.USAGE_STATS_SERVICE, mUsageStatsManager); in setUp()
93 when(mUsageStatsManager.queryAndAggregateUsageStats(anyLong(), in setUp()
390 verify(mUsageStatsManager, atLeastOnce()) in testStartEndIsBeforeEndTimeInQuery()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java76 private UsageStatsManager mUsageStatsManager; field in AppGridActivity
140 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
275 mUsageStatsManager.queryUsageStats( in getMostRecentApps()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DTetherService.java371 private final UsageStatsManager mUsageStatsManager; field in TetherService.TetherServiceWrapper
374 mUsageStatsManager = (UsageStatsManager) in TetherServiceWrapper()
379 mUsageStatsManager.setAppInactive(packageName, isInactive); in setAppInactive()
/packages/apps/Settings/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceController.java81 private IUsageStatsManager mUsageStatsManager; field in RecentNotifyingAppsPreferenceController
110 mUsageStatsManager = usageStatsManager; in RecentNotifyingAppsPreferenceController()
172 events = mUsageStatsManager.queryEventsForUser(mCal.getTimeInMillis(), in reloadData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DTetherService.java436 private final UsageStatsManager mUsageStatsManager; field in TetherService.TetherServiceWrapper
439 mUsageStatsManager = (UsageStatsManager) in TetherServiceWrapper()
444 mUsageStatsManager.setAppInactive(packageName, isInactive); in setAppInactive()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java230 private IUsageStatsManager mUsageStatsManager; field in ManageApplications
298 mUsageStatsManager = IUsageStatsManager.Stub.asInterface( in onCreate()
960 manageApplications.mUsageStatsManager, in ApplicationsAdapter()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/
DManageApplications.java224 private IUsageStatsManager mUsageStatsManager; field in ManageApplications
292 mUsageStatsManager = IUsageStatsManager.Stub.asInterface( in onCreate()
947 manageApplications.mUsageStatsManager, in ApplicationsAdapter()