Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
package com.google.android.gms.common.logging;
|
||||
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.GmsLogger;
|
||||
import java.util.Locale;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public class Logger {
|
||||
private final String zza;
|
||||
private final String zzb;
|
||||
private final GmsLogger zzc;
|
||||
private final int zzd;
|
||||
|
||||
@KeepForSdk
|
||||
public Logger(String str, String... strArr) {
|
||||
String sb;
|
||||
if (strArr.length == 0) {
|
||||
sb = "";
|
||||
} else {
|
||||
StringBuilder sb2 = new StringBuilder();
|
||||
sb2.append('[');
|
||||
for (String str2 : strArr) {
|
||||
if (sb2.length() > 1) {
|
||||
sb2.append(",");
|
||||
}
|
||||
sb2.append(str2);
|
||||
}
|
||||
sb2.append("] ");
|
||||
sb = sb2.toString();
|
||||
}
|
||||
this.zzb = sb;
|
||||
this.zza = str;
|
||||
this.zzc = new GmsLogger(str);
|
||||
int i = 2;
|
||||
while (i <= 7 && !Log.isLoggable(this.zza, i)) {
|
||||
i++;
|
||||
}
|
||||
this.zzd = i;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void d(String str, Object... objArr) {
|
||||
if (isLoggable(3)) {
|
||||
Log.d(this.zza, format(str, objArr));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void e(String str, Throwable th, Object... objArr) {
|
||||
Log.e(this.zza, format(str, objArr), th);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String format(String str, Object... objArr) {
|
||||
if (objArr != null && objArr.length > 0) {
|
||||
str = String.format(Locale.US, str, objArr);
|
||||
}
|
||||
return this.zzb.concat(str);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String getTag() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void i(String str, Object... objArr) {
|
||||
Log.i(this.zza, format(str, objArr));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean isLoggable(int i) {
|
||||
return this.zzd <= i;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void v(String str, Throwable th, Object... objArr) {
|
||||
if (isLoggable(2)) {
|
||||
Log.v(this.zza, format(str, objArr), th);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void w(String str, Object... objArr) {
|
||||
Log.w(this.zza, format(str, objArr));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void wtf(String str, Throwable th, Object... objArr) {
|
||||
Log.wtf(this.zza, format(str, objArr), th);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void e(String str, Object... objArr) {
|
||||
Log.e(this.zza, format(str, objArr));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void wtf(Throwable th) {
|
||||
Log.wtf(this.zza, th);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void v(String str, Object... objArr) {
|
||||
if (isLoggable(2)) {
|
||||
Log.v(this.zza, format(str, objArr));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user