Home
last modified time | relevance | path

Searched refs:BATTERY_LEVEL (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceControllerTest.java69 private static final int BATTERY_LEVEL = 60; field in BatteryHeaderPreferenceControllerTest
105 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()
DBatteryMeterViewTest.java38 private static final int BATTERY_LEVEL = 100; field in BatteryMeterViewTest
70 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()
DBatteryBroadcastReceiverTest.java90 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in testOnReceive_batteryLevelChanged_dataUpdated()
DPowerUsageSummaryTest.java189 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_LEVEL); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiver.java62 BatteryUpdateType.BATTERY_LEVEL,
69 int BATTERY_LEVEL = 1; field
126 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in updateBatteryStatus()
DPowerUsageSummary.java228 && refreshType != BatteryUpdateType.BATTERY_LEVEL) { in refreshUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceControllerTest.java62 private static final double BATTERY_LEVEL = 60; field in AppBatteryPreferenceControllerTest
147 doReturn(BATTERY_LEVEL).when(mBatteryUtils).calculateBatteryPercent(anyDouble(), in updateBattery_hasBatteryStats_summaryPercent()