Home
last modified time | relevance | path

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

/frameworks/support/car/src/main/java/androidx/car/widget/
DAlphaJumpBucketer.java36 private final List<Bucket> mBuckets; field in AlphaJumpBucketer
39 mBuckets = new ArrayList<>(); in AlphaJumpBucketer()
42 mBuckets.add(new Bucket("123", (String s) -> s.matches("^[0-9]"))); in AlphaJumpBucketer()
45 mBuckets.add(new Bucket(prefix, (String s) -> s.startsWith(prefix.toLowerCase()))); in AlphaJumpBucketer()
51 mBuckets = Arrays.asList(buckets); in AlphaJumpBucketer()
77 for (Bucket bucket : mBuckets) { in createBuckets()
85 buckets.addAll(mBuckets); in createBuckets()
DAlphaJumpOverlayView.java37 private Collection<IAlphaJumpAdapter.Bucket> mBuckets; field in AlphaJumpOverlayView
49 mBuckets = adapter.getAlphaJumpBuckets(); in init()
65 for (IAlphaJumpAdapter.Bucket bucket : mBuckets) { in createButtons()
/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.h485 mBucketCount(0), mBuckets(NULL) {}; in Histogram()
487 void clear() { if (mBuckets != NULL) free(mBuckets); mBuckets = NULL; }; in clear()
502 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.cpp653 if (nbuckets == mBucketCount && mBuckets != NULL) { in setup()
655 memset(mBuckets, 0, sizeof(*mBuckets) * mBucketCount); in setup()
658 int64_t *newbuckets = (int64_t *)calloc(nbuckets, sizeof (*mBuckets)); in setup()
662 if (mBuckets != NULL) in setup()
663 free(mBuckets); in setup()
664 mBuckets = newbuckets; in setup()
681 if (mBuckets != NULL) { in setup()
682 free(mBuckets); in setup()
683 mBuckets = NULL; in setup()
692 if (mBuckets == NULL) { in insert()
[all …]