/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | RecentAppsGroupPreferenceControllerTest.java | 86 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()
|
D | AllAppsPreferenceControllerTest.java | 87 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()
|
D | RecentAppsListPreferenceControllerTest.java | 107 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()
|
D | RecentAppsItemManagerTest.java | 133 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/ |
D | RecentAppsListPreferenceController.java | 85 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()
|
D | HibernatedAppsItemManager.java | 101 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/ |
D | RepeatFailureHandlerComponent.java | 51 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()
|
D | RecoverySuccessCallback.java | 30 RecoverySuccessCallback(UsageStatistics usageStats) { in RecoverySuccessCallback() argument 31 mUsageStats = usageStats; in RecoverySuccessCallback()
|
D | FatalErrorDialogFailureHandler.java | 35 UsageStatistics usageStats) { in FatalErrorDialogFailureHandler() argument 37 mUsageStats = usageStats; in FatalErrorDialogFailureHandler()
|
D | FastCameraReset.java | 47 UsageStatistics usageStats) { in FastCameraReset() argument 52 mUsageStats = usageStats; in FastCameraReset()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | HibernatedAppsPreferenceController.java | 162 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/ |
D | AppStateUsageStatsBridge.java | 75 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()
|
D | AppsAsyncLoader.java | 120 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/ |
D | AppsAsyncLoaderTest.java | 388 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()
|
D | AppStateUsageStatsBridgeTest.java | 412 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/ |
D | AppGridActivity.java | 319 UsageStats usageStats = stats.get(currentIndex); in getMostRecentApps() local 320 String packageName = usageStats.mPackageName; in getMostRecentApps() 335 if (usageStats.getTotalTimeInForeground() == 0) { in getMostRecentApps()
|