package com.epson.mobilephone.common.maintain2;

import android.os.Parcel;
import android.os.Parcelable;

public class BatteryInfoEx implements Parcelable {
    public static final Parcelable.Creator<BatteryInfoEx> CREATOR = new Parcelable.Creator<BatteryInfoEx>() {
        public BatteryInfoEx createFromParcel(Parcel parcel) {
            return new BatteryInfoEx(parcel);
        }

        public BatteryInfoEx[] newArray(int i) {
            return new BatteryInfoEx[i];
        }
    };
    public static final int EPS_BATTERY_FIXED = 1;
    public static final int EPS_BATTERY_REMOVABLE_EXTERNAL = 3;
    public static final int EPS_BATTERY_REMOVABLE_INTEARNAL = 2;
    public static final int EPS_BATTERY_TYPE_UNKNOWN = 0;
    public static final int EPS_CHARGE_STATE_CHARGING = 1;
    public static final int EPS_CHARGE_STATE_NONE = 0;
    public static final int EPS_CHARGE_STATE_NOT_INSERTED = 2;
    public static final int EPS_POWER_SOUECE_AC = 1;
    public static final int EPS_POWER_SOUECE_BATTERY = 2;
    public static final int EPS_POWER_SOUECE_BATTERY2 = 3;
    public static final int EPS_POWER_SOUECE_NOT_SUPPORTED = -1;
    public static final int EPS_POWER_SOUECE_UNKNOWN = 0;
    public int[] batteryRemain;
    public int[] batteryState;
    public int[] batteryType;
    public int number;
    public int powerSourceType;

    public int describeContents() {
        return 0;
    }

    public BatteryInfoEx() {
    }

    private BatteryInfoEx(Parcel parcel) {
        powerSourceType = parcel.readInt();
        number = parcel.readInt();
        batteryType = new int[parcel.readInt()];
        parcel.readIntArray(this.batteryType);
        batteryState = new int[parcel.readInt()];
        parcel.readIntArray(this.batteryState);
        batteryRemain = new int[parcel.readInt()];
        parcel.readIntArray(this.batteryRemain);
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.powerSourceType);
        parcel.writeInt(this.number);
        parcel.writeInt(this.batteryType.length);
        parcel.writeIntArray(this.batteryType);
        parcel.writeInt(this.batteryState.length);
        parcel.writeIntArray(this.batteryState);
        parcel.writeInt(this.batteryRemain.length);
        parcel.writeIntArray(this.batteryRemain);
    }
}
