/frameworks/base/tools/powermodel/src/com/android/powermodel/component/ |
D | CpuProfile.java | 70 public void setClusterPower(int cluster, float value) throws ParseException { in setClusterPower() argument 71 mClusterOnPower.put(cluster, value); in setClusterPower() 74 public void setCoreSpeeds(int cluster, int[] value) throws ParseException { in setCoreSpeeds() argument 75 mCoreSpeeds.put(cluster, Arrays.copyOf(value, value.length)); in setCoreSpeeds() 76 float[] power = mCorePower.get(cluster); in setCoreSpeeds() 78 throw new ParseException("length of cpu.core_speeds.cluster" + cluster in setCoreSpeeds() 80 + " cpu.core_power.cluster" + cluster + " (" + power.length + ")"); in setCoreSpeeds() 82 if (mCoreCount != null && cluster >= mCoreCount.length) { in setCoreSpeeds() 83 throw new ParseException("cluster " + cluster in setCoreSpeeds() 84 + " in cpu.core_speeds.cluster" + cluster in setCoreSpeeds() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | CpuPowerStatsProcessor.java | 85 for (int cluster = 0; cluster < mCpuClusterCount; cluster++) { in CpuPowerStatsProcessor() 86 int policy = policies[cluster]; in CpuPowerStatsProcessor() 87 mPowerMultipliersByCluster[cluster] = in CpuPowerStatsProcessor() 91 mScalingStepToCluster[step] = cluster; in CpuPowerStatsProcessor() 224 for (int cluster = 0; cluster < policies.length; cluster++) { in initEnergyConsumerToPowerBracketMaps() 225 int[] freqs = mCpuScalingPolicies.getFrequencies(policies[cluster]); in initEnergyConsumerToPowerBracketMaps() 226 clusterToBrackets[cluster] = new ArraySet<>(freqs.length); in initEnergyConsumerToPowerBracketMaps() 228 clusterToBrackets[cluster].add(scalingStepToPowerBracketMap[step++]); in initEnergyConsumerToPowerBracketMaps() 235 for (int cluster = 0; cluster < clusterToBrackets.length; cluster++) { in initEnergyConsumerToPowerBracketMaps() 238 if (containsAny(combinedEnergyConsumers[i], clusterToBrackets[cluster])) { in initEnergyConsumerToPowerBracketMaps() [all …]
|
D | CpuPowerCalculator.java | 83 for (int cluster = 0; cluster < policies.length; cluster++) { in CpuPowerCalculator() 84 int policy = policies[cluster]; in CpuPowerCalculator() 86 mPerCpuFreqPowerEstimatorsByCluster[cluster] = in CpuPowerCalculator() 91 mPerCpuFreqPowerEstimatorsByCluster[cluster][step] = estimator; in CpuPowerCalculator() 302 for (int cluster = 0; cluster < mNumCpuClusters; cluster++) { in calculateUidModeledPowerMah() 303 final double power = mPerClusterPowerEstimators[cluster] in calculateUidModeledPowerMah() 304 .calculatePower(cpuClusterTimes[cluster]); in calculateUidModeledPowerMah() 307 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster in calculateUidModeledPowerMah() 308 + " clusterTimeMs=" + cpuClusterTimes[cluster] in calculateUidModeledPowerMah() 349 public double calculatePerCpuClusterPowerMah(int cluster, long clusterDurationMs) { in calculatePerCpuClusterPowerMah() argument [all …]
|
D | CpuPowerStatsLayout.java | 87 public void setTimeByCluster(long[] stats, int cluster, long value) { in setTimeByCluster() argument 88 stats[mDeviceCpuTimeByClusterPosition + cluster] = value; in setTimeByCluster() 95 public long getTimeByCluster(long[] stats, int cluster) { in getTimeByCluster() argument 96 return stats[mDeviceCpuTimeByClusterPosition + cluster]; in getTimeByCluster()
|
D | BatteryStatsImpl.java | 9565 public long getTimeAtCpuSpeed(int cluster, int step, int which) { in getTimeAtCpuSpeed() argument 9567 if (cluster >= 0 && cluster < mCpuClusterSpeedTimesUs.length) { in getTimeAtCpuSpeed() 9568 final LongSamplingCounter[] cpuSpeedTimesUs = mCpuClusterSpeedTimesUs[cluster]; in getTimeAtCpuSpeed() 13574 for (int cluster = 0; cluster < numClusters; cluster++) { in updateCpuEnergyConsumerStatsLocked() 13576 final double totalClusterChargeMah = accumulator.totalClusterChargesMah[cluster]; in updateCpuEnergyConsumerStatsLocked() 13580 clusterChargeRatio[cluster] = 0.0; in updateCpuEnergyConsumerStatsLocked() 13582 clusterChargeRatio[cluster] = in updateCpuEnergyConsumerStatsLocked() 13583 clusterChargeUC[cluster] / accumulator.totalClusterChargesMah[cluster]; in updateCpuEnergyConsumerStatsLocked() 13596 for (int cluster = 0; cluster < numClusters; cluster++) { in updateCpuEnergyConsumerStatsLocked() 13597 final double uidClusterChargeMah = uidClusterChargesMah[cluster]; in updateCpuEnergyConsumerStatsLocked() [all …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_KernelSingleUidTimeReader.cpp | 62 for (const auto &cluster : *timeInFreqDataNanos) s += cluster.size(); in addCpuTimeInFreqDelta() 67 for (const auto &cluster : *timeInFreqDataNanos) { in addCpuTimeInFreqDelta() 68 flattened.insert(offset, cluster.begin(), cluster.end()); in addCpuTimeInFreqDelta() 69 offset += cluster.size(); in addCpuTimeInFreqDelta() 108 std::vector<uint64_t> cluster; in addDeltaForTest() local 110 cluster.reserve(row.size()); in addDeltaForTest() 112 cluster.push_back(row[j]); in addDeltaForTest() 114 timeInFreqData.push_back(cluster); in addDeltaForTest()
|
D | com_android_internal_os_KernelSingleProcessCpuThreadReader.cpp | 79 for (auto cluster : *cpuFreqs) { in getCpuFrequencyCount() 80 freqCount += cluster.size(); in getCpuFrequencyCount() 165 for (const auto &cluster : data) { in flattenTimeInStateData() local 166 for (const uint64_t &timeNanos : cluster) { in flattenTimeInStateData()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PowerProfile.java | 505 for (int cluster = 0; cluster < data.length; cluster++) { in initCpuClusters() 506 int numCpusInCluster = (int) Math.round(data[cluster]); in initCpuClusters() 507 mCpuClusters[cluster] = new CpuClusterKey( in initCpuClusters() 508 CPU_CORE_SPEED_PREFIX + cluster, CPU_CLUSTER_POWER_COUNT + cluster, in initCpuClusters() 509 CPU_CORE_POWER_PREFIX + cluster, numCpusInCluster); in initCpuClusters() 719 public int getNumCoresInCpuCluster(int cluster) { in getNumCoresInCpuCluster() argument 720 if (cluster < 0 || cluster >= mCpuClusters.length) { in getNumCoresInCpuCluster() 723 return mCpuClusters[cluster].numCpus; in getNumCoresInCpuCluster() 731 public int getNumSpeedStepsInCpuCluster(int cluster) { in getNumSpeedStepsInCpuCluster() argument 732 if (cluster < 0 || cluster >= mCpuClusters.length) { in getNumSpeedStepsInCpuCluster() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsCpuTimesTest.java | 264 for (int cluster = 0; cluster < clusterSpeedTimesMs.length; ++cluster) { in testUpdateClusterSpeedTimes() 265 for (int speed = 0; speed < clusterSpeedTimesMs[cluster].length; ++speed) { in testUpdateClusterSpeedTimes() 266 assertEquals("Uid=" + testUids[i] + ", cluster=" + cluster + ", speed=" + speed, in testUpdateClusterSpeedTimes() 267 cpuTimeUs[i] * clusterSpeedTimesMs[cluster][speed] in testUpdateClusterSpeedTimes() 269 u.getTimeAtCpuSpeed(cluster, speed, STATS_SINCE_CHARGED)); in testUpdateClusterSpeedTimes() 694 for (int cluster = 0; cluster < clusterFreqs.length; ++cluster) { in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() 695 for (int speed = 0; speed < clusterFreqs[cluster]; ++speed) { in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() 696 assertEquals("Unexpected time at cluster=" + cluster + ", speed=" + speed, in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() 698 u.getTimeAtCpuSpeed(cluster, speed, STATS_SINCE_CHARGED)); in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() 737 for (int cluster = 0; cluster < clusterFreqs.length; ++cluster) { in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 59 const uint32_t cluster = glyphs->at(i).cluster; in adjustGlyphLetterSpacingEdge() local 60 const uint32_t cp = textBuf.codePointAt(cluster); in adjustGlyphLetterSpacingEdge() 67 const uint32_t cluster = glyphs->at(i).cluster; in adjustGlyphLetterSpacingEdge() local 68 const uint32_t cp = textBuf.codePointAt(cluster); in adjustGlyphLetterSpacingEdge() 79 const uint32_t cluster = glyphs->at(glyphCount - 1 - i).cluster; in adjustGlyphLetterSpacingEdge() local 80 const uint32_t cp = textBuf.codePointAt(cluster); in adjustGlyphLetterSpacingEdge()
|
D | LayoutCore.cpp | 170 HyphenEdit hyphen, uint32_t cluster) { in addHyphenToHbBuffer() argument 173 hb_buffer_add(buffer.get(), determineHyphenChar(chars[i], font.get()), cluster); in addHyphenToHbBuffer() 266 hyphenCluster = cpInfo[numCodepoints - 1].cluster + (uint32_t)hasEndReplacement; in addToHbBuffer() 273 return cpInfo[0].cluster; in addToHbBuffer() 416 const uint32_t advIndex = info[0].cluster - clusterOffset; in LayoutPiece() 424 const size_t clusterBaseIndex = info[i].cluster - clusterOffset; in LayoutPiece() 425 if (letterSpace != 0 && i > 0 && info[i - 1].cluster != info[i].cluster) { in LayoutPiece() 426 const uint32_t prevAdvIndex = info[i - 1].cluster - clusterOffset; in LayoutPiece() 473 const uint32_t lastAdvIndex = info[numGlyphs - 1].cluster - clusterOffset; in LayoutPiece()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 39 LayoutGlyph(FakedFont font, uint32_t glyph_id, uint32_t cluster, float x, float y) in LayoutGlyph() 40 : font(font), glyph_id(glyph_id), cluster(cluster), x(x), y(y) {} in LayoutGlyph() 44 uint32_t cluster; member 53 << ", cluster:" << g.cluster << ", pos=(" << g.x << "," << g.y << ") }";
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | WSMeansQuantizer.java | 69 for (int cluster : inClusters) { in WSMeansQuantizer() 70 float[] point = pointProvider.fromInt(cluster); in WSMeansQuantizer() 119 float[] cluster = mClusters[i]; in quantize() local 120 int colorInt = mPointProvider.toInt(cluster); in quantize()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmFrameThread.cpp | 132 sp<WebmElement> cluster = new WebmMaster(kMkvCluster, children); in writeCluster() local 133 cluster->write(mFd, size); in writeCluster()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 1919 int cluster = freqsClusters[freqIndex]; 1922 pulledData.add(FrameworkStatsLog.buildStatsEvent(atomTag, cluster, freq, timeMs)); 1977 int cluster = freqsClusters[freqIndex]; 1978 if (cluster != lastCluster) { 1981 lastCluster = cluster; 1984 powerProfile.getAveragePowerForCpuCore(cluster, freqClusterIndex); 2011 int cluster = freqsClusters[freqIndex]; 2013 values[cluster * CPU_CYCLES_PER_UID_CLUSTER_VALUES] += freqs[freqIndex] * timeMs; 2014 values[cluster * CPU_CYCLES_PER_UID_CLUSTER_VALUES + 1] += timeMs; 2015 values[cluster * CPU_CYCLES_PER_UID_CLUSTER_VALUES + 2] += [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 7830 View cluster = focused == null ? keyboardNavigationClusterSearch(null, direction) in performKeyboardGroupNavigation() local 7840 if (cluster != null && cluster.isRootNamespace()) { in performKeyboardGroupNavigation() 7842 if (cluster.restoreFocusNotInCluster()) { in performKeyboardGroupNavigation() 7847 cluster = keyboardNavigationClusterSearch(null, direction); in performKeyboardGroupNavigation() 7850 if (cluster != null && cluster.restoreFocusInCluster(realDirection)) { in performKeyboardGroupNavigation()
|
D | View.java | 14532 View cluster = ((View) mParent).findKeyboardNavigationCluster(); 14533 if (cluster != null) { 14534 return cluster; 14569 private void setFocusedInCluster(View cluster) { 14573 if (cluster == this) { 14580 if (parent == cluster) { 14591 View cluster = findKeyboardNavigationCluster(); 14592 if (oldCluster != cluster) {
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 1025 public abstract long getTimeAtCpuSpeed(int cluster, int step, int which); in getTimeAtCpuSpeed() argument
|
/frameworks/proto_logging/stats/ |
D | atoms.proto | 8168 * Pulls Cpu time per cluster per frequency. 8172 optional uint32 cluster = 1; field 8197 optional int32 cluster = 2; field 8238 optional int32 cluster = 2; field
|