/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/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | RecentAppsItemManagerTest.java | 62 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/ |
D | RecentAppsItemManager.java | 60 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/ |
D | RecentAppStatsMixin.java | 64 private final UsageStatsManager mUsageStatsManager; field in RecentAppStatsMixin 86 mUsageStatsManager = mContext.getSystemService(UsageStatsManager.class); in RecentAppStatsMixin() 120 : mUsageStatsManager.queryUsageStats( in loadDisplayableRecentApps()
|
D | AppStateNotificationBridge.java | 55 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/ |
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/Car/Settings/src/com/android/car/settings/notifications/ |
D | RecentNotificationsAppsPreferenceController.java | 60 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/ |
D | RecentAppsPreferenceController.java | 65 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/ |
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/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/Car/Launcher/src/com/android/car/carlauncher/ |
D | AppGridActivity.java | 82 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/ |
D | ManageApplications.java | 252 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/ |
D | RecentNotificationsAppsPreferenceControllerTest.java | 104 mPreferenceController.mUsageStatsManager = mMockUsageStatsManager; in setUp()
|