@Implements(value=android.os.BatteryManager.class) public class ShadowBatteryManager extends Object
Constructor and Description |
---|
ShadowBatteryManager() |
Modifier and Type | Method and Description |
---|---|
protected int |
getIntProperty(int id) |
protected long |
getLongProperty(int id) |
protected boolean |
isCharging() |
void |
setIntProperty(int id,
int value) |
void |
setIsCharging(boolean charging) |
void |
setLongProperty(int id,
long value) |
@Implementation(minSdk=23) protected boolean isCharging()
public void setIsCharging(boolean charging)
@Implementation(minSdk=21) protected int getIntProperty(int id)
public void setIntProperty(int id, int value)
@Implementation(minSdk=21) protected long getLongProperty(int id)
public void setLongProperty(int id, long value)