Home
last modified time | relevance | path

Searched refs:setBatteryLevel (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java92 public void setBatteryLevel(int level) { in setBatteryLevel() method in BatterySaverStateMachineTest.Device
226 mDevice.setBatteryLevel(90); in testNoAutoBatterySaver()
232 mDevice.setBatteryLevel(50); in testNoAutoBatterySaver()
238 mDevice.setBatteryLevel(16); in testNoAutoBatterySaver()
246 mDevice.setBatteryLevel(15); in testNoAutoBatterySaver()
252 mDevice.setBatteryLevel(10); in testNoAutoBatterySaver()
265 mDevice.setBatteryLevel(50); in testNoAutoBatterySaver()
278 mDevice.setBatteryLevel(60); in testNoAutoBatterySaver()
291 mDevice.setBatteryLevel(10); in testNoAutoBatterySaver()
297 mDevice.setBatteryLevel(80); in testNoAutoBatterySaver()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DBatteryMeterDrawableTest.java56 mBatteryMeter.setBatteryLevel(0); in testDrawImageButNoTextIfPluggedIn()
66 mBatteryMeter.setBatteryLevel(0); in testDrawTextIfNotPluggedIn()
75 mBatteryMeter.setBatteryLevel(0); in testDrawNoTextIfPowerSaveEnabled()
87 mBatteryMeter.setBatteryLevel(criticalLevel); in testDrawTextWarningAtCriticalLevel()
99 mBatteryMeter.setBatteryLevel(criticalLevel + 1); in testDrawTextNoWarningAboveCriticalLevel()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java61 mBatteryMeterDrawableBase.setBatteryLevel(3); in testDraw_hasPaddingAndBounds_drawWarningInCorrectPosition()
74 mBatteryMeterDrawableBase.setBatteryLevel(20); in testDraw_hasPaddingAndBounds_drawBatteryLevelInCorrectPosition()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java118 setBatteryLevel(batteryLevel); in BatteryMeterDrawable()
DThemedBatteryDrawable.kt315 public open fun setBatteryLevel(l: Int) { in <lambda>() method
DBatteryMeterDrawableBase.java199 public void setBatteryLevel(int val) { in setBatteryLevel() method in BatteryMeterDrawableBase
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java66 mBatteryDrawable.setBatteryLevel(l); in testDrawingForTypicalValues()
/frameworks/base/core/java/android/hardware/display/
DBrightnessChangeEvent.java253 public Builder setBatteryLevel(float batteryLevel) { in setBatteryLevel() method in BrightnessChangeEvent.Builder
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java321 mDrawable.setBatteryLevel(level); in onBatteryLevelChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java638 builder.setBatteryLevel(0.7f); in testParcelUnParcel()
669 builder.setBatteryLevel(Float.NaN); in testParcelUnParcel()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java366 builder.setBatteryLevel(mLastBatteryLevel); in handleBrightnessChanged()
634 builder.setBatteryLevel(Float.parseFloat(batteryLevel)); in readEventsLocked()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt22587 Landroid/hardware/display/BrightnessChangeEvent$Builder;->setBatteryLevel(F)Landroid/hardware/displ…