Searched refs:mChooserCounts (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 75 public ArrayMap<String, ArrayMap<String, Integer>> mChooserCounts; field in UsageStats 92 mChooserCounts = stats.mChooserCounts; in UsageStats() 182 if (mChooserCounts == null) { in add() 183 mChooserCounts = right.mChooserCounts; in add() 184 } else if (right.mChooserCounts != null) { in add() 185 final int chooserCountsSize = right.mChooserCounts.size(); in add() 187 String action = right.mChooserCounts.keyAt(i); in add() 188 ArrayMap<String, Integer> counts = right.mChooserCounts.valueAt(i); in add() 189 if (!mChooserCounts.containsKey(action) || mChooserCounts.get(action) == null) { in add() 190 mChooserCounts.put(action, counts); in add() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsXmlV1.java | 121 if (usageStats.mChooserCounts == null) { in loadChooserCounts() 122 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts() 124 if (!usageStats.mChooserCounts.containsKey(action)) { in loadChooserCounts() 126 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 141 usageStats.mChooserCounts.get(action).put(category, count); in loadChooserCounts() 228 if (usageStats == null || usageStats.mChooserCounts == null || in writeChooserCounts() 229 usageStats.mChooserCounts.keySet().isEmpty()) { in writeChooserCounts() 232 final int chooserCountSize = usageStats.mChooserCounts.size(); in writeChooserCounts() 234 final String action = usageStats.mChooserCounts.keyAt(i); in writeChooserCounts() 235 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in writeChooserCounts()
|
D | IntervalStats.java | 183 if (usageStats.mChooserCounts == null) { in updateChooserCounts() 184 usageStats.mChooserCounts = new ArrayMap<>(); in updateChooserCounts() 187 final int idx = usageStats.mChooserCounts.indexOfKey(action); in updateChooserCounts() 190 usageStats.mChooserCounts.put(action, chooserCounts); in updateChooserCounts() 192 chooserCounts = usageStats.mChooserCounts.valueAt(idx); in updateChooserCounts()
|
D | UserUsageStatsService.java | 715 if (usageStats.mChooserCounts != null) { in printIntervalStats() 716 final int chooserCountSize = usageStats.mChooserCounts.size(); in printIntervalStats() 718 final String action = usageStats.mChooserCounts.keyAt(i); in printIntervalStats() 719 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in printIntervalStats()
|
D | UsageStatsDatabase.java | 569 if (pkgStats.mChooserCounts != null) { in pruneChooserCountsOlderThan() 570 pkgStats.mChooserCounts.clear(); in pruneChooserCountsOlderThan()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverListControllerTest.java | 133 packageStats.mChooserCounts = chooserCounts; in initStats() 156 if (packageStats == null || packageStats.mChooserCounts == null in getCount() 157 || packageStats.mChooserCounts.get(action) == null) { in getCount() 160 return packageStats.mChooserCounts.get(action).getOrDefault(annotation, 0); in getCount()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverComparator.java | 249 if (pkStats.mChooserCounts != null && mAction != null in compute() 250 && pkStats.mChooserCounts.get(mAction) != null) { in compute() 251 chooserScore = (float) pkStats.mChooserCounts.get(mAction) in compute() 256 chooserScore += (float) pkStats.mChooserCounts.get(mAction) in compute()
|