Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/
DWifiWakeReasonAndCounts.java133 WifiWakeReasonAndCounts counts = new WifiWakeReasonAndCounts();
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/
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/
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/core/java/android/app/usage/
DUsageStats.java170 ArrayMap<String, Integer> counts = right.mChooserCounts.valueAt(i); in add() local
172 mChooserCounts.put(action, counts); in add()
175 final int annotationSize = counts.size(); in add()
177 String key = counts.keyAt(j); in add()
178 int rightValue = counts.valueAt(j); in add()
205 ArrayMap<String, Integer> counts = mChooserCounts.valueAt(i); in writeToParcel() local
207 final int annotationSize = counts.size(); in writeToParcel()
209 currentCounts.putInt(counts.keyAt(j), counts.valueAt(j)); in writeToParcel()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXmlV1.java112 ArrayMap<String, Integer> counts = new ArrayMap<>(); in loadChooserCounts() local
113 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
208 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in writeChooserCounts() local
209 if (action == null || counts == null || counts.isEmpty()) { in writeChooserCounts()
214 writeCountsForAction(xml, counts); in writeChooserCounts()
219 private static void writeCountsForAction(XmlSerializer xml, ArrayMap<String, Integer> counts) in writeCountsForAction() argument
221 final int countsSize = counts.size(); in writeCountsForAction()
223 String key = counts.keyAt(i); in writeCountsForAction()
224 int count = counts.valueAt(i); in writeCountsForAction()
DUserUsageStatsService.java541 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in printIntervalStats() local
542 final int annotationSize = counts.size(); in printIntervalStats()
544 final String key = counts.keyAt(j); in printIntervalStats()
545 final int count = counts.valueAt(j); in printIntervalStats()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java128 ArrayMap<String, Integer> counts = new ArrayMap<>(); in initStats() local
129 counts.put(annotation, count); in initStats()
130 chooserCounts.put(action, counts); in initStats()
/frameworks/base/media/java/android/media/
DAudioDeviceInfo.java220 int[] counts = new int[countSet.size()]; in getChannelCounts() local
223 counts[index++] = count; in getChannelCounts()
225 return counts; in getChannelCounts()
DMediaCodecInfo.java1691 Range<Integer> counts = Utils.parseIntRange(map.get("block-count-range"), null); in equivalentVP9Level() local
1692 int FS = counts == null ? 0 : BS * counts.getUpper(); in equivalentVP9Level()
1742 Range<Integer> counts = null, widths = null, heights = null; in parseFromInfo() local
1749 counts = Utils.parseIntRange(map.get("block-count-range"), null); in parseFromInfo()
1826 if (counts != null) { in parseFromInfo()
1828 Utils.factorRange(counts, mBlockWidth * mBlockHeight in parseFromInfo()
1864 if (counts != null) { in parseFromInfo()
1866 Utils.factorRange(counts, mBlockWidth * mBlockHeight in parseFromInfo()
1895 Range<Integer> counts, Range<Long> rates, Range<Rational> ratios) { in applyBlockLimits() argument
1920 counts = Utils.factorRange(counts, factor); in applyBlockLimits()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java927 private void incrementCountForActivity(ArrayMap<ComponentName, Integer> counts, in incrementCountForActivity() argument
929 Integer oldValue = counts.get(cn); in incrementCountForActivity()
934 counts.put(cn, oldValue + increment); in incrementCountForActivity()
957 final ArrayMap<ComponentName, Integer> counts = new ArrayMap<>(4); in enforceShortcutCountsBeforeOperation() local
962 incrementCountForActivity(counts, shortcut.getActivity(), 1); in enforceShortcutCountsBeforeOperation()
964 incrementCountForActivity(counts, shortcut.getActivity(), 1); in enforceShortcutCountsBeforeOperation()
986 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
1000 incrementCountForActivity(counts, oldActivity, -1); in enforceShortcutCountsBeforeOperation()
1003 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
1007 for (int i = counts.size() - 1; i >= 0; i--) { in enforceShortcutCountsBeforeOperation()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java290 private static Pair[] toPairArray(SparseIntArray counts) { in toPairArray() argument
291 final int s = counts.size(); in toPairArray()
295 p.key = counts.keyAt(i); in toPairArray()
296 p.value = counts.valueAt(i); in toPairArray()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongSamplingCounterArrayTest.java210 private void updateCounts(long[] counts, long[] loadedCounts, in updateCounts() argument
212 mCounterArray.mCounts = counts; in updateCounts()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java181 int[] counts = new int[2]; in dump() local
183 mRootNode.dumpLocked(fd, pw, args, "", " ", counts, pidCounts); in dump()
209 pw.print(" Total number of nodes: "); pw.println(counts[0]); in dump()
210 pw.print(" Total number of observers: "); pw.println(counts[1]); in dump()
1269 String name, String prefix, int[] counts, SparseIntArray pidCounts) { in dumpLocked() argument
1278 counts[1]++; in dumpLocked()
1292 counts[0]++; in dumpLocked()
1294 counts, pidCounts); in dumpLocked()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp108 size_t counts[100]; in displayDecodeHistogram() local
110 counts[i] = 0; in displayDecodeHistogram()
119 ++counts[slot]; in displayDecodeHistogram()
126 printf("[%.2f fps]: %zu\n", fps, counts[i]); in displayDecodeHistogram()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp364 sk_sp<SkImage> counts = offscreen->makeImageSnapshot(); in renderOverdraw() local
370 surface->getCanvas()->drawImage(counts.get(), 0.0f, 0.0f, &paint); in renderOverdraw()
/frameworks/opt/telephony/proto/
Dtelephony.proto90 // Array storing counts for each time range
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1021 public void addCountLocked(long[] counts) { in addCountLocked() argument
1022 if (counts == null) { in addCountLocked()
1027 mCounts = new long[counts.length]; in addCountLocked()
1029 for (int i = 0; i < counts.length; ++i) { in addCountLocked()
1030 mCounts[i] += counts[i]; in addCountLocked()
/frameworks/native/opengl/tests/angeles/
Dlicense-LGPL.txt9 [This is the first released version of the Lesser GPL. It also counts
/frameworks/support/development/checkstyle/
DLICENSE9 [This is the first released version of the Lesser GPL. It also counts
/frameworks/native/vulkan/api/
Dvulkan.api2283 … sampleCounts /// supported sample counts for this resource …
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...