/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | TronUtils.java | 43 int bucket; 46 bucket = 0; 49 bucket = 1; 52 bucket = 2; 55 bucket = 3; 61 MetricsLogger.histogram(context, histogram, bucket);
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ByteBucketArray.h | 55 T* bucket = buckets_[bucket_index]; local 56 if (bucket == NULL) { 59 return bucket[0x0f & static_cast<uint8_t>(index)]; 67 T* bucket = buckets_[bucket_index]; 68 if (bucket == NULL) { 69 bucket = buckets_[bucket_index] = new T[kBucketSize](); 71 return bucket[0x0f & static_cast<uint8_t>(index)];
|
/frameworks/rs/ |
H A D | rsMap.h | 40 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 D | SysMemUsageTable.java | 149 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 D | ProcessState.java | 748 int bucket = ((screenStates[is] + memStates[im]) * STATE_COUNT) 750 totalTime += getDuration(bucket, now); 808 final int bucket = ((iscreen + imem) * STATE_COUNT) + procStates[ip]; 809 long time = mDurations.getValueForId((byte)bucket); 811 if (mCurState == bucket) { 857 final int bucket = ((iscreen + imem) * STATE_COUNT) + procStates[ip]; 858 long count = getPssSampleCount(bucket); 882 DebugUtils.printSizeValue(pw, getPssMinimum(bucket) * 1024); 884 DebugUtils.printSizeValue(pw, getPssAverage(bucket) * 1024); 886 DebugUtils.printSizeValue(pw, getPssMaximum(bucket) * 102 [all...] |
/frameworks/base/libs/hwui/service/ |
H A D | GraphicsStatsService.cpp | 117 service::GraphicsStatsHistogramBucketProto* bucket; local 120 bucket = proto->add_histogram(); 121 bucket->set_render_millis(renderTime); 123 bucket = proto->mutable_histogram(i); 124 LOG_ALWAYS_FATAL_IF(bucket->render_millis() != renderTime, 125 "Frame time mistmatch %d vs. %d", bucket->render_millis(), renderTime); 127 bucket->set_frame_count(bucket->frame_count() + data->frameCounts[i]); 130 service::GraphicsStatsHistogramBucketProto* bucket; local 133 bucket [all...] |
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | HashIterator.h | 37 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 D | make-iana-tld-pattern.py | 126 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 D | ScanTestUtil.java | 129 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); 130 bucket.bucket = mSettings.num_buckets; 131 bucket.band = band; 132 bucket.period_ms = period; 133 bucket.report_events = reportEvents; 134 return addBucket(bucket); 148 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); 149 bucket.bucket 158 addBucket(WifiNative.BucketSettings bucket) argument [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | BackgroundScanSchedulerTest.java | 308 * 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/base/packages/SystemUI/src/com/android/systemui/power/ |
H A D | PowerUI.java | 131 * the bucket going up when the battery level was going down. --joeo 183 int bucket = findBatteryLevelBucket(mBatteryLevel); 193 Slog.d(TAG, "bucket " + oldBucket + " --> " + bucket); 197 mWarnings.update(mBatteryLevel, bucket, mScreenOffTime); 212 && (bucket < oldBucket || oldPlugged) 214 && bucket < 0) { 215 // only play SFX when the dialog comes up or the bucket changes 216 final boolean playSound = bucket != oldBucket || oldPlugged; 218 } else if (isPowerSaver || plugged || (bucket > oldBucke 377 update(int batteryLevel, int bucket, long screenOffTime) argument [all...] |
H A D | PowerNotificationWarnings.java | 129 public void update(int batteryLevel, int bucket, long screenOffTime) { argument 131 if (bucket >= 0) { 133 } else if (bucket < mBucket) { 136 mBucket = bucket; 179 // Bump the notification when the bucket dropped.
|
/frameworks/base/core/java/com/android/internal/logging/ |
H A D | MetricsLogger.java | 134 /** Increment the bucket with the integer label on the histogram with the given name. */ 135 public void histogram(String name, int bucket) { argument 137 EventLogTags.writeSysuiHistogram(name, bucket); 140 .setCounterBucket(bucket) 211 * Increment the bucket with the integer label on the histogram with the given name. 215 public static void histogram(Context context, String name, int bucket) { argument 216 getLogger().histogram(name, bucket);
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/ |
H A D | FlagSet.java | 145 for (long bucket : buckets) { 146 hash = (hash * 7) ^ (int)(bucket >>> 32); 147 hash = (hash * 13) ^ (int)(bucket & 0xFFFF);
|
/frameworks/base/core/java/android/metrics/ |
H A D | LogMaker.java | 205 * The bucket label, expressed as an integer. 207 * @param bucket to replace the existing setting. 210 public LogMaker setCounterBucket(int bucket) { argument 211 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_BUCKET, bucket); 216 * The bucket label, expressed as a long integer. 218 * @param bucket to replace the existing setting. 221 public LogMaker setCounterBucket(long bucket) { argument 222 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_BUCKET, bucket); 227 * The value to increment the counter or bucket by. 363 /** @return the bucket labe [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | BackgroundScanScheduler.java | 48 * where each bucket represents a set of channels and an interval to scan at. This 51 * <p>Each new request is placed in the best predefined bucket. Once all requests have been added 52 * the last buckets (lower priority) are placed in the next best bucket until the number of buckets 66 // Max channels that can be specified per bucket 90 * the next smallest bucket with the smallest bucket having a period of PERIOD_MIN_GCD_MS. 103 * scan will be placed in the 20s bucket. 105 * If there are special scan requests such as exponential back off, we always dedicate a bucket 128 * collection to be scanned by the bucket as settings are added to it. 144 * Copy constructor which populates the settings list from the original bucket objec [all...] |
H A D | ScanScheduleUtil.java | 55 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 D | WificondScannerImpl.java | 233 WifiNative.BucketSettings bucket = settings.buckets[i]; 234 if (bucket.period_ms % settings.base_period_ms != 0) { 356 WifiNative.BucketSettings bucket = 358 if (mNextBackgroundScanPeriod % (bucket.period_ms 360 if ((bucket.report_events 364 if ((bucket.report_events 369 if ((bucket.report_events 374 allFreqs.addChannels(bucket); 672 // ignore buckets scanned since there is only one bucket for a single scan
|
H A D | WifiScanningServiceImpl.java | 737 // there is always one bucket for a single scan 799 bucketSettings.bucket = 0; 1241 WifiNative.BucketSettings bucket = schedule.buckets[b]; 1242 localLog("bucket " + bucket.bucket + " (" + bucket.period_ms + "ms)" 1243 + "[" + bucket.report_events + "]: " 1244 + ChannelHelper.toString(bucket)); 1250 + " bucket( [all...] |
H A D | ChannelHelper.java | 222 public abstract void fillBucketSettings(WifiNative.BucketSettings bucket, int maxChannels); argument
|
/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStatsManager.java | 56 * bucket for a particular key, state, metered and roaming combination. In case of the user-wide 57 * and device-wide summaries a single bucket containing the totalised network usage is returned. 111 * roaming. This means the bucket's start and end timestamp are going to be the same as the 138 Bucket bucket = null; 140 bucket = stats.getDeviceSummaryForNetwork(); 143 return bucket; 149 * This means the bucket's start and end timestamp are going to be the same as the 'startTime' 240 * interpolate across partial buckets. Since bucket length is in the order of hours, this 283 * interpolate across partial buckets. Since bucket length is in the order of hours, this
|
H A D | NetworkStats.java | 202 * <p>Any cellular usage in this bucket was incurred while the device was connected to a 213 * <p>Any cellular usage in this bucket as incurred while the device was roaming on another 281 * Key of the bucket. Usually an app uid or one of the following special values:<p /> 294 * Tag of the bucket.<p /> 342 * Start timestamp of the bucket's time interval. Defined in terms of "Unix time", see 351 * End timestamp of the bucket's time interval. Defined in terms of "Unix time", see 360 * Number of bytes received during the bucket's time interval. Statistics are measured at 369 * Number of bytes transmitted during the bucket's time interval. Statistics are measured at 378 * Number of packets received during the bucket's time interval. Statistics are measured at 387 * Number of packets transmitted during the bucket' [all...] |
/frameworks/base/core/tests/coretests/src/android/metrics/ |
H A D | LogMakerTest.java | 41 int bucket = 13; 50 builder.setCounterBucket(bucket); 64 assertEquals(bucket, parsed.getCounterBucket());
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ArrayUtils.java | 116 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/services/print/java/com/android/server/print/ |
H A D | UserState.java | 1970 List<PrintJobInfo> bucket = mPrintJobsForRunningApp.valueAt(i); 1974 printJobs.addAll(bucket); 1977 List<PrintJobInfo> bucket = mPrintJobsForRunningApp.get(appId); 1978 if (bucket != null) { 1982 printJobs.addAll(bucket); 1999 List<PrintJobInfo> bucket = mPrintJobsForRunningApp.valueAt(i); 2000 final int printJobCount = bucket.size(); 2002 PrintJobInfo printJob = bucket.get(j);
|