/frameworks/layoutlib/bridge/src/android/util/imagepool/ |
D | ImagePoolHelper.java | 72 Bucket bucket, BucketCreationMetaData metaData, ImagePoolStats stats) { in getBufferedImage() argument 75 BufferedImage strongRef = populateBucket(bucket, metaData, stats); in getBufferedImage() 78 if (bucket.isEmpty()) { in getBufferedImage() 85 BufferedImage img = bucket.remove(); in getBufferedImage() 86 while (img == null && !bucket.isEmpty()) { in getBufferedImage() 87 img = bucket.remove(); in getBufferedImage() 90 if (img == null && bucket.isEmpty()) { in getBufferedImage() 92 return getBufferedImage(bucket, metaData, stats); in getBufferedImage() 105 Bucket bucket, BucketCreationMetaData metaData, ImagePoolStats stats) { in populateBucket() argument 106 if (!bucket.isEmpty()) { in populateBucket() [all …]
|
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/ |
D | ImagePoolHelperTest.java | 38 Bucket bucket = new Bucket(); in testGetBufferedImage() local 44 assertNotNull(ImagePoolHelper.getBufferedImage(bucket, metaData, stats)); in testGetBufferedImage() 55 Bucket bucket = new Bucket(); in testGetBufferedImageRecurse() local 57 bucket.mBufferedImageRef.add(new SoftReference<>(null)); in testGetBufferedImageRecurse() 64 assertNotNull(ImagePoolHelper.getBufferedImage(bucket, metaData, stats)); in testGetBufferedImageRecurse() 75 Bucket bucket = new Bucket(); in testRecurseThenHitCacheLimit() local 77 bucket.mBufferedImageRef.add(new SoftReference<>(null)); in testRecurseThenHitCacheLimit() 84 assertNull(ImagePoolHelper.getBufferedImage(bucket, metaData, stats)); in testRecurseThenHitCacheLimit() 96 Bucket bucket = new Bucket(); in testBucketHasImageToReturn() local 98 bucket.mBufferedImageRef.add(new SoftReference<>(null)); in testBucketHasImageToReturn() [all …]
|
/frameworks/base/core/java/com/android/internal/power/ |
D | MeasuredEnergyStats.java | 218 public void updateStandardBucket(@StandardPowerBucket int bucket, long chargeDeltaUC) { in updateStandardBucket() argument 219 checkValidStandardBucket(bucket); in updateStandardBucket() 220 updateEntry(bucket, chargeDeltaUC); in updateStandardBucket() 249 public long getAccumulatedStandardBucketCharge(@StandardPowerBucket int bucket) { in getAccumulatedStandardBucketCharge() argument 250 checkValidStandardBucket(bucket); in getAccumulatedStandardBucketCharge() 251 return mAccumulatedChargeMicroCoulomb[bucket]; in getAccumulatedStandardBucketCharge() 272 for (int bucket = 0; bucket < charges.length; bucket++) { in getAccumulatedCustomBucketCharges() 273 charges[bucket] = mAccumulatedChargeMicroCoulomb[customBucketToIndex(bucket)]; in getAccumulatedCustomBucketCharges() 425 public boolean isStandardBucketSupported(@StandardPowerBucket int bucket) { in isStandardBucketSupported() argument 426 checkValidStandardBucket(bucket); in isStandardBucketSupported() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ByteBucketArray.h | 55 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/ |
D | NetworkCycleChartDataLoader.java | 46 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice( in recordUsage() local 48 final long total = bucket == null ? 0L : bucket.getRxBytes() + bucket.getTxBytes(); in recordUsage() 83 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice( 85 if (bucket != null) { 86 usage = bucket.getRxBytes() + bucket.getTxBytes();
|
D | DataUsageController.java | 170 final Bucket bucket = mNetworkStatsManager.querySummaryForDevice(template, start, end); in getUsageLevel() local 171 if (bucket != null) { in getUsageLevel() 172 return bucket.getRxBytes() + bucket.getTxBytes(); in getUsageLevel() 195 private static String statsBucketToString(Bucket bucket) { in statsBucketToString() argument 196 return bucket == null ? null : new StringBuilder("Entry[") in statsBucketToString() 197 .append("bucketDuration=").append(bucket.getEndTimeStamp() - bucket.getStartTimeStamp()) in statsBucketToString() 198 .append(",bucketStart=").append(bucket.getStartTimeStamp()) in statsBucketToString() 199 .append(",rxBytes=").append(bucket.getRxBytes()) in statsBucketToString() 200 .append(",rxPackets=").append(bucket.getRxPackets()) in statsBucketToString() 201 .append(",txBytes=").append(bucket.getTxBytes()) in statsBucketToString() [all …]
|
D | NetworkCycleDataLoader.java | 163 final NetworkStats.Bucket bucket = new NetworkStats.Bucket(); 164 while (stats.hasNextBucket() && stats.getNextBucket(bucket)) { 165 bytes += bucket.getRxBytes() + bucket.getTxBytes();
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | HashBase.tcc | 128 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 …]
|
D | HashTable.tcc | 68 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()
|
D | HashIterator.h | 37 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/services/core/java/com/android/server/location/injector/ |
D | LocationAttributionHelper.java | 45 private BucketKey(String bucket, Object key) { in BucketKey() argument 46 mBucket = Objects.requireNonNull(bucket); in BucketKey() 87 public synchronized void reportLocationStart(CallerIdentity identity, String bucket, in reportLocationStart() argument 92 if (keySet.add(new BucketKey(bucket, key)) && empty) { in reportLocationStart() 103 public synchronized void reportLocationStop(CallerIdentity identity, String bucket, in reportLocationStop() argument 106 if (keySet != null && keySet.remove(new BucketKey(bucket, key)) in reportLocationStop() 117 public synchronized void reportHighPowerLocationStart(CallerIdentity identity, String bucket, in reportHighPowerLocationStart() argument 122 if (keySet.add(new BucketKey(bucket, key)) && empty) { in reportHighPowerLocationStart() 137 public synchronized void reportHighPowerLocationStop(CallerIdentity identity, String bucket, in reportHighPowerLocationStop() argument 140 if (keySet != null && keySet.remove(new BucketKey(bucket, key)) in reportHighPowerLocationStop()
|
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 204 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/ |
D | SysMemUsageTable.java | 149 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/ |
D | rsMap.h | 40 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/ |
D | PasswordMetrics.java | 475 for (ComplexityBucket bucket : values()) { in forComplexity() 476 if (bucket.mComplexityLevel == complexityLevel) { in forComplexity() 477 return bucket; in forComplexity() 489 private boolean satisfiesBucket(ComplexityBucket bucket) { in satisfiesBucket() argument 490 if (!bucket.allowsCredType(credType)) { in satisfiesBucket() 496 return (bucket.canHaveSequence() || seqLength <= MAX_ALLOWED_SEQUENCE) in satisfiesBucket() 497 && length >= bucket.getMinimumLength(nonNumeric > 0 /* hasNonNumeric */); in satisfiesBucket() 506 for (ComplexityBucket bucket : ComplexityBucket.values()) { in determineComplexity() 507 if (satisfiesBucket(bucket)) { in determineComplexity() 508 return bucket.mComplexityLevel; in determineComplexity() [all …]
|
/frameworks/native/libs/cputimeinstate/ |
D | cputimeinstate.cpp | 305 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/ |
D | BatteryStateSnapshot.kt | 13 val bucket: Int, constant in com.android.systemui.power.BatteryStateSnapshot 38 bucket: Int, 46 bucket,
|
/frameworks/ex/common/tools/ |
D | make-iana-tld-pattern.py | 129 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/ |
D | binder_latency.proto | 72 // Indicates the first bucket that had any data. Allows omitting any empty 73 // buckets at the start of the bucket list and thus save on data size. 75 // Stores the count of samples for each bucket. The number of buckets and 85 // The size (upper bound) of the first bucket (used to avoid creating an 87 // first bucket will be [0, 5) and the second will be [5, 5 * scaleFactor). 90 // The rate in which each consecutive bucket increases (before rounding).
|
/frameworks/base/core/proto/android/server/ |
D | jobscheduler.proto | 211 // 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/ |
D | MetricsLogger.java | 82 public void histogram(String name, int bucket) { in histogram() argument 86 .setCounterBucket(bucket) in histogram() 232 public static void histogram(Context context, String name, int bucket) { in histogram() argument 233 getLogger().histogram(name, bucket); in histogram()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ColorExtractor.java | 112 int bucket = (int) (s * 100) + (int) (v * 10000); in findDominantColorByHue() local 115 Float oldTotal = rgbScores.get(bucket); in findDominantColorByHue() 117 rgbScores.put(bucket, newTotal); in findDominantColorByHue()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 374 int bucket, int reason) { in setAppStandbyBucket() argument 375 setAppStandbyBucket(packageName, userId, elapsedRealtime, bucket, reason, false); in setAppStandbyBucket() 379 int bucket, int reason, boolean resetTimeout) { in setAppStandbyBucket() argument 383 final boolean changed = appUsageHistory.currentBucket != bucket; in setAppStandbyBucket() 384 appUsageHistory.currentBucket = bucket; in setAppStandbyBucket() 391 appUsageHistory.lastPredictedBucket = bucket; in setAppStandbyBucket() 398 logAppStandbyBucketChanged(packageName, userId, bucket, reason); in setAppStandbyBucket() 408 public void updateLastPrediction(AppUsageHistory app, long elapsedTimeAdjusted, int bucket) { in updateLastPrediction() argument 410 app.lastPredictedBucket = bucket; in updateLastPrediction() 517 long elapsedRealtime, int bucket) { in shouldInformListeners() argument [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | AppStandbyInfo.java | 41 public AppStandbyInfo(String packageName, int bucket) { in AppStandbyInfo() argument 43 mStandbyBucket = bucket; in AppStandbyInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSectionsManager.kt | 158 view is ExpandableNotificationRow -> view.entry.bucket in <lambda>() 172 when (child.entry.bucket) { in <lambda>() 307 row?.entry?.bucket?.let { curr -> next < curr } in <lambda>() 312 row?.entry?.bucket = BUCKET_HEADS_UP in <lambda>() 318 (child == null || row != null && nextBucket != row.entry.bucket) in <lambda>() 328 peopleNotifsPresent = peopleNotifsPresent || row.entry.bucket == BUCKET_PEOPLE in <lambda>() 329 nextBucket = row.entry.bucket in <lambda>() 413 val bounds = sectionBounds[section.bucket] ?: SectionBounds.None in <lambda>()
|