- 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
142 lines
4.3 KiB
Java
142 lines
4.3 KiB
Java
package androidx.work;
|
|
|
|
import android.util.Log;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RestrictTo;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
/* loaded from: classes.dex */
|
|
public abstract class Logger {
|
|
private static final int MAX_PREFIXED_TAG_LENGTH = 20;
|
|
private static final int MAX_TAG_LENGTH = 23;
|
|
private static final String TAG_PREFIX = "WM-";
|
|
private static final Object sLock = new Object();
|
|
private static volatile Logger sLogger;
|
|
|
|
public abstract void debug(@NonNull String str, @NonNull String str2);
|
|
|
|
public abstract void debug(@NonNull String str, @NonNull String str2, @NonNull Throwable th);
|
|
|
|
public abstract void error(@NonNull String str, @NonNull String str2);
|
|
|
|
public abstract void error(@NonNull String str, @NonNull String str2, @NonNull Throwable th);
|
|
|
|
public abstract void info(@NonNull String str, @NonNull String str2);
|
|
|
|
public abstract void info(@NonNull String str, @NonNull String str2, @NonNull Throwable th);
|
|
|
|
public abstract void verbose(@NonNull String str, @NonNull String str2);
|
|
|
|
public abstract void verbose(@NonNull String str, @NonNull String str2, @NonNull Throwable th);
|
|
|
|
public abstract void warning(@NonNull String str, @NonNull String str2);
|
|
|
|
public abstract void warning(@NonNull String str, @NonNull String str2, @NonNull Throwable th);
|
|
|
|
public static void setLogger(@NonNull Logger logger) {
|
|
synchronized (sLock) {
|
|
try {
|
|
if (sLogger == null) {
|
|
sLogger = logger;
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
@NonNull
|
|
public static String tagWithPrefix(@NonNull String str) {
|
|
int length = str.length();
|
|
StringBuilder sb = new StringBuilder(23);
|
|
sb.append(TAG_PREFIX);
|
|
int i = MAX_PREFIXED_TAG_LENGTH;
|
|
if (length >= i) {
|
|
sb.append(str.substring(0, i));
|
|
} else {
|
|
sb.append(str);
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
@NonNull
|
|
public static Logger get() {
|
|
Logger logger;
|
|
synchronized (sLock) {
|
|
try {
|
|
if (sLogger == null) {
|
|
sLogger = new LogcatLogger(3);
|
|
}
|
|
logger = sLogger;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return logger;
|
|
}
|
|
|
|
public Logger(int i) {
|
|
}
|
|
|
|
public static class LogcatLogger extends Logger {
|
|
private final int mLoggingLevel;
|
|
|
|
@Override // androidx.work.Logger
|
|
public void debug(@NonNull String str, @NonNull String str2) {
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void debug(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void info(@NonNull String str, @NonNull String str2) {
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void info(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void verbose(@NonNull String str, @NonNull String str2) {
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void verbose(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
|
|
}
|
|
|
|
public LogcatLogger(int i) {
|
|
super(i);
|
|
this.mLoggingLevel = i;
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void warning(@NonNull String str, @NonNull String str2) {
|
|
if (this.mLoggingLevel <= 5) {
|
|
Log.w(str, str2);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void warning(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
|
|
if (this.mLoggingLevel <= 5) {
|
|
Log.w(str, str2, th);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void error(@NonNull String str, @NonNull String str2) {
|
|
if (this.mLoggingLevel <= 6) {
|
|
Log.e(str, str2);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.work.Logger
|
|
public void error(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
|
|
if (this.mLoggingLevel <= 6) {
|
|
Log.e(str, str2, th);
|
|
}
|
|
}
|
|
}
|
|
}
|