Home
last modified time | relevance | path

Searched refs:NetworkIdentitySet (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentitySetTest.kt55 assertEquals(0, NetworkIdentitySet.compare(NetworkIdentitySet(), NetworkIdentitySet())) in testCompare()
57 val identSet1 = NetworkIdentitySet() in testCompare()
58 val identSet2 = NetworkIdentitySet() in testCompare()
61 assertEquals(-1, NetworkIdentitySet.compare(NetworkIdentitySet(), identSet1)) in testCompare()
62 assertEquals(1, NetworkIdentitySet.compare(identSet1, NetworkIdentitySet())) in testCompare()
63 assertEquals(0, NetworkIdentitySet.compare(identSet1, identSet1)) in testCompare()
64 assertEquals(-1, NetworkIdentitySet.compare(identSet1, identSet2)) in testCompare()
DNetworkStatsRecorderTest.java43 import android.net.NetworkIdentitySet;
151 final NetworkIdentitySet identSet = new NetworkIdentitySet(); in testFileReadingMetrics()
DNetworkStatsCollectionTest.java238 collection.recordData(Mockito.mock(NetworkIdentitySet.class), UID_ALL, SET_DEFAULT, in testStartEndAtomicBuckets()
250 final NetworkIdentitySet identSet = new NetworkIdentitySet(); in testAccessLevels()
512 final NetworkIdentitySet ident = new NetworkIdentitySet(); in testAugmentPlanGigantic()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentitySet.java39 public class NetworkIdentitySet extends HashSet<NetworkIdentity> { class
51 public NetworkIdentitySet() { in NetworkIdentitySet() method in NetworkIdentitySet
56 public NetworkIdentitySet(@NonNull Set<NetworkIdentity> ident) { in NetworkIdentitySet() method in NetworkIdentitySet
61 public NetworkIdentitySet(DataInput in) throws IOException { in NetworkIdentitySet() method in NetworkIdentitySet
206 public static int compare(@NonNull NetworkIdentitySet left, @NonNull NetworkIdentitySet right) { in compare()
DNetworkStatsCollection.java435 public void recordData(NetworkIdentitySet ident, int uid, int set, int tag, long start, in recordData()
477 NetworkIdentitySet ident, int uid, int set, int tag) { in findOrCreateHistory()
520 final NetworkIdentitySet ident = new NetworkIdentitySet(in); in read()
550 final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = new HashMap<>(); in write()
564 for (NetworkIdentitySet ident : keysByIdent.keySet()) { in write()
606 final NetworkIdentitySet ident = new NetworkIdentitySet(in); in readLegacyNetwork()
667 final NetworkIdentitySet ident = new NetworkIdentitySet(in); in readLegacyUid()
827 final Key groupKey = new Key(new NetworkIdentitySet(), key.uid, key.set, key.tag); in dumpCheckin()
857 private static boolean templateMatches(NetworkTemplate template, NetworkIdentitySet identSet) { in templateMatches()
1047 public final NetworkIdentitySet ident;
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsObserversTest.java44 import android.net.NetworkIdentitySet;
117 private ArrayMap<String, NetworkIdentitySet> mActiveIfaces;
118 private ArrayMap<String, NetworkIdentitySet> mActiveUidIfaces;
299 private NetworkIdentitySet makeTestIdentSet() { in makeTestIdentSet()
300 NetworkIdentitySet identSet = new NetworkIdentitySet(); in makeTestIdentSet()
319 NetworkIdentitySet identSet = makeTestIdentSet(); in testUpdateStats_initialSample_doesNotNotify()
343 NetworkIdentitySet identSet = makeTestIdentSet(); in testUpdateStats_belowThreshold_doesNotNotify()
373 NetworkIdentitySet identSet = makeTestIdentSet(); in testUpdateStats_deviceAccess_notifies()
404 NetworkIdentitySet identSet = makeTestIdentSet(); in testUpdateStats_defaultAccess_notifiesSameUid()
437 NetworkIdentitySet identSet = makeTestIdentSet(); in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsObservers.java26 import android.net.NetworkIdentitySet;
123 ArrayMap<String, NetworkIdentitySet> activeIfaces, in updateStats()
124 ArrayMap<String, NetworkIdentitySet> activeUidIfaces, in updateStats()
466 ArrayMap<String, NetworkIdentitySet> mActiveIfaces;
467 ArrayMap<String, NetworkIdentitySet> mActiveUidIfaces;
471 ArrayMap<String, NetworkIdentitySet> activeIfaces, in StatsContext()
472 ArrayMap<String, NetworkIdentitySet> activeUidIfaces, in StatsContext()
DNetworkStatsRecorder.java26 import android.net.NetworkIdentitySet;
243 Map<String, NetworkIdentitySet> ifaceIdent, long currentTimeMillis) { in recordSnapshotLocked()
279 final NetworkIdentitySet ident = ifaceIdent.get(entry.iface); in recordSnapshotLocked()
DNetworkStatsService.java114 import android.net.NetworkIdentitySet;
394 private final ArrayMap<String, NetworkIdentitySet> mActiveIfaces = new ArrayMap<>();
398 private final ArrayMap<String, NetworkIdentitySet> mActiveUidIfaces = new ArrayMap<>();
2516 private static <K> NetworkIdentitySet findOrCreateNetworkIdentitySet(
2517 ArrayMap<K, NetworkIdentitySet> map, K key) {
2518 NetworkIdentitySet ident = map.get(key);
2520 ident = new NetworkIdentitySet();
3167 ArrayMap<String, NetworkIdentitySet> ifaces) {
/packages/modules/Connectivity/framework/proto/
Dnetstats.proto50 // Corresponds to NetworkIdentitySet.