Home
last modified time | relevance | path

Searched refs:mChooserCounts (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/app/usage/
DUsageStats.java69 public ArrayMap<String, ArrayMap<String, Integer>> mChooserCounts; field in UsageStats
85 mChooserCounts = stats.mChooserCounts; in UsageStats()
164 if (mChooserCounts == null) { in add()
165 mChooserCounts = right.mChooserCounts; in add()
166 } else if (right.mChooserCounts != null) { in add()
167 final int chooserCountsSize = right.mChooserCounts.size(); in add()
169 String action = right.mChooserCounts.keyAt(i); in add()
170 ArrayMap<String, Integer> counts = right.mChooserCounts.valueAt(i); in add()
171 if (!mChooserCounts.containsKey(action) || mChooserCounts.get(action) == null) { in add()
172 mChooserCounts.put(action, counts); in add()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java126 if (usageStats.mChooserCounts == null) { in updateChooserCounts()
127 usageStats.mChooserCounts = new ArrayMap<>(); in updateChooserCounts()
130 final int idx = usageStats.mChooserCounts.indexOfKey(action); in updateChooserCounts()
133 usageStats.mChooserCounts.put(action, chooserCounts); in updateChooserCounts()
135 chooserCounts = usageStats.mChooserCounts.valueAt(idx); in updateChooserCounts()
DUsageStatsXmlV1.java108 if (usageStats.mChooserCounts == null) { in loadChooserCounts()
109 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts()
111 if (!usageStats.mChooserCounts.containsKey(action)) { in loadChooserCounts()
113 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
128 usageStats.mChooserCounts.get(action).put(category, count); in loadChooserCounts()
201 if (usageStats == null || usageStats.mChooserCounts == null || in writeChooserCounts()
202 usageStats.mChooserCounts.keySet().isEmpty()) { in writeChooserCounts()
205 final int chooserCountSize = usageStats.mChooserCounts.size(); in writeChooserCounts()
207 final String action = usageStats.mChooserCounts.keyAt(i); in writeChooserCounts()
208 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in writeChooserCounts()
DUserUsageStatsService.java537 if (usageStats.mChooserCounts != null) { in printIntervalStats()
538 final int chooserCountSize = usageStats.mChooserCounts.size(); in printIntervalStats()
540 final String action = usageStats.mChooserCounts.keyAt(i); in printIntervalStats()
541 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in printIntervalStats()
DUsageStatsDatabase.java569 if (pkgStats.mChooserCounts != null) { in pruneChooserCountsOlderThan()
570 pkgStats.mChooserCounts.clear(); in pruneChooserCountsOlderThan()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java133 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/
DResolverComparator.java235 if (pkStats.mChooserCounts != null && mAction != null in compute()
236 && pkStats.mChooserCounts.get(mAction) != null) { in compute()
237 chooserScore = (float) pkStats.mChooserCounts.get(mAction) in compute()
242 chooserScore += (float) pkStats.mChooserCounts.get(mAction) in compute()