/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
ScrollableWebViewActivity.java | 20 import android.webkit.WebView; 30 WebView webView = new WebView(this); 31 webView.loadData(sHtml, "text/html", null); 32 webView.setVerticalScrollBarEnabled(true); 33 setContentView(webView);
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
WebView_WebViewTransportTest.java | 22 import android.webkit.WebView; 23 import android.webkit.WebView.WebViewTransport; 38 WebView webView = getActivity().getWebView(); 39 WebViewTransport transport = webView.new WebViewTransport(); 43 transport.setWebView(webView); 44 assertSame(webView, transport.getWebView());
|
/packages/apps/Browser2/src/org/chromium/webview_shell/ |
TelemetryActivity.java | 10 import android.webkit.WebView; 14 * This activity is designed for Telemetry testing of WebView. 25 WebView webView = (WebView) findViewById(R.id.webview); 27 webView.getSettings().setJavaScriptEnabled(true); 29 webView.setWebViewClient(new WebViewClient() { 31 public boolean shouldOverrideUrlLoading(WebView webView, String url) [all...] |
JankActivity.java | 11 import android.webkit.WebView; 15 * This activity is designed for Android Jank testing of WebView. It takes a URL as an argument, and 27 WebView webView = (WebView) findViewById(R.id.webview); 30 webView.setWebViewClient(new WebViewClient() { 32 public boolean shouldOverrideUrlLoading(WebView webView, String url) { 38 webView.loadUrl(url) [all...] |
StartupTimeActivity.java | 10 import android.webkit.WebView; 13 * This activity is designed for startup time testing of the WebView. 24 WebView webView = new WebView(this); 25 setContentView(webView);
|
TelemetryMemoryPressureActivity.java | 11 import android.webkit.WebView; 15 * This activity is designed for sending memory pressure signals for testing WebView. 28 WebView webview = (WebView) findViewById(R.id.webview); local 30 webview.getSettings().setJavaScriptEnabled(true); 32 webview.setWebViewClient(new WebViewClient() { 34 public boolean shouldOverrideUrlLoading(WebView webView, String url) [all...] |
WebViewLayoutTestActivity.java | 15 import android.webkit.WebView; 22 * This activity is used for running layout tests using webview. The activity 23 * creates a webview instance, loads url and captures console messages from 33 private WebView mWebView; 43 mWebView = (WebView) findViewById(R.id.webview); 49 public boolean shouldOverrideUrlLoading(WebView webView, String url) {
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
Licenses.java | 6 import android.webkit.WebView; 16 final WebView webView = new WebView(this); 17 webView.loadUrl(LICENSE_URL); 19 setContentView(webView);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
WebViewTest.java | 6 import android.webkit.WebView; 24 private WebView webView; 29 webView = new WebView(null); 30 shadowWebView = Robolectric.shadowOf(webView); 35 webView.loadUrl("http://example.com"); 36 assertThat(shadowOf(webView).getLastLoadedUrl(), equalTo("http://example.com")); 41 webView.loadData("<html><body><h1>Hi</h1></body></html>", "text/html", "utf-8"); 42 ShadowWebView.LoadData lastLoadData = shadowOf(webView).getLastLoadData() [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
LicenseActivity.java | 21 import android.webkit.WebView; 32 final WebView webView = (WebView) findViewById(R.id.content); 33 webView.loadUrl(LICENSE_URL);
|
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/ |
PowerTestActivity.java | 29 import android.webkit.WebView; 46 private WebView webView; 74 webView = new WebView(this); 75 webView.getSettings().setJavaScriptEnabled(true); 76 webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(false); 77 webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.NORMAL); 81 webView.setWebViewClient(webViewClient); 82 webView.setWebChromeClient(chromeClient) [all...] |
/developers/build/prebuilts/gradle/PermissionRequest/Application/tests/src/com/example/android/permissionrequest/test/ |
SampleTests.java | 24 import android.webkit.WebView; 64 final WebView webView = (WebView) view.findViewById(R.id.web_view); 65 assertNotNull(webView); 72 clickToggle(webView); 86 clickToggle(webView); 91 clickToggle(webView); 106 * @param webView The {@link WebView} [all...] |
/developers/samples/android/content/webview/PermissionRequest/Application/tests/src/com/example/android/permissionrequest/test/ |
SampleTests.java | 24 import android.webkit.WebView; 64 final WebView webView = (WebView) view.findViewById(R.id.web_view); 65 assertNotNull(webView); 72 clickToggle(webView); 86 clickToggle(webView); 91 clickToggle(webView); 106 * @param webView The {@link WebView} [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Focus1.java | 23 import android.webkit.WebView; 37 WebView webView = (WebView) findViewById(R.id.rssWebView); 38 webView.loadData(
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/uiflows/ |
WebActivityTest.java | 22 import android.webkit.WebView; 42 WebView webView = (WebView) ((ViewGroup) getActivity().findViewById(android.R.id.content)) 44 assertEquals(TEST_URL, webView.getUrl());
|
/packages/apps/TV/src/com/android/tv/dialog/ |
WebDialogFragment.java | 28 import android.webkit.WebView; 76 WebView webView = new WebView(getActivity()); 77 webView.setWebViewClient(new WebViewClient()); 79 webView.loadUrl(url); 82 return webView; 88 // Ensure the dialog is fullscreen, even if the webview doesn't have its content yet.
|
/frameworks/base/core/java/android/webkit/ |
WebViewFactoryProvider.java | 25 * This is the main entry-point into the WebView back end implementations, which the WebView 27 * implementation of this interface, and make it available to the WebView via mechanism TBD. 33 * This Interface provides glue for implementing the backend of WebView static methods which 39 * {@link android.webkit.WebView#findAddress(String)} 56 * {@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) } 62 * {@link android.webkit.WebView#clearClientCertPreferences(Runnable) } 68 * {@link android.webkit.WebView#setSlowWholeDocumentDrawEnabled(boolean) } 83 * @param webView the WebView instance bound to this implementation instance. Note it will no [all...] |
JsDialogHelper.java | 36 * different WebView implementations. 74 public boolean invokeCallback(WebChromeClient client, WebView webView) { 77 return client.onJsAlert(webView, mUrl, mMessage, mResult); 79 return client.onJsConfirm(webView, mUrl, mMessage, mResult); 81 return client.onJsBeforeUnload(webView, mUrl, mMessage, mResult); 83 return client.onJsPrompt(webView, mUrl, mMessage, mDefaultValue, mResult); 91 Log.w(TAG, "Cannot create a dialog, the WebView context is not an Activity");
|
FindActionModeCallback.java | 42 View.OnClickListener, WebView.FindListener { 46 private WebView mWebView; 91 * Set the WebView to search. Must be non null. 93 public void setWebView(WebView webView) { 94 if (null == webView) { 95 throw new AssertionError("WebView supplied to " 98 mWebView = webView; 118 "No WebView for FindActionModeCallback::findNext"); 139 "No WebView for FindActionModeCallback::findAll") [all...] |
WebChromeClient.java | 31 * @param view The WebView that initiated the callback. 35 public void onProgressChanged(WebView view, int newProgress) {} 39 * @param view The WebView that initiated the callback. 42 public void onReceivedTitle(WebView view, String title) {} 46 * @param view The WebView that initiated the callback. 49 public void onReceivedIcon(WebView view, Bitmap icon) {} 53 * @param view The WebView that initiated the callback. 57 public void onReceivedTouchIconUrl(WebView view, String url, 77 * {@link WebView}. 103 * Also see "Full screen support" documentation on {@link WebView} [all...] |
/frameworks/webview/nullwebview/java/com/android/webview/nullwebview/ |
NullWebViewFactoryProvider.java | 17 package com.android.webview.nullwebview; 26 import android.webkit.WebView; 43 public WebViewProvider createWebView(WebView webView, WebView.PrivateAccess privateAccess) {
|
/platform_testing/libraries/chrome-app-helper/src/android/platform/test/helpers/ |
ChromeHelperImpl.java | 26 import android.webkit.WebView; 241 UiObject2 webView = mDevice.findObject(By.clazz(WebView.class)); 242 if (webView != null) { 243 return webView;
|
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
PrintUtils.java | 27 import android.webkit.WebView; 86 * Sets up a webview to perform the printing work. 91 final WebView webView = new WebView(context); 92 final WebSettings settings = webView.getSettings(); 95 webView.loadDataWithBaseURL(baseUri, html, "text/html", "utf-8", null); 102 webView.createPrintDocumentAdapter(printJobName) : 103 webView.createPrintDocumentAdapter(),
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/ |
ViewLoaderTest.java | 9 import android.webkit.WebView; 127 WebView webView = (WebView) view.findViewById(R.id.web_view); 129 webView.loadUrl("www.example.com"); 131 assertThat(shadowOf(webView).getLastLoadedUrl(), equalTo("www.example.com"));
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
Utils.java | 51 import android.webkit.WebView; 164 * Sets WebView in a restricted mode suitable for email use. 166 * @param webView The WebView to restrict 168 public static void restrictWebView(WebView webView) { 169 WebSettings webSettings = webView.getSettings(); 177 * Sets custom user agent to WebView so we don't get GAIA interstitials b/13990689. 179 * @param webView The WebView to customize [all...] |