Lines Matching refs:mBatteryStats
81 private BatteryStats mBatteryStats;
99 doReturn(REMAINING_TIME_NULL).when(mBatteryStats).computeBatteryTimeRemaining(anyLong());
101 mDisChargingBatteryBroadcast, mBatteryStats, SystemClock.elapsedRealtime() * 1000,
109 doReturn(REMAINING_TIME).when(mBatteryStats).computeChargeTimeRemaining(anyLong());
111 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */);
118 doReturn(REMAINING_TIME_NULL).when(mBatteryStats).computeChargeTimeRemaining(anyLong());
120 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */);
127 doReturn(TEST_CHARGE_TIME_REMAINING).when(mBatteryStats).computeChargeTimeRemaining(
130 mBatteryStats, SystemClock.elapsedRealtime() * 1000, true /* shortString */);
139 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */,
142 mBatteryStats, SystemClock.elapsedRealtime() * 1000, true /* shortString */,
154 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */,
157 mBatteryStats, SystemClock.elapsedRealtime() * 1000, true /* shortString */,
167 .when(mBatteryStats)
170 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false, 1000, false);
181 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */,
208 }).when(mBatteryStats).getNextHistoryLocked(any(BatteryStats.HistoryItem.class));
210 }).when(mBatteryStats).startIteratingHistoryLocked();
262 doReturn(1000L).when(mBatteryStats).computeChargeTimeRemaining(anyLong());
264 doReturn(0L).when(mBatteryStats).computeChargeTimeRemaining(anyLong());
268 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false,