Home
last modified time | relevance | path

Searched refs:mBuckets (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java44 private SparseIntArray mBuckets; field in IntHistogram
91 mBuckets = new SparseIntArray(); in IntHistogram()
98 mBuckets.clear(); in clear()
106 return mBuckets.size(); in numNonEmptyBuckets()
120 int bucketKey = mBuckets.keyAt(bucketIndex); in getBucketByIndex()
125 int count = mBuckets.valueAt(bucketIndex); in getBucketByIndex()
141 int curBucketValue = mBuckets.get(bucketKey); in add()
142 mBuckets.put(bucketKey, curBucketValue + count); in add()
201 if (mBuckets.size() <= 0) { in toString()
207 for (int bucketIndex = 0; bucketIndex < mBuckets.size(); ++bucketIndex) { in toString()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java256 private final Bucket[] mBuckets; field in BackgroundScanScheduler.BucketList
260 mBuckets = new Bucket[PREDEFINED_BUCKET_PERIODS.length]; in BucketList()
264 Arrays.fill(mBuckets, null); in clearAll()
269 if (mBuckets[index] != null) { in clear()
271 mBuckets[index] = null; in clear()
276 Bucket bucket = mBuckets[index]; in getOrCreate()
279 bucket = mBuckets[index] = new Bucket(PREDEFINED_BUCKET_PERIODS[index]); in getOrCreate()
285 return mBuckets[index] != null; in isActive()
289 return mBuckets[index]; in get()
293 return mBuckets.length; in size()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/
DFakeNetworkStats.java26 private final ArrayDeque<NetworkStats.Bucket> mBuckets = new ArrayDeque<>(); field in FakeNetworkStats
34 return !mBuckets.isEmpty(); in hasNextBucket()
39 if (mBuckets.isEmpty()) { in getNextBucket()
42 return mBuckets.removeFirst(); in getNextBucket()
47 mBuckets.addLast(bucket); in add()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.kt214 val mBuckets: ArrayList<LinkedList<RowInfo>> = in buildFromCursor() constant
217 mBuckets.add(LinkedList<RowInfo>()) in buildFromCursor()
273 val bucket: LinkedList<RowInfo> = mBuckets.get(day - mTodayJulianDay) in buildFromCursor()
284 for (bucket in mBuckets) { in buildFromCursor()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DConnectivityPublisherTest.java584 private final ArrayList<FakeNetworkStats.CustomBucket> mBuckets = new ArrayList<>(); field in ConnectivityPublisherTest.FakeNetworkStatsManager
610 mBuckets.add(bucket); in addWifiStats()
631 mBuckets.add(bucket); in addMobileStats()
635 mBuckets.clear(); in clearNetworkStats()
671 for (FakeNetworkStats.CustomBucket bucket : mBuckets) { in commonQuerySummary()