39 lines
997 B
Java
39 lines
997 B
Java
package c.f.m.n;
|
|
/* compiled from: NativeLoader */
|
|
public class a {
|
|
public static b a;
|
|
|
|
public static synchronized void a(b bVar) {
|
|
synchronized (a.class) {
|
|
if (a == null) {
|
|
a = bVar;
|
|
} else {
|
|
throw new IllegalStateException("Cannot re-initialize NativeLoader.");
|
|
}
|
|
}
|
|
}
|
|
|
|
public static synchronized boolean b() {
|
|
boolean z2;
|
|
synchronized (a.class) {
|
|
z2 = a != null;
|
|
}
|
|
return z2;
|
|
}
|
|
|
|
public static boolean c(String str) {
|
|
return d(str, 0);
|
|
}
|
|
|
|
public static boolean d(String str, int i) {
|
|
b bVar;
|
|
synchronized (a.class) {
|
|
bVar = a;
|
|
if (bVar == null) {
|
|
throw new IllegalStateException("NativeLoader has not been initialized. To use standard native library loading, call NativeLoader.init(new SystemDelegate()).");
|
|
}
|
|
}
|
|
return bVar.a(str, i);
|
|
}
|
|
}
|