mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 10:57:17 +01:00
46 lines
1.6 KiB
Java
46 lines
1.6 KiB
Java
package androidx.webkit.internal;
|
|
|
|
import android.os.Looper;
|
|
import android.webkit.TracingConfig;
|
|
import android.webkit.TracingController;
|
|
import android.webkit.WebView;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.webkit.TracingConfig;
|
|
import java.io.OutputStream;
|
|
import java.util.concurrent.Executor;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(28)
|
|
/* loaded from: classes14.dex */
|
|
public class ApiHelperForP {
|
|
private ApiHelperForP() {
|
|
}
|
|
|
|
public static TracingController getTracingControllerInstance() {
|
|
return TracingController.getInstance();
|
|
}
|
|
|
|
public static ClassLoader getWebViewClassLoader() {
|
|
return WebView.getWebViewClassLoader();
|
|
}
|
|
|
|
public static Looper getWebViewLooper(WebView webView) {
|
|
return webView.getWebViewLooper();
|
|
}
|
|
|
|
public static boolean isTracing(TracingController tracingController) {
|
|
return tracingController.isTracing();
|
|
}
|
|
|
|
public static void setDataDirectorySuffix(String str) {
|
|
WebView.setDataDirectorySuffix(str);
|
|
}
|
|
|
|
public static void start(TracingController tracingController, TracingConfig tracingConfig) {
|
|
tracingController.start(new TracingConfig.Builder().addCategories(tracingConfig.getPredefinedCategories()).addCategories(tracingConfig.getCustomIncludedCategories()).setTracingMode(tracingConfig.getTracingMode()).build());
|
|
}
|
|
|
|
public static boolean stop(TracingController tracingController, OutputStream outputStream, Executor executor) {
|
|
return tracingController.stop(outputStream, executor);
|
|
}
|
|
}
|