Searched refs:AppUsageStatsData (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | AppUsageStatsData.java | 22 public class AppUsageStatsData { class 29 public AppUsageStatsData(int chosenCount, int launchCount) { in AppUsageStatsData() method in AppUsageStatsData 34 public AppUsageStatsData() { in AppUsageStatsData() method in AppUsageStatsData
|
D | UsageStatsQueryHelper.java | 145 static Map<String, AppUsageStatsData> queryAppUsageStats(@UserIdInt int userId, long startTime, in queryAppUsageStats() 150 Map<String, AppUsageStatsData> aggregatedStats = new ArrayMap<>(); in queryAppUsageStats() 157 AppUsageStatsData packageStats = aggregatedStats.computeIfAbsent(packageName, in queryAppUsageStats() 158 (key) -> new AppUsageStatsData()); in queryAppUsageStats()
|
D | DataManager.java | 265 public Map<String, AppUsageStatsData> queryAppUsageStats( in queryAppUsageStats()
|
/frameworks/base/services/people/java/com/android/server/people/prediction/ |
D | SharesheetModelScorer.java | 30 import com.android.server.people.data.AppUsageStatsData; 223 Map<String, AppUsageStatsData> appStatsMap = in promoteMostChosenAndFrequentlyUsedApps() 227 minValidScore = promoteApp(shareTargetMap, appStatsMap, AppUsageStatsData::getChosenCount, in promoteMostChosenAndFrequentlyUsedApps() 230 promoteApp(shareTargetMap, appStatsMap, AppUsageStatsData::getLaunchCount, in promoteMostChosenAndFrequentlyUsedApps() 236 Map<String, AppUsageStatsData> appStatsMap, in promoteApp() 237 Function<AppUsageStatsData, Integer> countFunc, float baseScore, float minValidScore) { in promoteApp() argument 239 for (AppUsageStatsData data : appStatsMap.values()) { in promoteApp() 243 for (Map.Entry<String, AppUsageStatsData> entry : appStatsMap.entrySet()) { in promoteApp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/ |
D | SharesheetModelScorerTest.java | 34 import com.android.server.people.data.AppUsageStatsData; 274 Map.of(PACKAGE_1, new AppUsageStatsData(1, 0), in testComputeScoreForAppShare_promoteFrequentlyChosenApps() 275 PACKAGE_2, new AppUsageStatsData(2, 0), in testComputeScoreForAppShare_promoteFrequentlyChosenApps() 276 PACKAGE_3, new AppUsageStatsData(3, 0))); in testComputeScoreForAppShare_promoteFrequentlyChosenApps() 307 Map.of(PACKAGE_1, new AppUsageStatsData(0, 1), in testComputeScoreForAppShare_promoteFrequentlyUsedApps() 308 PACKAGE_2, new AppUsageStatsData(0, 2), in testComputeScoreForAppShare_promoteFrequentlyUsedApps() 309 PACKAGE_3, new AppUsageStatsData(1, 0))); in testComputeScoreForAppShare_promoteFrequentlyUsedApps() 345 Map.of(PACKAGE_1, new AppUsageStatsData(0, 1), in testComputeScoreForAppShare_skipPromoteFrequentlyUsedAppsWhenReachesLimit() 346 PACKAGE_2, new AppUsageStatsData(0, 2), in testComputeScoreForAppShare_skipPromoteFrequentlyUsedAppsWhenReachesLimit() 347 PACKAGE_3, new AppUsageStatsData(1, 0))); in testComputeScoreForAppShare_skipPromoteFrequentlyUsedAppsWhenReachesLimit()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | UsageStatsQueryHelperTest.java | 210 Map<String, AppUsageStatsData> appLaunchChooserCountCounts = in testQueryAppUsageStats() 230 Map<String, AppUsageStatsData> appLaunchChooserCountCounts = in testQueryAppUsageStats_packageNameFiltered() 245 Map<String, AppUsageStatsData> appLaunchChooserCountCounts = in testQueryAppUsageStats_nullUsageStats()
|