Files
rr3-apk/decompiled/sources/com/google/android/exoplayer2/source/TrackGroup.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

66 lines
2.1 KiB
Java

package com.google.android.exoplayer2.source;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.exoplayer2.Format;
import com.ironsource.mediationsdk.logger.IronSourceError;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class TrackGroup implements Parcelable {
public static final Parcelable.Creator<TrackGroup> CREATOR = new Parcelable.Creator() { // from class: com.google.android.exoplayer2.source.TrackGroup.1
@Override // android.os.Parcelable.Creator
public TrackGroup createFromParcel(Parcel parcel) {
return new TrackGroup(parcel);
}
@Override // android.os.Parcelable.Creator
public TrackGroup[] newArray(int i) {
return new TrackGroup[i];
}
};
public final Format[] formats;
public int hashCode;
public final int length;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public TrackGroup(Parcel parcel) {
int readInt = parcel.readInt();
this.length = readInt;
this.formats = new Format[readInt];
for (int i = 0; i < this.length; i++) {
this.formats[i] = (Format) parcel.readParcelable(Format.class.getClassLoader());
}
}
public int hashCode() {
if (this.hashCode == 0) {
this.hashCode = IronSourceError.ERROR_NON_EXISTENT_INSTANCE + Arrays.hashCode(this.formats);
}
return this.hashCode;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || TrackGroup.class != obj.getClass()) {
return false;
}
TrackGroup trackGroup = (TrackGroup) obj;
return this.length == trackGroup.length && Arrays.equals(this.formats, trackGroup.formats);
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.length);
for (int i2 = 0; i2 < this.length; i2++) {
parcel.writeParcelable(this.formats[i2], 0);
}
}
}