/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateNotificationBridgeTest.java | 87 private IUsageStatsManager mUsageStats; field in AppStateNotificationBridgeTest 107 mock(AppStateBaseBridge.Callback.class), mUsageStats, mUserManager, mBackend); in setUp() 128 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_noEvents() 149 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_onlyNotificationEvents() 171 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_multipleEventsAgg() 194 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_multiplePkgs() 207 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testLoadAllExtraInfo_noEvents() 229 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testLoadAllExtraInfo_multipleEventsAgg() 263 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testLoadAllExtraInfo_multiplePkgs() 288 mock(AppStateBaseBridge.Callback.class), mUsageStats, mUserManager, mBackend); in testLoadAllExtraInfo_multipleUsers() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | InactiveApps.java | 40 private UsageStatsManager mUsageStats; field in InactiveApps 44 mUsageStats = getActivity().getSystemService(UsageStatsManager.class); in onCreate() 87 boolean inactive = mUsageStats.isAppInactive(p.getKey()); in updateSummary() 96 mUsageStats.setAppInactive(packageName, !mUsageStats.isAppInactive(packageName)); in onPreferenceClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | InactiveApps.java | 57 private UsageStatsManager mUsageStats; field in InactiveApps 68 mUsageStats = getActivity().getSystemService(UsageStatsManager.class); in onCreate() 118 final int appBucket = mUsageStats.getAppStandbyBucket(p.getKey()); in updateSummary() 134 mUsageStats.setAppStandbyBucket(preference.getKey(), Integer.parseInt((String) newValue)); in onPreferenceChange()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | InactiveApps.java | 57 private UsageStatsManager mUsageStats; field in InactiveApps 68 mUsageStats = getActivity().getSystemService(UsageStatsManager.class); in onCreate() 118 final int appBucket = mUsageStats.getAppStandbyBucket(p.getKey()); in updateSummary() 134 mUsageStats.setAppStandbyBucket(preference.getKey(), Integer.parseInt((String) newValue)); in onPreferenceChange()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/errorhandling/ |
D | RecoverySuccessCallback.java | 28 private final UsageStatistics mUsageStats; field in RecoverySuccessCallback 31 mUsageStats = usageStats; in RecoverySuccessCallback() 37 mUsageStats.cameraFailure(eventprotos.CameraFailure.FailureReason.UNKNOWN_REASON, in onCallback()
|
D | FatalErrorDialogFailureHandler.java | 32 private final UsageStatistics mUsageStats; field in FatalErrorDialogFailureHandler 37 mUsageStats = usageStats; in FatalErrorDialogFailureHandler() 42 mUsageStats.cameraFailure(eventprotos.CameraFailure.FailureReason.UNKNOWN_REASON, in run()
|
D | FastCameraReset.java | 43 private final UsageStatistics mUsageStats; field in FastCameraReset 52 mUsageStats = usageStats; in FastCameraReset() 58 mUsageStats.cameraFailure(eventprotos.CameraFailure.FailureReason.UNKNOWN_REASON, in run()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoaderTest.java | 71 private HashMap<String, UsageStats> mUsageStats; field in AppsAsyncLoaderTest 98 mUsageStats = new HashMap<>(); in setUp() 100 .thenReturn(mUsageStats); in setUp() 391 mUsageStats.put(packageName, usageStats); in registerLastUse()
|
D | AppStateUsageStatsBridgeTest.java | 67 private HashMap<String, UsageStats> mUsageStats; field in AppStateUsageStatsBridgeTest 92 mUsageStats = new HashMap<>(); in setUp() 94 anyLong())).thenReturn(mUsageStats); in setUp() 415 mUsageStats.put(packageName, usageStats); in registerLastUse()
|