Home
last modified time | relevance | path

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

1234

/frameworks/libs/net/common/framework/com/android/net/module/util/
DNetworkStatsUtils.java110 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in fromPublicNetworkStats() local
111 publiceNetworkStats.getNextBucket(bucket); in fromPublicNetworkStats()
112 final android.net.NetworkStats.Entry entry = fromBucket(bucket); in fromPublicNetworkStats()
119 public static android.net.NetworkStats.Entry fromBucket(NetworkStats.Bucket bucket) { in fromBucket() argument
121 null /* IFACE_ALL */, bucket.getUid(), convertBucketState(bucket.getState()), in fromBucket()
122 convertBucketTag(bucket.getTag()), convertBucketMetered(bucket.getMetered()), in fromBucket()
123 convertBucketRoaming(bucket.getRoaming()), in fromBucket()
124 convertBucketDefaultNetworkStatus(bucket.getDefaultNetworkStatus()), in fromBucket()
125 bucket.getRxBytes(), bucket.getRxPackets(), in fromBucket()
126 bucket.getTxBytes(), bucket.getTxPackets(), 0 /* operations */); in fromBucket()
/frameworks/base/core/java/com/android/internal/power/
DMeasuredEnergyStats.java103 for (int bucket : supportedMultiStateBuckets) { in Config()
104 if (mSupportedStandardBuckets[bucket]) { in Config()
105 mSupportedMultiStateBuckets[bucket] = true; in Config()
144 for (int bucket = 0; bucket < config.mSupportedMultiStateBuckets.length; bucket++) { in writeToParcel()
145 if (config.mSupportedMultiStateBuckets[bucket]) { in writeToParcel()
146 supportedMultiStateBuckets[index++] = bucket; in writeToParcel()
379 public void updateStandardBucket(@StandardPowerBucket int bucket, long chargeDeltaUC) { in updateStandardBucket() argument
380 updateStandardBucket(bucket, chargeDeltaUC, 0); in updateStandardBucket()
387 public void updateStandardBucket(@StandardPowerBucket int bucket, long chargeDeltaUC, in updateStandardBucket() argument
389 checkValidStandardBucket(bucket); in updateStandardBucket()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DByteBucketArray.h55 T* bucket = buckets_[bucket_index]; variable
56 if (bucket == NULL) {
59 return bucket[0x0f & static_cast<uint8_t>(index)];
67 T* bucket = buckets_[bucket_index]; in editItemAt() local
68 if (bucket == NULL) { in editItemAt()
69 bucket = buckets_[bucket_index] = new T[kBucketSize](); in editItemAt()
71 return bucket[0x0f & static_cast<uint8_t>(index)]; in editItemAt()
/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;
DDataUsageController.java158 final Bucket bucket = mNetworkStatsManager.querySummaryForDevice(template, start, end); in getUsageLevel() local
159 if (bucket != null) { in getUsageLevel()
160 return bucket.getRxBytes() + bucket.getTxBytes(); in getUsageLevel()
183 private static String statsBucketToString(Bucket bucket) { in statsBucketToString() argument
184 return bucket == null ? null : new StringBuilder("Entry[") in statsBucketToString()
185 .append("bucketDuration=").append(bucket.getEndTimeStamp() - bucket.getStartTimeStamp()) in statsBucketToString()
186 .append(",bucketStart=").append(bucket.getStartTimeStamp()) in statsBucketToString()
187 .append(",rxBytes=").append(bucket.getRxBytes()) in statsBucketToString()
188 .append(",rxPackets=").append(bucket.getRxPackets()) in statsBucketToString()
189 .append(",txBytes=").append(bucket.getTxBytes()) in statsBucketToString()
[all …]
/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/
DMeasuredEnergyStatsTest.java68 for (int bucket = 0; bucket < NUMBER_STANDARD_POWER_BUCKETS; bucket++) { in testConstruction()
69 if (supportedStandardBuckets[bucket]) { in testConstruction()
70 assertTrue(stats.isStandardBucketSupported(bucket)); in testConstruction()
71 assertEquals(0L, stats.getAccumulatedStandardBucketCharge(bucket)); in testConstruction()
73 assertFalse(stats.isStandardBucketSupported(bucket)); in testConstruction()
75 stats.getAccumulatedStandardBucketCharge(bucket)); in testConstruction()
77 if (bucket == POWER_BUCKET_SCREEN_ON) { in testConstruction()
78 assertThat(config.isSupportedMultiStateBucket(bucket)).isTrue(); in testConstruction()
80 assertThat(config.isSupportedMultiStateBucket(bucket)).isFalse(); in testConstruction()
117 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/core/java/android/app/admin/
DPasswordMetrics.java476 for (ComplexityBucket bucket : values()) { in forComplexity()
477 if (bucket.mComplexityLevel == complexityLevel) { in forComplexity()
478 return bucket; in forComplexity()
490 private boolean satisfiesBucket(ComplexityBucket bucket) { in satisfiesBucket() argument
491 if (!bucket.allowsCredType(credType)) { in satisfiesBucket()
497 return (bucket.canHaveSequence() || seqLength <= MAX_ALLOWED_SEQUENCE) in satisfiesBucket()
498 && length >= bucket.getMinimumLength(nonNumeric > 0 /* hasNonNumeric */); in satisfiesBucket()
507 for (ComplexityBucket bucket : ComplexityBucket.values()) { in determineComplexity()
508 if (satisfiesBucket(bucket)) { in determineComplexity()
509 return bucket.mComplexityLevel; in determineComplexity()
[all …]
/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/native/libs/cputimeinstate/
Dcputimeinstate.cpp305 key.bucket = i; in getUidCpuFreqTimes()
377 auto offset = key.bucket * FREQS_PER_ENTRY; in getUidsUpdatedCpuFreqTimes()
378 auto nextOffset = (key.bucket + 1) * FREQS_PER_ENTRY; in getUidsUpdatedCpuFreqTimes()
416 for (key.bucket = 0; key.bucket <= (gNCpus - 1) / CPUS_PER_ENTRY; ++key.bucket) { in getUidConcurrentTimes()
421 auto offset = key.bucket * CPUS_PER_ENTRY; in getUidConcurrentTimes()
422 auto nextOffset = (key.bucket + 1) * CPUS_PER_ENTRY; in getUidConcurrentTimes()
481 if (key.bucket > (gNCpus - 1) / CPUS_PER_ENTRY) return {}; in getUidsUpdatedConcurrentTimes()
490 auto offset = key.bucket * CPUS_PER_ENTRY; in getUidsUpdatedConcurrentTimes()
491 auto nextOffset = (key.bucket + 1) * CPUS_PER_ENTRY; in getUidsUpdatedConcurrentTimes()
540 for (key.bucket = 0; key.bucket <= (maxFreqCount - 1) / FREQS_PER_ENTRY; ++key.bucket) { in clearUidTimes()
[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/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java428 int bucket, int reason) { in setAppStandbyBucket() argument
429 setAppStandbyBucket(packageName, userId, elapsedRealtime, bucket, reason, false); in setAppStandbyBucket()
433 int bucket, int reason, boolean resetExpiryTimes) { in setAppStandbyBucket() argument
437 final boolean changed = appUsageHistory.currentBucket != bucket; in setAppStandbyBucket()
438 appUsageHistory.currentBucket = bucket; in setAppStandbyBucket()
445 appUsageHistory.lastPredictedBucket = bucket; in setAppStandbyBucket()
451 logAppStandbyBucketChanged(packageName, userId, bucket, reason); in setAppStandbyBucket()
461 public void updateLastPrediction(AppUsageHistory app, long elapsedTimeAdjusted, int bucket) { in updateLastPrediction() argument
463 app.lastPredictedBucket = bucket; in updateLastPrediction()
609 long elapsedRealtime, int bucket) { in shouldInformListeners() argument
[all …]
/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/java/com/android/internal/logging/
DMetricsLogger.java78 public void histogram(String name, int bucket) { in histogram() argument
82 .setCounterBucket(bucket) in histogram()
228 public static void histogram(Context context, String name, int bucket) { in histogram() argument
229 getLogger().histogram(name, bucket); in histogram()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DColorExtractor.java123 int bucket = (int) (s * 100) + (int) (v * 10000); in findDominantColorByHue() local
126 Float oldTotal = rgbScores.get(bucket); in findDominantColorByHue()
128 rgbScores.put(bucket, newTotal); in findDominantColorByHue()
/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/android/app/usage/
DAppStandbyInfo.java41 public AppStandbyInfo(String packageName, int bucket) { in AppStandbyInfo() argument
43 mStandbyBucket = bucket; in AppStandbyInfo()

1234