Home
last modified time | relevance | path

Searched refs:bucketDuration (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkStatsHistory.java79 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/
DNetworkStatsRecorder.java117 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()
DNetworkStatsCollection.java106 public NetworkStatsCollection(long bucketDuration) { in NetworkStatsCollection() argument
107 mBucketDuration = bucketDuration; in NetworkStatsCollection()
325 && entry.bucketStart + entry.bucketDuration <= augmentEnd) { in getHistory()
DNetworkStatsService.java247 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/
DNetworkStatsHistoryTest.java118 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/
DNetworkStats.java669 mRecycledHistoryEntry.bucketDuration; in getNextHistoryBucket()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1292 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/
DStatsPullAtomService.java1204 final long bucketDuration = Settings.Global.getLong(mContext.getContentResolver(), in getUidNetworkStatsSnapshotForTemplate() local
1214 currentTimeInMillis - elapsedMillisSinceBoot - bucketDuration, in getUidNetworkStatsSnapshotForTemplate()