mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
62 lines
2.2 KiB
Java
62 lines
2.2 KiB
Java
package com.google.android.material.internal;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.util.SparseIntArray;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ParcelableSparseIntArray extends SparseIntArray implements Parcelable {
|
|
public static final Parcelable.Creator<ParcelableSparseIntArray> CREATOR = new Parcelable.Creator<ParcelableSparseIntArray>() { // from class: com.google.android.material.internal.ParcelableSparseIntArray.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ParcelableSparseIntArray createFromParcel(Parcel parcel) {
|
|
int readInt = parcel.readInt();
|
|
ParcelableSparseIntArray parcelableSparseIntArray = new ParcelableSparseIntArray(readInt);
|
|
int[] iArr = new int[readInt];
|
|
int[] iArr2 = new int[readInt];
|
|
parcel.readIntArray(iArr);
|
|
parcel.readIntArray(iArr2);
|
|
for (int i = 0; i < readInt; i++) {
|
|
parcelableSparseIntArray.put(iArr[i], iArr2[i]);
|
|
}
|
|
return parcelableSparseIntArray;
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public ParcelableSparseIntArray[] newArray(int i) {
|
|
return new ParcelableSparseIntArray[i];
|
|
}
|
|
};
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public ParcelableSparseIntArray() {
|
|
}
|
|
|
|
public ParcelableSparseIntArray(int i) {
|
|
super(i);
|
|
}
|
|
|
|
public ParcelableSparseIntArray(SparseIntArray sparseIntArray) {
|
|
for (int i = 0; i < sparseIntArray.size(); i++) {
|
|
put(sparseIntArray.keyAt(i), sparseIntArray.valueAt(i));
|
|
}
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
int[] iArr = new int[size()];
|
|
int[] iArr2 = new int[size()];
|
|
for (int i2 = 0; i2 < size(); i2++) {
|
|
iArr[i2] = keyAt(i2);
|
|
iArr2[i2] = valueAt(i2);
|
|
}
|
|
parcel.writeInt(size());
|
|
parcel.writeIntArray(iArr);
|
|
parcel.writeIntArray(iArr2);
|
|
}
|
|
}
|