Package org.robolectric.shadows
Class ShadowBatteryManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowBatteryManager
-
@Implements(android.os.BatteryManager.class) public class ShadowBatteryManager extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowBatteryManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetIntProperty(int id)protected longgetLongProperty(int id)protected booleanisCharging()voidsetIntProperty(int id, int value)voidsetIsCharging(boolean charging)voidsetLongProperty(int id, long value)
-
-
-
Method Detail
-
isCharging
@Implementation(minSdk=23) protected boolean isCharging()
-
setIsCharging
public void setIsCharging(boolean charging)
-
getIntProperty
@Implementation(minSdk=21) protected int getIntProperty(int id)
-
setIntProperty
public void setIntProperty(int id, int value)
-
getLongProperty
@Implementation(minSdk=21) protected long getLongProperty(int id)
-
setLongProperty
public void setLongProperty(int id, long value)
-
-