Searched refs:mChooserCounts (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 148 public ArrayMap<String, ArrayMap<String, Integer>> mChooserCounts = new ArrayMap<>(); field in UsageStats 176 mChooserCounts = stats.mChooserCounts; in UsageStats() 331 if (mChooserCounts == null) { in add() 332 mChooserCounts = right.mChooserCounts; in add() 333 } else if (right.mChooserCounts != null) { in add() 334 final int chooserCountsSize = right.mChooserCounts.size(); in add() 336 String action = right.mChooserCounts.keyAt(i); in add() 337 ArrayMap<String, Integer> counts = right.mChooserCounts.valueAt(i); in add() 338 if (!mChooserCounts.containsKey(action) || mChooserCounts.get(action) == null) { in add() 339 mChooserCounts.put(action, counts); in add() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProto.java | 179 if (usageStats.mChooserCounts == null) { in loadChooserCounts() 180 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts() 188 counts = usageStats.mChooserCounts.get(action); in loadChooserCounts() 191 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 203 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 213 usageStats.mChooserCounts.put("", counts); in loadChooserCounts() 368 if (usageStats == null || usageStats.mChooserCounts == null in writeChooserCounts() 369 || usageStats.mChooserCounts.keySet().isEmpty()) { in writeChooserCounts() 372 final int chooserCountSize = usageStats.mChooserCounts.size(); in writeChooserCounts() 374 final String action = usageStats.mChooserCounts.keyAt(i); in writeChooserCounts() [all …]
|
D | UsageStatsXmlV1.java | 158 if (usageStats.mChooserCounts == null) { in loadChooserCounts() 159 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts() 161 if (!usageStats.mChooserCounts.containsKey(action)) { in loadChooserCounts() 163 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 178 usageStats.mChooserCounts.get(action).put(category, count); in loadChooserCounts()
|
D | IntervalStats.java | 354 if (usageStats.mChooserCounts == null) { in updateChooserCounts() 355 usageStats.mChooserCounts = new ArrayMap<>(); in updateChooserCounts() 358 final int idx = usageStats.mChooserCounts.indexOfKey(action); in updateChooserCounts() 361 usageStats.mChooserCounts.put(action, chooserCounts); in updateChooserCounts() 363 chooserCounts = usageStats.mChooserCounts.valueAt(idx); in updateChooserCounts() 498 usageStats.mChooserCounts.put(action, categoryCountsMap); in deobfuscateUsageStats() 625 final int chooserActionsSize = usageStats.mChooserCounts.size(); in obfuscateUsageStatsData() 627 final String action = usageStats.mChooserCounts.keyAt(actionIndex); in obfuscateUsageStatsData() 629 usageStats.mChooserCounts.valueAt(actionIndex); in obfuscateUsageStatsData()
|
D | UserUsageStatsService.java | 1021 if (usageStats.mChooserCounts != null) { in printIntervalStats() 1022 final int chooserCountSize = usageStats.mChooserCounts.size(); in printIntervalStats() 1024 final String action = usageStats.mChooserCounts.keyAt(i); in printIntervalStats() 1025 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in printIntervalStats()
|
D | UsageStatsDatabase.java | 974 if (pkgStats.mChooserCounts != null) { in pruneChooserCountsOlderThan() 975 pkgStats.mChooserCounts.clear(); in pruneChooserCountsOlderThan()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverListControllerTest.java | 162 packageStats.mChooserCounts = chooserCounts; in initStats() 185 if (packageStats == null || packageStats.mChooserCounts == null in getCount() 186 || packageStats.mChooserCounts.get(action) == null) { in getCount() 189 return packageStats.mChooserCounts.get(action).getOrDefault(annotation, 0); in getCount()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverRankerServiceResolverComparator.java | 171 if (pkStats.mChooserCounts != null && mAction != null in doCompute() 172 && pkStats.mChooserCounts.get(mAction) != null) { in doCompute() 173 chooserScore = (float) pkStats.mChooserCounts.get(mAction) in doCompute() 178 chooserScore += (float) pkStats.mChooserCounts.get(mAction) in doCompute()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | UsageStatsQueryHelper.java | 159 packageStats.incrementChosenCountBy(sumChooserCounts(stat.mChooserCounts)); in queryAppUsageStats()
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsTest.java | 609 assertEquals(us1.mChooserCounts, us2.mChooserCounts);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 270 assertEquals(us1.mChooserCounts, us2.mChooserCounts); in compareUsageStats()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | UsageStatsQueryHelperTest.java | 264 packageStats.mChooserCounts = chooserCounts; in createUsageStats()
|