Home
last modified time | relevance | path

Searched refs:collection (Results 1 – 25 of 120) sorted by relevance

12345

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsCollectionTest.java120 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/
DCollectionUtils.java49 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/
DNetworkStatsRecorder.java369 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 …]
DNetworkStatsService.java912 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/
DPerformanceTest.java96 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/
DBackgroundScanSchedulerTest.java482 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 …]
DBaseWifiScannerImplTest.java97 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()
DWificondPnoScannerTest.java216 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/
Dsystem-lint-baseline.txt3 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/
DKeyboardLayoutDialogFragment.java239 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/
DArrayUtils.java181 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/
DCollectionUtils.java44 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/
DKitchenSinkShellCommand.java229 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/
DArrayUtils.java109 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/
DNetworkStatsDataMigrationUtilsTest.kt65 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/
Dscorecard.proto25 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/
DWatchdogProperties.sysprop36 # 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/
DSystemUIGoModule.java55 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/
DImageLoader.java31 import androidx.collection.ArrayMap;
32 import androidx.collection.ArraySet;
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DVoiceInputInfoProvider.java36 import androidx.collection.ArrayMap;
37 import androidx.collection.ArraySet;
/packages/apps/Car/SystemUI/src/com/android/systemui/
DCarSystemUIModule.java60 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/
Dbundler_schema.fbs3 // Describes a collection of binary flatbuffer schema.
/packages/apps/Messaging/src/com/android/messaging/util/
DLongSparseSet.java19 import androidx.collection.LongSparseArray;
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.kt509 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/
DCustomVCardEntry.java19 import androidx.collection.ArrayMap;

12345