Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/base/libs/androidfw/include/androidfw/
DByteBucketArray.h58 T* bucket = buckets_[bucket_index]; variable
59 if (bucket == nullptr) {
62 return bucket[0x0f & static_cast<uint8_t>(index)];
70 T*& bucket = buckets_[bucket_index]; in editItemAt() local
71 if (bucket == nullptr) { in editItemAt()
72 bucket = new T[kBucketSize](); in editItemAt()
74 return bucket[0x0f & static_cast<uint8_t>(index)]; in editItemAt()
89 const auto bucket = buckets_[i]; in forEachItem() local
90 if (bucket != nullptr) { in forEachItem()
92 f((i << 4) | j, bucket[j]); in forEachItem()
[all …]
/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java105 for (int bucket : supportedMultiStateBuckets) { in Config()
106 if (mSupportedStandardBuckets[bucket]) { in Config()
107 mSupportedMultiStateBuckets[bucket] = true; in Config()
146 for (int bucket = 0; bucket < config.mSupportedMultiStateBuckets.length; bucket++) { in writeToParcel()
147 if (config.mSupportedMultiStateBuckets[bucket]) { in writeToParcel()
148 supportedMultiStateBuckets[index++] = bucket; in writeToParcel()
380 public void updateStandardBucket(@StandardPowerBucket int bucket, long chargeDeltaUC) { in updateStandardBucket() argument
381 updateStandardBucket(bucket, chargeDeltaUC, 0); in updateStandardBucket()
388 public void updateStandardBucket(@StandardPowerBucket int bucket, long chargeDeltaUC, in updateStandardBucket() argument
390 checkValidStandardBucket(bucket); in updateStandardBucket()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleChartDataLoader.java45 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice( in recordUsage() local
47 final long total = bucket == null ? 0L : bucket.getRxBytes() + bucket.getTxBytes(); in recordUsage()
82 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice(
84 if (bucket != null) {
85 usage = bucket.getRxBytes() + bucket.getTxBytes();
DNetworkCycleDataLoader.java149 final NetworkStats.Bucket bucket = new NetworkStats.Bucket();
150 while (stats.hasNextBucket() && stats.getNextBucket(bucket)) {
151 bytes += bucket.getRxBytes() + bucket.getTxBytes();
164 final NetworkStats.Bucket bucket = getNextBucket(stats);
165 start = Math.min(start, bucket.getStartTimeStamp());
166 end = Math.max(end, bucket.getEndTimeStamp());
179 NetworkStats.Bucket bucket = new NetworkStats.Bucket();
180 stats.getNextBucket(bucket);
181 return bucket;
/frameworks/compile/mclinker/include/mcld/ADT/
DHashBase.tcc128 bucket_type& bucket = m_Buckets[index]; in lookUpBucketFor() local
130 if (bucket_type::getEmptyBucket() == bucket.Entry) { in lookUpBucketFor()
136 bucket.FullHashValue = full_hash; in lookUpBucketFor()
140 if (bucket_type::getTombstone() == bucket.Entry) { in lookUpBucketFor()
144 } else if (bucket.FullHashValue == full_hash) { in lookUpBucketFor()
145 if (bucket.Entry->compare(pKey)) { in lookUpBucketFor()
169 bucket_type& bucket = m_Buckets[index]; in findKey() local
171 if (bucket_type::getEmptyBucket() == bucket.Entry) in findKey()
174 if (bucket_type::getTombstone() == bucket.Entry) { in findKey()
176 } else if (full_hash == bucket.FullHashValue) { in findKey()
[all …]
DHashTable.tcc68 bucket_type& bucket = BaseTy::m_Buckets[index]; in insert() local
69 entry_type* entry = bucket.Entry; in insert()
81 entry = bucket.Entry = m_EntryFactory.produce(pKey); in insert()
102 bucket_type& bucket = BaseTy::m_Buckets[index]; in erase() local
103 m_EntryFactory.destroy(bucket.Entry); in erase()
104 bucket.Entry = bucket_type::getTombstone(); in erase()
148 const_chain_iterator bucket, bEnd = end(pKey); in count() local
150 for (bucket = begin(pKey); bucket != bEnd; ++bucket) in count()
DHashIterator.h37 bucket_type& bucket = m_pHashTable->m_Buckets[m_Index]; in ChainIteratorBase() local
38 if (bucket_type::getTombstone() == bucket.Entry) { in ChainIteratorBase()
40 } else if (m_HashValue == bucket.FullHashValue) { in ChainIteratorBase()
41 if (bucket.Entry->compare(pKey)) { in ChainIteratorBase()
116 bucket_type& bucket = m_pHashTable->m_Buckets[m_Index]; in advance() local
118 if (bucket_type::getTombstone() == bucket.Entry || in advance()
119 bucket_type::getEmptyBucket() == bucket.Entry) { in advance()
121 } else if (m_HashValue == bucket.FullHashValue) { in advance()
/frameworks/base/core/tests/coretests/src/com/android/internal/power/
DEnergyConsumerStatsTest.java69 for (int bucket = 0; bucket < NUMBER_STANDARD_POWER_BUCKETS; bucket++) { in testConstruction()
70 if (supportedStandardBuckets[bucket]) { in testConstruction()
71 assertTrue(stats.isStandardBucketSupported(bucket)); in testConstruction()
72 assertEquals(0L, stats.getAccumulatedStandardBucketCharge(bucket)); in testConstruction()
74 assertFalse(stats.isStandardBucketSupported(bucket)); in testConstruction()
76 stats.getAccumulatedStandardBucketCharge(bucket)); in testConstruction()
78 if (bucket == POWER_BUCKET_SCREEN_ON) { in testConstruction()
79 assertThat(config.isSupportedMultiStateBucket(bucket)).isTrue(); in testConstruction()
81 assertThat(config.isSupportedMultiStateBucket(bucket)).isFalse(); in testConstruction()
118 for (int bucket = 0; bucket < NUMBER_STANDARD_POWER_BUCKETS; bucket++) { in testReadWriteParcel()
[all …]
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java80 final NetworkStats.Bucket bucket = in fetchStats() local
82 reportStats(bucket); in fetchStats()
92 void reportStats(NetworkStats.Bucket bucket) { in reportStats() argument
94 result.putLong("Total rx Bytes", bucket.getRxBytes()); in reportStats()
95 result.putLong("Total tx Bytes", bucket.getTxBytes()); in reportStats()
96 result.putLong("Total rx Packets", bucket.getRxPackets()); in reportStats()
97 result.putLong("Total tx Packets", bucket.getTxPackets()); in reportStats()
/frameworks/base/libs/hwui/service/
DGraphicsStatsService.cpp204 protos::GraphicsStatsHistogramBucketProto* bucket; in mergeProfileDataIntoProto() local
206 bucket = proto->add_histogram(); in mergeProfileDataIntoProto()
207 bucket->set_render_millis(entry.renderTimeMs); in mergeProfileDataIntoProto()
209 bucket = proto->mutable_histogram(index); in mergeProfileDataIntoProto()
210 if (bucket->render_millis() != static_cast<int32_t>(entry.renderTimeMs)) { in mergeProfileDataIntoProto()
211 ALOGW("Frame time mistmatch %d vs. %u", bucket->render_millis(), in mergeProfileDataIntoProto()
217 bucket->set_frame_count(bucket->frame_count() + entry.frameCount); in mergeProfileDataIntoProto()
235 protos::GraphicsStatsHistogramBucketProto* bucket; in mergeProfileDataIntoProto() local
237 bucket = proto->add_gpu_histogram(); in mergeProfileDataIntoProto()
238 bucket->set_render_millis(entry.renderTimeMs); in mergeProfileDataIntoProto()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DSysMemUsageTable.java149 final int bucket = ((iscreen + imem) * STATE_COUNT); in dump() local
150 long count = getValueForId((byte)bucket, SYS_MEM_USAGE_SAMPLE_COUNT); in dump()
166 dumpCategory(pw, prefix, " Cached", bucket, SYS_MEM_USAGE_CACHED_MINIMUM); in dump()
167 dumpCategory(pw, prefix, " Free", bucket, SYS_MEM_USAGE_FREE_MINIMUM); in dump()
168 dumpCategory(pw, prefix, " ZRam", bucket, SYS_MEM_USAGE_ZRAM_MINIMUM); in dump()
169 dumpCategory(pw, prefix, " Kernel", bucket, SYS_MEM_USAGE_KERNEL_MINIMUM); in dump()
170 dumpCategory(pw, prefix, " Native", bucket, SYS_MEM_USAGE_NATIVE_MINIMUM); in dump()
176 private void dumpCategory(PrintWriter pw, String prefix, String label, int bucket, int index) { in dumpCategory() argument
179 DebugUtils.printSizeValue(pw, getValueForId((byte)bucket, index) * 1024); in dumpCategory()
181 DebugUtils.printSizeValue(pw, getValueForId((byte)bucket, index + 1) * 1024); in dumpCategory()
[all …]
/frameworks/rs/
DrsMap.h40 for (size_t i = 0; i < MAP_NUM_BUCKET; i++) { bucket[i] = nullptr; } in Map()
45 LinkNode* p = bucket[i]; in ~Map()
57 LinkNode* node = bucket[index];
72 bucket[index] = node;
92 next = map->bucket[bucket_index];
128 LinkNode* node = bucket[i]; in begin()
145 LinkNode* node = bucket[index]; in find()
160 LinkNode* bucket[MAP_NUM_BUCKET]; variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/
DRenderNotificationListInteractor.kt140 bucket = bucket, in buildActiveNotificationsStore()
160 bucket: Int, in createOrReuse()
179 bucket = bucket, in createOrReuse()
198 bucket = bucket, in createOrReuse()
218 bucket: Int, in ActiveNotificationModel()
236 bucket != this.bucket -> false in ActiveNotificationModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DNotifSection.kt31 val bucket: Int = sectioner.bucket constant in com.android.systemui.statusbar.notification.collection.listbuilder.NotifSection
32 val label: String = "$index:$bucket:${sectioner.name}"
38 dump("bucket", bucket) in <lambda>()
/frameworks/base/core/java/android/app/admin/
DPasswordMetrics.java462 for (ComplexityBucket bucket : values()) { in forComplexity()
463 if (bucket.mComplexityLevel == complexityLevel) { in forComplexity()
464 return bucket; in forComplexity()
476 private boolean satisfiesBucket(ComplexityBucket bucket) { in satisfiesBucket() argument
477 if (!bucket.allowsCredType(credType)) { in satisfiesBucket()
483 return (bucket.canHaveSequence() || seqLength <= MAX_ALLOWED_SEQUENCE) in satisfiesBucket()
484 && length >= bucket.getMinimumLength(nonNumeric > 0 /* hasNonNumeric */); in satisfiesBucket()
493 for (ComplexityBucket bucket : ComplexityBucket.values()) { in determineComplexity()
494 if (satisfiesBucket(bucket)) { in determineComplexity()
495 return bucket.mComplexityLevel; in determineComplexity()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DBatteryStateSnapshot.kt13 val bucket: Int, constant in com.android.systemui.power.BatteryStateSnapshot
38 bucket: Int,
46 bucket,
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp316 const time_key_t key = {.uid = uid, .bucket = i}; in getUidCpuFreqTimes()
390 auto offset = key.bucket * FREQS_PER_ENTRY; in getUidsUpdatedCpuFreqTimes()
391 auto nextOffset = (key.bucket + 1) * FREQS_PER_ENTRY; in getUidsUpdatedCpuFreqTimes()
430 const time_key_t key = {.uid = uid, .bucket = i}; in getUidConcurrentTimes()
436 auto offset = key.bucket * CPUS_PER_ENTRY; in getUidConcurrentTimes()
437 auto nextOffset = (key.bucket + 1) * CPUS_PER_ENTRY; in getUidConcurrentTimes()
496 if (key.bucket > (gNCpus - 1) / CPUS_PER_ENTRY) return {}; in getUidsUpdatedConcurrentTimes()
505 auto offset = key.bucket * CPUS_PER_ENTRY; in getUidsUpdatedConcurrentTimes()
506 auto nextOffset = (key.bucket + 1) * CPUS_PER_ENTRY; in getUidsUpdatedConcurrentTimes()
555 for (key.bucket = 0; key.bucket <= (maxFreqCount - 1) / FREQS_PER_ENTRY; ++key.bucket) { in clearUidTimes()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DStackCoordinatorTest.kt118 whenever(section.bucket).thenReturn(BUCKET_ALERTING) in testSetNotificationStats_clearableAlerting()
129 whenever(section.bucket).thenReturn(BUCKET_ALERTING) in testSetNotificationStats_isSensitiveStateActive_nonClearableAlerting()
138 whenever(section.bucket).thenReturn(BUCKET_SILENT) in testSetNotificationStats_clearableSilent()
149 whenever(section.bucket).thenReturn(BUCKET_SILENT) in testSetNotificationStats_isSensitiveStateActive_nonClearableSilent()
158 whenever(section.bucket).thenReturn(BUCKET_ALERTING) in testSetNotificationStats_footerFlagOn_clearableAlerting()
173 whenever(section.bucket).thenReturn(BUCKET_ALERTING) in testSetNotificationStats_footerFlagOn_isSensitiveStateActive_nonClearableAlerting()
183 whenever(section.bucket).thenReturn(BUCKET_SILENT) in testSetNotificationStats_footerFlagOn_clearableSilent()
198 whenever(section.bucket).thenReturn(BUCKET_SILENT) in testSetNotificationStats_footerFlagOn_isSensitiveStateActive_nonClearableSilent()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java429 int bucket, int reason) { in setAppStandbyBucket() argument
430 setAppStandbyBucket(packageName, userId, elapsedRealtime, bucket, reason, false); in setAppStandbyBucket()
434 int bucket, int reason, boolean resetExpiryTimes) { in setAppStandbyBucket() argument
438 final boolean changed = appUsageHistory.currentBucket != bucket; in setAppStandbyBucket()
439 appUsageHistory.currentBucket = bucket; in setAppStandbyBucket()
446 appUsageHistory.lastPredictedBucket = bucket; in setAppStandbyBucket()
452 logAppStandbyBucketChanged(packageName, userId, bucket, reason); in setAppStandbyBucket()
462 public void updateLastPrediction(AppUsageHistory app, long elapsedTimeAdjusted, int bucket) { in updateLastPrediction() argument
464 app.lastPredictedBucket = bucket; in updateLastPrediction()
620 long elapsedRealtime, int bucket) { in shouldInformListeners() argument
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/data/model/
DActiveNotificationModelBuilder.kt40 bucket: Int = BUCKET_UNKNOWN,
58 bucket = bucket,
/frameworks/ex/common/tools/
Dmake-iana-tld-pattern.py129 bucket = buckets.get(letter)
131 if bucket is None:
132 bucket = Bucket(letter)
133 buckets[letter] = bucket
135 return bucket
/frameworks/base/core/proto/android/internal/
Dbinder_latency.proto73 // Indicates the first bucket that had any data. Allows omitting any empty
74 // buckets at the start of the bucket list and thus save on data size.
76 // Stores the count of samples for each bucket. The number of buckets and
86 // The size (upper bound) of the first bucket (used to avoid creating an
88 // first bucket will be [0, 5) and the second will be [5, 5 * scaleFactor).
91 // The rate in which each consecutive bucket increases (before rounding).
/frameworks/base/core/proto/android/server/
Djobscheduler.proto211 // How often we recalculate runnability based on apps' standby bucket
216 // Mapping: standby bucket -> number of heartbeats between each sweep of
217 // that bucket's jobs.
245 // How much time each app will have to run jobs within their standby bucket window.
250 // The quota window size of the particular standby bucket. Apps in this standby bucket are
254 // The quota window size of the particular standby bucket. Apps in this standby bucket are
258 // The quota window size of the particular standby bucket. Apps in this standby bucket are
262 // The quota window size of the particular standby bucket. Apps in this standby bucket are
266 // The quota window size of the particular standby bucket. Apps in this standby bucket are
272 // The maximum number of jobs an app can run within this particular standby bucket's
[all …]
/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java79 public void histogram(String name, int bucket) { in histogram() argument
83 .setCounterBucket(bucket) in histogram()
229 public static void histogram(Context context, String name, int bucket) { in histogram() argument
230 getLogger().histogram(name, bucket); in histogram()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSection.java30 NotificationSection(@PriorityBucket int bucket) { in NotificationSection() argument
31 mBucket = bucket; in NotificationSection()

1234