Loading api/system-current.txt +3 −3 Original line number Original line Diff line number Diff line Loading @@ -12745,8 +12745,8 @@ package android.webkit { public interface PacProcessor { public interface PacProcessor { method @Nullable public String findProxyForUrl(@NonNull String); method @Nullable public String findProxyForUrl(@NonNull String); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(long); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(@Nullable android.net.Network); method public default long getNetworkHandle(); method @Nullable public default android.net.Network getNetwork(); method public default void releasePacProcessor(); method public default void releasePacProcessor(); method public boolean setProxyScript(@NonNull String); method public boolean setProxyScript(@NonNull String); } } Loading Loading @@ -12887,7 +12887,7 @@ package android.webkit { method public android.webkit.CookieManager getCookieManager(); method public android.webkit.CookieManager getCookieManager(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(long); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(@Nullable android.net.Network); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService(); core/java/android/webkit/PacProcessor.java +25 −11 Original line number Original line Diff line number Diff line Loading @@ -32,6 +32,10 @@ public interface PacProcessor { /** /** * Returns the default PacProcessor instance. * Returns the default PacProcessor instance. * * * <p> There can only be one default {@link PacProcessor} instance. * This method will create a new instance if one did not already exist, or * if the previous instance was released with {@link #releasePacProcessor}. * * @return the default PacProcessor instance. * @return the default PacProcessor instance. */ */ @NonNull @NonNull Loading @@ -43,14 +47,21 @@ public interface PacProcessor { * Returns PacProcessor instance associated with the {@link Network}. * Returns PacProcessor instance associated with the {@link Network}. * The host resolution is done on this {@link Network}. * The host resolution is done on this {@link Network}. * * * @param networkHandle a handle representing {@link Network} handle. * <p> There can only be one {@link PacProcessor} instance at a time for each {@link Network}. * @return PacProcessor instance for the specified network. * This method will create a new instance if one did not already exist, or * @see Network#getNetworkHandle * if the previous instance was released with {@link #releasePacProcessor}. * @see Network#fromNetworkHandle * * <p> The {@link PacProcessor} instance needs to be released manually with * {@link #releasePacProcessor} when the associated {@link Network} goes away. * * @param network a {@link Network} which this {@link PacProcessor} * will use for host/address resolution. * If {@code null} this method is equivalent to {@link #getInstance}. * @return {@link PacProcessor} instance for the specified network. */ */ @NonNull @NonNull static PacProcessor getInstanceForNetwork(long networkHandle) { static PacProcessor getInstanceForNetwork(@Nullable Network network) { return WebViewFactory.getProvider().getPacProcessorForNetwork(networkHandle); return WebViewFactory.getProvider().getPacProcessorForNetwork(network); } } /** /** Loading @@ -73,19 +84,22 @@ public interface PacProcessor { /** /** * Stops support for this {@link PacProcessor} and release its resources. * Stops support for this {@link PacProcessor} and release its resources. * No methods of this class must be called after calling this method. * No methods of this class must be called after calling this method. * * <p> Released instances will not be reused; a subsequent call to * {@link #getInstance} and {@link #getInstanceForNetwork} * for the same network will create a new instance. */ */ default void releasePacProcessor() { default void releasePacProcessor() { throw new UnsupportedOperationException("Not implemented"); throw new UnsupportedOperationException("Not implemented"); } } /** /** * Returns a network handle associated with this {@link PacProcessor}. * Returns a {@link Network} associated with this {@link PacProcessor}. * * * @return a network handle or 0 if a network is unspecified. * @return an associated {@link Network} or {@code null} if a network is unspecified. * @see Network#getNetworkHandle * @see Network#fromNetworkHandle */ */ default long getNetworkHandle() { @Nullable default Network getNetwork() { throw new UnsupportedOperationException("Not implemented"); throw new UnsupportedOperationException("Not implemented"); } } } } core/java/android/webkit/WebViewFactoryProvider.java +5 −4 Original line number Original line Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.webkit; package android.webkit; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.SystemApi; import android.content.Context; import android.content.Context; import android.content.Intent; import android.content.Intent; Loading Loading @@ -188,13 +189,13 @@ public interface WebViewFactoryProvider { * Returns PacProcessor instance associated with the {@link Network}. * Returns PacProcessor instance associated with the {@link Network}. * The host resolution is done on this {@link Network}. * The host resolution is done on this {@link Network}. * * * @param networkHandle a network handle representing the {@link Network}. * @param network a {@link Network} which needs to be associated * with the returned {@link PacProcessor}. * If {@code null} the method returns default {@link PacProcessor}. * @return the {@link PacProcessor} instance associated with {@link Network}. * @return the {@link PacProcessor} instance associated with {@link Network}. * @see Network#getNetworkHandle * @see Network#fromNetworkHandle */ */ @NonNull @NonNull default PacProcessor getPacProcessorForNetwork(long networkHandle) { default PacProcessor getPacProcessorForNetwork(@Nullable Network network) { throw new UnsupportedOperationException("Not implemented"); throw new UnsupportedOperationException("Not implemented"); } } Loading non-updatable-api/system-current.txt +3 −3 Original line number Original line Diff line number Diff line Loading @@ -11586,8 +11586,8 @@ package android.webkit { public interface PacProcessor { public interface PacProcessor { method @Nullable public String findProxyForUrl(@NonNull String); method @Nullable public String findProxyForUrl(@NonNull String); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(long); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(@Nullable android.net.Network); method public default long getNetworkHandle(); method @Nullable public default android.net.Network getNetwork(); method public default void releasePacProcessor(); method public default void releasePacProcessor(); method public boolean setProxyScript(@NonNull String); method public boolean setProxyScript(@NonNull String); } } Loading Loading @@ -11728,7 +11728,7 @@ package android.webkit { method public android.webkit.CookieManager getCookieManager(); method public android.webkit.CookieManager getCookieManager(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(long); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(@Nullable android.net.Network); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService(); Loading
api/system-current.txt +3 −3 Original line number Original line Diff line number Diff line Loading @@ -12745,8 +12745,8 @@ package android.webkit { public interface PacProcessor { public interface PacProcessor { method @Nullable public String findProxyForUrl(@NonNull String); method @Nullable public String findProxyForUrl(@NonNull String); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(long); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(@Nullable android.net.Network); method public default long getNetworkHandle(); method @Nullable public default android.net.Network getNetwork(); method public default void releasePacProcessor(); method public default void releasePacProcessor(); method public boolean setProxyScript(@NonNull String); method public boolean setProxyScript(@NonNull String); } } Loading Loading @@ -12887,7 +12887,7 @@ package android.webkit { method public android.webkit.CookieManager getCookieManager(); method public android.webkit.CookieManager getCookieManager(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(long); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(@Nullable android.net.Network); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService();
core/java/android/webkit/PacProcessor.java +25 −11 Original line number Original line Diff line number Diff line Loading @@ -32,6 +32,10 @@ public interface PacProcessor { /** /** * Returns the default PacProcessor instance. * Returns the default PacProcessor instance. * * * <p> There can only be one default {@link PacProcessor} instance. * This method will create a new instance if one did not already exist, or * if the previous instance was released with {@link #releasePacProcessor}. * * @return the default PacProcessor instance. * @return the default PacProcessor instance. */ */ @NonNull @NonNull Loading @@ -43,14 +47,21 @@ public interface PacProcessor { * Returns PacProcessor instance associated with the {@link Network}. * Returns PacProcessor instance associated with the {@link Network}. * The host resolution is done on this {@link Network}. * The host resolution is done on this {@link Network}. * * * @param networkHandle a handle representing {@link Network} handle. * <p> There can only be one {@link PacProcessor} instance at a time for each {@link Network}. * @return PacProcessor instance for the specified network. * This method will create a new instance if one did not already exist, or * @see Network#getNetworkHandle * if the previous instance was released with {@link #releasePacProcessor}. * @see Network#fromNetworkHandle * * <p> The {@link PacProcessor} instance needs to be released manually with * {@link #releasePacProcessor} when the associated {@link Network} goes away. * * @param network a {@link Network} which this {@link PacProcessor} * will use for host/address resolution. * If {@code null} this method is equivalent to {@link #getInstance}. * @return {@link PacProcessor} instance for the specified network. */ */ @NonNull @NonNull static PacProcessor getInstanceForNetwork(long networkHandle) { static PacProcessor getInstanceForNetwork(@Nullable Network network) { return WebViewFactory.getProvider().getPacProcessorForNetwork(networkHandle); return WebViewFactory.getProvider().getPacProcessorForNetwork(network); } } /** /** Loading @@ -73,19 +84,22 @@ public interface PacProcessor { /** /** * Stops support for this {@link PacProcessor} and release its resources. * Stops support for this {@link PacProcessor} and release its resources. * No methods of this class must be called after calling this method. * No methods of this class must be called after calling this method. * * <p> Released instances will not be reused; a subsequent call to * {@link #getInstance} and {@link #getInstanceForNetwork} * for the same network will create a new instance. */ */ default void releasePacProcessor() { default void releasePacProcessor() { throw new UnsupportedOperationException("Not implemented"); throw new UnsupportedOperationException("Not implemented"); } } /** /** * Returns a network handle associated with this {@link PacProcessor}. * Returns a {@link Network} associated with this {@link PacProcessor}. * * * @return a network handle or 0 if a network is unspecified. * @return an associated {@link Network} or {@code null} if a network is unspecified. * @see Network#getNetworkHandle * @see Network#fromNetworkHandle */ */ default long getNetworkHandle() { @Nullable default Network getNetwork() { throw new UnsupportedOperationException("Not implemented"); throw new UnsupportedOperationException("Not implemented"); } } } }
core/java/android/webkit/WebViewFactoryProvider.java +5 −4 Original line number Original line Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.webkit; package android.webkit; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.SystemApi; import android.content.Context; import android.content.Context; import android.content.Intent; import android.content.Intent; Loading Loading @@ -188,13 +189,13 @@ public interface WebViewFactoryProvider { * Returns PacProcessor instance associated with the {@link Network}. * Returns PacProcessor instance associated with the {@link Network}. * The host resolution is done on this {@link Network}. * The host resolution is done on this {@link Network}. * * * @param networkHandle a network handle representing the {@link Network}. * @param network a {@link Network} which needs to be associated * with the returned {@link PacProcessor}. * If {@code null} the method returns default {@link PacProcessor}. * @return the {@link PacProcessor} instance associated with {@link Network}. * @return the {@link PacProcessor} instance associated with {@link Network}. * @see Network#getNetworkHandle * @see Network#fromNetworkHandle */ */ @NonNull @NonNull default PacProcessor getPacProcessorForNetwork(long networkHandle) { default PacProcessor getPacProcessorForNetwork(@Nullable Network network) { throw new UnsupportedOperationException("Not implemented"); throw new UnsupportedOperationException("Not implemented"); } } Loading
non-updatable-api/system-current.txt +3 −3 Original line number Original line Diff line number Diff line Loading @@ -11586,8 +11586,8 @@ package android.webkit { public interface PacProcessor { public interface PacProcessor { method @Nullable public String findProxyForUrl(@NonNull String); method @Nullable public String findProxyForUrl(@NonNull String); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstance(); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(long); method @NonNull public static android.webkit.PacProcessor getInstanceForNetwork(@Nullable android.net.Network); method public default long getNetworkHandle(); method @Nullable public default android.net.Network getNetwork(); method public default void releasePacProcessor(); method public default void releasePacProcessor(); method public boolean setProxyScript(@NonNull String); method public boolean setProxyScript(@NonNull String); } } Loading Loading @@ -11728,7 +11728,7 @@ package android.webkit { method public android.webkit.CookieManager getCookieManager(); method public android.webkit.CookieManager getCookieManager(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method public android.webkit.GeolocationPermissions getGeolocationPermissions(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessor(); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(long); method @NonNull public default android.webkit.PacProcessor getPacProcessorForNetwork(@Nullable android.net.Network); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.ServiceWorkerController getServiceWorkerController(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method public android.webkit.WebViewFactoryProvider.Statics getStatics(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService(); method @Deprecated public android.webkit.TokenBindingService getTokenBindingService();