Searched refs:counts (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/wifi/java/android/net/wifi/
H A 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
[all...]
/frameworks/base/telecomm/java/android/telecom/Logging/
H A DTimedEvent.java31 HashMap<T, Integer> counts = new HashMap<>();
35 if (counts.containsKey(entry.getKey())) {
36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1);
39 counts.put(entry.getKey(), 1);
45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey()));
/frameworks/base/telecomm/java/android/telecom/
H A DTimedEvent.java31 HashMap<T, Integer> counts = new HashMap<>();
35 if (counts.containsKey(entry.getKey())) {
36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1);
39 counts.put(entry.getKey(), 1);
45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey()));
/frameworks/base/core/java/android/app/usage/
H A DUsageStats.java188 ArrayMap<String, Integer> counts = right.mChooserCounts.valueAt(i);
190 mChooserCounts.put(action, counts);
193 final int annotationSize = counts.size();
195 String key = counts.keyAt(j);
196 int rightValue = counts.valueAt(j);
224 ArrayMap<String, Integer> counts = mChooserCounts.valueAt(i);
226 final int annotationSize = counts.size();
228 currentCounts.putInt(counts.keyAt(j), counts.valueAt(j));
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
H A DUsb10ASFormatI.java69 int[] counts = {mNumChannels};
70 return counts;
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXmlV1.java125 ArrayMap<String, Integer> counts = new ArrayMap<>();
126 usageStats.mChooserCounts.put(action, counts);
235 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i);
236 if (action == null || counts == null || counts.isEmpty()) {
241 writeCountsForAction(xml, counts);
246 private static void writeCountsForAction(XmlSerializer xml, ArrayMap<String, Integer> counts) argument
248 final int countsSize = counts.size();
250 String key = counts.keyAt(i);
251 int count = counts
[all...]
H A DUserUsageStatsService.java719 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i);
720 final int annotationSize = counts.size();
722 final String key = counts.keyAt(j);
723 final int count = counts.valueAt(j);
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DResolverListControllerTest.java128 ArrayMap<String, Integer> counts = new ArrayMap<>();
129 counts.put(annotation, count);
130 chooserCounts.put(action, counts);
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DLongSamplingCounterArrayTest.java89 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts");
106 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts");
116 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts");
126 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts");
169 assertArrayEquals(deltas, mCounterArray.mCounts, "Unexpected counts");
175 assertArrayEquals(null, mCounterArray.mCounts, "Unexpected counts");
179 assertArrayEquals(deltas, mCounterArray.mCounts, "Unexpected counts");
189 assertArrayEquals(newCounts, mCounterArray.mCounts, "Unexpected counts");
196 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts");
201 assertArrayEquals(newCounts, mCounterArray.mCounts, "Unexpected counts");
243 updateCounts(long[] counts, long[] loadedCounts, long[] unpluggedCounts) argument
[all...]
/frameworks/base/core/java/android/os/
H A DBinder.java963 Map<String, Integer> counts = new HashMap<>();
978 Integer i = counts.get(key);
980 counts.put(key, 1);
982 counts.put(key, i + 1);
987 Map.Entry<String, Integer>[] sorted = counts.entrySet().toArray(
988 new Map.Entry[counts.size()]);
1000 * Dump per uid binder proxy counts to the logcat.
1003 SparseIntArray counts = BinderInternal.nGetBinderProxyPerUidCounts();
1004 if (counts.size() == 0) return;
1006 for (int i = 0; i < counts
[all...]
/frameworks/base/media/java/android/media/
H A DAudioDeviceInfo.java283 * @return An array of channel counts (1, 2, 4, ...) for which this audio device
286 * Note: an empty array indicates that the device supports arbitrary channel counts.
303 int[] counts = new int[countSet.size()];
306 counts[index++] = count;
308 return counts;
H A DMediaCodecInfo.java1700 Range<Integer> counts = Utils.parseIntRange(map.get("block-count-range"), null);
1701 int FS = counts == null ? 0 : BS * counts.getUpper();
1751 Range<Integer> counts = null, widths = null, heights = null;
1758 counts = Utils.parseIntRange(map.get("block-count-range"), null);
1835 if (counts != null) {
1837 Utils.factorRange(counts, mBlockWidth * mBlockHeight
1873 if (counts != null) {
1875 Utils.factorRange(counts, mBlockWidth * mBlockHeight
1904 Range<Integer> counts, Rang
1902 applyBlockLimits( int blockWidth, int blockHeight, Range<Integer> counts, Range<Long> rates, Range<Rational> ratios) argument
[all...]
/frameworks/native/include/binder/
H A DBpBinder.h70 static void getCountByUid(Vector<uint32_t>& uids, Vector<uint32_t>& counts);
/frameworks/native/libs/binder/include/binder/
H A DBpBinder.h70 static void getCountByUid(Vector<uint32_t>& uids, Vector<uint32_t>& counts);
/frameworks/native/libs/binder/
H A DBpBinder.cpp442 void BpBinder::getCountByUid(Vector<uint32_t>& uids, Vector<uint32_t>& counts) argument
446 counts.setCapacity(sTrackingMap.size());
449 counts.push_back(it.second & COUNTING_VALUE_MASK);
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DIpConnectivityEventBuilder.java315 private static Pair[] toPairArray(SparseIntArray counts) { argument
316 final int s = counts.size();
320 p.key = counts.keyAt(i);
321 p.value = counts.valueAt(i);
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutPackage.java1023 private void incrementCountForActivity(ArrayMap<ComponentName, Integer> counts, argument
1025 Integer oldValue = counts.get(cn);
1030 counts.put(cn, oldValue + increment);
1053 final ArrayMap<ComponentName, Integer> counts = new ArrayMap<>(4);
1058 incrementCountForActivity(counts, shortcut.getActivity(), 1);
1060 incrementCountForActivity(counts, shortcut.getActivity(), 1);
1082 incrementCountForActivity(counts, newActivity, 1);
1096 incrementCountForActivity(counts, oldActivity, -1);
1099 incrementCountForActivity(counts, newActivity, 1);
1103 for (int i = counts
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
H A DRttServiceImpl.java711 SparseIntArray counts = new SparseIntArray();
716 counts.put(uid, counts.get(uid) + 1);
723 counts.put(uid, counts.get(uid) + 1);
729 if (counts.get(ws.get(i)) < MAX_QUEUED_PER_UID) {
738 if (counts.get(uid) < MAX_QUEUED_PER_UID) {
745 Log.v(TAG, "isRequestorSpamming: ws=" + ws + ", someone is spamming: " + counts);
/frameworks/base/services/core/java/com/android/server/content/
H A DContentService.java209 int[] counts = new int[2];
211 mRootNode.dumpLocked(fd, pw, args, "", " ", counts, pidCounts);
237 pw.print(" Total number of nodes: "); pw.println(counts[0]);
238 pw.print(" Total number of observers: "); pw.println(counts[1]);
1382 String name, String prefix, int[] counts, SparseIntArray pidCounts) {
1391 counts[1]++;
1405 counts[0]++;
1407 counts, pidCounts);
1381 dumpLocked(FileDescriptor fd, PrintWriter pw, String[] args, String name, String prefix, int[] counts, SparseIntArray pidCounts) argument
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp110 size_t counts[100]; local
112 counts[i] = 0;
121 ++counts[slot];
128 printf("[%.2f fps]: %zu\n", fps, counts[i]);
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp498 sk_sp<SkImage> counts = offscreen->makeImageSnapshot(); local
500 // Draw overdraw colors to the canvas. The color filter will convert counts to colors.
504 surface->getCanvas()->drawImage(counts.get(), 0.0f, 0.0f, &paint);
/frameworks/base/core/jni/
H A Dandroid_util_Binder.cpp1041 Vector<uint32_t> uids, counts; local
1042 BpBinder::getCountByUid(uids, counts);
1047 static_cast<jint>(uids[i]), static_cast<jint>(counts[i]));
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiMetricsTest.java1010 // check scanReturnEntries & wifiSystemStateEntries counts and individual elements
1776 int[] keys, int[] counts) throws Exception {
1780 assertEquals(counts[i], hist[i].count);
1775 verifyHist(WifiMetricsProto.NumConnectableNetworksBucket[] hist, int size, int[] keys, int[] counts) argument
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java1453 public void addCountLocked(long[] counts) { argument
1454 addCountLocked(counts, mTimeBase.isRunning());
1457 public void addCountLocked(long[] counts, boolean isRunning) { argument
1458 if (counts == null) {
1463 mCounts = new long[counts.length];
1465 for (int i = 0; i < counts.length; ++i) {
1466 mCounts[i] += counts[i];
6804 * Count of app launch events that had associated deferred job counts or info about
6821 * Array of counts of instances where the time since the last job was run for the app
6974 final long[] counts
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java12763 throw new IllegalStateException("ref counts can't go to zero here: stable="
16677 boolean dumpBinderProxiesCounts(PrintWriter pw, SparseIntArray counts, String header) { argument
16678 if(counts != null) {
16680 for (int i = 0; i < counts.size(); i++) {
16681 final int uid = counts.keyAt(i);
16682 final int binderCount = counts.valueAt(i);
23159 // counts as being in the foreground for OOM killer purposes.
23172 // counts as being in the foreground.
[all...]

Completed in 1003 milliseconds

12