mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
47 lines
1.5 KiB
Java
47 lines
1.5 KiB
Java
package org.webrtc;
|
|
|
|
/* loaded from: classes3.dex */
|
|
class NativeLibrary {
|
|
private static String TAG = "NativeLibrary";
|
|
private static boolean libraryLoaded;
|
|
private static Object lock = new Object();
|
|
|
|
NativeLibrary() {
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
static class DefaultLoader implements NativeLibraryLoader {
|
|
@Override // org.webrtc.NativeLibraryLoader
|
|
public boolean load(String str) {
|
|
Logging.d(NativeLibrary.TAG, "Loading library: " + str);
|
|
try {
|
|
System.loadLibrary(str);
|
|
return true;
|
|
} catch (UnsatisfiedLinkError e) {
|
|
Logging.e(NativeLibrary.TAG, "Failed to load native library: " + str, e);
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static void initialize(NativeLibraryLoader nativeLibraryLoader, String str) {
|
|
synchronized (lock) {
|
|
if (libraryLoaded) {
|
|
Logging.d(TAG, "Native library has already been loaded.");
|
|
} else {
|
|
Logging.d(TAG, "Loading native library: " + str);
|
|
libraryLoaded = nativeLibraryLoader.load(str);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static boolean isLoaded() {
|
|
boolean z;
|
|
synchronized (lock) {
|
|
z = libraryLoaded;
|
|
}
|
|
return z;
|
|
}
|
|
}
|