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

109 lines
3.5 KiB
Java

package com.google.android.gms.internal.ads;
import android.graphics.drawable.Drawable;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
/* loaded from: classes3.dex */
public final class zzdhn extends zzbfs {
private final zzdif zza;
private IObjectWrapper zzb;
public zzdhn(zzdif zzdifVar) {
this.zza = zzdifVar;
}
private static float zzb(IObjectWrapper iObjectWrapper) {
Drawable drawable;
if (iObjectWrapper == null || (drawable = (Drawable) ObjectWrapper.unwrap(iObjectWrapper)) == null || drawable.getIntrinsicWidth() == -1 || drawable.getIntrinsicHeight() == -1) {
return 0.0f;
}
return drawable.getIntrinsicWidth() / drawable.getIntrinsicHeight();
}
@Override // com.google.android.gms.internal.ads.zzbft
public final float zze() throws RemoteException {
if (this.zza.zzb() != 0.0f) {
return this.zza.zzb();
}
if (this.zza.zzj() != null) {
try {
return this.zza.zzj().zze();
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("Remote exception getting video controller aspect ratio.", e);
return 0.0f;
}
}
IObjectWrapper iObjectWrapper = this.zzb;
if (iObjectWrapper != null) {
return zzb(iObjectWrapper);
}
zzbfw zzm = this.zza.zzm();
if (zzm == null) {
return 0.0f;
}
float zzd = (zzm.zzd() == -1 || zzm.zzc() == -1) ? 0.0f : zzm.zzd() / zzm.zzc();
return zzd == 0.0f ? zzb(zzm.zzf()) : zzd;
}
@Override // com.google.android.gms.internal.ads.zzbft
public final float zzf() throws RemoteException {
if (this.zza.zzj() != null) {
return this.zza.zzj().zzf();
}
return 0.0f;
}
@Override // com.google.android.gms.internal.ads.zzbft
public final float zzg() throws RemoteException {
if (this.zza.zzj() != null) {
return this.zza.zzj().zzg();
}
return 0.0f;
}
@Override // com.google.android.gms.internal.ads.zzbft
@Nullable
public final com.google.android.gms.ads.internal.client.zzeb zzh() throws RemoteException {
return this.zza.zzj();
}
@Override // com.google.android.gms.internal.ads.zzbft
@Nullable
public final IObjectWrapper zzi() throws RemoteException {
IObjectWrapper iObjectWrapper = this.zzb;
if (iObjectWrapper != null) {
return iObjectWrapper;
}
zzbfw zzm = this.zza.zzm();
if (zzm == null) {
return null;
}
return zzm.zzf();
}
@Override // com.google.android.gms.internal.ads.zzbft
public final void zzj(IObjectWrapper iObjectWrapper) {
this.zzb = iObjectWrapper;
}
@Override // com.google.android.gms.internal.ads.zzbft
public final boolean zzk() throws RemoteException {
return this.zza.zzaf();
}
@Override // com.google.android.gms.internal.ads.zzbft
public final boolean zzl() throws RemoteException {
return this.zza.zzj() != null;
}
@Override // com.google.android.gms.internal.ads.zzbft
public final void zzm(zzbhe zzbheVar) {
if (this.zza.zzj() instanceof zzcfz) {
((zzcfz) this.zza.zzj()).zzv(zzbheVar);
}
}
}