Files
rr3-apk/decompiled-community/sources/com/google/android/gms/internal/ads/zzauw.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

224 lines
8.1 KiB
Java

package com.google.android.gms.internal.ads;
import android.app.Activity;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.View;
import androidx.annotation.Nullable;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
/* loaded from: classes3.dex */
public abstract class zzauw implements zzauv {
protected static volatile zzawd zza;
protected MotionEvent zzb;
protected double zzk;
protected float zzl;
protected float zzm;
protected float zzn;
protected float zzo;
protected DisplayMetrics zzq;
@Nullable
protected zzavv zzr;
private double zzs;
private double zzt;
protected final LinkedList zzc = new LinkedList();
protected long zzd = 0;
protected long zze = 0;
protected long zzf = 0;
protected long zzg = 0;
protected long zzh = 0;
protected long zzi = 0;
protected long zzj = 0;
private boolean zzu = false;
protected boolean zzp = false;
public zzauw(Context context) {
try {
zzaty.zze();
this.zzq = context.getResources().getDisplayMetrics();
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzcT)).booleanValue()) {
this.zzr = new zzavv();
}
} catch (Throwable unused) {
}
}
private final void zzm() {
this.zzh = 0L;
this.zzd = 0L;
this.zze = 0L;
this.zzf = 0L;
this.zzg = 0L;
this.zzi = 0L;
this.zzj = 0L;
if (this.zzc.isEmpty()) {
MotionEvent motionEvent = this.zzb;
if (motionEvent != null) {
motionEvent.recycle();
}
} else {
Iterator it = this.zzc.iterator();
while (it.hasNext()) {
((MotionEvent) it.next()).recycle();
}
this.zzc.clear();
}
this.zzb = null;
}
/* JADX WARN: Removed duplicated region for block: B:40:0x00a7 A[EXC_TOP_SPLITTER, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:60:0x0084 */
/* JADX WARN: Removed duplicated region for block: B:62:0x0089 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final java.lang.String zzp(android.content.Context r20, java.lang.String r21, int r22, android.view.View r23, android.app.Activity r24, byte[] r25) {
/*
Method dump skipped, instructions count: 279
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzauw.zzp(android.content.Context, java.lang.String, int, android.view.View, android.app.Activity, byte[]):java.lang.String");
}
public abstract long zza(StackTraceElement[] stackTraceElementArr) throws zzavt;
public abstract zzasc zzb(Context context, View view, Activity activity);
public abstract zzasc zzc(Context context, zzarp zzarpVar);
@Override // com.google.android.gms.internal.ads.zzauv
public final String zzd(Context context, @Nullable String str, @Nullable View view) {
return zzp(context, str, 3, view, null, null);
}
@Override // com.google.android.gms.internal.ads.zzauv
public final String zze(Context context, @Nullable String str, @Nullable View view, @Nullable Activity activity) {
return zzp(context, str, 3, view, activity, null);
}
@Override // com.google.android.gms.internal.ads.zzauv
public final String zzf(Context context) {
if (zzawg.zzc()) {
throw new IllegalStateException("The caller must not be called from the UI thread.");
}
return zzp(context, null, 1, null, null, null);
}
@Override // com.google.android.gms.internal.ads.zzauv
public final String zzg(Context context) {
return "19";
}
@Override // com.google.android.gms.internal.ads.zzauv
public final String zzh(Context context, @Nullable View view, @Nullable Activity activity) {
return zzp(context, null, 2, view, activity, null);
}
public abstract zzasc zzi(Context context, View view, Activity activity);
public abstract zzawf zzj(MotionEvent motionEvent) throws zzavt;
@Override // com.google.android.gms.internal.ads.zzauv
public final synchronized void zzk(@Nullable MotionEvent motionEvent) {
Long l;
try {
if (this.zzu) {
zzm();
this.zzu = false;
}
int action = motionEvent.getAction();
if (action == 0) {
this.zzk = 0.0d;
this.zzs = motionEvent.getRawX();
this.zzt = motionEvent.getRawY();
} else if (action == 1 || action == 2) {
double rawX = motionEvent.getRawX();
double rawY = motionEvent.getRawY();
double d = rawX - this.zzs;
double d2 = rawY - this.zzt;
this.zzk += Math.sqrt((d * d) + (d2 * d2));
this.zzs = rawX;
this.zzt = rawY;
}
int action2 = motionEvent.getAction();
if (action2 != 0) {
try {
if (action2 == 1) {
MotionEvent obtain = MotionEvent.obtain(motionEvent);
this.zzb = obtain;
this.zzc.add(obtain);
if (this.zzc.size() > 6) {
((MotionEvent) this.zzc.remove()).recycle();
}
this.zzf++;
this.zzh = zza(new Throwable().getStackTrace());
} else if (action2 == 2) {
this.zze += motionEvent.getHistorySize() + 1;
zzawf zzj = zzj(motionEvent);
Long l2 = zzj.zzd;
if (l2 != null && zzj.zzg != null) {
this.zzi += l2.longValue() + zzj.zzg.longValue();
}
if (this.zzq != null && (l = zzj.zze) != null && zzj.zzh != null) {
this.zzj += l.longValue() + zzj.zzh.longValue();
}
} else if (action2 == 3) {
this.zzg++;
}
} catch (zzavt unused) {
}
} else {
this.zzl = motionEvent.getX();
this.zzm = motionEvent.getY();
this.zzn = motionEvent.getRawX();
this.zzo = motionEvent.getRawY();
this.zzd++;
}
this.zzp = true;
} catch (Throwable th) {
throw th;
}
}
@Override // com.google.android.gms.internal.ads.zzauv
public final synchronized void zzl(int i, int i2, int i3) {
try {
if (this.zzb != null) {
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzcE)).booleanValue()) {
zzm();
} else {
this.zzb.recycle();
}
}
DisplayMetrics displayMetrics = this.zzq;
if (displayMetrics != null) {
float f = displayMetrics.density;
this.zzb = MotionEvent.obtain(0L, i3, 1, i * f, i2 * f, 0.0f, 0.0f, 0, 0.0f, 0.0f, 0, 0);
} else {
this.zzb = null;
}
this.zzp = false;
} catch (Throwable th) {
throw th;
}
}
@Override // com.google.android.gms.internal.ads.zzauv
public final void zzn(StackTraceElement[] stackTraceElementArr) {
zzavv zzavvVar;
if (!((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzcT)).booleanValue() || (zzavvVar = this.zzr) == null) {
return;
}
zzavvVar.zzb(Arrays.asList(stackTraceElementArr));
}
@Override // com.google.android.gms.internal.ads.zzauv
public void zzo(View view) {
}
}