Searched refs:BATTERY_LEVEL (Results 1 – 7 of 7) sorted by relevance
69 private static final int BATTERY_LEVEL = 60; field in BatteryHeaderPreferenceControllerTest105 mBatteryIntent.putExtra(BatteryManager.EXTRA_LEVEL, BATTERY_LEVEL); in setUp()113 mBatteryInfo.batteryLevel = BATTERY_LEVEL; in setUp()137 verify(mBatteryUsageProgressBarPref).setPercent(BATTERY_LEVEL, BATTERY_MAX_LEVEL); in displayPreference_displayBatteryLevel()157 verify(mBatteryUsageProgressBarPref).setPercent(BATTERY_LEVEL, BATTERY_MAX_LEVEL); in updatePreference_updateBatteryInfo()209 verify(mBatteryUsageProgressBarPref).setPercent(BATTERY_LEVEL, BATTERY_MAX_LEVEL); in updatePreference_triggerBatteryStatusUpdateTrue_updatePercentageAndUsageOnly()220 verify(mBatteryUsageProgressBarPref).setPercent(BATTERY_LEVEL, BATTERY_MAX_LEVEL); in updatePreference_triggerBatteryStatusUpdateFalse_updateBatteryInfo()297 verify(mBatteryUsageProgressBarPref).setPercent(BATTERY_LEVEL, BATTERY_MAX_LEVEL); in quickUpdateHeaderPreference_onlyUpdateBatteryLevelAndChargingState()325 NumberFormat.getIntegerInstance().format(BATTERY_LEVEL)); in formatBatteryPercentageText()
38 private static final int BATTERY_LEVEL = 100; field in BatteryMeterViewTest70 mBatteryMeterView.setBatteryLevel(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()72 assertThat(mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()84 mBatteryMeterView.setBatteryLevel(BATTERY_LEVEL); in testSetBatteryInfo_levelNormal_setNormalColor()
90 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in testOnReceive_batteryLevelChanged_dataUpdated()
189 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_LEVEL); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
62 BatteryUpdateType.BATTERY_LEVEL,69 int BATTERY_LEVEL = 1; field126 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in updateBatteryStatus()
228 && refreshType != BatteryUpdateType.BATTERY_LEVEL) { in refreshUi()
62 private static final double BATTERY_LEVEL = 60; field in AppBatteryPreferenceControllerTest147 doReturn(BATTERY_LEVEL).when(mBatteryUtils).calculateBatteryPercent(anyDouble(), in updateBattery_hasBatteryStats_summaryPercent()