/frameworks/base/core/java/android/net/ |
D | NetworkStatsHistory.java | 79 private long bucketDuration; field in NetworkStatsHistory 94 public long bucketDuration; field in NetworkStatsHistory.Entry 110 public NetworkStatsHistory(long bucketDuration) { in NetworkStatsHistory() argument 111 this(bucketDuration, 10, FIELD_ALL); in NetworkStatsHistory() 114 public NetworkStatsHistory(long bucketDuration, int initialSize) { in NetworkStatsHistory() argument 115 this(bucketDuration, initialSize, FIELD_ALL); in NetworkStatsHistory() 118 public NetworkStatsHistory(long bucketDuration, int initialSize, int fields) { in NetworkStatsHistory() argument 119 this.bucketDuration = bucketDuration; in NetworkStatsHistory() 131 public NetworkStatsHistory(NetworkStatsHistory existing, long bucketDuration) { in NetworkStatsHistory() argument 132 this(bucketDuration, existing.estimateResizeBuckets(bucketDuration)); in NetworkStatsHistory() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsRecorder.java | 117 DropBoxManager dropBox, String cookie, long bucketDuration, boolean onlyTags) { in NetworkStatsRecorder() argument 123 mBucketDuration = bucketDuration; in NetworkStatsRecorder() 126 mPending = new NetworkStatsCollection(bucketDuration); in NetworkStatsRecorder() 127 mSinceBoot = new NetworkStatsCollection(bucketDuration); in NetworkStatsRecorder() 391 public RemoveUidRewriter(long bucketDuration, int[] uids) { in RemoveUidRewriter() argument 392 mTemp = new NetworkStatsCollection(bucketDuration); in RemoveUidRewriter()
|
D | NetworkStatsCollection.java | 106 public NetworkStatsCollection(long bucketDuration) { in NetworkStatsCollection() argument 107 mBucketDuration = bucketDuration; in NetworkStatsCollection() 325 && entry.bucketStart + entry.bucketDuration <= augmentEnd) { in getHistory()
|
D | NetworkStatsService.java | 247 public final long bucketDuration; field in NetworkStatsService.NetworkStatsSettings.Config 251 public Config(long bucketDuration, long rotateAgeMillis, long deleteAgeMillis) { in Config() argument 252 this.bucketDuration = bucketDuration; in Config() 548 mNonMonotonicObserver, dropBox, prefix, config.bucketDuration, includeTags); in buildRecorder()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 118 final long bucketDuration = HOUR_IN_MILLIS; in testRecordEqualBuckets() local 119 stats = new NetworkStatsHistory(bucketDuration); in testRecordEqualBuckets() 122 final long recordStart = TEST_START + (bucketDuration / 2); in testRecordEqualBuckets() 123 stats.recordData(recordStart, recordStart + bucketDuration, in testRecordEqualBuckets()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 669 mRecycledHistoryEntry.bucketDuration; in getNextHistoryBucket()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 1292 private void expectSettings(long persistBytes, long bucketDuration, long deleteAge) 1299 final Config config = new Config(bucketDuration, deleteAge, deleteAge);
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 1204 final long bucketDuration = Settings.Global.getLong(mContext.getContentResolver(), in getUidNetworkStatsSnapshotForTemplate() local 1214 currentTimeInMillis - elapsedMillisSinceBoot - bucketDuration, in getUidNetworkStatsSnapshotForTemplate()
|