Home
last modified time | relevance | path

Searched refs:mBatteryMeterView (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryMeterViewTest.java49 private BatteryMeterView mBatteryMeterView; field in BatteryMeterViewTest
57 mBatteryMeterView = new BatteryMeterView(mContext); in setUp()
60 mBatteryMeterView.mDrawable = mDrawable; in setUp()
61 mBatteryMeterView.mAccentColorFilter = mAccentColorFilter; in setUp()
62 mBatteryMeterView.mErrorColorFilter = mErrorColorFilter; in setUp()
63 mBatteryMeterView.mForegroundColorFilter = mForegroundColorFilter; in setUp()
70 mBatteryMeterView.setBatteryLevel(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()
77 mBatteryMeterView.setBatteryLevel(BATTERY_LOW_LEVEL); in testSetBatteryInfo_levelLow_setErrorColor()
84 mBatteryMeterView.setBatteryLevel(BATTERY_LEVEL); in testSetBatteryInfo_levelNormal_setNormalColor()
91 mBatteryMeterView.setPowerSave(true); in testSetBatteryInfo_powerSave_setCorrectly()
[all …]
DBatteryHeaderPreferenceControllerTest.java85 private BatteryMeterView mBatteryMeterView; field in BatteryHeaderPreferenceControllerTest
100 mBatteryMeterView = new BatteryMeterView(mContext); in setUp()
124 mController.mBatteryMeterView = mBatteryMeterView; in setUp()
162 assertThat(mBatteryMeterView.mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in updatePreference_updateBatteryInfo()
163 assertThat(mBatteryMeterView.mDrawable.getCharging()).isEqualTo(false); in updatePreference_updateBatteryInfo()
193 assertThat(mBatteryMeterView.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in quickUpdateHeaderPreference_onlyUpdateBatteryLevelAndChargingState()
194 assertThat(mBatteryMeterView.getCharging()).isTrue(); in quickUpdateHeaderPreference_onlyUpdateBatteryLevelAndChargingState()
208 assertThat(mBatteryMeterView.getPowerSave()).isEqualTo(value); in quickUpdateHeaderPreference_showPowerSave()
DPowerUsageSummaryTest.java140 private BatteryMeterView mBatteryMeterView; field in PowerUsageSummaryTest
155 mBatteryMeterView = new BatteryMeterView(mRealContext); in setUp()
156 mBatteryMeterView.mDrawable = new BatteryMeterView.BatteryMeterDrawable(mRealContext, 0); in setUp()
178 .thenReturn(mBatteryMeterView); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceController.java53 BatteryMeterView mBatteryMeterView; field in BatteryHeaderPreferenceController
87 mBatteryMeterView = mBatteryLayoutPref in displayPreference()
116 mBatteryMeterView.setBatteryLevel(info.batteryLevel); in updateHeaderPreference()
117 mBatteryMeterView.setCharging(!info.discharging); in updateHeaderPreference()
118 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in updateHeaderPreference()
129 mBatteryMeterView.setBatteryLevel(batteryLevel); in quickUpdateHeaderPreference()
130 mBatteryMeterView.setCharging(!discharging); in quickUpdateHeaderPreference()
131 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in quickUpdateHeaderPreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryHeaderPreferenceController.java53 BatteryMeterView mBatteryMeterView; field in BatteryHeaderPreferenceController
89 mBatteryMeterView = mBatteryLayoutPref in displayPreference()
122 mBatteryMeterView.setBatteryLevel(info.batteryLevel); in updateHeaderPreference()
123 mBatteryMeterView.setCharging(!info.discharging); in updateHeaderPreference()
124 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in updateHeaderPreference()
135 mBatteryMeterView.setBatteryLevel(batteryLevel); in quickUpdateHeaderPreference()
136 mBatteryMeterView.setCharging(!discharging); in quickUpdateHeaderPreference()
137 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in quickUpdateHeaderPreference()