- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
33 lines
954 B
Java
33 lines
954 B
Java
package com.mbridge.msdk.playercommon.exoplayer2.util;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class LibraryLoader {
|
|
private boolean isAvailable;
|
|
private boolean loadAttempted;
|
|
private String[] nativeLibraries;
|
|
|
|
public LibraryLoader(String... strArr) {
|
|
this.nativeLibraries = strArr;
|
|
}
|
|
|
|
public final synchronized void setLibraries(String... strArr) {
|
|
Assertions.checkState(!this.loadAttempted, "Cannot set libraries after loading");
|
|
this.nativeLibraries = strArr;
|
|
}
|
|
|
|
public final synchronized boolean isAvailable() {
|
|
if (this.loadAttempted) {
|
|
return this.isAvailable;
|
|
}
|
|
this.loadAttempted = true;
|
|
try {
|
|
for (String str : this.nativeLibraries) {
|
|
System.loadLibrary(str);
|
|
}
|
|
this.isAvailable = true;
|
|
} catch (UnsatisfiedLinkError unused) {
|
|
}
|
|
return this.isAvailable;
|
|
}
|
|
}
|