package i2; import android.os.Parcel; import android.os.Parcelable; import com.google.android.exoplayer2.u0; import com.google.android.exoplayer2.y0; import g2.a; import g2.b; import java.util.Arrays; import k3.j0; public final class a implements a.b { public static final Parcelable.Creator<a> CREATOR = new C0137a(); /* renamed from: l reason: collision with root package name */ private static final u0 f8023l = new u0.b().e0("application/id3").E(); /* renamed from: m reason: collision with root package name */ private static final u0 f8024m = new u0.b().e0("application/x-scte35").E(); /* renamed from: f reason: collision with root package name */ public final String f8025f; /* renamed from: g reason: collision with root package name */ public final String f8026g; /* renamed from: h reason: collision with root package name */ public final long f8027h; /* renamed from: i reason: collision with root package name */ public final long f8028i; /* renamed from: j reason: collision with root package name */ public final byte[] f8029j; /* renamed from: k reason: collision with root package name */ private int f8030k; /* renamed from: i2.a$a reason: collision with other inner class name */ class C0137a implements Parcelable.Creator<a> { C0137a() { } /* renamed from: a */ public a createFromParcel(Parcel parcel) { return new a(parcel); } /* renamed from: b */ public a[] newArray(int i7) { return new a[i7]; } } public a(String str, String str2, long j7, long j8, byte[] bArr) { this.f8025f = str; this.f8026g = str2; this.f8027h = j7; this.f8028i = j8; this.f8029j = bArr; } @Override // g2.a.b public /* synthetic */ void a(y0.b bVar) { b.c(this, bVar); } @Override // g2.a.b public u0 b() { String str = this.f8025f; str.hashCode(); char c7 = 65535; switch (str.hashCode()) { case -1468477611: if (str.equals("urn:scte:scte35:2014:bin")) { c7 = 0; break; } break; case -795945609: if (str.equals("https://aomedia.org/emsg/ID3")) { c7 = 1; break; } break; case 1303648457: if (str.equals("https://developer.apple.com/streaming/emsg-id3")) { c7 = 2; break; } break; } switch (c7) { case 0: return f8024m; case 1: case 2: return f8023l; default: return null; } } @Override // g2.a.b public byte[] c() { if (b() != null) { return this.f8029j; } return null; } public int describeContents() { return 0; } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || a.class != obj.getClass()) { return false; } a aVar = (a) obj; if (this.f8027h != aVar.f8027h || this.f8028i != aVar.f8028i || !j0.c(this.f8025f, aVar.f8025f) || !j0.c(this.f8026g, aVar.f8026g) || !Arrays.equals(this.f8029j, aVar.f8029j)) { return false; } return true; } public int hashCode() { if (this.f8030k == 0) { String str = this.f8025f; int i7 = 0; int hashCode = (527 + (str != null ? str.hashCode() : 0)) * 31; String str2 = this.f8026g; if (str2 != null) { i7 = str2.hashCode(); } long j7 = this.f8027h; long j8 = this.f8028i; this.f8030k = ((((((hashCode + i7) * 31) + ((int) (j7 ^ (j7 >>> 32)))) * 31) + ((int) (j8 ^ (j8 >>> 32)))) * 31) + Arrays.hashCode(this.f8029j); } return this.f8030k; } public String toString() { return "EMSG: scheme=" + this.f8025f + ", id=" + this.f8028i + ", durationMs=" + this.f8027h + ", value=" + this.f8026g; } public void writeToParcel(Parcel parcel, int i7) { parcel.writeString(this.f8025f); parcel.writeString(this.f8026g); parcel.writeLong(this.f8027h); parcel.writeLong(this.f8028i); parcel.writeByteArray(this.f8029j); } a(Parcel parcel) { this.f8025f = (String) j0.j(parcel.readString()); this.f8026g = (String) j0.j(parcel.readString()); this.f8027h = parcel.readLong(); this.f8028i = parcel.readLong(); this.f8029j = (byte[]) j0.j(parcel.createByteArray()); } }