Home
last modified time | relevance | path

Searched refs:powerMah (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DBluetoothPowerCalculator.java49 double powerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateApp() local
52 if (powerMah == 0) { in calculateApp()
53 powerMah = ((idleTimeMs * mIdleMa) + (rxTimeMs * mRxMa) + (txTimeMs * mTxMa)) in calculateApp()
57 app.bluetoothPowerMah = powerMah; in calculateApp()
62 mAppTotalPowerMah += powerMah; in calculateApp()
76 double powerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateRemaining() local
79 if (powerMah == 0) { in calculateRemaining()
81 powerMah = ((idleTimeMs * mIdleMa) + (rxTimeMs * mRxMa) + (txTimeMs * mTxMa)) in calculateRemaining()
86 powerMah = Math.max(0, powerMah - mAppTotalPowerMah); in calculateRemaining()
88 if (DEBUG && powerMah != 0) { in calculateRemaining()
[all …]
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DModemRemainderActivity.java72 result.powerMah += result.strengthMah[i]; in applyProfile()
77 result.powerMah += result.scanningMah; in applyProfile()
82 result.powerMah += result.activeMah; in applyProfile()
DModemAppActivity.java70 result.powerMah = Conversion.msToHr( in applyProfile()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DComponentPower.java40 public double powerMah; field in ComponentPower
DAppPower.java75 appPowerMah += componentPower.powerMah; in build()
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerReportTest.java77 Assert.assertEquals(GMAIL_MODEM_MAH, modem.powerMah, EPSILON); in testModemApp()
100 Assert.assertEquals(REMAINDER_MODEM_MAH, modem.powerMah, EPSILON); in testModemRemainder()