package com.dss.tpservice;

import android.graphics.Rect;
import android.os.Parcel;
import android.os.Parcelable;
import android.view.WindowManager;

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

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public WindowInfo[] newArray(int i) {
            return new WindowInfo[i];
        }
    };
    private static final int DISPLAY_ID_DEFAULT = 0;
    private WindowManager.LayoutParams mAttrs;
    private String mBinder;
    private Rect mContentFrame;
    private int mDisplayId;
    private int mLastRequestedHeight;
    private int mLastRequestedWidth;
    private int mRequestedHeight;
    private int mRequestedWidth;
    private int mVisibility;

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

    public WindowInfo() {
        this.mDisplayId = 0;
    }

    protected WindowInfo(Parcel parcel) {
        this.mDisplayId = 0;
        this.mBinder = parcel.readString();
        this.mRequestedWidth = parcel.readInt();
        this.mRequestedHeight = parcel.readInt();
        this.mLastRequestedWidth = parcel.readInt();
        this.mLastRequestedHeight = parcel.readInt();
        this.mVisibility = parcel.readInt();
        this.mAttrs = (WindowManager.LayoutParams) parcel.readParcelable(WindowManager.LayoutParams.class.getClassLoader());
        this.mContentFrame = (Rect) parcel.readParcelable(Rect.class.getClassLoader());
        try {
            this.mDisplayId = parcel.readInt();
        } catch (RuntimeException unused) {
            this.mDisplayId = 0;
        }
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.mBinder);
        parcel.writeInt(this.mRequestedWidth);
        parcel.writeInt(this.mRequestedHeight);
        parcel.writeInt(this.mLastRequestedWidth);
        parcel.writeInt(this.mLastRequestedHeight);
        parcel.writeInt(this.mVisibility);
        parcel.writeParcelable(this.mAttrs, i);
        parcel.writeParcelable(this.mContentFrame, i);
        parcel.writeInt(this.mDisplayId);
    }

    public int getRequestedWidth() {
        return this.mRequestedWidth;
    }

    public void setRequestedWidth(int i) {
        this.mRequestedWidth = i;
    }

    public String getBinder() {
        return this.mBinder;
    }

    public void setBinder(String str) {
        this.mBinder = str;
    }

    public int getRequestedHeight() {
        return this.mRequestedHeight;
    }

    public void setRequestedHeight(int i) {
        this.mRequestedHeight = i;
    }

    public int getLastRequestedWidth() {
        return this.mLastRequestedWidth;
    }

    public void setLastRequestedWidth(int i) {
        this.mLastRequestedWidth = i;
    }

    public int getLastRequestedHeight() {
        return this.mLastRequestedHeight;
    }

    public void setLastRequestedHeight(int i) {
        this.mLastRequestedHeight = i;
    }

    public int getVisibility() {
        return this.mVisibility;
    }

    public void setVisibility(int i) {
        this.mVisibility = i;
    }

    public WindowManager.LayoutParams getAttrs() {
        return this.mAttrs;
    }

    public void setAttrs(WindowManager.LayoutParams layoutParams) {
        this.mAttrs = layoutParams;
    }

    public Rect getContentFrame() {
        return this.mContentFrame;
    }

    public void setContentFrame(Rect rect) {
        this.mContentFrame = rect;
    }

    public int getDisplayId() {
        return this.mDisplayId;
    }

    public void setDisplayId(int i) {
        this.mDisplayId = i;
    }

    public String toString() {
        return "binder:" + this.mBinder + " type:" + this.mAttrs.type + " pkg:" + this.mAttrs.packageName + " Visibility:" + this.mVisibility + " w:" + this.mRequestedWidth + " h:" + this.mRequestedHeight + " left:" + this.mContentFrame.left + " top:" + this.mContentFrame.top + " right:" + this.mContentFrame.right + " bottom:" + this.mContentFrame.bottom + " displayId:" + this.mDisplayId;
    }
}
