Home
last modified time | relevance | path

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

/frameworks/opt/net/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()
160 if (mBuckets.size() <= 0) { in toString()
166 for (int bucketIndex = 0; bucketIndex < mBuckets.size(); ++bucketIndex) { in toString()
[all …]
/frameworks/opt/net/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 …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodec.h495 mBucketCount(0), mBuckets(NULL) {}; in Histogram()
497 void clear() { if (mBuckets != NULL) free(mBuckets); mBuckets = NULL; }; in clear()
512 int64_t *mBuckets; member
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java114 private final ArrayMap<Class<?>, TokenBucket> mBuckets = makeRateLimitingBuckets(); field in IpConnectivityMetrics
184 TokenBucket tb = mBuckets.get(event.data.getClass()); in isRateLimited()
/frameworks/av/media/libstagefright/
DMediaCodec.cpp663 if (nbuckets == mBucketCount && mBuckets != NULL) { in setup()
665 memset(mBuckets, 0, sizeof(*mBuckets) * mBucketCount); in setup()
668 int64_t *newbuckets = (int64_t *)calloc(nbuckets, sizeof (*mBuckets)); in setup()
672 if (mBuckets != NULL) in setup()
673 free(mBuckets); in setup()
674 mBuckets = newbuckets; in setup()
691 if (mBuckets != NULL) { in setup()
692 free(mBuckets); in setup()
693 mBuckets = NULL; in setup()
702 if (mBuckets == NULL) { in insert()
[all …]