package com.mediatek.extservice;

import a.b.c.a.a;
import android.os.Parcel;
import android.os.Parcelable;

/* JADX INFO: loaded from: classes.dex */
public final class AdcSettingParams implements Parcelable {
    public static final Parcelable.Creator<AdcSettingParams> CREATOR = new Parcelable.Creator<AdcSettingParams>() { // from class: com.mediatek.extservice.AdcSettingParams.1
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public AdcSettingParams createFromParcel(Parcel parcel) {
            return new AdcSettingParams(parcel);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public AdcSettingParams[] newArray(int i2) {
            return new AdcSettingParams[i2];
        }
    };
    private static final String TAG = "MTK_AdcSettingParams";
    private boolean bAutoTune;
    private int mBGain;
    private int mBOffset;
    private int mGGain;
    private int mGOffset;
    private int mPhase;
    private int mRGain;
    private int mROffset;

    public AdcSettingParams() {
        this.mRGain = 0;
        this.mGGain = 0;
        this.mBGain = 0;
        this.mROffset = 0;
        this.mGOffset = 0;
        this.mBOffset = 0;
        this.mPhase = 0;
        this.bAutoTune = false;
    }

    public AdcSettingParams(int i2, int i3, int i4, int i5, int i6, int i7, int i8, boolean z) {
        this.mRGain = 0;
        this.mGGain = 0;
        this.mBGain = 0;
        this.mROffset = 0;
        this.mGOffset = 0;
        this.mBOffset = 0;
        this.mPhase = 0;
        this.bAutoTune = false;
        this.mRGain = i2;
        this.mGGain = i3;
        this.mBGain = i4;
        this.mROffset = i5;
        this.mGOffset = i6;
        this.mBOffset = i7;
        this.mPhase = i8;
        this.bAutoTune = z;
    }

    private AdcSettingParams(Parcel parcel) {
        this.mRGain = 0;
        this.mGGain = 0;
        this.mBGain = 0;
        this.mROffset = 0;
        this.mGOffset = 0;
        this.mBOffset = 0;
        this.mPhase = 0;
        this.bAutoTune = false;
        readFromParcel(parcel);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean getAutoTune() {
        return this.bAutoTune;
    }

    public int getBGain() {
        return this.mBGain;
    }

    public int getBOffset() {
        return this.mBOffset;
    }

    public int getGGain() {
        return this.mGGain;
    }

    public int getGOffset() {
        return this.mGOffset;
    }

    public int getPhase() {
        return this.mPhase;
    }

    public int getRGain() {
        return this.mRGain;
    }

    public int getROffset() {
        return this.mROffset;
    }

    public void readFromParcel(Parcel parcel) {
        this.mRGain = parcel.readInt();
        this.mGGain = parcel.readInt();
        this.mBGain = parcel.readInt();
        this.mROffset = parcel.readInt();
        this.mGOffset = parcel.readInt();
        this.mBOffset = parcel.readInt();
        this.mPhase = parcel.readInt();
        this.bAutoTune = parcel.readInt() == 1;
    }

    public void setAutoTune(boolean z) {
        this.bAutoTune = z;
    }

    public void setBGain(int i2) {
        this.mBGain = i2;
    }

    public void setBOffset(int i2) {
        this.mBOffset = i2;
    }

    public void setGGain(int i2) {
        this.mGGain = i2;
    }

    public void setGOffset(int i2) {
        this.mGOffset = i2;
    }

    public void setPhase(int i2) {
        this.mPhase = i2;
    }

    public void setRGain(int i2) {
        this.mRGain = i2;
    }

    public void setROffset(int i2) {
        this.mROffset = i2;
    }

    public String toString() {
        StringBuilder sbC = a.C("AdcSettingParams{mRGain=");
        sbC.append(this.mRGain);
        sbC.append(", mGGain=");
        sbC.append(this.mGGain);
        sbC.append(", mBGain=");
        sbC.append(this.mBGain);
        sbC.append(", mROffset=");
        sbC.append(this.mROffset);
        sbC.append(", mGOffset=");
        sbC.append(this.mGOffset);
        sbC.append(", mBOffset=");
        sbC.append(this.mBOffset);
        sbC.append(", mPhase=");
        sbC.append(this.mPhase);
        sbC.append(", bAutoTune=");
        return a.w(sbC, this.bAutoTune, '}');
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeInt(this.mRGain);
        parcel.writeInt(this.mGGain);
        parcel.writeInt(this.mBGain);
        parcel.writeInt(this.mROffset);
        parcel.writeInt(this.mGOffset);
        parcel.writeInt(this.mBOffset);
        parcel.writeInt(this.mPhase);
        parcel.writeInt(this.bAutoTune ? 1 : 0);
    }
}
