FileDocCategorySizeDatePackage
BatteryProperties.javaAPI DocAndroid 5.1 API3205Thu Mar 12 22:22:10 GMT 2015android.os

BatteryProperties

public class BatteryProperties extends Object implements Parcelable
{@hide}

Fields Summary
public boolean
chargerAcOnline
public boolean
chargerUsbOnline
public boolean
chargerWirelessOnline
public int
batteryStatus
public int
batteryHealth
public boolean
batteryPresent
public int
batteryLevel
public int
batteryVoltage
public int
batteryTemperature
public String
batteryTechnology
public static final Parcelable.Creator
CREATOR
Constructors Summary
public BatteryProperties()

    
private BatteryProperties(Parcel p)

        chargerAcOnline = p.readInt() == 1 ? true : false;
        chargerUsbOnline = p.readInt() == 1 ? true : false;
        chargerWirelessOnline = p.readInt() == 1 ? true : false;
        batteryStatus = p.readInt();
        batteryHealth = p.readInt();
        batteryPresent = p.readInt() == 1 ? true : false;
        batteryLevel = p.readInt();
        batteryVoltage = p.readInt();
        batteryTemperature = p.readInt();
        batteryTechnology = p.readString();
    
Methods Summary
public intdescribeContents()


       
        return 0;
    
public voidset(android.os.BatteryProperties other)

        chargerAcOnline = other.chargerAcOnline;
        chargerUsbOnline = other.chargerUsbOnline;
        chargerWirelessOnline = other.chargerWirelessOnline;
        batteryStatus = other.batteryStatus;
        batteryHealth = other.batteryHealth;
        batteryPresent = other.batteryPresent;
        batteryLevel = other.batteryLevel;
        batteryVoltage = other.batteryVoltage;
        batteryTemperature = other.batteryTemperature;
        batteryTechnology = other.batteryTechnology;
    
public voidwriteToParcel(Parcel p, int flags)

        p.writeInt(chargerAcOnline ? 1 : 0);
        p.writeInt(chargerUsbOnline ? 1 : 0);
        p.writeInt(chargerWirelessOnline ? 1 : 0);
        p.writeInt(batteryStatus);
        p.writeInt(batteryHealth);
        p.writeInt(batteryPresent ? 1 : 0);
        p.writeInt(batteryLevel);
        p.writeInt(batteryVoltage);
        p.writeInt(batteryTemperature);
        p.writeString(batteryTechnology);