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

53 lines
1.7 KiB
Java

package com.google.android.gms.internal.ads;
import android.os.Looper;
import android.util.DisplayMetrics;
import com.applovin.exoplayer2.common.base.Ascii;
/* loaded from: classes3.dex */
public final class zzawg {
public static final /* synthetic */ int zza = 0;
private static final char[] zzb = "0123456789abcdef".toCharArray();
public static long zza(double d, int i, DisplayMetrics displayMetrics) {
return Math.round(d / displayMetrics.density);
}
public static String zzb(byte[] bArr) {
int length = bArr.length;
char[] cArr = new char[length + length];
for (int i = 0; i < bArr.length; i++) {
byte b = bArr[i];
char[] cArr2 = zzb;
int i2 = i + i;
cArr[i2] = cArr2[(b & 255) >>> 4];
cArr[i2 + 1] = cArr2[b & Ascii.SI];
}
return new String(cArr);
}
public static boolean zzc() {
return Looper.myLooper() == Looper.getMainLooper();
}
public static boolean zzd(String str) {
return str == null || str.isEmpty();
}
public static boolean zze(DisplayMetrics displayMetrics) {
return (displayMetrics == null || displayMetrics.density == 0.0f) ? false : true;
}
public static byte[] zzf(String str) {
int length = str.length();
if (length % 2 != 0) {
throw new IllegalArgumentException("String must be of even-length");
}
byte[] bArr = new byte[length / 2];
for (int i = 0; i < length; i += 2) {
bArr[i / 2] = (byte) ((Character.digit(str.charAt(i), 16) << 4) + Character.digit(str.charAt(i + 1), 16));
}
return bArr;
}
}