Searched refs:mBatteryMeterView (Results 1 – 5 of 5) sorted by relevance
49 private BatteryMeterView mBatteryMeterView; field in BatteryMeterViewTest57 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 …]
85 private BatteryMeterView mBatteryMeterView; field in BatteryHeaderPreferenceControllerTest100 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()
140 private BatteryMeterView mBatteryMeterView; field in PowerUsageSummaryTest155 mBatteryMeterView = new BatteryMeterView(mRealContext); in setUp()156 mBatteryMeterView.mDrawable = new BatteryMeterView.BatteryMeterDrawable(mRealContext, 0); in setUp()178 .thenReturn(mBatteryMeterView); in setUp()
53 BatteryMeterView mBatteryMeterView; field in BatteryHeaderPreferenceController87 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()
53 BatteryMeterView mBatteryMeterView; field in BatteryHeaderPreferenceController89 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()