Home
last modified time | relevance | path

Searched refs:mUsageStats (Results 1 – 16 of 16) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DInactiveApps.java39 private UsageStatsManager mUsageStats; field in InactiveApps
43 mUsageStats = getActivity().getSystemService(UsageStatsManager.class); in onCreate()
86 boolean inactive = mUsageStats.isAppInactive(p.getKey()); in updateSummary()
95 mUsageStats.setAppInactive(packageName, !mUsageStats.isAppInactive(packageName)); in onPreferenceClick()
/packages/services/Car/cpp/evs/manager/1.1/
DHalCamera.cpp42 mUsageStats->writeStats(); in ~HalCamera()
81 mUsageStats->updateNumClients(mClients.size()); in ownVirtualCamera()
107 mUsageStats->updateNumClients(mClients.size()); in disownVirtualCamera()
132 mUsageStats->updateNumClients(mClients.size()); in disownVirtualCamera()
361 mUsageStats->framesReturned(returnedBuffers); in doneWithFrame()
377 mUsageStats->framesReceived(); in deliverFrame()
378 mUsageStats->framesReturned(); in deliverFrame()
409 mUsageStats->framesSkippedToSync(); in deliverFrame_1_1()
423 mUsageStats->framesReceived(buffer); in deliverFrame_1_1()
448 mUsageStats->framesReturned(buffer); in deliverFrame_1_1()
[all …]
DHalCamera.h49 mUsageStats(new CameraUsageStats(recordId)) { in mHwCamera()
151 android::sp<CameraUsageStats> mUsageStats; variable
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppsPreferenceControllerTest.java73 private List<RecentAppStatsMixin.UsageStatsWrapper> mUsageStats; field in AppsPreferenceControllerTest
124 doReturn(mUsageStats).when(mController).loadRecentApps(); in displayPreference_hasRecentApps_showRecentApps()
144 mUsageStats = new ArrayList<>(); in initRecentApps()
150 mUsageStats.add(statsWrapperOf(stat1)); in initRecentApps()
154 mUsageStats.add(statsWrapperOf(stat2)); in initRecentApps()
158 mUsageStats.add(statsWrapperOf(stat3)); in initRecentApps()
DAppStateNotificationBridgeTest.java84 private IUsageStatsManager mUsageStats; field in AppStateNotificationBridgeTest
104 mock(AppStateBaseBridge.Callback.class), mUsageStats, mUserManager, mBackend); in setUp()
125 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_noEvents()
146 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_onlyNotificationEvents()
168 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_multipleEventsAgg()
191 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testGetAggregatedUsageEvents_multiplePkgs()
204 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testLoadAllExtraInfo_noEvents()
231 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testLoadAllExtraInfo_multipleEventsAgg()
264 when(mUsageStats.queryEventsForUser(anyLong(), anyLong(), anyInt(), anyString())) in testLoadAllExtraInfo_multiplePkgs()
290 mock(AppStateBaseBridge.Callback.class), mUsageStats, mUserManager, mBackend); in testLoadAllExtraInfo_multipleUsers()
[all …]
DRecentAppStatsMixinTest.java367 assertThat(mRecentAppStatsMixin.mRecentApps.get(0).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
369 assertThat(mRecentAppStatsMixin.mRecentApps.get(1).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
371 assertThat(mRecentAppStatsMixin.mRecentApps.get(2).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
423 assertThat(mRecentAppStatsMixin.mRecentApps.get(0).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeUniquePerProfile()
425 assertThat(mRecentAppStatsMixin.mRecentApps.get(1).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeUniquePerProfile()
427 assertThat(mRecentAppStatsMixin.mRecentApps.get(2).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeUniquePerProfile()
480 assertThat(mRecentAppStatsMixin.mRecentApps.get(0).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
482 assertThat(mRecentAppStatsMixin.mRecentApps.get(1).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
484 assertThat(mRecentAppStatsMixin.mRecentApps.get(2).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
486 assertThat(mRecentAppStatsMixin.mRecentApps.get(3).mUsageStats.mPackageName).isEqualTo( in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
/packages/apps/Camera2/src/com/android/camera/one/v2/errorhandling/
DRecoverySuccessCallback.java28 private final UsageStatistics mUsageStats; field in RecoverySuccessCallback
31 mUsageStats = usageStats; in RecoverySuccessCallback()
37 mUsageStats.cameraFailure(eventprotos.CameraFailure.FailureReason.UNKNOWN_REASON, in onCallback()
DFatalErrorDialogFailureHandler.java32 private final UsageStatistics mUsageStats; field in FatalErrorDialogFailureHandler
37 mUsageStats = usageStats; in FatalErrorDialogFailureHandler()
42 mUsageStats.cameraFailure(eventprotos.CameraFailure.FailureReason.UNKNOWN_REASON, in run()
DFastCameraReset.java43 private final UsageStatistics mUsageStats; field in FastCameraReset
52 mUsageStats = usageStats; in FastCameraReset()
58 mUsageStats.cameraFailure(eventprotos.CameraFailure.FailureReason.UNKNOWN_REASON, in run()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DInactiveApps.java63 private UsageStatsManager mUsageStats; field in InactiveApps
74 mUsageStats = getActivity().getSystemService(UsageStatsManager.class); in onCreate()
118 final int minBucket = mUsageStats.getAppMinStandbyBucket(packageName); in getAllowableBuckets()
158 final int appBucket = mUsageStats.getAppStandbyBucket(p.getKey()); in updateSummary()
175 mUsageStats.setAppStandbyBucket(preference.getKey(), Integer.parseInt((String) newValue)); in onPreferenceChange()
/packages/services/Car/cpp/evs/manager/aidl/src/
DHalCamera.cpp45 mUsageStats->writeStats(); in ~HalCamera()
80 mUsageStats->updateNumClients(mClients.size()); in ownVirtualCamera()
110 mUsageStats->updateNumClients(mClients.size()); in disownVirtualCamera()
315 mUsageStats->framesReturned(buffersToReturn); in doneWithFrame()
328 mUsageStats->framesReceived(buffers); in deliverFrame()
359 mUsageStats->framesSkippedToSync(); in deliverFrame()
383 mUsageStats->framesReturned(buffers); in deliverFrame()
537 return mUsageStats->snapshot(); in getStats()
/packages/apps/Settings/src/com/android/settings/applications/
DRecentAppStatsMixin.java144 Comparator.comparingLong(a -> -1 * a.mUsageStats.getLastTimeUsed())); in loadDisplayableRecentApps()
219 public final UsageStats mUsageStats; field in RecentAppStatsMixin.UsageStatsWrapper
223 mUsageStats = usageStats; in UsageStatsWrapper()
230 mUsageStats.getPackageName(), mUserId); in toString()
DAppsPreferenceController.java188 final UsageStats stats = statsWrapper.mUsageStats; in displayRecentApps()
189 final String pkgName = statsWrapper.mUsageStats.getPackageName(); in displayRecentApps()
/packages/services/Car/cpp/evs/manager/aidl/include/
DHalCamera.h56 mUsageStats(new CameraUsageStats(recordId)) {} in mHwCamera()
132 ::android::sp<CameraUsageStats> mUsageStats;
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java71 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()
DAppStateUsageStatsBridgeTest.java67 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()