/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsHistory.java | 98 private long bucketDuration; field in NetworkStatsHistory 110 public NetworkStatsHistory(long bucketDuration, long[] bucketStart, long[] activeTime, in NetworkStatsHistory() argument 113 this.bucketDuration = bucketDuration; in NetworkStatsHistory() 135 public long bucketDuration; field in NetworkStatsHistory.Entry 268 public Entry plus(@NonNull Entry another, long bucketDuration) { in plus() argument 275 Math.min(this.activeTime + another.activeTime, bucketDuration), in plus() 286 public NetworkStatsHistory(long bucketDuration) { in NetworkStatsHistory() argument 287 this(bucketDuration, 10, FIELD_ALL); in NetworkStatsHistory() 291 public NetworkStatsHistory(long bucketDuration, int initialSize) { in NetworkStatsHistory() argument 292 this(bucketDuration, initialSize, FIELD_ALL); in NetworkStatsHistory() [all …]
|
D | NetworkStatsCollection.java | 349 && entry.bucketStart + entry.bucketDuration <= augmentEnd) { in getHistory()
|
/packages/modules/Connectivity/tests/common/java/android/net/netstats/ |
D | NetworkStatsHistoryTest.kt | 47 assertEquals(DateUtils.HOUR_IN_MILLIS, statsEmpty.bucketDuration) in <lambda>() 53 assertEquals(DateUtils.HOUR_IN_MILLIS, statsSingle.bucketDuration) in <lambda>() 59 assertEquals(DateUtils.SECOND_IN_MILLIS, statsMultiple.bucketDuration) in <lambda>() 82 assertEquals(DateUtils.SECOND_IN_MILLIS, statsMultiple.bucketDuration) in <lambda>()
|
D | NetworkStatsCollectionTest.kt | 46 val bucketDuration = 10L in testBuilder() constant 54 val actualCollection = NetworkStatsCollection.Builder(bucketDuration) in testBuilder()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsRecorder.java | 128 DropBoxManager dropBox, String cookie, long bucketDuration, boolean onlyTags, in NetworkStatsRecorder() argument 135 mBucketDuration = bucketDuration; in NetworkStatsRecorder() 140 mPending = new NetworkStatsCollection(bucketDuration); in NetworkStatsRecorder() 141 mSinceBoot = new NetworkStatsCollection(bucketDuration); in NetworkStatsRecorder() 425 public RemoveUidRewriter(long bucketDuration, int[] uids) { in RemoveUidRewriter() argument 426 mTemp = new NetworkStatsCollection(bucketDuration); in RemoveUidRewriter() 478 public RemoveDataBeforeRewriter(long bucketDuration, long cutoffMills) { in RemoveDataBeforeRewriter() argument 479 mTemp = new NetworkStatsCollection(bucketDuration); in RemoveDataBeforeRewriter()
|
D | NetworkStatsService.java | 369 public final long bucketDuration; field in NetworkStatsService.NetworkStatsSettings.Config 373 public Config(long bucketDuration, long rotateAgeMillis, long deleteAgeMillis) { in Config() argument 374 this.bucketDuration = bucketDuration; in Config() 786 @NonNull String prefix, long bucketDuration) throws IOException { in readPlatformCollection() argument 787 return NetworkStatsDataMigrationUtils.readPlatformCollection(prefix, bucketDuration); in readPlatformCollection() 1101 mNonMonotonicObserver, dropBox, prefix, config.bucketDuration, includeTags,
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 130 final long bucketDuration = HOUR_IN_MILLIS; in testRecordEqualBuckets() local 131 stats = new NetworkStatsHistory(bucketDuration); in testRecordEqualBuckets() 134 final long recordStart = TEST_START + (bucketDuration / 2); in testRecordEqualBuckets() 135 stats.recordData(recordStart, recordStart + bucketDuration, in testRecordEqualBuckets()
|
D | NetworkStatsCollectionTest.java | 594 final long bucketDuration = 10; in testRemoveHistoryBefore() local 612 NetworkStatsCollection collection = new NetworkStatsCollection.Builder(bucketDuration) in testRemoveHistoryBefore()
|
/packages/modules/Connectivity/framework-t/src/android/app/usage/ |
D | NetworkStats.java | 696 + mRecycledHistoryEntry.bucketDuration; in getNextHistoryBucket()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 530 @NonNull String prefix, long bucketDuration) { in readPlatformCollection() argument 2531 observer, dropBox, prefix, config.bucketDuration, includeTags, wipeOnError, in makeTestRecorder() 2622 private void mockSettings(long bucketDuration, long deleteAge) { in mockSettings() argument 2623 mSettings.setConfig(new Config(bucketDuration, deleteAge, deleteAge)); in mockSettings() 2635 TestNetworkStatsSettings(long bucketDuration, long deleteAge) { in TestNetworkStatsSettings() argument 2636 mConfig = new Config(bucketDuration, deleteAge, deleteAge); in TestNetworkStatsSettings()
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 1051 Landroid/net/NetworkStatsHistory;->bucketDuration:J
|