Home
last modified time | relevance | path

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

12

/packages/modules/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 …]
DWifiScoreCard.java947 private BandwidthStatsAll toBandwidthStatsAll(long[][][] values, int[][][] counts) { in toBandwidthStatsAll() argument
949 builder.setStats2G(toBandwidthStatsAllLink(values[0], counts[0])); in toBandwidthStatsAll()
950 builder.setStatsAbove2G(toBandwidthStatsAllLink(values[1], counts[1])); in toBandwidthStatsAll()
954 private BandwidthStatsAllLink toBandwidthStatsAllLink(long[][] values, int[][] counts) { in toBandwidthStatsAllLink() argument
956 builder.setTx(toBandwidthStatsAllLevel(values[LINK_TX], counts[LINK_TX])); in toBandwidthStatsAllLink()
957 builder.setRx(toBandwidthStatsAllLevel(values[LINK_RX], counts[LINK_RX])); in toBandwidthStatsAllLink()
961 private BandwidthStatsAllLevel toBandwidthStatsAllLevel(long[] values, int[] counts) { in toBandwidthStatsAllLevel() argument
964 builder.addLevel(toBandwidthStats(values[i], counts[i])); in toBandwidthStatsAllLevel()
977 long[][][] values, int[][][] counts) { in mergeBandwidthStatsAll() argument
979 mergeBandwidthStatsAllLink(source.getStats2G(), values[0], counts[0]); in mergeBandwidthStatsAll() local
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/group/
DGroupUtilTest.java41 int counts[] = new int[]{1, 2, 2, 3, 1, 2}; in testNeedTrimming() local
42 assertFalse(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming()
45 counts = new int[]{1, 6, 2, 7, 1, 2, 1, 2}; in testNeedTrimming()
46 assertTrue(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming()
52 final int[] counts = new int[]{1, 6, 2, 7, 1, 2, 1, 2}; in testUpdateBundle_smallSet() local
55 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_smallSet()
57 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_smallSet()
75 final int[] counts = new int[]{81, 36, 84, 55, 28, 15, 18, 38, 145, 60, 41, 73, 15, 2, 56, in testUpdateBundle_mediumSet() local
103 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_mediumSet()
105 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_mediumSet()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMetrics.java138 ProviderCounts counts = new ProviderCounts(); in logFileOperation() local
139 countProviders(counts, srcs, dst); in logFileOperation()
140 if (counts.intraProvider > 0) { in logFileOperation()
143 if (counts.systemProvider > 0) { in logFileOperation()
147 if (counts.externalProvider > 0) { in logFileOperation()
196 ProviderCounts counts = new ProviderCounts(); in logFileOperationErrors() local
197 countProviders(counts, failedFiles, null); in logFileOperationErrors()
199 countProviders(counts, failedUris); in logFileOperationErrors()
218 if (counts.systemProvider > 0) { in logFileOperationErrors()
223 if (counts.externalProvider > 0) { in logFileOperationErrors()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsSectionIndexer.java42 public ContactsSectionIndexer(String[] sections, int[] counts) { in ContactsSectionIndexer() argument
43 if (sections == null || counts == null) { in ContactsSectionIndexer()
47 if (sections.length != counts.length) { in ContactsSectionIndexer()
55 mPositions = new int[counts.length]; in ContactsSectionIndexer()
57 for (int i = 0; i < counts.length; i++) { in ContactsSectionIndexer()
66 position += counts[i]; in ContactsSectionIndexer()
DGroupMemberPickerFragment.java91 final int counts[] = bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in FilterCursorWrapper() local
92 final ContactsSectionIndexer indexer = (sections == null || counts == null) in FilterCursorWrapper()
93 ? null : new ContactsSectionIndexer(sections, counts); in FilterCursorWrapper()
105 if (indexer != null && GroupUtil.needTrimming(mCount, counts, indexer.getPositions())) { in FilterCursorWrapper()
106 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts); in FilterCursorWrapper()
DContactEntryListAdapter.java502 int counts[] = bundle.getIntArray( in updateIndexer() local
508 int allCounts[] = new int[counts.length + 1]; in updateIndexer()
511 allCounts[i + 1] = counts[i]; in updateIndexer()
517 setIndexer(new ContactsSectionIndexer(sections, counts)); in updateIndexer()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactSectionIndexer.java104 final int[] counts = cursorExtras.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in buildIndexerFromCursorExtras() local
105 if (sections == null || counts == null) { in buildIndexerFromCursorExtras()
109 if (sections.length != counts.length) { in buildIndexerFromCursorExtras()
114 mSectionStartingPositions = new ArrayList<Integer>(counts.length); in buildIndexerFromCursorExtras()
116 for (int i = 0; i < counts.length; i++) { in buildIndexerFromCursorExtras()
124 position += counts[i]; in buildIndexerFromCursorExtras()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java149 static String buildCacheValue(String[] titles, int[] counts) { in buildCacheValue() argument
158 appendIfNotNull(sb, Integer.toString(counts[i])); in buildCacheValue()
167 public static final Bundle buildExtraBundle(String[] titles, int[] counts) { in buildExtraBundle() argument
170 bundle.putIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS, counts); in buildExtraBundle()
190 final int[] counts = new int[numTitles]; in buildExtraBundleFromValue() local
194 counts[i] = Integer.parseInt(values[i * 2 + 1]); in buildExtraBundleFromValue()
197 return buildExtraBundle(titles, counts); in buildExtraBundleFromValue()
DContactsProvider2.java7663 int counts[] = new int[numLabels]; in getFastScrollingIndexExtras() local
7668 counts[i] = indexCursor.getInt(AddressBookIndexQuery.COLUMN_COUNT); in getFastScrollingIndexExtras()
7671 return FastScrollingIndexCache.buildExtraBundle(labels, counts); in getFastScrollingIndexExtras()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupUtil.java238 public static boolean needTrimming(int count, int[] counts, int[] positions) { in needTrimming() argument
242 return positions.length > 0 && counts.length > 0 in needTrimming()
243 && count <= (counts[counts.length - 1] + positions[positions.length - 1]); in needTrimming()
250 List<Integer> subscripts, String[] sections, int[] counts) { in updateBundle() argument
253 if (filteredContact < counts.length && filteredContact >= 0) { in updateBundle()
254 counts[filteredContact]--; in updateBundle()
255 if (counts[filteredContact] == 0) { in updateBundle()
262 final int[] newCounts = clearZeros(counts); in updateBundle()
DGroupMembersFragment.java117 final int counts[] = bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in FilterCursorWrapper() local
118 final ContactsSectionIndexer indexer = (sections == null || counts == null) in FilterCursorWrapper()
119 ? null : new ContactsSectionIndexer(sections, counts); in FilterCursorWrapper()
133 if (indexer != null && GroupUtil.needTrimming(mCount, counts, indexer.getPositions())) { in FilterCursorWrapper()
134 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts); in FilterCursorWrapper()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsAdapter.java58 private int[] counts = new int[0]; field in ContactsAdapter
72 counts = cursor.getExtras().getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in updateCursor()
73 if (counts != null) { in updateCursor()
75 for (int count : counts) { in updateCursor()
216 sum += counts[++index]; in getHeaderString()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsageGraphicPreference.java137 int[] counts; in onBindViewHolder() local
143 counts = new int[] { 1 }; in onBindViewHolder()
156 counts = new int[] { in onBindViewHolder()
191 ccv.configure(300, counts, colors, circleStrokeWidth); in onBindViewHolder()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTestUtil.java239 ExperimentProbeCounts counts = new ExperimentProbeCounts(); in buildExperimentProbeCounts() local
240 counts.experimentId = experimentId; in buildExperimentProbeCounts()
241 counts.probeCount = probeCount; in buildExperimentProbeCounts()
242 return counts; in buildExperimentProbeCounts()
DWifiMetricsTest.java3342 int[] keys, int[] counts) throws Exception { in verifyHist() argument
3346 assertEquals(counts[i], hist[i].count); in verifyHist()
/packages/modules/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()
/packages/modules/DnsResolver/
DDnsStats.cpp90 for (const auto& [rcode, counts] : rcodeCounts) { in toString()
91 if (counts != 0) { in toString()
92 buf += StringPrintf("%s:%d ", rcodeToName(rcode).c_str(), counts); in toString()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DFastScrollingIndexCacheTest.java84 String[] titles, int[] counts) { in putAndGetBundle() argument
85 Bundle bundle = FastScrollingIndexCache.buildExtraBundle(titles, counts); in putAndGetBundle()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java418 final int counts = array.length; in parseGridRows() local
421 for (int index = 0; index < counts; index += numColumns) { in parseGridRows()
426 if (i >= counts) { in parseGridRows()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java2632 private void incrementSkipCount(int[] counts, int startIndex, int endIndex) { in incrementSkipCount() argument
2633 if (counts == null || startIndex < 0 || endIndex > counts.length) { in incrementSkipCount()
2637 counts[i]++; in incrementSkipCount()
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto360 // (one value added per unique ESS - potentially multiple counts per single
365 // (one value added per unique ESS - potentially multiple counts per single
369 // SoftAP event list tracking sessions and client counts in tethered mode
372 // SoftAP event list tracking sessions and client counts in local only mode
670 // (one value added per unique ESS - potentially multiple counts per single
1928 // SoftAP event tracking sessions and client counts
2917 // Group event list tracking sessions and client counts in tethered mode.
/packages/apps/TV/res/raw/
Dthird_party_licenses2868 [This is the first released version of the Lesser GPL. It also counts
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz

12