/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsRecorder.java | 30 import android.net.NetworkStatsCollection; 91 private final NetworkStatsCollection mPending; 92 private final NetworkStatsCollection mSinceBoot; 96 private WeakReference<NetworkStatsCollection> mComplete; 118 mSinceBoot = new NetworkStatsCollection(mBucketDuration); in NetworkStatsRecorder() 140 mPending = new NetworkStatsCollection(bucketDuration); in NetworkStatsRecorder() 141 mSinceBoot = new NetworkStatsCollection(bucketDuration); in NetworkStatsRecorder() 171 public NetworkStatsCollection getSinceBoot() { in getSinceBoot() 190 public NetworkStatsCollection getOrLoadCompleteLocked() { in getOrLoadCompleteLocked() 192 NetworkStatsCollection res = mComplete != null ? mComplete.get() : null; in getOrLoadCompleteLocked() [all …]
|
D | NetworkStatsService.java | 122 import android.net.NetworkStatsCollection; 442 private NetworkStatsCollection mXtStatsCached; 755 public String compareStats(@NonNull NetworkStatsCollection a, in compareStats() 756 @NonNull NetworkStatsCollection b, boolean allowKeyChange) { in compareStats() 757 return NetworkStatsCollection.compareStats(a, b, allowKeyChange); in compareStats() 785 public NetworkStatsCollection readPlatformCollection( in readPlatformCollection() 1229 public NetworkStatsCollection collection; 1471 final NetworkStatsCollection legacyStats; 1502 private NetworkStatsCollection readPlatformCollectionForRecorder( 1506 final NetworkStatsCollection collection = Objects.requireNonNull( [all …]
|
D | NetworkStatsObservers.java | 30 import android.net.NetworkStatsCollection; 268 protected NetworkStatsCollection mCollection;
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsCollectionTest.java | 46 import android.net.NetworkStatsCollection.Key; 126 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyNetwork() 154 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUid() 182 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUidTags() 209 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in getUidInputStreamFromRes() 220 final NetworkStatsCollection legacyCollection = in testFastDataInputRead() 221 new NetworkStatsCollection(30 * MINUTE_IN_MILLIS, false /* useFastDataInput */); in testFastDataInputRead() 222 final NetworkStatsCollection fastReadCollection = in testFastDataInputRead() 223 new NetworkStatsCollection(30 * MINUTE_IN_MILLIS, true /* useFastDataInput */); in testFastDataInputRead() 233 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); in testStartEndAtomicBuckets() [all …]
|
D | NetworkStatsRecorderTest.java | 45 import android.net.NetworkStatsCollection; 113 final NetworkStatsCollection collection = new NetworkStatsCollection(30); in testFileReadingMetrics_empty() 149 final NetworkStatsCollection collection = new NetworkStatsCollection(30); in testFileReadingMetrics() 180 final NetworkStatsCollection collection = new NetworkStatsCollection(30); in testFileReadingMetrics_fileAttributes()
|
/packages/modules/Connectivity/tests/common/java/android/net/netstats/ |
D | NetworkStatsCollectionTest.kt | 20 import android.net.NetworkStatsCollection 44 val key1 = NetworkStatsCollection.Key(ident, /* uid */ 0, /* set */ 0, /* tag */ 0) in testBuilder() 45 val key2 = NetworkStatsCollection.Key(ident, /* uid */ 1, /* set */ 0, /* tag */ 0) in testBuilder() 54 val actualCollection = NetworkStatsCollection.Builder(bucketDuration) in testBuilder()
|
/packages/modules/Connectivity/tests/unit/java/android/net/netstats/ |
D | NetworkStatsDataMigrationUtilsTest.kt | 19 import android.net.NetworkStatsCollection 52 NetworkStatsCollection.Builder(BUCKET_DURATION_MS), in testReadPlatformCollection() 56 val builder = NetworkStatsCollection.Builder(BUCKET_DURATION_MS) in testReadPlatformCollection() 65 collection: NetworkStatsCollection, in assertValues()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsCollection.java | 98 public class NetworkStatsCollection implements FileRotator.Reader, FileRotator.Writer { class 99 private static final String TAG = NetworkStatsCollection.class.getSimpleName(); 128 public NetworkStatsCollection(long bucketDurationMillis) { in NetworkStatsCollection() method in NetworkStatsCollection 139 public NetworkStatsCollection(long bucketDurationMillis, boolean useFastDataInput) { in NetworkStatsCollection() method in NetworkStatsCollection 467 public void recordCollection(@NonNull NetworkStatsCollection another) { in recordCollection() 903 public NetworkStatsCollection.Builder addEntry(@NonNull Key key, in addEntry() 937 public NetworkStatsCollection build() { in build() 938 final NetworkStatsCollection collection = in build() 939 new NetworkStatsCollection(mBucketDurationMillis); in build() 948 private static String str(NetworkStatsCollection.Key key) { in str() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/metrics/ |
D | NetworkStatsMetricsLogger.java | 34 import android.net.NetworkStatsCollection; 142 @Nullable File statsDir, @NonNull NetworkStatsCollection collection, in logRecorderFileReading() 145 final Map<NetworkStatsCollection.Key, NetworkStatsHistory> entries = in logRecorderFileReading() 148 for (final NetworkStatsCollection.Key key : entries.keySet()) { in logRecorderFileReading()
|
/packages/modules/Connectivity/framework-t/api/ |
D | module-lib-current.txt | 115 public class NetworkStatsCollection { 116 …method @NonNull public java.util.Map<android.net.NetworkStatsCollection.Key,android.net.NetworkSta… 119 public static final class NetworkStatsCollection.Builder { 120 ctor public NetworkStatsCollection.Builder(long); 121 …method @NonNull public android.net.NetworkStatsCollection.Builder addEntry(@NonNull android.net.Ne… 122 method @NonNull public android.net.NetworkStatsCollection build(); 125 public static final class NetworkStatsCollection.Key { 126 …ctor public NetworkStatsCollection.Key(@NonNull java.util.Set<android.net.NetworkIdentity>, int, i…
|
/packages/modules/Connectivity/tests/benchmark/src/android/net/netstats/benchmarktests/ |
D | NetworkStatsTest.kt | 20 import android.net.NetworkStatsCollection in <lambda>() 75 val collection = NetworkStatsCollection(UID_COLLECTION_BUCKET_DURATION_MS) in <lambda>() 128 val collection = NetworkStatsCollection(UID_COLLECTION_BUCKET_DURATION_MS) in <lambda>()
|
/packages/modules/Connectivity/framework/proto/ |
D | netstats.proto | 76 // Corresponds to NetworkStatsCollection. 81 // Corresponds to NetworkStatsCollection.mStats. 88 // Corresponds to NetworkStatsCollection.Key.
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 118 import android.net.NetworkStatsCollection; 298 private Map<String, NetworkStatsCollection> mPlatformNetworkStatsCollection = 299 new ArrayMap<String, NetworkStatsCollection>(); 500 public String compareStats(NetworkStatsCollection a, NetworkStatsCollection b, in compareStats() 529 public NetworkStatsCollection readPlatformCollection( in readPlatformCollection() 2254 final NetworkStatsCollection.Key unexpectedUidAllkey = new NetworkStatsCollection.Key( in testDataMigration_differentFromFallback() 2256 final NetworkStatsCollection.Key unexpectedUidBluekey = new NetworkStatsCollection.Key( in testDataMigration_differentFromFallback() 2266 final NetworkStatsCollection summaryCollection = in testDataMigration_differentFromFallback() 2269 final NetworkStatsCollection uidCollection = in testDataMigration_differentFromFallback() 2535 private NetworkStatsCollection getLegacyCollection(String prefix, boolean includeTags) { in getLegacyCollection()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsManagerTest.java | 55 import android.net.NetworkStatsCollection; 887 final NetworkStatsCollection collection = in testDataMigrationUtils() 891 final Set<Map.Entry<NetworkStatsCollection.Key, NetworkStatsHistory>> entries = in testDataMigrationUtils() 893 for (final Map.Entry<NetworkStatsCollection.Key, NetworkStatsHistory> entry : entries) { in testDataMigrationUtils()
|