/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerCalculator.java | 83 if (consumedEnergyUC != BatteryStats.POWER_DATA_UNAVAILABLE in getPowerModel() 91 return consumedEnergyUC != BatteryStats.POWER_DATA_UNAVAILABLE in getPowerModel()
|
D | BinaryStatePowerStatsProcessor.java | 148 if (consumedEnergy != BatteryStats.POWER_DATA_UNAVAILABLE) { in addPowerStats()
|
D | EnergyConsumerSnapshot.java | 41 public static final long UNAVAILABLE = android.os.BatteryStats.POWER_DATA_UNAVAILABLE;
|
D | MobileRadioPowerCalculator.java | 175 if (appConsumptionUC != BatteryStats.POWER_DATA_UNAVAILABLE) { in calculate()
|
D | BatteryStatsImpl.java | 7910 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/ |
D | EnergyConsumerStatsTest.java | 19 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/ |
D | EnergyConsumerStats.java | 20 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/ |
D | WifiPowerCalculatorTest.java | 22 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()
|
D | MobileRadioPowerCalculatorTest.java | 22 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()
|
D | BluetoothPowerCalculatorTest.java | 76 setupBluetoothEnergyInfo(0, BatteryStats.POWER_DATA_UNAVAILABLE); in testTimerBasedModel() 171 setupBluetoothEnergyInfo(4000000, BatteryStats.POWER_DATA_UNAVAILABLE); in testReportedEnergyBasedModel()
|
D | BatteryStatsNoteTest.java | 20 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/ |
D | BatteryStatsService.java | 28 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/ |
D | BatteryStats.java | 2900 public static final long POWER_DATA_UNAVAILABLE = -1L; field in BatteryStats
|