- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
111 lines
4.0 KiB
Java
111 lines
4.0 KiB
Java
package androidx.webkit.internal;
|
|
|
|
import android.content.Context;
|
|
import android.webkit.ServiceWorkerClient;
|
|
import android.webkit.ServiceWorkerController;
|
|
import android.webkit.ServiceWorkerWebSettings;
|
|
import android.webkit.WebResourceRequest;
|
|
import android.webkit.WebSettings;
|
|
import androidx.annotation.DoNotInline;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.webkit.ServiceWorkerClientCompat;
|
|
import java.io.File;
|
|
|
|
@RequiresApi(24)
|
|
/* loaded from: classes.dex */
|
|
public class ApiHelperForN {
|
|
private ApiHelperForN() {
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static File getDataDir(@NonNull Context context) {
|
|
return context.getDataDir();
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static ServiceWorkerController getServiceWorkerControllerInstance() {
|
|
return ServiceWorkerController.getInstance();
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static ServiceWorkerWebSettings getServiceWorkerWebSettings(@NonNull ServiceWorkerController serviceWorkerController) {
|
|
return serviceWorkerController.getServiceWorkerWebSettings();
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static ServiceWorkerWebSettingsImpl getServiceWorkerWebSettingsImpl(@NonNull ServiceWorkerController serviceWorkerController) {
|
|
return new ServiceWorkerWebSettingsImpl(getServiceWorkerWebSettings(serviceWorkerController));
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setServiceWorkerClient(@NonNull ServiceWorkerController serviceWorkerController, @Nullable ServiceWorkerClient serviceWorkerClient) {
|
|
serviceWorkerController.setServiceWorkerClient(serviceWorkerClient);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setServiceWorkerClientCompat(@NonNull ServiceWorkerController serviceWorkerController, @NonNull ServiceWorkerClientCompat serviceWorkerClientCompat) {
|
|
serviceWorkerController.setServiceWorkerClient(new FrameworkServiceWorkerClient(serviceWorkerClientCompat));
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setCacheMode(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings, int i) {
|
|
serviceWorkerWebSettings.setCacheMode(i);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static int getCacheMode(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings) {
|
|
return serviceWorkerWebSettings.getCacheMode();
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setAllowContentAccess(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings, boolean z) {
|
|
serviceWorkerWebSettings.setAllowContentAccess(z);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static boolean getAllowContentAccess(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings) {
|
|
return serviceWorkerWebSettings.getAllowContentAccess();
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setAllowFileAccess(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings, boolean z) {
|
|
serviceWorkerWebSettings.setAllowFileAccess(z);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static boolean getAllowFileAccess(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings) {
|
|
return serviceWorkerWebSettings.getAllowFileAccess();
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setBlockNetworkLoads(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings, boolean z) {
|
|
serviceWorkerWebSettings.setBlockNetworkLoads(z);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static boolean getBlockNetworkLoads(@NonNull ServiceWorkerWebSettings serviceWorkerWebSettings) {
|
|
return serviceWorkerWebSettings.getBlockNetworkLoads();
|
|
}
|
|
|
|
@DoNotInline
|
|
public static boolean isRedirect(@NonNull WebResourceRequest webResourceRequest) {
|
|
return webResourceRequest.isRedirect();
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setDisabledActionModeMenuItems(@NonNull WebSettings webSettings, int i) {
|
|
webSettings.setDisabledActionModeMenuItems(i);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static int getDisabledActionModeMenuItems(@NonNull WebSettings webSettings) {
|
|
return webSettings.getDisabledActionModeMenuItems();
|
|
}
|
|
}
|