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

76 lines
1.8 KiB
Java

package com.google.android.gms.internal.ads;
import android.content.Context;
import android.media.AudioManager;
/* loaded from: classes3.dex */
public final class zzcbw implements AudioManager.OnAudioFocusChangeListener {
private final AudioManager zza;
private final zzcbv zzb;
private boolean zzc;
private boolean zzd;
private boolean zze;
private float zzf = 1.0f;
public zzcbw(Context context, zzcbv zzcbvVar) {
this.zza = (AudioManager) context.getSystemService("audio");
this.zzb = zzcbvVar;
}
@Override // android.media.AudioManager.OnAudioFocusChangeListener
public final void onAudioFocusChange(int i) {
this.zzc = i > 0;
this.zzb.zzn();
}
public final float zza() {
float f = this.zze ? 0.0f : this.zzf;
if (this.zzc) {
return f;
}
return 0.0f;
}
public final void zzb() {
this.zzd = true;
zzf();
}
public final void zzc() {
this.zzd = false;
zzf();
}
public final void zzd(boolean z) {
this.zze = z;
zzf();
}
public final void zze(float f) {
this.zzf = f;
zzf();
}
private final void zzf() {
if (!this.zzd || this.zze || this.zzf <= 0.0f) {
if (this.zzc) {
AudioManager audioManager = this.zza;
if (audioManager != null) {
this.zzc = audioManager.abandonAudioFocus(this) == 0;
}
this.zzb.zzn();
return;
}
return;
}
if (this.zzc) {
return;
}
AudioManager audioManager2 = this.zza;
if (audioManager2 != null) {
this.zzc = audioManager2.requestAudioFocus(this, 3, 2) == 1;
}
this.zzb.zzn();
}
}