Home
last modified time | relevance | path

Searched refs:statsArrayLength (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DPowerStats.java109 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/
DPhoneCallPowerStatsProcessor.java38 mTmpDeviceStats = new long[mDescriptor.statsArrayLength]; in PhoneCallPowerStatsProcessor()
61 mTmpMobileRadioDeviceStats = new long[mMobileRadioStatsDescriptor.statsArrayLength]; in finish()
DBinaryStatePowerStatsProcessor.java80 mPowerStats.stats = new long[mDescriptor.statsArrayLength]; in ensureInitialized()
81 mTmpDeviceStatsArray = new long[mDescriptor.statsArrayLength]; in ensureInitialized()
DPowerStatsExporter.java145 long[] deviceStats = new long[descriptor.statsArrayLength]; in populateBatteryUsageStatsBuilder()
DBluetoothPowerStatsProcessor.java146 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
DWifiPowerStatsProcessor.java174 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
DMobileRadioPowerStatsProcessor.java225 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
DCpuPowerStatsProcessor.java110 mTmpDeviceStatsArray = new long[descriptor.statsArrayLength]; in unpackPowerStatsDescriptor()
DPowerComponentAggregatedPowerStats.java317 mPowerStatsDescriptor.statsArrayLength, mDeviceStateConfig); in createDeviceStats()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBinaryStatePowerStatsProcessorTest.java102 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()
DAggregatedPowerStatsTest.java148 assertThat(descriptor.statsArrayLength).isEqualTo(2); in verifyAggregatedPowerStats()
233 long[] out = new long[powerComponentStats.getPowerStatsDescriptor().statsArrayLength]; in getDeviceStats()
DBluetoothPowerStatsProcessorTest.java218 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()
DCpuPowerStatsProcessorTest.java245 return values == null ? new long[mDescriptor.statsArrayLength] : values; in getDeviceStats()
257 mDeviceStats.put(key, Arrays.copyOf(values, mDescriptor.statsArrayLength)); in setDeviceStats()
DWifiPowerStatsProcessorTest.java254 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()
DCpuPowerStatsCollectorTest.java229 assertThat(descriptor.statsArrayLength).isEqualTo(13); in powerStatsDescriptor()
235 long[] deviceStats = new long[descriptor.statsArrayLength]; in powerStatsDescriptor()
DPhoneCallPowerStatsProcessorTest.java215 long[] deviceStats = new long[stats.getPowerStatsDescriptor().statsArrayLength]; in copyEstimatesFromMobileRadioPowerStats()
DMobileRadioPowerStatsProcessorTest.java250 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/
DPowerStatsTest.java94 assertThat(newDescriptor.statsArrayLength).isEqualTo(3); in parceling_compatibleParcel()
133 assertThat(actual.statsArrayLength).isEqualTo(3); in xmlFormat()