Files
rr3-apk/decompiled/sources/com/google/android/exoplayer2/metadata/id3/ChapterTocFrame.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

70 lines
2.9 KiB
Java

package com.google.android.exoplayer2.metadata.id3;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.exoplayer2.util.Util;
import com.ironsource.mediationsdk.logger.IronSourceError;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class ChapterTocFrame extends Id3Frame {
public static final Parcelable.Creator<ChapterTocFrame> CREATOR = new Parcelable.Creator() { // from class: com.google.android.exoplayer2.metadata.id3.ChapterTocFrame.1
@Override // android.os.Parcelable.Creator
public ChapterTocFrame createFromParcel(Parcel parcel) {
return new ChapterTocFrame(parcel);
}
@Override // android.os.Parcelable.Creator
public ChapterTocFrame[] newArray(int i) {
return new ChapterTocFrame[i];
}
};
public final String[] children;
public final String elementId;
public final boolean isOrdered;
public final boolean isRoot;
public final Id3Frame[] subFrames;
public ChapterTocFrame(Parcel parcel) {
super(com.mbridge.msdk.playercommon.exoplayer2.metadata.id3.ChapterTocFrame.ID);
this.elementId = (String) Util.castNonNull(parcel.readString());
this.isRoot = parcel.readByte() != 0;
this.isOrdered = parcel.readByte() != 0;
this.children = (String[]) Util.castNonNull(parcel.createStringArray());
int readInt = parcel.readInt();
this.subFrames = new Id3Frame[readInt];
for (int i = 0; i < readInt; i++) {
this.subFrames[i] = (Id3Frame) parcel.readParcelable(Id3Frame.class.getClassLoader());
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || ChapterTocFrame.class != obj.getClass()) {
return false;
}
ChapterTocFrame chapterTocFrame = (ChapterTocFrame) obj;
return this.isRoot == chapterTocFrame.isRoot && this.isOrdered == chapterTocFrame.isOrdered && Util.areEqual(this.elementId, chapterTocFrame.elementId) && Arrays.equals(this.children, chapterTocFrame.children) && Arrays.equals(this.subFrames, chapterTocFrame.subFrames);
}
public int hashCode() {
int i = (((IronSourceError.ERROR_NON_EXISTENT_INSTANCE + (this.isRoot ? 1 : 0)) * 31) + (this.isOrdered ? 1 : 0)) * 31;
String str = this.elementId;
return i + (str != null ? str.hashCode() : 0);
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(this.elementId);
parcel.writeByte(this.isRoot ? (byte) 1 : (byte) 0);
parcel.writeByte(this.isOrdered ? (byte) 1 : (byte) 0);
parcel.writeStringArray(this.children);
parcel.writeInt(this.subFrames.length);
for (Id3Frame id3Frame : this.subFrames) {
parcel.writeParcelable(id3Frame, 0);
}
}
}