/frameworks/base/libs/hwui/tests/unit/ |
D | WebViewFunctorManagerTests.cpp | 37 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 …]
|
D | SkiaDisplayListTests.cpp | 106 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/ |
D | WlanWakeReasonAndCounts.java | 133 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/Logging/ |
D | TimedEvent.java | 31 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/ |
D | TimedEvent.java | 31 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/ |
D | MaxJobCountsTest.java | 39 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/ |
D | SchedulerUtils.h | 67 std::unordered_map<int64_t, int> counts; in calculate_mode() local 69 counts[value]++; in calculate_mode() 74 using ValueType = const decltype(counts)::value_type&; in calculate_mode() 76 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/ |
D | UsageStatsProto.java | 179 ArrayMap<String, Integer> counts; in loadChooserCounts() local 184 counts = usageStats.mChooserCounts.get(action); in loadChooserCounts() 185 if (counts == null) { in loadChooserCounts() 186 counts = new ArrayMap<>(); in loadChooserCounts() 187 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 191 counts = new ArrayMap<>(); in loadChooserCounts() 199 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 204 loadCountsForAction(proto, counts); in loadChooserCounts() 209 usageStats.mChooserCounts.put("", counts); in loadChooserCounts() 217 ArrayMap<String, Integer> counts) throws IOException { in loadCountsForAction() argument [all …]
|
D | UsageStatsXmlV1.java | 163 ArrayMap<String, Integer> counts = new ArrayMap<>(); in loadChooserCounts() local 164 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 287 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in writeChooserCounts() local 288 if (action == null || counts == null || counts.isEmpty()) { in writeChooserCounts() 293 writeCountsForAction(xml, counts); in writeChooserCounts() 298 private static void writeCountsForAction(XmlSerializer xml, ArrayMap<String, Integer> counts) in writeCountsForAction() argument 300 final int countsSize = counts.size(); in writeCountsForAction() 302 String key = counts.keyAt(i); in writeCountsForAction() 303 int count = counts.valueAt(i); in writeCountsForAction()
|
/frameworks/base/core/java/android/os/ |
D | BinderProxy.java | 243 Map<String, Integer> counts = new HashMap<>(); in getSortedInterfaceCounts() local 268 Integer i = counts.get(key); in getSortedInterfaceCounts() 270 counts.put(key, 1); in getSortedInterfaceCounts() 272 counts.put(key, i + 1); in getSortedInterfaceCounts() 275 Map.Entry<String, Integer>[] sorted = counts.entrySet().toArray( in getSortedInterfaceCounts() 276 new Map.Entry[counts.size()]); in getSortedInterfaceCounts() 308 SparseIntArray counts = BinderInternal.nGetBinderProxyPerUidCounts(); in dumpPerUidProxyCounts() local 309 if (counts.size() == 0) return; in dumpPerUidProxyCounts() 311 for (int i = 0; i < counts.size(); i++) { in dumpPerUidProxyCounts() 312 final int uid = counts.keyAt(i); in dumpPerUidProxyCounts() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 325 ArrayMap<String, Integer> counts = right.mChooserCounts.valueAt(i); in add() local 327 mChooserCounts.put(action, counts); in add() 330 final int annotationSize = counts.size(); in add() 332 String key = counts.keyAt(j); in add() 333 int rightValue = counts.valueAt(j); in add() 606 ArrayMap<String, Integer> counts = mChooserCounts.valueAt(i); in writeToParcel() local 608 final int annotationSize = counts.size(); in writeToParcel() 610 currentCounts.putInt(counts.keyAt(j), counts.valueAt(j)); in writeToParcel()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | Usb10ASFormatI.java | 69 int[] counts = {mNumChannels}; in getChannelCounts() local 70 return counts; in getChannelCounts()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LongSamplingCounterArrayTest.java | 192 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/ |
D | WifiMetricsTestUtil.java | 237 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/ |
D | ResolverListControllerTest.java | 125 ArrayMap<String, Integer> counts = new ArrayMap<>(); in initStats() local 126 counts.put(annotation, count); in initStats() 127 chooserCounts.put(action, counts); in initStats()
|
/frameworks/base/media/java/android/media/ |
D | AudioDeviceInfo.java | 377 int[] counts = new int[countSet.size()]; in getChannelCounts() local 380 counts[index++] = count; in getChannelCounts() 382 return counts; in getChannelCounts()
|
D | MediaCodecInfo.java | 2208 Range<Integer> counts = Utils.parseIntRange(map.get("block-count-range"), null); 2209 int FS = counts == null ? 0 : BS * counts.getUpper(); 2259 Range<Integer> counts = null, widths = null, heights = null; 2266 counts = Utils.parseIntRange(map.get("block-count-range"), null); 2344 if (counts != null) { 2346 Utils.factorRange(counts, mBlockWidth * mBlockHeight 2382 if (counts != null) { 2384 Utils.factorRange(counts, mBlockWidth * mBlockHeight 2413 Range<Integer> counts, Range<Long> rates, Range<Rational> ratios) { 2438 counts = Utils.factorRange(counts, factor); [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | IpConnectivityEventBuilder.java | 315 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/ |
D | RttServiceImpl.java | 739 SparseIntArray counts = new SparseIntArray(); in isRequestorSpamming() local 744 counts.put(uid, counts.get(uid) + 1); in isRequestorSpamming() 751 counts.put(uid, counts.get(uid) + 1); in isRequestorSpamming() 757 if (counts.get(ws.get(i)) < MAX_QUEUED_PER_UID) { in isRequestorSpamming() 766 if (counts.get(uid) < MAX_QUEUED_PER_UID) { in isRequestorSpamming() 773 Log.v(TAG, "isRequestorSpamming: ws=" + ws + ", someone is spamming: " + counts); in isRequestorSpamming()
|
/frameworks/native/libs/binder/ |
D | BpBinder.cpp | 473 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/ |
D | ShortcutPackage.java | 1139 private void incrementCountForActivity(ArrayMap<ComponentName, Integer> counts, in incrementCountForActivity() argument 1141 Integer oldValue = counts.get(cn); in incrementCountForActivity() 1146 counts.put(cn, oldValue + increment); in incrementCountForActivity() 1169 final ArrayMap<ComponentName, Integer> counts = new ArrayMap<>(4); in enforceShortcutCountsBeforeOperation() local 1174 incrementCountForActivity(counts, shortcut.getActivity(), 1); in enforceShortcutCountsBeforeOperation() 1176 incrementCountForActivity(counts, shortcut.getActivity(), 1); in enforceShortcutCountsBeforeOperation() 1198 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation() 1212 incrementCountForActivity(counts, oldActivity, -1); in enforceShortcutCountsBeforeOperation() 1215 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation() 1219 for (int i = counts.size() - 1; i >= 0; i--) { in enforceShortcutCountsBeforeOperation() [all …]
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 221 int[] counts = new int[2]; in dump() local 223 mRootNode.dumpLocked(fd, pw, args, "", " ", counts, pidCounts); in dump() 249 pw.print(" Total number of nodes: "); pw.println(counts[0]); in dump() 250 pw.print(" Total number of observers: "); pw.println(counts[1]); in dump() 1435 String name, String prefix, int[] counts, SparseIntArray pidCounts) { in dumpLocked() argument 1444 counts[1]++; in dumpLocked() 1458 counts[0]++; in dumpLocked() 1460 counts, pidCounts); in dumpLocked()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 3883 private void increaseCount(@NonNull LongSparseLongArray counts, in increaseCount() argument 3889 counts.put(key, counts.get(key) + increment); in increaseCount() 4231 private static long sumForFlagsInStates(@Nullable LongSparseLongArray counts, in sumForFlagsInStates() argument 4233 if (counts == null) { in sumForFlagsInStates() 4245 sum += counts.get(key); in sumForFlagsInStates() 4261 private static long findFirstNonNegativeForFlagsInStates(@Nullable LongSparseLongArray counts, in findFirstNonNegativeForFlagsInStates() argument 4263 if (counts == null) { in findFirstNonNegativeForFlagsInStates() 4274 final long value = counts.get(key); in findFirstNonNegativeForFlagsInStates() 4294 @Nullable LongSparseArray<String> counts, @UidState int beginUidState, in findFirstNonNullForFlagsInStates() 4296 if (counts == null) { in findFirstNonNullForFlagsInStates() [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | BpBinder.h | 77 static void getCountByUid(Vector<uint32_t>& uids, Vector<uint32_t>& counts);
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 111 size_t counts[100]; in displayDecodeHistogram() local 113 counts[i] = 0; in displayDecodeHistogram() 122 ++counts[slot]; in displayDecodeHistogram() 129 printf("[%.2f fps]: %zu\n", fps, counts[i]); in displayDecodeHistogram()
|