.class public Landroidx/webkit/internal/ApiHelperForM; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation build Landroidx/annotation/RequiresApi; value = 0x17 .end annotation # direct methods .method private constructor ()V .locals 0 .line 43 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static close(Landroid/webkit/WebMessagePort;)V .locals 0 .param p0 # Landroid/webkit/WebMessagePort; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 60 invoke-virtual {p0}, Landroid/webkit/WebMessagePort;->close()V return-void .end method .method public static createWebMessage(Landroidx/webkit/WebMessageCompat;)Landroid/webkit/WebMessage; .locals 2 .param p0 # Landroidx/webkit/WebMessageCompat; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .annotation build Landroidx/annotation/NonNull; .end annotation .line 103 new-instance v0, Landroid/webkit/WebMessage; invoke-virtual {p0}, Landroidx/webkit/WebMessageCompat;->getData()Ljava/lang/String; move-result-object v1 .line 104 invoke-virtual {p0}, Landroidx/webkit/WebMessageCompat;->getPorts()[Landroidx/webkit/WebMessagePortCompat; move-result-object p0 invoke-static {p0}, Landroidx/webkit/internal/WebMessagePortImpl;->compatToPorts([Landroidx/webkit/WebMessagePortCompat;)[Landroid/webkit/WebMessagePort; move-result-object p0 invoke-direct {v0, v1, p0}, Landroid/webkit/WebMessage;->(Ljava/lang/String;[Landroid/webkit/WebMessagePort;)V return-object v0 .end method .method public static createWebMessageChannel(Landroid/webkit/WebView;)[Landroid/webkit/WebMessagePort; .locals 0 .param p0 # Landroid/webkit/WebView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .annotation build Landroidx/annotation/NonNull; .end annotation .line 181 invoke-virtual {p0}, Landroid/webkit/WebView;->createWebMessageChannel()[Landroid/webkit/WebMessagePort; move-result-object p0 return-object p0 .end method .method public static createWebMessageCompat(Landroid/webkit/WebMessage;)Landroidx/webkit/WebMessageCompat; .locals 2 .param p0 # Landroid/webkit/WebMessage; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .annotation build Landroidx/annotation/NonNull; .end annotation .line 113 new-instance v0, Landroidx/webkit/WebMessageCompat; invoke-virtual {p0}, Landroid/webkit/WebMessage;->getData()Ljava/lang/String; move-result-object v1 .line 114 invoke-virtual {p0}, Landroid/webkit/WebMessage;->getPorts()[Landroid/webkit/WebMessagePort; move-result-object p0 invoke-static {p0}, Landroidx/webkit/internal/WebMessagePortImpl;->portsToCompat([Landroid/webkit/WebMessagePort;)[Landroidx/webkit/WebMessagePortCompat; move-result-object p0 invoke-direct {v0, v1, p0}, Landroidx/webkit/WebMessageCompat;->(Ljava/lang/String;[Landroidx/webkit/WebMessagePortCompat;)V return-object v0 .end method .method public static getDescription(Landroid/webkit/WebResourceError;)Ljava/lang/CharSequence; .locals 0 .param p0 # Landroid/webkit/WebResourceError; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .annotation build Landroidx/annotation/NonNull; .end annotation .line 132 invoke-virtual {p0}, Landroid/webkit/WebResourceError;->getDescription()Ljava/lang/CharSequence; move-result-object p0 return-object p0 .end method .method public static getErrorCode(Landroid/webkit/WebResourceError;)I .locals 0 .param p0 # Landroid/webkit/WebResourceError; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 122 invoke-virtual {p0}, Landroid/webkit/WebResourceError;->getErrorCode()I move-result p0 return p0 .end method .method public static getOffscreenPreRaster(Landroid/webkit/WebSettings;)Z .locals 0 .param p0 # Landroid/webkit/WebSettings; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 148 invoke-virtual {p0}, Landroid/webkit/WebSettings;->getOffscreenPreRaster()Z move-result p0 return p0 .end method .method public static postMessage(Landroid/webkit/WebMessagePort;Landroid/webkit/WebMessage;)V .locals 0 .param p0 # Landroid/webkit/WebMessagePort; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/webkit/WebMessage; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 52 invoke-virtual {p0, p1}, Landroid/webkit/WebMessagePort;->postMessage(Landroid/webkit/WebMessage;)V return-void .end method .method public static postVisualStateCallback(Landroid/webkit/WebView;JLandroidx/webkit/WebViewCompat$VisualStateCallback;)V .locals 1 .param p0 # Landroid/webkit/WebView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Landroidx/webkit/WebViewCompat$VisualStateCallback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 158 new-instance v0, Landroidx/webkit/internal/ApiHelperForM$3; invoke-direct {v0, p3}, Landroidx/webkit/internal/ApiHelperForM$3;->(Landroidx/webkit/WebViewCompat$VisualStateCallback;)V invoke-virtual {p0, p1, p2, v0}, Landroid/webkit/WebView;->postVisualStateCallback(JLandroid/webkit/WebView$VisualStateCallback;)V return-void .end method .method public static postWebMessage(Landroid/webkit/WebView;Landroid/webkit/WebMessage;Landroid/net/Uri;)V .locals 0 .param p0 # Landroid/webkit/WebView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/webkit/WebMessage; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/net/Uri; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 172 invoke-virtual {p0, p1, p2}, Landroid/webkit/WebView;->postWebMessage(Landroid/webkit/WebMessage;Landroid/net/Uri;)V return-void .end method .method public static setOffscreenPreRaster(Landroid/webkit/WebSettings;Z)V .locals 0 .param p0 # Landroid/webkit/WebSettings; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 140 invoke-virtual {p0, p1}, Landroid/webkit/WebSettings;->setOffscreenPreRaster(Z)V return-void .end method .method public static setWebMessageCallback(Landroid/webkit/WebMessagePort;Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;)V .locals 1 .param p0 # Landroid/webkit/WebMessagePort; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 70 new-instance v0, Landroidx/webkit/internal/ApiHelperForM$1; invoke-direct {v0, p1}, Landroidx/webkit/internal/ApiHelperForM$1;->(Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;)V invoke-virtual {p0, v0}, Landroid/webkit/WebMessagePort;->setWebMessageCallback(Landroid/webkit/WebMessagePort$WebMessageCallback;)V return-void .end method .method public static setWebMessageCallback(Landroid/webkit/WebMessagePort;Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;Landroid/os/Handler;)V .locals 1 .param p0 # Landroid/webkit/WebMessagePort; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/os/Handler; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/DoNotInline; .end annotation .line 88 new-instance v0, Landroidx/webkit/internal/ApiHelperForM$2; invoke-direct {v0, p1}, Landroidx/webkit/internal/ApiHelperForM$2;->(Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;)V invoke-virtual {p0, v0, p2}, Landroid/webkit/WebMessagePort;->setWebMessageCallback(Landroid/webkit/WebMessagePort$WebMessageCallback;Landroid/os/Handler;)V return-void .end method