Home
last modified time | relevance | path

Searched refs:mUsageStatsManager (Results 1 – 17 of 17) 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/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsItemManagerTest.java62 private UsageStatsManager mUsageStatsManager; field in RecentAppsItemManagerTest
76 when(mContext.getSystemService(UsageStatsManager.class)).thenReturn(mUsageStatsManager); in setUp()
93 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
121 when(mUsageStatsManager.queryUsageStats(anyInt(), anyLong(), anyLong())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DRecentAppsItemManager.java60 private final UsageStatsManager mUsageStatsManager; field in RecentAppsItemManager
78 mUsageStatsManager = mContext.getSystemService(UsageStatsManager.class); in RecentAppsItemManager()
120 List<UsageStats> mStats = mUsageStatsManager.queryUsageStats( in loadDisplayableRecentApps()
/packages/apps/Settings/src/com/android/settings/applications/
DRecentAppStatsMixin.java64 private final UsageStatsManager mUsageStatsManager; field in RecentAppStatsMixin
86 mUsageStatsManager = mContext.getSystemService(UsageStatsManager.class); in RecentAppStatsMixin()
120 : mUsageStatsManager.queryUsageStats( in loadDisplayableRecentApps()
DAppStateNotificationBridge.java55 private IUsageStatsManager mUsageStatsManager; field in AppStateNotificationBridge
65 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge()
152 events = mUsageStatsManager.queryEventsForUser( in getAggregatedUsageEvents()
188 events = mUsageStatsManager.queryEventsForPackageForUser( in getAggregatedUsageEvents()
/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/apps/Car/Settings/src/com/android/car/settings/notifications/
DRecentNotificationsAppsPreferenceController.java60 IUsageStatsManager mUsageStatsManager; field in RecentNotificationsAppsPreferenceController
72 mUsageStatsManager = IUsageStatsManager.Stub.asInterface( in RecentNotificationsAppsPreferenceController()
128 events = mUsageStatsManager.queryEventsForUser(calendar.getTimeInMillis(), in reloadData()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceController.java65 private final UsageStatsManager mUsageStatsManager; field in RecentAppsPreferenceController
95 mUsageStatsManager = in RecentAppsPreferenceController()
210 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/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/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java82 private UsageStatsManager mUsageStatsManager; field in AppGridActivity
148 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
303 mUsageStatsManager.queryUsageStats( in getMostRecentApps()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java252 private IUsageStatsManager mUsageStatsManager; field in ManageApplications
327 mUsageStatsManager = IUsageStatsManager.Stub.asInterface( in onCreate()
1043 manageApplications.mUsageStatsManager, in ApplicationsAdapter()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DRecentNotificationsAppsPreferenceControllerTest.java104 mPreferenceController.mUsageStatsManager = mMockUsageStatsManager; in setUp()