/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 61 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/ |
D | RecentAppsPreferenceControllerTest.java | 82 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/ |
D | AppsAsyncLoader.java | 74 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()
|
D | AppStateUsageStatsBridge.java | 53 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/ |
D | AppStateNotificationBridge.java | 53 private IUsageStatsManager mUsageStatsManager; field in AppStateNotificationBridge 63 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge() 147 events = mUsageStatsManager.queryEventsForUser( in getAggregatedUsageEvents() 183 events = mUsageStatsManager.queryEventsForPackageForUser( in getAggregatedUsageEvents()
|
D | RecentAppStatsMixin.java | 64 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/ |
D | AppStateNotificationBridge.java | 53 private IUsageStatsManager mUsageStatsManager; field in AppStateNotificationBridge 63 mUsageStatsManager = usageStatsManager; in AppStateNotificationBridge() 145 events = mUsageStatsManager.queryEventsForUser( in getAggregatedUsageEvents() 181 events = mUsageStatsManager.queryEventsForPackageForUser( in getAggregatedUsageEvents()
|
D | RecentAppStatsMixin.java | 64 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/ |
D | UsageStatsActivity.java | 54 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/ |
D | UsageStatsActivity.java | 54 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/ |
D | RecentAppsPreferenceController.java | 65 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/ |
D | AppsAsyncLoaderTest.java | 65 @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()
|
D | AppStateUsageStatsBridgeTest.java | 63 @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/ |
D | AppGridActivity.java | 76 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/ |
D | TetherService.java | 371 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/ |
D | RecentNotifyingAppsPreferenceController.java | 81 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/ |
D | TetherService.java | 436 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/ |
D | ManageApplications.java | 230 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/ |
D | ManageApplications.java | 224 private IUsageStatsManager mUsageStatsManager; field in ManageApplications 292 mUsageStatsManager = IUsageStatsManager.Stub.asInterface( in onCreate() 947 manageApplications.mUsageStatsManager, in ApplicationsAdapter()
|