Files
rr3-apk/decompiled-community/sources/com/google/android/gms/internal/ads/zzbb.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

435 lines
13 KiB
Java

package com.google.android.gms.internal.ads;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import com.vungle.ads.internal.signals.SignalKey;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* loaded from: classes3.dex */
public final class zzbb {
public static final /* synthetic */ int zza = 0;
private static final ArrayList zzb = new ArrayList();
private static final Pattern zzc = Pattern.compile("^mp4a\\.([a-zA-Z0-9]{2})(?:\\.([0-9]{1,2}))?$");
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
public static int zza(String str, @Nullable String str2) {
char c;
zzba zzc2;
switch (str.hashCode()) {
case -2123537834:
if (str.equals(MimeTypes.AUDIO_E_AC3_JOC)) {
c = 4;
break;
}
c = 65535;
break;
case -1365340241:
if (str.equals(MimeTypes.AUDIO_DTS_EXPRESS)) {
c = '\b';
break;
}
c = 65535;
break;
case -1095064472:
if (str.equals(MimeTypes.AUDIO_DTS)) {
c = 6;
break;
}
c = 65535;
break;
case -53558318:
if (str.equals(MimeTypes.AUDIO_AAC)) {
c = 1;
break;
}
c = 65535;
break;
case 187078296:
if (str.equals(MimeTypes.AUDIO_AC3)) {
c = 2;
break;
}
c = 65535;
break;
case 187078297:
if (str.equals("audio/ac4")) {
c = 5;
break;
}
c = 65535;
break;
case 550520934:
if (str.equals("audio/vnd.dts.uhd;profile=p2")) {
c = '\t';
break;
}
c = 65535;
break;
case 1504578661:
if (str.equals(MimeTypes.AUDIO_E_AC3)) {
c = 3;
break;
}
c = 65535;
break;
case 1504831518:
if (str.equals(MimeTypes.AUDIO_MPEG)) {
c = 0;
break;
}
c = 65535;
break;
case 1504891608:
if (str.equals(MimeTypes.AUDIO_OPUS)) {
c = 11;
break;
}
c = 65535;
break;
case 1505942594:
if (str.equals(MimeTypes.AUDIO_DTS_HD)) {
c = 7;
break;
}
c = 65535;
break;
case 1556697186:
if (str.equals(MimeTypes.AUDIO_TRUEHD)) {
c = '\n';
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
switch (c) {
case 0:
return 9;
case 1:
if (str2 == null || (zzc2 = zzc(str2)) == null) {
return 0;
}
return zzc2.zza();
case 2:
return 5;
case 3:
return 6;
case 4:
return 18;
case 5:
return 17;
case 6:
return 7;
case 7:
case '\b':
return 8;
case '\t':
return 30;
case '\n':
return 14;
case 11:
return 20;
default:
return 0;
}
}
public static int zzb(@Nullable String str) {
if (TextUtils.isEmpty(str)) {
return -1;
}
if (zzg(str)) {
return 1;
}
if (zzi(str)) {
return 2;
}
if ("text".equals(zzj(str)) || "application/x-media3-cues".equals(str) || MimeTypes.APPLICATION_CEA608.equals(str) || MimeTypes.APPLICATION_CEA708.equals(str) || MimeTypes.APPLICATION_MP4CEA608.equals(str) || MimeTypes.APPLICATION_SUBRIP.equals(str) || MimeTypes.APPLICATION_TTML.equals(str) || MimeTypes.APPLICATION_TX3G.equals(str) || MimeTypes.APPLICATION_MP4VTT.equals(str) || MimeTypes.APPLICATION_RAWCC.equals(str) || MimeTypes.APPLICATION_VOBSUB.equals(str) || MimeTypes.APPLICATION_PGS.equals(str) || MimeTypes.APPLICATION_DVBSUBS.equals(str)) {
return 3;
}
if (zzh(str)) {
return 4;
}
if (MimeTypes.APPLICATION_ID3.equals(str) || MimeTypes.APPLICATION_EMSG.equals(str) || MimeTypes.APPLICATION_SCTE35.equals(str) || "application/x-icy".equals(str) || "application/vnd.dvb.ait".equals(str)) {
return 5;
}
if (MimeTypes.APPLICATION_CAMERA_MOTION.equals(str)) {
return 6;
}
int size = zzb.size();
for (int i = 0; i < size; i++) {
String str2 = ((zzaz) zzb.get(i)).zza;
if (str.equals(null)) {
return 0;
}
}
return -1;
}
@Nullable
@VisibleForTesting
public static zzba zzc(String str) {
Matcher matcher = zzc.matcher(str);
if (!matcher.matches()) {
return null;
}
String group = matcher.group(1);
group.getClass();
String group2 = matcher.group(2);
try {
return new zzba(Integer.parseInt(group, 16), group2 != null ? Integer.parseInt(group2) : 0);
} catch (NumberFormatException unused) {
return null;
}
}
@Nullable
public static String zzd(int i) {
if (i == 32) {
return MimeTypes.VIDEO_MP4V;
}
if (i == 33) {
return "video/avc";
}
if (i == 35) {
return "video/hevc";
}
if (i == 64) {
return MimeTypes.AUDIO_AAC;
}
if (i == 163) {
return MimeTypes.VIDEO_VC1;
}
if (i == 177) {
return MimeTypes.VIDEO_VP9;
}
if (i == 221) {
return MimeTypes.AUDIO_VORBIS;
}
if (i == 165) {
return MimeTypes.AUDIO_AC3;
}
if (i == 166) {
return MimeTypes.AUDIO_E_AC3;
}
switch (i) {
case 96:
case 97:
case 98:
case 99:
case 100:
case 101:
return MimeTypes.VIDEO_MPEG2;
case 102:
case 103:
case 104:
return MimeTypes.AUDIO_AAC;
case 105:
case SignalKey.EVENT_ID /* 107 */:
return MimeTypes.AUDIO_MPEG;
case 106:
return MimeTypes.VIDEO_MPEG;
case 108:
return "image/jpeg";
default:
switch (i) {
case 169:
case 172:
return MimeTypes.AUDIO_DTS;
case 170:
case 171:
return MimeTypes.AUDIO_DTS_HD;
case 173:
return MimeTypes.AUDIO_OPUS;
case 174:
return "audio/ac4";
default:
return null;
}
}
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
public static String zze(String str) {
char c;
if (str == null) {
return null;
}
String zza2 = zzftt.zza(str);
switch (zza2.hashCode()) {
case -1007807498:
if (zza2.equals("audio/x-flac")) {
c = 0;
break;
}
c = 65535;
break;
case -979095690:
if (zza2.equals("application/x-mpegurl")) {
c = 3;
break;
}
c = 65535;
break;
case -586683234:
if (zza2.equals("audio/x-wav")) {
c = 2;
break;
}
c = 65535;
break;
case -432836268:
if (zza2.equals("audio/mpeg-l1")) {
c = 4;
break;
}
c = 65535;
break;
case -432836267:
if (zza2.equals("audio/mpeg-l2")) {
c = 5;
break;
}
c = 65535;
break;
case 187090231:
if (zza2.equals("audio/mp3")) {
c = 1;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
return c != 0 ? c != 1 ? c != 2 ? c != 3 ? c != 4 ? c != 5 ? zza2 : MimeTypes.AUDIO_MPEG_L2 : MimeTypes.AUDIO_MPEG_L1 : MimeTypes.APPLICATION_M3U8 : "audio/wav" : MimeTypes.AUDIO_MPEG : MimeTypes.AUDIO_FLAC;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
public static boolean zzf(@Nullable String str, @Nullable String str2) {
char c;
zzba zzc2;
int zza2;
if (str == null) {
return false;
}
switch (str.hashCode()) {
case -2123537834:
if (str.equals(MimeTypes.AUDIO_E_AC3_JOC)) {
c = '\t';
break;
}
c = 65535;
break;
case -432837260:
if (str.equals(MimeTypes.AUDIO_MPEG_L1)) {
c = 1;
break;
}
c = 65535;
break;
case -432837259:
if (str.equals(MimeTypes.AUDIO_MPEG_L2)) {
c = 2;
break;
}
c = 65535;
break;
case -53558318:
if (str.equals(MimeTypes.AUDIO_AAC)) {
c = '\n';
break;
}
c = 65535;
break;
case 187078296:
if (str.equals(MimeTypes.AUDIO_AC3)) {
c = 7;
break;
}
c = 65535;
break;
case 187094639:
if (str.equals(MimeTypes.AUDIO_RAW)) {
c = 3;
break;
}
c = 65535;
break;
case 1504578661:
if (str.equals(MimeTypes.AUDIO_E_AC3)) {
c = '\b';
break;
}
c = 65535;
break;
case 1504619009:
if (str.equals(MimeTypes.AUDIO_FLAC)) {
c = 6;
break;
}
c = 65535;
break;
case 1504831518:
if (str.equals(MimeTypes.AUDIO_MPEG)) {
c = 0;
break;
}
c = 65535;
break;
case 1903231877:
if (str.equals(MimeTypes.AUDIO_ALAW)) {
c = 4;
break;
}
c = 65535;
break;
case 1903589369:
if (str.equals(MimeTypes.AUDIO_MLAW)) {
c = 5;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
switch (c) {
case '\n':
if (str2 != null && (zzc2 = zzc(str2)) != null && (zza2 = zzc2.zza()) != 0 && zza2 != 16) {
}
break;
}
return false;
}
public static boolean zzg(@Nullable String str) {
return "audio".equals(zzj(str));
}
public static boolean zzh(@Nullable String str) {
return "image".equals(zzj(str)) || "application/x-image-uri".equals(str);
}
public static boolean zzi(@Nullable String str) {
return "video".equals(zzj(str));
}
@Nullable
private static String zzj(@Nullable String str) {
int indexOf;
if (str == null || (indexOf = str.indexOf(47)) == -1) {
return null;
}
return str.substring(0, indexOf);
}
}