/packages/modules/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 …]
|
D | WifiScoreCard.java | 946 private BandwidthStatsAll toBandwidthStatsAll(long[][][] values, int[][][] counts) { in toBandwidthStatsAll() argument 948 builder.setStats2G(toBandwidthStatsAllLink(values[0], counts[0])); in toBandwidthStatsAll() 949 builder.setStatsAbove2G(toBandwidthStatsAllLink(values[1], counts[1])); in toBandwidthStatsAll() 953 private BandwidthStatsAllLink toBandwidthStatsAllLink(long[][] values, int[][] counts) { in toBandwidthStatsAllLink() argument 955 builder.setTx(toBandwidthStatsAllLevel(values[LINK_TX], counts[LINK_TX])); in toBandwidthStatsAllLink() 956 builder.setRx(toBandwidthStatsAllLevel(values[LINK_RX], counts[LINK_RX])); in toBandwidthStatsAllLink() 960 private BandwidthStatsAllLevel toBandwidthStatsAllLevel(long[] values, int[] counts) { in toBandwidthStatsAllLevel() argument 963 builder.addLevel(toBandwidthStats(values[i], counts[i])); in toBandwidthStatsAllLevel() 976 long[][][] values, int[][][] counts) { in mergeBandwidthStatsAll() argument 978 mergeBandwidthStatsAllLink(source.getStats2G(), values[0], counts[0]); in mergeBandwidthStatsAll() local [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/group/ |
D | GroupUtilTest.java | 42 int counts[] = new int[]{1, 2, 2, 3, 1, 2}; in testNeedTrimming() local 43 assertFalse(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming() 46 counts = new int[]{1, 6, 2, 7, 1, 2, 1, 2}; in testNeedTrimming() 47 assertTrue(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming() 53 final int[] counts = new int[]{1, 6, 2, 7, 1, 2, 1, 2}; in testUpdateBundle_smallSet() local 56 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_smallSet() 58 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_smallSet() 76 final int[] counts = new int[]{81, 36, 84, 55, 28, 15, 18, 38, 145, 60, 41, 73, 15, 2, 56, in testUpdateBundle_mediumSet() local 104 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_mediumSet() 106 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_mediumSet()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Metrics.java | 138 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/ |
D | ContactsSectionIndexer.java | 42 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()
|
D | GroupMemberPickerFragment.java | 91 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()
|
D | ContactEntryListAdapter.java | 502 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/ |
D | ContactSectionIndexer.java | 104 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/ |
D | FastScrollingIndexCache.java | 149 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()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupUtil.java | 239 public static boolean needTrimming(int count, int[] counts, int[] positions) { in needTrimming() argument 243 return positions.length > 0 && counts.length > 0 in needTrimming() 244 && count <= (counts[counts.length - 1] + positions[positions.length - 1]); in needTrimming() 251 List<Integer> subscripts, String[] sections, int[] counts) { in updateBundle() argument 254 if (filteredContact < counts.length && filteredContact >= 0) { in updateBundle() 255 counts[filteredContact]--; in updateBundle() 256 if (counts[filteredContact] == 0) { in updateBundle() 263 final int[] newCounts = clearZeros(counts); in updateBundle()
|
D | GroupMembersFragment.java | 116 final int counts[] = bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in FilterCursorWrapper() local 117 final ContactsSectionIndexer indexer = (sections == null || counts == null) in FilterCursorWrapper() 118 ? null : new ContactsSectionIndexer(sections, counts); in FilterCursorWrapper() 132 if (indexer != null && GroupUtil.needTrimming(mCount, counts, indexer.getPositions())) { in FilterCursorWrapper() 133 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts); in FilterCursorWrapper()
|
/packages/modules/Bluetooth/system/gd/packet/ |
D | fragmenting_inserter_unittest.cc | 96 auto counts = RawBuilder(); in TEST() local 98 counts.AddOctets1(static_cast<uint8_t>(i)); in TEST() 103 counts.Serialize(it); in TEST() 110 counts.Serialize(it_less); in TEST() 118 counts.Serialize(it_more); in TEST()
|
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
D | ContactsAdapter.java | 58 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/StatsD/lib/libstatssocket/ |
D | stats_socket_loss_reporter.cpp | 100 std::vector<int> counts(mLossInfo.size()); in dumpAtomsLossStats() local 107 counts[i] = lossInfoIt->second; in dumpAtomsLossStats() 112 mOverflowCounter, errors, tags, counts); in dumpAtomsLossStats()
|
/packages/modules/StatsD/statsd/src/logd/ |
D | logevent_util.cpp | 69 result.counts.reserve(expectedEntriesCount); in toSocketLossInfo() 95 result.counts.push_back(valuesIt->mValue.int_value); in toSocketLossInfo() 98 if (result.counts.size() != expectedEntriesCount) { in toSocketLossInfo()
|
D | logevent_util.h | 35 std::vector<int32_t> counts; member
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | PermissionUsageGraphicPreference.java | 146 int[] counts; in onBindViewHolder() local 152 counts = new int[] { 1 }; in onBindViewHolder() 165 counts = new int[] { in onBindViewHolder() 200 ccv.configure(300, counts, colors, circleStrokeWidth, labels); in onBindViewHolder()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTestUtil.java | 239 ExperimentProbeCounts counts = new ExperimentProbeCounts(); in buildExperimentProbeCounts() local 240 counts.experimentId = experimentId; in buildExperimentProbeCounts() 241 counts.probeCount = probeCount; in buildExperimentProbeCounts() 242 return counts; in buildExperimentProbeCounts()
|
/packages/modules/StatsD/statsd/benchmark/ |
D | loss_info_container_benchmark.cpp | 109 std::vector<int> counts; member 118 ++counts[locatedTagIndex]; in noteLossInfo() 128 counts.push_back(1); in noteLossInfo()
|
/packages/modules/DnsResolver/ |
D | DnsStats.cpp | 89 for (const auto& [rcode, counts] : rcodeCounts) { in toString() 90 if (counts != 0) { in toString() 91 buf += fmt::format("{}:{} ", rcodeToName(rcode), counts); in toString()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/ |
D | RttServiceImpl.java | 862 SparseIntArray counts = new SparseIntArray(); in isRequestorSpamming() local 867 counts.put(uid, counts.get(uid) + 1); in isRequestorSpamming() 874 counts.put(uid, counts.get(uid) + 1); in isRequestorSpamming() 880 if (counts.get(ws.getUid(i)) < MAX_QUEUED_PER_UID) { in isRequestorSpamming() 889 if (counts.get(uid) < MAX_QUEUED_PER_UID) { in isRequestorSpamming() 896 Log.v(TAG, "isRequestorSpamming: ws=" + ws + ", someone is spamming: " + counts); in isRequestorSpamming()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | FastScrollingIndexCacheTest.java | 85 String[] titles, int[] counts) { in putAndGetBundle() argument 86 Bundle bundle = FastScrollingIndexCache.buildExtraBundle(titles, counts); in putAndGetBundle()
|
/packages/modules/Bluetooth/system/gd/cert/ |
D | gen_html_coverage.sh | 5 llvm-cov show --format=html --summary-only --show-line-counts-or-regions --show-instantiation-summa…
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/misc/ |
D | max_distinct_destinations_in_source.json | 71 // second registered source but still counts towards the limit.
|
/packages/modules/AdServices/adservices/libraries/cobalt/proto/ |
D | observation.proto | 132 // IndexHistogram represents a list of counts for each bucket of a histogram 145 // event vectors and lists of bucket counts. 154 // and lists of bucket counts.
|