- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
78 lines
2.6 KiB
Java
78 lines
2.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.DoNotInline;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.webkit.TracingConfig;
|
|
import java.io.OutputStream;
|
|
import java.util.Collection;
|
|
import java.util.concurrent.Executor;
|
|
|
|
@RequiresApi(28)
|
|
/* loaded from: classes.dex */
|
|
public class ApiHelperForP {
|
|
private ApiHelperForP() {
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static TracingController getTracingControllerInstance() {
|
|
TracingController tracingController;
|
|
tracingController = TracingController.getInstance();
|
|
return tracingController;
|
|
}
|
|
|
|
@DoNotInline
|
|
public static boolean isTracing(@NonNull TracingController tracingController) {
|
|
boolean isTracing;
|
|
isTracing = tracingController.isTracing();
|
|
return isTracing;
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void start(@NonNull TracingController tracingController, @NonNull TracingConfig tracingConfig) {
|
|
TracingConfig.Builder addCategories;
|
|
TracingConfig.Builder addCategories2;
|
|
TracingConfig.Builder tracingMode;
|
|
android.webkit.TracingConfig build;
|
|
addCategories = ApiHelperForP$$ExternalSyntheticApiModelOutline11.m().addCategories(tracingConfig.getPredefinedCategories());
|
|
addCategories2 = addCategories.addCategories((Collection<String>) tracingConfig.getCustomIncludedCategories());
|
|
tracingMode = addCategories2.setTracingMode(tracingConfig.getTracingMode());
|
|
build = tracingMode.build();
|
|
tracingController.start(build);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static boolean stop(@NonNull TracingController tracingController, @Nullable OutputStream outputStream, @NonNull Executor executor) {
|
|
boolean stop;
|
|
stop = tracingController.stop(outputStream, executor);
|
|
return stop;
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static ClassLoader getWebViewClassLoader() {
|
|
ClassLoader webViewClassLoader;
|
|
webViewClassLoader = WebView.getWebViewClassLoader();
|
|
return webViewClassLoader;
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static Looper getWebViewLooper(@NonNull WebView webView) {
|
|
Looper webViewLooper;
|
|
webViewLooper = webView.getWebViewLooper();
|
|
return webViewLooper;
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setDataDirectorySuffix(@NonNull String str) {
|
|
WebView.setDataDirectorySuffix(str);
|
|
}
|
|
}
|