Home
last modified time | relevance | path

Searched refs:POWER_DATA_UNAVAILABLE (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerCalculator.java83 if (consumedEnergyUC != BatteryStats.POWER_DATA_UNAVAILABLE in getPowerModel()
91 return consumedEnergyUC != BatteryStats.POWER_DATA_UNAVAILABLE in getPowerModel()
DBinaryStatePowerStatsProcessor.java148 if (consumedEnergy != BatteryStats.POWER_DATA_UNAVAILABLE) { in addPowerStats()
DEnergyConsumerSnapshot.java41 public static final long UNAVAILABLE = android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
DMobileRadioPowerCalculator.java175 if (appConsumptionUC != BatteryStats.POWER_DATA_UNAVAILABLE) { in calculate()
DBatteryStatsImpl.java7910 return POWER_DATA_UNAVAILABLE; in getPowerBucketConsumptionUC()
8825 return POWER_DATA_UNAVAILABLE; in getEnergyConsumptionUC()
8842 return POWER_DATA_UNAVAILABLE; in getEnergyConsumptionUC()
12735 dataConsumedChargeUC = POWER_DATA_UNAVAILABLE; in noteModemControllerActivity()
/frameworks/base/core/tests/coretests/src/com/android/internal/power/
DEnergyConsumerStatsTest.java19 import static android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
75 assertEquals(POWER_DATA_UNAVAILABLE, in testConstruction()
130 assertEquals(POWER_DATA_UNAVAILABLE, in testReadWriteParcel()
223 assertEquals(POWER_DATA_UNAVAILABLE, in testCreateAndReadSummaryFromParcel()
264 assertEquals(POWER_DATA_UNAVAILABLE, in testCreateAndReadSummaryFromParcel_configChange()
279 assertEquals(POWER_DATA_UNAVAILABLE, in testCreateAndReadSummaryFromParcel_configChange()
377 assertEquals(POWER_DATA_UNAVAILABLE, in testUpdateBucket()
494 assertEquals(POWER_DATA_UNAVAILABLE, stats.getAccumulatedStandardBucketCharge(i)); in testReset()
/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java20 import static android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
257 mAccumulatedChargeMicroCoulomb[stdBucket] = POWER_DATA_UNAVAILABLE; in EnergyConsumerStats()
483 return POWER_DATA_UNAVAILABLE; in getAccumulatedStandardBucketCharge()
503 return POWER_DATA_UNAVAILABLE; in getAccumulatedCustomBucketCharge()
621 if (mAccumulatedChargeMicroCoulomb[index] != POWER_DATA_UNAVAILABLE) { in setValueIfSupported()
636 return mAccumulatedChargeMicroCoulomb[index] != POWER_DATA_UNAVAILABLE; in isIndexSupported()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DWifiPowerCalculatorTest.java22 import static android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
151 batteryStats.updateWifiState(energyInfo, POWER_DATA_UNAVAILABLE, 2000, 2000, in testPowerControllerBasedModel_nonMeasured()
192 POWER_DATA_UNAVAILABLE, 2000, 2000, in testPowerControllerBasedModel_powerProfile_byProcessState()
202 POWER_DATA_UNAVAILABLE, 4000, 4000, in testPowerControllerBasedModel_powerProfile_byProcessState()
341 batteryStats.updateWifiState(/* energyInfo */ null, POWER_DATA_UNAVAILABLE, 1000, 1000, in testTimerBasedModel_nonMeasured()
DMobileRadioPowerCalculatorTest.java22 import static android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
144 stats.noteModemControllerActivity(mai, POWER_DATA_UNAVAILABLE, 10000, 10000, in testCounterBasedModel()
288 stats.noteModemControllerActivity(mai, POWER_DATA_UNAVAILABLE, 10000, 10000, in testCounterBasedModel_multipleDefinedRat()
421 stats.noteModemControllerActivity(mai, POWER_DATA_UNAVAILABLE, 10000, 10000, in testCounterBasedModel_legacyPowerProfile()
534 stats.noteModemControllerActivity(null, POWER_DATA_UNAVAILABLE, 10000, 10000, in testTimerBasedModel_byProcessState()
544 stats.noteModemControllerActivity(null, POWER_DATA_UNAVAILABLE, 12000, 12000, in testTimerBasedModel_byProcessState()
DBluetoothPowerCalculatorTest.java76 setupBluetoothEnergyInfo(0, BatteryStats.POWER_DATA_UNAVAILABLE); in testTimerBasedModel()
171 setupBluetoothEnergyInfo(4000000, BatteryStats.POWER_DATA_UNAVAILABLE); in testReportedEnergyBasedModel()
DBatteryStatsNoteTest.java20 import static android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
1342 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_noModemActivity()
1346 expectedTxDurationsMs[rat][freq][txLvl] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_noModemActivity()
1506 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_initialModemActivity()
1514 expectedTxDurationsMs[rat][freq][txLvl] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_initialModemActivity()
1640 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_withModemActivity()
1643 expectedTxDurationsMs[rat][freq][txLvl] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_withModemActivity()
1888 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_withSpecificInfoModemActivity()
1891 expectedTxDurationsMs[rat][freq][txLvl] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_withSpecificInfoModemActivity()
2283 bi.noteModemControllerActivity(mai, POWER_DATA_UNAVAILABLE, in testNoteMobileRadioPowerStateLocked_rateLimited()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java28 import static android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
2592 mStats.updateWifiState(info, POWER_DATA_UNAVAILABLE, elapsedRealtime, uptime, in noteWifiControllerActivity()
2614 info, POWER_DATA_UNAVAILABLE, elapsedRealtime, uptime); in noteBluetoothControllerActivity()
2636 mStats.noteModemControllerActivity(info, POWER_DATA_UNAVAILABLE, elapsedRealtime, in noteModemControllerActivity()
/frameworks/base/core/java/android/os/
DBatteryStats.java2900 public static final long POWER_DATA_UNAVAILABLE = -1L; field in BatteryStats