/frameworks/base/core/java/com/android/internal/os/ |
D | PowerStats.java | 109 public final int statsArrayLength; field in PowerStats.Descriptor 137 int statsArrayLength, @Nullable SparseArray<String> stateLabels, in Descriptor() argument 141 statsArrayLength, stateLabels, stateStatsArrayLength, uidStatsArrayLength, in Descriptor() 145 public Descriptor(int customPowerComponentId, String name, int statsArrayLength, in Descriptor() argument 148 if (statsArrayLength > MAX_STATS_ARRAY_LENGTH) { in Descriptor() 162 this.statsArrayLength = statsArrayLength; in Descriptor() 220 | ((statsArrayLength << STATS_ARRAY_LENGTH_SHIFT) in writeSummaryToParcel() 250 int statsArrayLength = in readSummaryFromParcel() local 266 return new Descriptor(powerComponentId, name, statsArrayLength, stateLabels, in readSummaryFromParcel() 276 && statsArrayLength == that.statsArrayLength in equals() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PhoneCallPowerStatsProcessor.java | 38 mTmpDeviceStats = new long[mDescriptor.statsArrayLength]; in PhoneCallPowerStatsProcessor() 61 mTmpMobileRadioDeviceStats = new long[mMobileRadioStatsDescriptor.statsArrayLength]; in finish()
|
D | BinaryStatePowerStatsProcessor.java | 80 mPowerStats.stats = new long[mDescriptor.statsArrayLength]; in ensureInitialized() 81 mTmpDeviceStatsArray = new long[mDescriptor.statsArrayLength]; in ensureInitialized()
|
D | PowerStatsExporter.java | 145 long[] deviceStats = new long[descriptor.statsArrayLength]; in populateBatteryUsageStatsBuilder()
|
D | BluetoothPowerStatsProcessor.java | 146 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
|
D | WifiPowerStatsProcessor.java | 174 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
|
D | MobileRadioPowerStatsProcessor.java | 225 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
|
D | CpuPowerStatsProcessor.java | 110 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
|
D | PowerComponentAggregatedPowerStats.java | 317 mPowerStatsDescriptor.statsArrayLength, mDeviceStateConfig); in createDeviceStats()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BinaryStatePowerStatsProcessorTest.java | 102 long[] deviceStats = new long[stats.getPowerStatsDescriptor().statsArrayLength]; in powerProfileModel() 158 powerStats.stats = new long[descriptor.statsArrayLength]; in energyConsumerModel() 191 long[] deviceStats = new long[descriptor.statsArrayLength]; in energyConsumerModel()
|
D | AggregatedPowerStatsTest.java | 148 assertThat(descriptor.statsArrayLength).isEqualTo(2); in verifyAggregatedPowerStats() 233 long[] out = new long[powerComponentStats.getPowerStatsDescriptor().statsArrayLength]; in getDeviceStats()
|
D | BluetoothPowerStatsProcessorTest.java | 218 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in powerProfileModel_mostlyDataTransfer() 317 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in powerProfileModel_mostlyScan() 420 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in consumedEnergyModel()
|
D | CpuPowerStatsProcessorTest.java | 245 return values == null ? new long[mDescriptor.statsArrayLength] : values; in getDeviceStats() 257 mDeviceStats.put(key, Arrays.copyOf(values, mDescriptor.statsArrayLength)); in setDeviceStats()
|
D | WifiPowerStatsProcessorTest.java | 254 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in powerProfileModel_powerController() 367 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in consumedEnergyModel_powerController() 474 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in powerProfileModel_noPowerController()
|
D | CpuPowerStatsCollectorTest.java | 229 assertThat(descriptor.statsArrayLength).isEqualTo(13); in powerStatsDescriptor() 235 long[] deviceStats = new long[descriptor.statsArrayLength]; in powerStatsDescriptor()
|
D | PhoneCallPowerStatsProcessorTest.java | 215 long[] deviceStats = new long[stats.getPowerStatsDescriptor().statsArrayLength]; in copyEstimatesFromMobileRadioPowerStats()
|
D | MobileRadioPowerStatsProcessorTest.java | 250 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in powerProfileModel() 323 long[] deviceStats = new long[aggregatedStats.getPowerStatsDescriptor().statsArrayLength]; in energyConsumerModel()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | PowerStatsTest.java | 94 assertThat(newDescriptor.statsArrayLength).isEqualTo(3); in parceling_compatibleParcel() 133 assertThat(actual.statsArrayLength).isEqualTo(3); in xmlFormat()
|