Package org.robolectric.shadows
Class ShadowBatteryManager
java.lang.Object
org.robolectric.shadows.ShadowBatteryManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getIntProperty
(int id) protected long
getLongProperty
(int id) protected boolean
void
setIntProperty
(int id, int value) void
setIsCharging
(boolean charging) void
setLongProperty
(int id, long value)
-
Constructor Details
-
ShadowBatteryManager
public ShadowBatteryManager()
-
-
Method Details
-
isCharging
-
setIsCharging
public void setIsCharging(boolean charging) -
getIntProperty
-
setIntProperty
public void setIntProperty(int id, int value) -
getLongProperty
-
setLongProperty
public void setLongProperty(int id, long value)
-