- 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.8 KiB
Java
94 lines
3.8 KiB
Java
package com.google.android.exoplayer2.offline;
|
|
|
|
import android.net.Uri;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.facebook.internal.security.CertificateUtil;
|
|
import com.google.android.exoplayer2.util.Util;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class DownloadRequest implements Parcelable {
|
|
public static final Parcelable.Creator<DownloadRequest> CREATOR = new Parcelable.Creator() { // from class: com.google.android.exoplayer2.offline.DownloadRequest.1
|
|
@Override // android.os.Parcelable.Creator
|
|
public DownloadRequest createFromParcel(Parcel parcel) {
|
|
return new DownloadRequest(parcel);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public DownloadRequest[] newArray(int i) {
|
|
return new DownloadRequest[i];
|
|
}
|
|
};
|
|
public final String customCacheKey;
|
|
public final byte[] data;
|
|
public final String id;
|
|
public final byte[] keySetId;
|
|
public final String mimeType;
|
|
public final List streamKeys;
|
|
public final Uri uri;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public DownloadRequest(Parcel parcel) {
|
|
this.id = (String) Util.castNonNull(parcel.readString());
|
|
this.uri = Uri.parse((String) Util.castNonNull(parcel.readString()));
|
|
this.mimeType = parcel.readString();
|
|
int readInt = parcel.readInt();
|
|
ArrayList arrayList = new ArrayList(readInt);
|
|
for (int i = 0; i < readInt; i++) {
|
|
arrayList.add((StreamKey) parcel.readParcelable(StreamKey.class.getClassLoader()));
|
|
}
|
|
this.streamKeys = Collections.unmodifiableList(arrayList);
|
|
this.keySetId = parcel.createByteArray();
|
|
this.customCacheKey = parcel.readString();
|
|
this.data = (byte[]) Util.castNonNull(parcel.createByteArray());
|
|
}
|
|
|
|
public String toString() {
|
|
String str = this.mimeType;
|
|
String str2 = this.id;
|
|
StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 1 + String.valueOf(str2).length());
|
|
sb.append(str);
|
|
sb.append(CertificateUtil.DELIMITER);
|
|
sb.append(str2);
|
|
return sb.toString();
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (!(obj instanceof DownloadRequest)) {
|
|
return false;
|
|
}
|
|
DownloadRequest downloadRequest = (DownloadRequest) obj;
|
|
return this.id.equals(downloadRequest.id) && this.uri.equals(downloadRequest.uri) && Util.areEqual(this.mimeType, downloadRequest.mimeType) && this.streamKeys.equals(downloadRequest.streamKeys) && Arrays.equals(this.keySetId, downloadRequest.keySetId) && Util.areEqual(this.customCacheKey, downloadRequest.customCacheKey) && Arrays.equals(this.data, downloadRequest.data);
|
|
}
|
|
|
|
public final int hashCode() {
|
|
int hashCode = ((this.id.hashCode() * 961) + this.uri.hashCode()) * 31;
|
|
String str = this.mimeType;
|
|
int hashCode2 = (((((hashCode + (str != null ? str.hashCode() : 0)) * 31) + this.streamKeys.hashCode()) * 31) + Arrays.hashCode(this.keySetId)) * 31;
|
|
String str2 = this.customCacheKey;
|
|
return ((hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31) + Arrays.hashCode(this.data);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeString(this.id);
|
|
parcel.writeString(this.uri.toString());
|
|
parcel.writeString(this.mimeType);
|
|
parcel.writeInt(this.streamKeys.size());
|
|
for (int i2 = 0; i2 < this.streamKeys.size(); i2++) {
|
|
parcel.writeParcelable((Parcelable) this.streamKeys.get(i2), 0);
|
|
}
|
|
parcel.writeByteArray(this.keySetId);
|
|
parcel.writeString(this.customCacheKey);
|
|
parcel.writeByteArray(this.data);
|
|
}
|
|
}
|