FileDocCategorySizeDatePackage
BatteryManagerInternal.javaAPI DocAndroid 5.1 API1430Thu Mar 12 22:22:10 GMT 2015android.os

BatteryManagerInternal

public abstract class BatteryManagerInternal extends Object
Battery manager local system service interface.
hide
Only for use within the system server.

Fields Summary
Constructors Summary
Methods Summary
public abstract intgetBatteryLevel()
Returns battery level as a percentage.

public abstract booleangetBatteryLevelLow()
Returns whether we currently consider the battery level to be low.

public abstract intgetInvalidCharger()
Returns a non-zero value if an unsupported charger is attached.

public abstract intgetPlugType()
Returns the current plug type.

public abstract booleanisPowered(int plugTypeSet)
Returns true if the device is plugged into any of the specified plug types.