/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsCollectionTest.java | 120 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyNetwork() local 121 collection.readLegacyNetwork(testFile); in testReadLegacyNetwork() 124 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), in testReadLegacyNetwork() 129 collection.write(bos); in testReadLegacyNetwork() 132 collection.reset(); in testReadLegacyNetwork() 133 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), in testReadLegacyNetwork() 137 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork() 138 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), in testReadLegacyNetwork() 148 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUid() local 149 collection.readLegacyUid(testFile, false); in testReadLegacyUid() [all …]
|
/packages/modules/Permission/service/java/com/android/permission/util/ |
D | CollectionUtils.java | 49 public static boolean isEmpty(@Nullable Collection<?> collection) { in isEmpty() argument 50 return collection == null || collection.isEmpty(); in isEmpty() 59 public static int size(@Nullable Collection<?> collection) { in size() argument 60 return collection != null ? collection.size() : 0; in size() 69 public static int size(@Nullable Map<?, ?> collection) { in size() argument 70 return collection != null ? collection.size() : 0; in size()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsRecorder.java | 369 public CombiningRewriter(NetworkStatsCollection collection) { in CombiningRewriter() argument 370 mCollection = Objects.requireNonNull(collection, "missing NetworkStatsCollection"); in CombiningRewriter() 436 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); in importLegacyNetworkLocked() local 437 collection.readLegacyNetwork(file); in importLegacyNetworkLocked() 439 final long startMillis = collection.getStartMillis(); in importLegacyNetworkLocked() 440 final long endMillis = collection.getEndMillis(); in importLegacyNetworkLocked() 442 if (!collection.isEmpty()) { in importLegacyNetworkLocked() 445 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis); in importLegacyNetworkLocked() 456 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); in importLegacyUidLocked() local 457 collection.readLegacyUid(file, mOnlyTags); in importLegacyUidLocked() [all …]
|
D | NetworkStatsService.java | 912 public NetworkStatsCollection collection; 916 collection = null; 1003 migration.collection = readPlatformCollectionForRecorder(migration.recorder); 1033 final long migrationEnd = migration.collection.getEndMillis(); 1049 if (migration.collection.isEmpty()) continue; 1050 migration.recorder.importCollectionLocked(migration.collection); 1151 final String error = compareStats(migration.collection, legacyStats); 1258 final NetworkStatsCollection collection = Objects.requireNonNull( 1263 if (!collection.isEmpty() && bootTimestamp < collection.getStartMillis()) { 1266 + "(start timestamp = " + Instant.ofEpochMilli(collection.getStartMillis()) [all …]
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | PerformanceTest.java | 96 private void doSingle(Uri collection, Timers timers) throws Exception { in doSingle() argument 107 collection, 1, ContentResolver.NOTIFY_INSERT); in doSingle() 110 res = resolver.insert(collection, values); in doSingle() 123 collection, 1, ContentResolver.NOTIFY_UPDATE); in doSingle() 136 collection, 1, ContentResolver.NOTIFY_DELETE); in doSingle() 165 private void doBulk(Uri collection, Timers timers) throws Exception { in doBulk() argument 173 ops.add(ContentProviderOperation.newInsert(collection) in doBulk() 180 collection, COUNT_BULK, ContentResolver.NOTIFY_INSERT); in doBulk() 183 res = resolver.applyBatch(collection.getAuthority(), ops); in doBulk() 200 collection, COUNT_BULK, ContentResolver.NOTIFY_UPDATE); in doBulk() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BackgroundScanSchedulerTest.java | 482 KnownBandsChannelCollection collection = mChannelHelper.createChannelCollection(); in optimalScheduleFullyCollapsesDuplicateChannelsInBand() local 483 collection.addBand(WifiScanner.WIFI_BAND_24_GHZ); in optimalScheduleFullyCollapsesDuplicateChannelsInBand() 484 Set<Integer> expectedBucketChannelSet = collection.getAllChannels(); in optimalScheduleFullyCollapsesDuplicateChannelsInBand() 596 KnownBandsChannelCollection collection = mChannelHelper.createChannelCollection(); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets() local 597 collection.addBand(WifiScanner.WIFI_BAND_24_5_WITH_DFS_6_60_GHZ); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets() 598 expectedBucketChannelSet = collection.getAllChannels(); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets() 645 KnownBandsChannelCollection collection = mChannelHelper.createChannelCollection(); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets() local 646 collection.addBand(WifiScanner.WIFI_BAND_BOTH_WITH_DFS); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets() 647 expectedBucketChannelSet = collection.getAllChannels(); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets() 658 KnownBandsChannelCollection collection = mChannelHelper.createChannelCollection(); in getAllChannels() local [all …]
|
D | BaseWifiScannerImplTest.java | 97 ChannelCollection collection = mScanner.getChannelHelper().createChannelCollection(); in expectedBandScanFreqs() local 98 collection.addBand(band); in expectedBandScanFreqs() 99 return collection.getScanFreqs(); in expectedBandScanFreqs() 103 ChannelCollection collection = mScanner.getChannelHelper().createChannelCollection(); in expectedBandAndChannelScanFreqs() local 104 collection.addBand(band); in expectedBandAndChannelScanFreqs() 106 collection.addChannel(channel); in expectedBandAndChannelScanFreqs() 108 return collection.getScanFreqs(); in expectedBandAndChannelScanFreqs()
|
D | WificondPnoScannerTest.java | 216 ChannelCollection collection = mScanner.getChannelHelper().createChannelCollection(); in expectedBandScanFreqs() local 217 collection.addBand(band); in expectedBandScanFreqs() 218 return collection.getScanFreqs(); in expectedBandScanFreqs()
|
/packages/services/Car/car-builtin-lib/api/ |
D | system-lint-baseline.txt | 3 Return type is concrete collection (`android.util.ArraySet`); must be higher-level interface 5 Parameter type is concrete collection (`android.util.ArraySet`); must be higher-level interface 9 …ParcelHelper.readArraySet(android.os.Parcel,ClassLoader) is a nullable collection (`android.util.A… 11 …iltin.os.ParcelHelper.readStringArray(android.os.Parcel) is a nullable collection (`java.lang.Stri…
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | KeyboardLayoutDialogFragment.java | 239 String label, collection; in getView() local 242 collection = item.getCollection(); in getView() 245 collection = ""; in getView() 249 if (collection.isEmpty()) { in getView() 252 return inflateTwoLine(convertView, parent, label, collection, checked); in getView() 272 String label, String collection, boolean checked) { in inflateTwoLine() argument 285 subText.setText(collection); in inflateTwoLine()
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | ArrayUtils.java | 181 public static int size(@Nullable Collection<?> collection) { in size() argument 182 return collection == null ? 0 : collection.size(); in size() 708 public static <T> int unstableRemoveIf(@Nullable ArrayList<T> collection, in unstableRemoveIf() argument 710 if (collection == null) { in unstableRemoveIf() 714 final int size = collection.size(); in unstableRemoveIf() 719 while (leftIdx < size && !predicate.test(collection.get(leftIdx))) { in unstableRemoveIf() 724 while (rightIdx > leftIdx && predicate.test(collection.get(rightIdx))) { in unstableRemoveIf() 733 Collections.swap(collection, leftIdx, rightIdx); in unstableRemoveIf() 740 collection.remove(i); in unstableRemoveIf()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | CollectionUtils.java | 44 public static boolean isEmpty(@Nullable Collection<?> collection) { in isEmpty() argument 45 return collection == null || collection.isEmpty(); in isEmpty()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | KitchenSinkShellCommand.java | 229 private void printCollection(String nameOnSingular, Collection<String> collection) { in printCollection() argument 230 if (collection.isEmpty()) { in printCollection() 234 int size = collection.size(); in printCollection() 236 collection.forEach((s) -> mWriter.printf(" %s\n", s)); in printCollection()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ArrayUtils.java | 109 public static int size(@Nullable Collection<?> collection) { in size() argument 110 return collection == null ? 0 : collection.size(); in size()
|
/packages/modules/Connectivity/tests/unit/java/android/net/netstats/ |
D | NetworkStatsDataMigrationUtilsTest.kt | 65 collection: NetworkStatsCollection, in assertValues() 76 val entries = collection.entries in assertValues() 97 assertEquals(txBytes + rxBytes, collection.totalBytes) in assertValues()
|
/packages/modules/Wifi/service/proto/src/ |
D | scorecard.proto | 25 optional int64 start_time_millis = 1; // Start of collection period 26 optional int64 end_time_millis = 2; // End of collection period 27 // A collection of network descriptions 31 // Describes a network, consisting of a collection of access points that share 88 // Short-term statistics (for current collection period)
|
/packages/services/Car/cpp/watchdog/server/sysprop/ |
D | WatchdogProperties.sysprop | 36 # Duration in seconds of data collection after final signal received for system event. 45 # Duration in seconds of data collection for a system wake up event.
|
/packages/apps/SystemUIGo/src/com/android/systemui/go/ |
D | SystemUIGoModule.java | 55 import com.android.systemui.statusbar.notification.collection.provider.VisualStabilityProvider; 56 import com.android.systemui.statusbar.notification.collection.render.GroupMembershipManager;
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | ImageLoader.java | 31 import androidx.collection.ArrayMap; 32 import androidx.collection.ArraySet;
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/ |
D | VoiceInputInfoProvider.java | 36 import androidx.collection.ArrayMap; 37 import androidx.collection.ArraySet;
|
/packages/apps/Car/SystemUI/src/com/android/systemui/ |
D | CarSystemUIModule.java | 60 import com.android.systemui.statusbar.notification.collection.provider.VisualStabilityProvider; 61 import com.android.systemui.statusbar.notification.collection.render.GroupMembershipManager;
|
/packages/modules/Bluetooth/system/gd/dumpsys/bundler/ |
D | bundler_schema.fbs | 3 // Describes a collection of binary flatbuffer schema.
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | LongSparseSet.java | 19 import androidx.collection.LongSparseArray;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.kt | 509 fun <E> newArraySet(collection: Collection<E>): ArraySet<E> { in newArraySet() 510 val arraySet = ArraySet<E>(collection.size) in newArraySet() 511 arraySet.addAll(collection) in newArraySet()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | CustomVCardEntry.java | 19 import androidx.collection.ArrayMap;
|