Files
rr3-apk/decompiled/sources/com/google/android/gms/internal/ads/zzlc.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

75 lines
1.9 KiB
Java

package com.google.android.gms.internal.ads;
import android.os.HandlerThread;
import android.os.Looper;
import androidx.annotation.GuardedBy;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
/* loaded from: classes3.dex */
public final class zzlc {
private final Object zza;
@GuardedBy("lock")
private Looper zzb;
@GuardedBy("lock")
private HandlerThread zzc;
@GuardedBy("lock")
private int zzd;
public zzlc() {
throw null;
}
public zzlc(Looper looper) {
this.zza = new Object();
this.zzb = null;
this.zzc = null;
this.zzd = 0;
}
public final Looper zza() {
Looper looper;
synchronized (this.zza) {
try {
if (this.zzb == null) {
boolean z = false;
if (this.zzd == 0 && this.zzc == null) {
z = true;
}
zzcw.zzf(z);
HandlerThread handlerThread = new HandlerThread("ExoPlayer:Playback", -16);
this.zzc = handlerThread;
handlerThread.start();
this.zzb = this.zzc.getLooper();
}
this.zzd++;
looper = this.zzb;
} catch (Throwable th) {
throw th;
}
}
return looper;
}
public final void zzb() {
HandlerThread handlerThread;
synchronized (this.zza) {
try {
zzcw.zzf(this.zzd > 0);
int i = this.zzd - 1;
this.zzd = i;
if (i == 0 && (handlerThread = this.zzc) != null) {
handlerThread.quit();
this.zzc = null;
this.zzb = null;
}
} catch (Throwable th) {
throw th;
}
}
}
}