Home
last modified time | relevance | path

Searched refs:counts (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
DWebViewFunctorManagerTests.cpp37 auto& counts = TestUtils::countsForFunctor(functor); in TEST() local
39 EXPECT_EQ(0, counts.contextDestroyed); in TEST()
40 EXPECT_EQ(1, counts.destroyed); in TEST()
54 auto& counts = TestUtils::countsForFunctor(functor); in TEST() local
55 EXPECT_EQ(0, counts.sync); in TEST()
56 EXPECT_EQ(0, counts.contextDestroyed); in TEST()
57 EXPECT_EQ(0, counts.destroyed); in TEST()
64 EXPECT_EQ(1, counts.sync); in TEST()
71 EXPECT_EQ(2, counts.sync); in TEST()
79 EXPECT_EQ(2, counts.sync); in TEST()
[all …]
DSkiaDisplayListTests.cpp106 auto& counts = TestUtils::countsForFunctor(functor2); in TEST() local
124 EXPECT_EQ(counts.sync, 1); in TEST()
125 EXPECT_EQ(counts.destroyed, 0); in TEST()
132 EXPECT_EQ(counts.destroyed, 1); in TEST()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWlanWakeReasonAndCounts.java133 WlanWakeReasonAndCounts counts = new WlanWakeReasonAndCounts();
134 counts.totalCmdEventWake = in.readInt();
135 counts.totalDriverFwLocalWake = in.readInt();
136 counts.totalRxDataWake = in.readInt();
138 counts.rxUnicast = in.readInt();
139 counts.rxMulticast = in.readInt();
140 counts.rxBroadcast = in.readInt();
142 counts.icmp = in.readInt();
143 counts.icmp6 = in.readInt();
144 counts.icmp6Ra = in.readInt();
[all …]
/frameworks/base/telecomm/java/android/telecom/
DTimedEvent.java31 HashMap<T, Integer> counts = new HashMap<>(); in averageTimings() local
35 if (counts.containsKey(entry.getKey())) { in averageTimings()
36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings()
39 counts.put(entry.getKey(), 1); in averageTimings()
45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
/frameworks/base/telecomm/java/android/telecom/Logging/
DTimedEvent.java31 HashMap<T, Integer> counts = new HashMap<>(); in averageTimings() local
35 if (counts.containsKey(entry.getKey())) { in averageTimings()
36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings()
39 counts.put(entry.getKey(), 1); in averageTimings()
45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DMaxJobCountsTest.java39 final MaxJobCounts counts = new JobSchedulerService.MaxJobCounts( in check() local
44 counts.parse(parser); in check()
46 Assert.assertEquals(expectedTotal, counts.getMaxTotal()); in check()
47 Assert.assertEquals(expectedMaxBg, counts.getMaxBg()); in check()
48 Assert.assertEquals(expectedMinBg, counts.getMinBg()); in check()
/frameworks/native/services/surfaceflinger/Scheduler/
DSchedulerUtils.h62 std::unordered_map<int64_t, int> counts; in calculate_mode() local
64 counts[value]++; in calculate_mode()
69 using ValueType = const decltype(counts)::value_type&; in calculate_mode()
71 return static_cast<int>(std::max_element(counts.begin(), counts.end(), compareCounts)->first); in calculate_mode()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java183 ArrayMap<String, Integer> counts; in loadChooserCounts() local
188 counts = usageStats.mChooserCounts.get(action); in loadChooserCounts()
189 if (counts == null) { in loadChooserCounts()
190 counts = new ArrayMap<>(); in loadChooserCounts()
191 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
195 counts = new ArrayMap<>(); in loadChooserCounts()
203 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
208 loadCountsForAction(proto, counts); in loadChooserCounts()
213 usageStats.mChooserCounts.put("", counts); in loadChooserCounts()
221 ArrayMap<String, Integer> counts) throws IOException { in loadCountsForAction() argument
[all …]
DUsageStatsProtoV2.java126 SparseIntArray counts; in loadChooserCounts() local
130 counts = usageStats.mChooserCountsObfuscated.get(actionToken); in loadChooserCounts()
131 if (counts == null) { in loadChooserCounts()
132 counts = new SparseIntArray(); in loadChooserCounts()
133 usageStats.mChooserCountsObfuscated.put(actionToken, counts); in loadChooserCounts()
136 counts = new SparseIntArray(); in loadChooserCounts()
145 usageStats.mChooserCountsObfuscated.put(actionToken, counts); in loadChooserCounts()
149 loadCountsForAction(proto, counts); in loadChooserCounts()
158 private static void loadCountsForAction(ProtoInputStream proto, SparseIntArray counts) in loadCountsForAction() argument
175 counts.put(categoryToken, count); in loadCountsForAction()
[all …]
DUsageStatsXmlV1.java162 ArrayMap<String, Integer> counts = new ArrayMap<>(); in loadChooserCounts() local
163 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
/frameworks/base/core/java/android/os/
DBinderProxy.java244 Map<String, Integer> counts = new HashMap<>(); in getSortedInterfaceCounts() local
274 Integer i = counts.get(key); in getSortedInterfaceCounts()
276 counts.put(key, 1); in getSortedInterfaceCounts()
278 counts.put(key, i + 1); in getSortedInterfaceCounts()
282 Map.Entry<String, Integer>[] sorted = counts.entrySet().toArray( in getSortedInterfaceCounts()
283 new Map.Entry[counts.size()]); in getSortedInterfaceCounts()
315 SparseIntArray counts = BinderInternal.nGetBinderProxyPerUidCounts(); in dumpPerUidProxyCounts() local
316 if (counts.size() == 0) return; in dumpPerUidProxyCounts()
318 for (int i = 0; i < counts.size(); i++) { in dumpPerUidProxyCounts()
319 final int uid = counts.keyAt(i); in dumpPerUidProxyCounts()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java337 ArrayMap<String, Integer> counts = right.mChooserCounts.valueAt(i); in add() local
339 mChooserCounts.put(action, counts); in add()
342 final int annotationSize = counts.size(); in add()
344 String key = counts.keyAt(j); in add()
345 int rightValue = counts.valueAt(j); in add()
630 ArrayMap<String, Integer> counts = mChooserCounts.valueAt(i); in writeToParcel() local
632 final int annotationSize = counts.size(); in writeToParcel()
634 currentCounts.putInt(counts.keyAt(j), counts.valueAt(j)); in writeToParcel()
/frameworks/base/services/people/java/com/android/server/people/data/
DUsageStatsQueryHelper.java173 ArrayMap<String, Integer> counts = chooserCounts.valueAt(i); in sumChooserCounts() local
174 if (counts == null) { in sumChooserCounts()
177 final int annotationSize = counts.size(); in sumChooserCounts()
179 sum += counts.valueAt(j); in sumChooserCounts()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsb10ASFormatI.java69 int[] counts = {mNumChannels}; in getChannelCounts() local
70 return counts; in getChannelCounts()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongSamplingCounterArrayTest.java192 private void updateCounts(long[] counts) { in updateCounts() argument
193 mCounterArray.mCounts = counts == null ? null : counts.clone(); in updateCounts()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTestUtil.java237 ExperimentProbeCounts counts = new ExperimentProbeCounts(); in buildExperimentProbeCounts() local
238 counts.experimentId = experimentId; in buildExperimentProbeCounts()
239 counts.probeCount = probeCount; in buildExperimentProbeCounts()
240 return counts; in buildExperimentProbeCounts()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java157 ArrayMap<String, Integer> counts = new ArrayMap<>(); in initStats() local
158 counts.put(annotation, count); in initStats()
159 chooserCounts.put(action, counts); in initStats()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java315 private static Pair[] toPairArray(SparseIntArray counts) { in toPairArray() argument
316 final int s = counts.size(); in toPairArray()
320 p.key = counts.keyAt(i); in toPairArray()
321 p.value = counts.valueAt(i); in toPairArray()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java720 SparseIntArray counts = new SparseIntArray(); in isRequestorSpamming() local
725 counts.put(uid, counts.get(uid) + 1); in isRequestorSpamming()
732 counts.put(uid, counts.get(uid) + 1); in isRequestorSpamming()
738 if (counts.get(ws.getUid(i)) < MAX_QUEUED_PER_UID) { in isRequestorSpamming()
747 if (counts.get(uid) < MAX_QUEUED_PER_UID) { in isRequestorSpamming()
754 Log.v(TAG, "isRequestorSpamming: ws=" + ws + ", someone is spamming: " + counts); in isRequestorSpamming()
/frameworks/base/media/java/android/media/
DAudioDeviceInfo.java422 int[] counts = new int[countSet.size()]; in getChannelCounts() local
425 counts[index++] = count; in getChannelCounts()
427 return counts; in getChannelCounts()
DMediaCodecInfo.java2248 Range<Integer> counts = Utils.parseIntRange(map.get("block-count-range"), null);
2249 int FS = counts == null ? 0 : BS * counts.getUpper();
2299 Range<Integer> counts = null, widths = null, heights = null;
2306 counts = Utils.parseIntRange(map.get("block-count-range"), null);
2384 if (counts != null) {
2386 Utils.factorRange(counts, mBlockWidth * mBlockHeight
2422 if (counts != null) {
2424 Utils.factorRange(counts, mBlockWidth * mBlockHeight
2453 Range<Integer> counts, Range<Long> rates, Range<Rational> ratios) {
2478 counts = Utils.factorRange(counts, factor);
[all …]
/frameworks/native/libs/binder/
DBpBinder.cpp473 void BpBinder::getCountByUid(Vector<uint32_t>& uids, Vector<uint32_t>& counts) in getCountByUid() argument
477 counts.setCapacity(sTrackingMap.size()); in getCountByUid()
480 counts.push_back(it.second & COUNTING_VALUE_MASK); in getCountByUid()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java1255 private void incrementCountForActivity(ArrayMap<ComponentName, Integer> counts, in incrementCountForActivity() argument
1257 Integer oldValue = counts.get(cn); in incrementCountForActivity()
1262 counts.put(cn, oldValue + increment); in incrementCountForActivity()
1285 final ArrayMap<ComponentName, Integer> counts = new ArrayMap<>(4); in enforceShortcutCountsBeforeOperation() local
1290 incrementCountForActivity(counts, shortcut.getActivity(), 1); in enforceShortcutCountsBeforeOperation()
1292 incrementCountForActivity(counts, shortcut.getActivity(), 1); in enforceShortcutCountsBeforeOperation()
1314 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
1328 incrementCountForActivity(counts, oldActivity, -1); in enforceShortcutCountsBeforeOperation()
1331 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
1335 for (int i = counts.size() - 1; i >= 0; i--) { in enforceShortcutCountsBeforeOperation()
[all …]
/frameworks/native/libs/binder/include/binder/
DBpBinder.h77 static void getCountByUid(Vector<uint32_t>& uids, Vector<uint32_t>& counts);
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java236 int[] counts = new int[2]; in dump() local
238 mRootNode.dumpLocked(fd, pw, args, "", " ", counts, pidCounts); in dump()
264 pw.print(" Total number of nodes: "); pw.println(counts[0]); in dump()
265 pw.print(" Total number of observers: "); pw.println(counts[1]); in dump()
1523 String name, String prefix, int[] counts, SparseIntArray pidCounts) { in dumpLocked() argument
1532 counts[1]++; in dumpLocked()
1546 counts[0]++; in dumpLocked()
1548 counts, pidCounts); in dumpLocked()

12