- 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
118 lines
4.3 KiB
Java
118 lines
4.3 KiB
Java
package com.ea.nimble;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class Log {
|
|
public static final String COMPONENT_ID = "com.ea.nimble.NimbleLog";
|
|
public static final int LEVEL_ALL = 0;
|
|
public static final int LEVEL_DEBUG = 200;
|
|
public static final int LEVEL_ERROR = 500;
|
|
public static final int LEVEL_FATAL = 600;
|
|
public static final int LEVEL_INFO = 300;
|
|
public static final int LEVEL_SILENT = 700;
|
|
public static final int LEVEL_VERBOSE = 100;
|
|
public static final int LEVEL_WARN = 400;
|
|
private static ILog s_instance;
|
|
|
|
public static class Helper {
|
|
public static void LOGV(Object obj, String str, Object... objArr) {
|
|
Log.getComponent().writeWithSource(100, obj, str, objArr);
|
|
}
|
|
|
|
public static void LOGD(Object obj, String str, Object... objArr) {
|
|
Log.getComponent().writeWithSource(200, obj, str, objArr);
|
|
}
|
|
|
|
public static void LOGI(Object obj, String str, Object... objArr) {
|
|
Log.getComponent().writeWithSource(300, obj, str, objArr);
|
|
}
|
|
|
|
public static void LOGW(Object obj, String str, Object... objArr) {
|
|
Log.getComponent().writeWithSource(400, obj, str, objArr);
|
|
}
|
|
|
|
public static void LOGE(Object obj, String str, Object... objArr) {
|
|
Log.getComponent().writeWithSource(500, obj, str, objArr);
|
|
}
|
|
|
|
public static void LOGF(Object obj, String str, Object... objArr) {
|
|
Log.getComponent().writeWithSource(600, obj, str, objArr);
|
|
}
|
|
|
|
public static void LOGVS(String str, String str2, Object... objArr) {
|
|
Log.getComponent().writeWithTitle(100, str, str2, objArr);
|
|
}
|
|
|
|
public static void LOGDS(String str, String str2, Object... objArr) {
|
|
Log.getComponent().writeWithTitle(200, str, str2, objArr);
|
|
}
|
|
|
|
public static void LOGIS(String str, String str2, Object... objArr) {
|
|
Log.getComponent().writeWithTitle(300, str, str2, objArr);
|
|
}
|
|
|
|
public static void LOGWS(String str, String str2, Object... objArr) {
|
|
Log.getComponent().writeWithTitle(400, str, str2, objArr);
|
|
}
|
|
|
|
public static void LOGES(String str, String str2, Object... objArr) {
|
|
Log.getComponent().writeWithTitle(500, str, str2, objArr);
|
|
}
|
|
|
|
public static void LOGFS(String str, String str2, Object... objArr) {
|
|
Log.getComponent().writeWithTitle(600, str, str2, objArr);
|
|
}
|
|
|
|
public static void LOG(int i, String str, Object... objArr) {
|
|
Log.getComponent().writeWithTitle(i, null, str, objArr);
|
|
}
|
|
|
|
private static String getMethodString() {
|
|
StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[4];
|
|
return stackTraceElement.getMethodName() + " [Line " + stackTraceElement.getLineNumber() + "] called...";
|
|
}
|
|
|
|
public static void LOGFUNC(Object obj) {
|
|
ILog component = Log.getComponent();
|
|
if (component.getThresholdLevel() <= 0) {
|
|
component.writeWithSource(0, obj, getMethodString(), new Object[0]);
|
|
}
|
|
}
|
|
|
|
public static void LOGPUBLICFUNC(Object obj) {
|
|
ILog component = Log.getComponent();
|
|
if (component.getThresholdLevel() <= 100) {
|
|
component.writeWithSource(100, obj, getMethodString(), new Object[0]);
|
|
}
|
|
}
|
|
|
|
public static void LOGFUNCS(String str) {
|
|
ILog component = Log.getComponent();
|
|
if (component.getThresholdLevel() <= 0) {
|
|
component.writeWithTitle(0, str, getMethodString(), new Object[0]);
|
|
}
|
|
}
|
|
|
|
public static void LOGPUBLICFUNCS(String str) {
|
|
ILog component = Log.getComponent();
|
|
if (component.getThresholdLevel() <= 100) {
|
|
component.writeWithTitle(100, str, getMethodString(), new Object[0]);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static synchronized ILog getComponent() {
|
|
ILog iLog;
|
|
synchronized (Log.class) {
|
|
try {
|
|
if (s_instance == null) {
|
|
s_instance = new LogImpl();
|
|
}
|
|
iLog = s_instance;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return iLog;
|
|
}
|
|
}
|