Searched refs:bucket (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/include/androidfw/
H A DByteBucketArray.h60 T* bucket = mBuckets[bucketIndex]; local
61 if (bucket == NULL) {
64 return bucket[0x0f & static_cast<uint8_t>(index)];
72 T* bucket = mBuckets[bucketIndex];
73 if (bucket == NULL) {
74 bucket = mBuckets[bucketIndex] = new T[BUCKET_SIZE]();
76 return bucket[0x0f & static_cast<uint8_t>(index)];
/frameworks/rs/
H A DrsMap.h40 for (size_t i = 0; i < MAP_NUM_BUCKET; i++) { bucket[i] = nullptr; }
45 LinkNode* p = bucket[i];
57 LinkNode* node = bucket[index];
72 bucket[index] = node;
92 next = map->bucket[bucket_index];
128 LinkNode* node = bucket[i];
145 LinkNode* node = bucket[index];
160 LinkNode* bucket[MAP_NUM_BUCKET]; member in class:android::renderscript::Map
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DSysMemUsageTable.java149 final int bucket = ((iscreen + imem) * STATE_COUNT);
150 long count = getValueForId((byte)bucket, SYS_MEM_USAGE_SAMPLE_COUNT);
166 dumpCategory(pw, prefix, " Cached", bucket, SYS_MEM_USAGE_CACHED_MINIMUM);
167 dumpCategory(pw, prefix, " Free", bucket, SYS_MEM_USAGE_FREE_MINIMUM);
168 dumpCategory(pw, prefix, " ZRam", bucket, SYS_MEM_USAGE_ZRAM_MINIMUM);
169 dumpCategory(pw, prefix, " Kernel", bucket, SYS_MEM_USAGE_KERNEL_MINIMUM);
170 dumpCategory(pw, prefix, " Native", bucket, SYS_MEM_USAGE_NATIVE_MINIMUM);
176 private void dumpCategory(PrintWriter pw, String prefix, String label, int bucket, int index) { argument
179 DebugUtils.printSizeValue(pw, getValueForId((byte)bucket, index) * 1024);
181 DebugUtils.printSizeValue(pw, getValueForId((byte)bucket, inde
[all...]
H A DProcessState.java747 int bucket = ((screenStates[is] + memStates[im]) * STATE_COUNT)
749 totalTime += getDuration(bucket, now);
807 final int bucket = ((iscreen + imem) * STATE_COUNT) + procStates[ip];
808 long time = mDurations.getValueForId((byte)bucket);
810 if (mCurState == bucket) {
856 final int bucket = ((iscreen + imem) * STATE_COUNT) + procStates[ip];
857 long count = getPssSampleCount(bucket);
881 DebugUtils.printSizeValue(pw, getPssMinimum(bucket) * 1024);
883 DebugUtils.printSizeValue(pw, getPssAverage(bucket) * 1024);
885 DebugUtils.printSizeValue(pw, getPssMaximum(bucket) * 102
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java106 * the bucket going up when the battery level was going down. --joeo
160 int bucket = findBatteryLevelBucket(mBatteryLevel);
170 Slog.d(TAG, "bucket " + oldBucket + " --> " + bucket);
174 mWarnings.update(mBatteryLevel, bucket, mScreenOffTime);
189 && (bucket < oldBucket || oldPlugged)
191 && bucket < 0) {
192 // only play SFX when the dialog comes up or the bucket changes
193 final boolean playSound = bucket != oldBucket || oldPlugged;
195 } else if (isPowerSaver || plugged || (bucket > oldBucke
242 update(int batteryLevel, int bucket, long screenOffTime) argument
[all...]
H A DPowerNotificationWarnings.java109 public void update(int batteryLevel, int bucket, long screenOffTime) { argument
111 if (bucket >= 0) {
113 } else if (bucket < mBucket) {
116 mBucket = bucket;
157 // Bump the notification when the bucket dropped.
/frameworks/compile/mclinker/include/mcld/ADT/
H A DHashIterator.h37 bucket_type& bucket = m_pHashTable->m_Buckets[m_Index]; local
38 if (bucket_type::getTombstone() == bucket.Entry) {
40 } else if (m_HashValue == bucket.FullHashValue) {
41 if (bucket.Entry->compare(pKey)) {
116 bucket_type& bucket = m_pHashTable->m_Buckets[m_Index]; local
118 if (bucket_type::getTombstone() == bucket.Entry ||
119 bucket_type::getEmptyBucket() == bucket.Entry) {
121 } else if (m_HashValue == bucket.FullHashValue) {
/frameworks/ex/common/tools/
H A Dmake-iana-tld-pattern.py126 bucket = buckets.get(letter)
128 if bucket is None:
129 bucket = Bucket(letter)
130 buckets[letter] = bucket
132 return bucket
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DScanTestUtil.java125 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings();
126 bucket.bucket = mSettings.num_buckets;
127 bucket.band = band;
128 bucket.period_ms = period;
129 bucket.report_events = reportEvents;
130 return addBucket(bucket);
144 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings();
145 bucket.bucket
154 addBucket(WifiNative.BucketSettings bucket) argument
[all...]
/frameworks/base/core/java/com/android/internal/logging/
H A DMetricsLogger.java86 /** Increment the bucket with the integer label on the histogram with the given name. */
87 public static void histogram(Context context, String name, int bucket) { argument
88 EventLogTags.writeSysuiHistogram(name, bucket);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DBackgroundScanSchedulerTest.java308 * Ensure that a channel request is placed in the bucket closest to the original
309 * period and not the bucket it is initially placed in. Here the 5 min period is
310 * initially placed in the 240s bucket, but that bucket is eliminated because it
311 * would be a 7th bucket. This test ensures that the request is placed in the 480s
312 * bucket and not the 120s bucket.
454 * common bucket with the lower time period setting.
475 assertEquals("scheduled bucket", 0, mScheduler.getScheduledBucket(requests.get(0)));
476 assertEquals("scheduled bucket",
760 getAllChannels(BucketSettings bucket) argument
923 assertBucketChannels(BucketSettings bucket, Set<Integer> expectedChannelSet) argument
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
H A DFlagSet.java145 for (long bucket : buckets) {
146 hash = (hash * 7) ^ (int)(bucket >>> 32);
147 hash = (hash * 13) ^ (int)(bucket & 0xFFFF);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DBackgroundScanScheduler.java49 * where each bucket represents a set of channels and an interval to scan at. This
52 * <p>Each new request is placed in the best predefined bucket. Once all requests have been added
53 * the last buckets (lower priority) are placed in the next best bucket until the number of buckets
67 // Max channels that can be specified per bucket
91 * the next smallest bucket with the smallest bucket having a period of PERIOD_MIN_GCD_MS.
104 * scan will be placed in the 20s bucket.
106 * If there are special scan requests such as exponential back off, we always dedicate a bucket
129 * collection to be scanned by the bucket as settings are added to it.
145 * Copy constructor which populates the settings list from the original bucket objec
[all...]
H A DScanScheduleUtil.java55 if (bucket1.bucket != bucket2.bucket) return false;
94 * Check if the specified bucket was scanned. If not all information is available then this
97 * @param scheduledBucket Index of the bucket to check for, zero indexed, or -1 if any scan
98 * should be treated as scanning this bucket.
110 * Check if the specified bucket was scanned. If not all information is available then this
113 * @param scheduledBucket Index of the bucket to check for, zero indexed, or -1 if any scan
114 * should be treated as scanning this bucket.
144 * If a ScanData indicates that the bucket the settings were placed in was scanned then it
146 * the bucket wa
[all...]
H A DSupplicantWifiScannerImpl.java242 WifiNative.BucketSettings bucket = settings.buckets[i];
243 if (bucket.period_ms % settings.base_period_ms != 0) {
360 WifiNative.BucketSettings bucket =
362 if (mNextBackgroundScanPeriod % (bucket.period_ms
364 if ((bucket.report_events
368 if ((bucket.report_events
373 if ((bucket.report_events
378 allFreqs.addChannels(bucket);
621 // ignore buckets scanned since there is only one bucket for a single scan
H A DWifiScanningServiceImpl.java684 bucketSettings.bucket = 0;
1125 WifiNative.BucketSettings bucket = schedule.buckets[b];
1126 Log.d(TAG, "bucket " + bucket.bucket + " (" + bucket.period_ms + "ms)"
1127 + "[" + bucket.report_events + "]: "
1128 + ChannelHelper.toString(bucket));
1134 + " bucket(s) and base period: " + schedule.base_period_ms);
1144 WifiNative.BucketSettings bucket
[all...]
H A DChannelHelper.java218 public abstract void fillBucketSettings(WifiNative.BucketSettings bucket, int maxChannels); argument
/frameworks/base/core/java/android/app/usage/
H A DNetworkStatsManager.java54 * bucket for a particular key and state and roaming combination. In case of the user-wide and
55 * device-wide summaries a single bucket containing the totalised network usage is returned.
107 * means the bucket's start and end timestamp are going to be the same as the 'startTime' and
133 Bucket bucket = null;
135 bucket = stats.getDeviceSummaryForNetwork();
138 return bucket;
144 * This means the bucket's start and end timestamp are going to be the same as the 'startTime'
230 * interpolate across partial buckets. Since bucket length is in the order of hours, this
271 * interpolate across partial buckets. Since bucket length is in the order of hours, this
H A DNetworkStats.java179 * <p>Any cellular usage in this bucket was incurred while the device was connected to a
190 * <p>Any cellular usage in this bucket as incurred while the device was roaming on another
248 * Key of the bucket. Usually an app uid or one of the following special values:<p />
261 * Tag of the bucket.<p />
294 * Start timestamp of the bucket's time interval. Defined in terms of "Unix time", see
303 * End timestamp of the bucket's time interval. Defined in terms of "Unix time", see
312 * Number of bytes received during the bucket's time interval. Statistics are measured at
321 * Number of bytes transmitted during the bucket's time interval. Statistics are measured at
330 * Number of packets received during the bucket's time interval. Statistics are measured at
339 * Number of packets transmitted during the bucket'
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java116 int bucket = (kind.hashCode() & 0x7FFFFFFF) % CACHE_SIZE;
117 Object cache = sCache[bucket];
121 sCache[bucket] = cache;
123 // Log.e("cache", "new empty " + kind.getName() + " at " + bucket);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DMetrics.java650 * @param bucket The bucket to increment.
652 private static void logHistogram(Context context, String name, @ActionType int bucket) { argument
653 if (DEBUG) Log.d(TAG, name + ": " + bucket);
654 MetricsLogger.histogram(context, name, bucket);
660 * a single ROOT_OTHER bucket.
707 // Log all apps under a single bucket in the roots histogram.
742 // Bucket all other types into one bucket.
760 * @return An opcode, suitable for use as histogram bucket, for the given operation/provider
/frameworks/base/services/print/java/com/android/server/print/
H A DUserState.java1980 List<PrintJobInfo> bucket = mPrintJobsForRunningApp.valueAt(i);
1984 printJobs.addAll(bucket);
1987 List<PrintJobInfo> bucket = mPrintJobsForRunningApp.get(appId);
1988 if (bucket != null) {
1992 printJobs.addAll(bucket);
2009 List<PrintJobInfo> bucket = mPrintJobsForRunningApp.valueAt(i);
2010 final int printJobCount = bucket.size();
2012 PrintJobInfo printJob = bucket.get(j);
/frameworks/compile/mclinker/lib/Target/
H A DGNULDBackend.cpp1117 uint32_t* bucket = (word_array + 2); local
1118 uint32_t* chain = (bucket + nbucket);
1120 // initialize bucket
1121 memset(reinterpret_cast<void*>(bucket), 0, nbucket);
1130 chain[idx] = bucket[bucket_pos];
1131 bucket[bucket_pos] = idx;
1155 uint32_t* bucket = NULL; local
1171 nbucket = 1; // one empty bucket
1184 bucket = reinterpret_cast<uint32_t*>(bitmask +
1186 *bucket
[all...]
/frameworks/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_WifiNative.cpp478 JNIObject<jobject> bucket = helper.getObjectArrayField( local
481 params.buckets[i].bucket = helper.getIntField(bucket, "bucket");
482 params.buckets[i].band = (wifi_band) helper.getIntField(bucket, "band");
483 params.buckets[i].period = helper.getIntField(bucket, "period_ms");
484 params.buckets[i].max_period = helper.getIntField(bucket, "max_period_ms");
490 params.buckets[i].step_count = helper.getIntField(bucket, "step_count");
492 int report_events = helper.getIntField(bucket, "report_events");
496 ALOGD("bucket[
[all...]
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
H A DNotificationTests.java154 .setLargeIcon(getBitmap(context, R.drawable.bucket))

Completed in 750 milliseconds

12