Home
last modified time | relevance | path

Searched refs:buckets (Results 1 – 23 of 23) sorted by relevance

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
DFlagSet.java28 public final long[] buckets; field in FlagSet
33 buckets = new long[bucketCount]; in FlagSet()
36 buckets[i / sBucketSize] |= 1L << (i % sBucketSize); in FlagSet()
41 public FlagSet(long[] buckets) { in FlagSet() argument
42 this.buckets = new long[buckets.length]; in FlagSet()
43 System.arraycopy(buckets, 0, this.buckets, 0, buckets.length); in FlagSet()
47 public FlagSet(long[] buckets, int minBucketCount) { in FlagSet() argument
48 this.buckets = new long[Math.max(buckets.length, minBucketCount)]; in FlagSet()
49 System.arraycopy(buckets, 0, this.buckets, 0, buckets.length); in FlagSet()
58 buckets = new long[1 + (max / sBucketSize)]; in FlagSet()
[all …]
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/writer/
DFlagSetTest.java31 assertEquals(3, flagSet.buckets.length); in testSimple1Level()
32 assertEquals(1 << 7, flagSet.buckets[0]); in testSimple1Level()
33 assertEquals(0, flagSet.buckets[1]); in testSimple1Level()
34 assertEquals(0, flagSet.buckets[2]); in testSimple1Level()
42 assertEquals(3, flagSet.buckets.length); in testSimple2Level()
43 assertEquals(0, flagSet.buckets[0]); in testSimple2Level()
44 assertEquals(1 << 2, flagSet.buckets[1]); in testSimple2Level()
45 assertEquals(0, flagSet.buckets[2]); in testSimple2Level()
55 assertEquals(3, flagSet.buckets.length); in testSimple3Level()
56 assertEquals(1 << 5, flagSet.buckets[0]); in testSimple3Level()
[all …]
/frameworks/ex/common/tools/
Dmake-iana-tld-pattern.py124 def getBucket(buckets, line): argument
126 bucket = buckets.get(letter)
130 buckets[letter] = bucket
134 def makePattern(prefix, suffix, buckets, isWebUrl=False): argument
137 output += getBucket(buckets, 'a').dump(isFirst=True, isWebUrl=isWebUrl)
140 output += getBucket(buckets, chr(letter)).dump(isWebUrl=isWebUrl)
142 output += getBucket(buckets, 'z').dump(isLast=True, isWebUrl=isWebUrl)
158 buckets = {} variable
164 getBucket(buckets, domain[0]).add(domain.strip())
170 getBucket(buckets, 'xn--').add(result[2:-1])
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java91 mSettings.buckets = new WifiNative.BucketSettings[0]; in NativeScanSettingsBuilder()
155 mSettings.buckets = Arrays.copyOf(mSettings.buckets, mSettings.num_buckets + 1); in addBucket()
156 mSettings.buckets[mSettings.num_buckets] = bucket; in addBucket()
313 assertNotNull("buckets was null", actual.buckets); in assertNativeScanSettingsEquals()
314 for (int i = 0; i < expected.buckets.length; ++i) { in assertNativeScanSettingsEquals()
315 assertNotNull("buckets[" + i + "] was null", actual.buckets[i]); in assertNativeScanSettingsEquals()
317 expected.buckets[i].period_ms, actual.buckets[i].period_ms); in assertNativeScanSettingsEquals()
319 expected.buckets[i].report_events, actual.buckets[i].report_events); in assertNativeScanSettingsEquals()
322 expected.buckets[i].band, actual.buckets[i].band); in assertNativeScanSettingsEquals()
323 if (expected.buckets[i].band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in assertNativeScanSettingsEquals()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java481 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalScheduleFullyCollapsesDuplicateChannelsInBand()
514 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalScheduleFullyCollapsesDuplicateChannels()
547 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannels()
551 assertBucketChannels(schedule.buckets[1], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannels()
586 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets()
590 assertBucketChannels(schedule.buckets[1], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets()
598 assertBucketChannels(schedule.buckets[2], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets()
635 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets()
639 assertBucketChannels(schedule.buckets[1], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets()
648 Set<Integer> combinedBucketChannelSet = getAllChannels(schedule.buckets[2]); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets()
[all …]
DWifiScanningServiceTest.java898 for (int i = 0; i < nativeSettings.buckets.length; i++) { in createScanSettingsForSwPno()
899 nativeSettings.buckets[i].report_events = WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN in createScanSettingsForSwPno()
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DLayoutBinderWriter.kt224 buckets.withIndex().forEach { in getRequirementFlagSet()
226 cb(getWordSuffix(it.index), buckets[it.index]) in getRequirementFlagSet()
239 fun FlagSet.binaryCode(bucketIndex : Int) = longToBinary(buckets[bucketIndex]) in FlagSet()
245 val min = Math.min(buckets.size, other.buckets.size) in FlagSet()
271 Arrays.fill(fs.buckets, -1) in <lambda>()
504 for (i in (0..(mDirtyFlags.buckets.size - 1))) { in <lambda>()
519 if (mDirtyFlags.buckets.size > 0) { in <lambda>()
521 val flagCheck = 0.rangeTo(mDirtyFlags.buckets.size - 1).map { in <lambda>()
751 val tmpDirtyFlags = FlagSet(mDirtyFlags.buckets) in <lambda>()
753 for (i in (0..mDirtyFlags.buckets.size - 1)) { in <lambda>()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DScanScheduleUtil.java85 if (!bucketEquals(schedule1.buckets[b], schedule2.buckets[b])) { in scheduleEquals()
DBackgroundScanScheduler.java440 schedule.buckets = new WifiNative.BucketSettings[bucketList.size()]; in createSchedule()
449 schedule.buckets[bucketId] = in createSchedule()
486 int gcd = schedule.buckets[0].period_ms; in createSchedule()
488 gcd = Rational.gcd(schedule.buckets[b].period_ms, gcd); in createSchedule()
DSupplicantWifiScannerImpl.java242 WifiNative.BucketSettings bucket = settings.buckets[i]; in startBatchedScan()
361 mBackgroundScanSettings.buckets[bucket_id]; in processPendingScans()
410 mPendingSingleScanSettings.buckets[i]; in processPendingScans()
DWifiScanningServiceImpl.java712 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in tryToStartNewScan()
1125 WifiNative.BucketSettings bucket = schedule.buckets[b]; in updateSchedule()
1144 WifiNative.BucketSettings bucket = schedule.buckets[b]; in updateSchedule()
2506 WifiNative.BucketSettings bucket = schedule.buckets[b]; in dump()
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp481 params.buckets[i].bucket = helper.getIntField(bucket, "bucket"); in android_net_wifi_startScan()
482 params.buckets[i].band = (wifi_band) helper.getIntField(bucket, "band"); in android_net_wifi_startScan()
483 params.buckets[i].period = helper.getIntField(bucket, "period_ms"); in android_net_wifi_startScan()
484 params.buckets[i].max_period = helper.getIntField(bucket, "max_period_ms"); in android_net_wifi_startScan()
489 params.buckets[i].base = 2; in android_net_wifi_startScan()
490 params.buckets[i].step_count = helper.getIntField(bucket, "step_count"); in android_net_wifi_startScan()
493 params.buckets[i].report_events = report_events; in android_net_wifi_startScan()
496 ALOGD("bucket[%d] = %d:%d:%d:%d:%d:%d:%d", i, params.buckets[i].bucket, in android_net_wifi_startScan()
497 params.buckets[i].band, params.buckets[i].period, in android_net_wifi_startScan()
498 params.buckets[i].max_period, params.buckets[i].base, in android_net_wifi_startScan()
[all …]
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java306 final int[] buckets = new int[maxHrs + 3]; in generateMinuteBuckets() local
307 buckets[0] = 15; in generateMinuteBuckets()
308 buckets[1] = 30; in generateMinuteBuckets()
309 buckets[2] = 45; in generateMinuteBuckets()
311 buckets[2 + i] = 60 * i; in generateMinuteBuckets()
313 return buckets; in generateMinuteBuckets()
/frameworks/base/docs/html/design/style/
Ddevices-displays.jd53 down for the other buckets. Another approach is to start with the device with the largest screen
/frameworks/base/docs/html/training/multiscreen/
Dscreendensities.jd97 the generalized density buckets: low, medium, high and extra-high density.
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp2594 static const unsigned int buckets[] = { in getHashBucketCount() local
2598 const unsigned buckets_count = sizeof buckets / sizeof buckets[0]; in getHashBucketCount()
2602 if (pNumOfSymbols < buckets[i]) in getHashBucketCount()
2604 result = buckets[i]; in getHashBucketCount()
/frameworks/base/docs/html/training/basics/supporting-devices/
Dscreens.jd135 density buckets: low, medium, high and extra-high density. This helps you achieve good graphical
/frameworks/base/docs/html/training/design-navigation/
Dmultiple-sizes.jd70 …outs containing one or multiple panes for devices in varying screen size buckets (such as <code>la…
/frameworks/base/docs/html/about/dashboards/
Dindex.jd73 actual screen sizes and densities into several buckets as expressed by the table below.</p>
/frameworks/base/docs/html/design/patterns/
Dwidgets.jd118 …t can redraw itself. Planning your widget resizing strategy across "size buckets" rather than vari…
/frameworks/base/docs/html/training/testing/
Dperformance.jd354 different latency buckets, see figure below. This graph tells us at a glance that most
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java1693 public BucketSettings[] buckets; field in WifiNative.ScanSettings
/frameworks/base/docs/html/distribute/essentials/quality/
Dtablets.jd217 different layouts in the appropriate screen size buckets (such as