Searched refs:mBatteryStats (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryInfoTest.java | 88 private BatteryStats mBatteryStats; field in BatteryInfoTest 103 doReturn(REMAINING_TIME_NULL).when(mBatteryStats).computeBatteryTimeRemaining(anyLong()); in testGetBatteryInfo_hasStatusLabel() 105 mDisChargingBatteryBroadcast, mBatteryStats, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_hasStatusLabel() 113 doReturn(REMAINING_TIME).when(mBatteryStats).computeChargeTimeRemaining(anyLong()); in testGetBatteryInfo_doNotShowChargingMethod_hasRemainingTime() 115 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */); in testGetBatteryInfo_doNotShowChargingMethod_hasRemainingTime() 122 doReturn(REMAINING_TIME_NULL).when(mBatteryStats).computeChargeTimeRemaining(anyLong()); in testGetBatteryInfo_doNotShowChargingMethod_noRemainingTime() 124 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */); in testGetBatteryInfo_doNotShowChargingMethod_noRemainingTime() 131 doReturn(TEST_CHARGE_TIME_REMAINING).when(mBatteryStats).computeChargeTimeRemaining( in testGetBatteryInfo_pluggedInUsingShortString_usesCorrectData() 134 mBatteryStats, SystemClock.elapsedRealtime() * 1000, true /* shortString */); in testGetBatteryInfo_pluggedInUsingShortString_usesCorrectData() 146 mBatteryStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AppScanStats.java | 52 /* Battery stats is used to keep track of scans and result stats */ IBatteryStats mBatteryStats; field in AppScanStats 113 mBatteryStats = IBatteryStats.Stub.asInterface(ServiceManager.getService("batterystats")); in AppScanStats() 131 mBatteryStats.noteBleScanResults(mWorkSource, 100); in addResult() 178 mBatteryStats.noteBleScanStarted(mWorkSource, isUnoptimized); in recordScanStart() 229 mBatteryStats.noteBleScanResults(mWorkSource, scan.results % 100); in recordScanStop() 230 mBatteryStats.noteBleScanStopped(mWorkSource, isUnoptimized); in recordScanStop()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 188 private IBatteryStats mBatteryStats; field in AdapterService 407 mBatteryStats = IBatteryStats.Stub.asInterface( in onCreate() 532 mBatteryStats.noteResetBleScan(); in bringUpBle()
|