Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsGroupPreferenceControllerTest.java86 List<UsageStats> usageStats = new ArrayList<>(); in onRecentAppsCallback_empty_isUnavailable() local
88 mPreferenceController.onRecentAppStatsLoaded(usageStats); in onRecentAppsCallback_empty_isUnavailable()
96 List<UsageStats> usageStats = new ArrayList<>(); in onRecentAppsCallback_notEmpty_isUnavailable() local
97 usageStats.add(new UsageStats()); in onRecentAppsCallback_notEmpty_isUnavailable()
99 mPreferenceController.onRecentAppStatsLoaded(usageStats); in onRecentAppsCallback_notEmpty_isUnavailable()
DAllAppsPreferenceControllerTest.java87 List<UsageStats> usageStats = new ArrayList<>(); in onRecentAppsCallback_empty_isAvailable() local
89 mPreferenceController.onRecentAppStatsLoaded(usageStats); in onRecentAppsCallback_empty_isAvailable()
97 List<UsageStats> usageStats = new ArrayList<>(); in onRecentAppsCallback_notEmpty_isUnavailable() local
98 usageStats.add(new UsageStats()); in onRecentAppsCallback_notEmpty_isUnavailable()
100 mPreferenceController.onRecentAppStatsLoaded(usageStats); in onRecentAppsCallback_notEmpty_isUnavailable()
DRecentAppsListPreferenceControllerTest.java107 UsageStats usageStats = createUsageStats(MOCK_PACKAGE_NAME_1); in onRecentAppsLoaded_displaysApps() local
109 mUsageStatsList.add(usageStats); in onRecentAppsLoaded_displaysApps()
173 UsageStats usageStats = new UsageStats(); in createUsageStats() local
174 usageStats.mPackageName = packageName; in createUsageStats()
175 usageStats.mEndTimeStamp = System.currentTimeMillis(); in createUsageStats()
176 return usageStats; in createUsageStats()
DRecentAppsItemManagerTest.java133 UsageStats usageStats = new UsageStats(); in createUsageStats() local
134 usageStats.mPackageName = packageName; in createUsageStats()
135 usageStats.mLastTimeUsed = System.currentTimeMillis(); in createUsageStats()
136 return usageStats; in createUsageStats()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DRecentAppsListPreferenceController.java85 for (UsageStats usageStats : mRecentAppStats) { in updateState()
86 Preference pref = createPreference(getContext(), usageStats); in updateState()
98 private Preference createPreference(Context context, UsageStats usageStats) { in createPreference() argument
99 String pkgName = usageStats.getPackageName(); in createPreference()
109 pref.setSummary(DateUtils.getRelativeTimeSpanString(usageStats.getLastTimeStamp(), in createPreference()
DHibernatedAppsItemManager.java101 UsageStats usageStats = recentlyUsedPackages.get(packageName); in getNumHibernated() local
104 boolean usedRecently = (usageStats != null in getNumHibernated()
105 && (now - usageStats.getLastTimeAnyComponentUsed() < unusedThreshold in getNumHibernated()
106 || now - usageStats.getLastTimeVisible() < unusedThreshold)); in getNumHibernated()
/packages/apps/Camera2/src/com/android/camera/one/v2/errorhandling/
DRepeatFailureHandlerComponent.java51 UsageStatistics usageStats, int consecutiveFailureThreshold) { in create() argument
53 commandExecutor, previewStarter, usageStats); in create()
55 (fatalErrorHandler, usageStats); in create()
57 RecoverySuccessCallback recoverySuccessCallback = new RecoverySuccessCallback(usageStats); in create()
DRecoverySuccessCallback.java30 RecoverySuccessCallback(UsageStatistics usageStats) { in RecoverySuccessCallback() argument
31 mUsageStats = usageStats; in RecoverySuccessCallback()
DFatalErrorDialogFailureHandler.java35 UsageStatistics usageStats) { in FatalErrorDialogFailureHandler() argument
37 mUsageStats = usageStats; in FatalErrorDialogFailureHandler()
DFastCameraReset.java47 UsageStatistics usageStats) { in FastCameraReset() argument
52 mUsageStats = usageStats; in FastCameraReset()
/packages/apps/Settings/src/com/android/settings/applications/
DHibernatedAppsPreferenceController.java162 final UsageStats usageStats = recentlyUsedPackages.get(packageName); in getUnusedCount() local
165 final boolean usedRecently = (usageStats != null in getUnusedCount()
166 && (now - usageStats.getLastTimeAnyComponentUsed() < unusedThreshold in getUnusedCount()
167 || now - usageStats.getLastTimeVisible() < unusedThreshold)); in getUnusedCount()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridge.java75 UsageStats usageStats = map.get(entry.info.packageName); in loadAllExtraInfo() local
76 entry.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in loadAllExtraInfo()
85 UsageStats usageStats = map.get(app.info.packageName); in updateExtraInfo() local
86 app.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in updateExtraInfo()
DAppsAsyncLoader.java120 UsageStats usageStats = map.get(app.packageName); in loadApps() local
137 usageStats, in loadApps()
180 List<UsageStats> usageStats = in getLatestUsageStatsByPackageName() local
184 usageStats.stream().collect(Collectors.groupingBy(UsageStats::getPackageName)); in getLatestUsageStatsByPackageName()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java388 UsageStats usageStats = mock(UsageStats.class); in registerLastUse() local
389 when(usageStats.getPackageName()).thenReturn(packageName); in registerLastUse()
390 when(usageStats.getLastTimeUsed()).thenReturn(time); in registerLastUse()
391 mUsageStats.put(packageName, usageStats); in registerLastUse()
DAppStateUsageStatsBridgeTest.java412 UsageStats usageStats = mock(UsageStats.class); in registerLastUse() local
413 when(usageStats.getPackageName()).thenReturn(packageName); in registerLastUse()
414 when(usageStats.getLastTimeUsed()).thenReturn(time); in registerLastUse()
415 mUsageStats.put(packageName, usageStats); in registerLastUse()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java319 UsageStats usageStats = stats.get(currentIndex); in getMostRecentApps() local
320 String packageName = usageStats.mPackageName; in getMostRecentApps()
335 if (usageStats.getTotalTimeInForeground() == 0) { in getMostRecentApps()