Loading core/java/android/webkit/WebView.java +10 −0 Original line number Original line Diff line number Diff line Loading @@ -685,6 +685,16 @@ public class WebView extends AbsoluteLayout getFactory().getStatics().setPlatformNotificationsEnabled(false); getFactory().getStatics().setPlatformNotificationsEnabled(false); } } /** * Used only by internal tests to free up memory. * * @hide */ public static void freeMemoryForTests() { checkThread(); getFactory().getStatics().freeMemoryForTests(); } /** /** * Informs WebView of the network state. This is used to set * Informs WebView of the network state. This is used to set * the JavaScript property window.navigator.isOnline and * the JavaScript property window.navigator.isOnline and Loading core/java/android/webkit/WebViewFactoryProvider.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -49,6 +49,11 @@ public interface WebViewFactoryProvider { */ */ String getDefaultUserAgent(Context context); String getDefaultUserAgent(Context context); /** * Used for tests only. */ void freeMemoryForTests(); /** /** * Implements the API method: * Implements the API method: * {@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) } * {@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) } Loading Loading
core/java/android/webkit/WebView.java +10 −0 Original line number Original line Diff line number Diff line Loading @@ -685,6 +685,16 @@ public class WebView extends AbsoluteLayout getFactory().getStatics().setPlatformNotificationsEnabled(false); getFactory().getStatics().setPlatformNotificationsEnabled(false); } } /** * Used only by internal tests to free up memory. * * @hide */ public static void freeMemoryForTests() { checkThread(); getFactory().getStatics().freeMemoryForTests(); } /** /** * Informs WebView of the network state. This is used to set * Informs WebView of the network state. This is used to set * the JavaScript property window.navigator.isOnline and * the JavaScript property window.navigator.isOnline and Loading
core/java/android/webkit/WebViewFactoryProvider.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -49,6 +49,11 @@ public interface WebViewFactoryProvider { */ */ String getDefaultUserAgent(Context context); String getDefaultUserAgent(Context context); /** * Used for tests only. */ void freeMemoryForTests(); /** /** * Implements the API method: * Implements the API method: * {@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) } * {@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) } Loading