- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
94 lines
3.0 KiB
Java
94 lines
3.0 KiB
Java
package com.mbridge.msdk.playercommon.exoplayer2.source;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.annotation.Nullable;
|
|
import com.ironsource.mediationsdk.logger.IronSourceError;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.Format;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.util.Assertions;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class TrackGroup implements Parcelable {
|
|
public static final Parcelable.Creator<TrackGroup> CREATOR = new Parcelable.Creator<TrackGroup>() { // from class: com.mbridge.msdk.playercommon.exoplayer2.source.TrackGroup.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public TrackGroup createFromParcel(Parcel parcel) {
|
|
return new TrackGroup(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public TrackGroup[] newArray(int i) {
|
|
return new TrackGroup[i];
|
|
}
|
|
};
|
|
private final Format[] formats;
|
|
private int hashCode;
|
|
public final int length;
|
|
|
|
@Override // android.os.Parcelable
|
|
public final int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public TrackGroup(Format... formatArr) {
|
|
Assertions.checkState(formatArr.length > 0);
|
|
this.formats = formatArr;
|
|
this.length = formatArr.length;
|
|
}
|
|
|
|
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 final Format getFormat(int i) {
|
|
return this.formats[i];
|
|
}
|
|
|
|
public final int indexOf(Format format) {
|
|
int i = 0;
|
|
while (true) {
|
|
Format[] formatArr = this.formats;
|
|
if (i >= formatArr.length) {
|
|
return -1;
|
|
}
|
|
if (format == formatArr[i]) {
|
|
return i;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
|
|
public final int hashCode() {
|
|
if (this.hashCode == 0) {
|
|
this.hashCode = IronSourceError.ERROR_NON_EXISTENT_INSTANCE + Arrays.hashCode(this.formats);
|
|
}
|
|
return this.hashCode;
|
|
}
|
|
|
|
public final boolean equals(@Nullable 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 final void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeInt(this.length);
|
|
for (int i2 = 0; i2 < this.length; i2++) {
|
|
parcel.writeParcelable(this.formats[i2], 0);
|
|
}
|
|
}
|
|
}
|