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

167 lines
5.5 KiB
Java

package com.google.android.gms.internal.ads;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Bundle;
import androidx.annotation.VisibleForTesting;
import com.facebook.gamingservices.cloudgaming.internal.SDKAnalyticsEvents;
import com.google.android.gms.ads.AdActivity;
/* loaded from: classes3.dex */
public final class zzbzn {
@VisibleForTesting
final String zzf;
private final com.google.android.gms.ads.internal.util.zzg zzk;
@VisibleForTesting
long zza = -1;
@VisibleForTesting
long zzb = -1;
@VisibleForTesting
int zzc = -1;
@VisibleForTesting
int zzd = -1;
@VisibleForTesting
long zze = 0;
private final Object zzj = new Object();
@VisibleForTesting
int zzg = 0;
@VisibleForTesting
int zzh = 0;
@VisibleForTesting
int zzi = 0;
public zzbzn(String str, com.google.android.gms.ads.internal.util.zzg zzgVar) {
this.zzf = str;
this.zzk = zzgVar;
}
private final void zzi() {
if (((Boolean) zzbes.zza.zze()).booleanValue()) {
synchronized (this.zzj) {
this.zzc--;
this.zzd--;
}
}
}
public final int zza() {
int i;
synchronized (this.zzj) {
i = this.zzi;
}
return i;
}
public final Bundle zzb(Context context, String str) {
Bundle bundle;
synchronized (this.zzj) {
try {
bundle = new Bundle();
if (!this.zzk.zzN()) {
bundle.putString(SDKAnalyticsEvents.PARAMETER_SESSION_ID, this.zzf);
}
bundle.putLong("basets", this.zzb);
bundle.putLong("currts", this.zza);
bundle.putString("seq_num", str);
bundle.putInt("preqs", this.zzc);
bundle.putInt("preqs_in_session", this.zzd);
bundle.putLong("time_in_session", this.zze);
bundle.putInt("pclick", this.zzg);
bundle.putInt("pimp", this.zzh);
Context zza = zzbvu.zza(context);
int identifier = zza.getResources().getIdentifier("Theme.Translucent", "style", "android");
boolean z = false;
if (identifier == 0) {
com.google.android.gms.ads.internal.util.client.zzo.zzi("Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.");
} else {
try {
if (identifier == zza.getPackageManager().getActivityInfo(new ComponentName(zza.getPackageName(), AdActivity.CLASS_NAME), 0).theme) {
z = true;
} else {
com.google.android.gms.ads.internal.util.client.zzo.zzi("Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.");
}
} catch (PackageManager.NameNotFoundException unused) {
com.google.android.gms.ads.internal.util.client.zzo.zzj("Fail to fetch AdActivity theme");
com.google.android.gms.ads.internal.util.client.zzo.zzi("Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.");
}
}
bundle.putBoolean("support_transparent_background", z);
bundle.putInt("consent_form_action_identifier", zza());
} catch (Throwable th) {
throw th;
}
}
return bundle;
}
public final void zzc() {
synchronized (this.zzj) {
this.zzg++;
}
}
public final void zzd() {
synchronized (this.zzj) {
this.zzh++;
}
}
public final void zze() {
zzi();
}
public final void zzf() {
zzi();
}
public final void zzg(com.google.android.gms.ads.internal.client.zzm zzmVar, long j) {
Bundle bundle;
synchronized (this.zzj) {
try {
long zzd = this.zzk.zzd();
long currentTimeMillis = com.google.android.gms.ads.internal.zzv.zzC().currentTimeMillis();
if (this.zzb == -1) {
if (currentTimeMillis - zzd > ((Long) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzbd)).longValue()) {
this.zzd = -1;
} else {
this.zzd = this.zzk.zzc();
}
this.zzb = j;
this.zza = j;
} else {
this.zza = j;
}
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzdI)).booleanValue() || (bundle = zzmVar.zzc) == null || bundle.getInt("gw", 2) != 1) {
this.zzc++;
int i = this.zzd + 1;
this.zzd = i;
if (i == 0) {
this.zze = 0L;
this.zzk.zzz(currentTimeMillis);
} else {
this.zze = currentTimeMillis - this.zzk.zze();
}
}
} catch (Throwable th) {
throw th;
}
}
}
public final void zzh() {
synchronized (this.zzj) {
this.zzi++;
}
}
}