Package org.robolectric.shadows
Class ShadowBatteryManager
java.lang.Object
org.robolectric.shadows.ShadowBatteryManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longprotected intgetIntProperty(int id) protected longgetLongProperty(int id) protected booleanstatic voidreset()voidsetChargeTimeRemaining(long chargeTimeRemaining) Sets the value to be returned fromBatteryManager.computeChargeTimeRemaining()voidsetIntProperty(int id, int value) voidsetIsCharging(boolean charging) voidsetLongProperty(int id, long value)
-
Constructor Details
-
ShadowBatteryManager
public ShadowBatteryManager()
-
-
Method Details
-
reset
-
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) -
computeChargeTimeRemaining
-
setChargeTimeRemaining
public void setChargeTimeRemaining(long chargeTimeRemaining) Sets the value to be returned fromBatteryManager.computeChargeTimeRemaining()
-