Home
last modified time | relevance | path

Searched refs:mWebView (Results 1 – 17 of 17) sorted by relevance

/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java66 private WebView mWebView; field in WebViewOnUiThread
78 mWebView = webView; in WebViewOnUiThread()
87 mWebView.setWebViewClient(webViewClient); in setWebViewClient()
93 mWebView.setWebChromeClient(webChromeClient); in setWebChromeClient()
102 setWebViewRenderProcessClient(mWebView, webViewRenderProcessClient); in setWebViewRenderProcessClient()
122 setWebViewRenderProcessClient(mWebView, executor, webViewRenderProcessClient); in setWebViewRenderProcessClient()
142 return getWebViewRenderProcessClient(mWebView); in getWebViewRenderProcessClient()
157 mWebView.setPictureListener(pictureListener); in setPictureListener()
163 mWebView.setNetworkAvailable(available); in setNetworkAvailable()
169 mWebView.setDownloadListener(listener); in setDownloadListener()
[all …]
DWebViewSyncLoader.java64 private WebView mWebView; field in WebViewSyncLoader
91 mWebView = webView; in init()
92 mWebView.setWebViewClient(waitForLoadedClient); in init()
93 mWebView.setWebChromeClient(waitForProgressClient); in init()
94 mWebView.setPictureListener(waitForNewPicture); in init()
105 mWebView.setWebChromeClient(null); in detach()
106 mWebView.setWebViewClient(null); in detach()
107 mWebView.setPictureListener(null); in detach()
108 mWebView = null; in detach()
119 WebView webView = mWebView; in destroy()
[all …]
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewStartupCtsActivity.java25 private WebView mWebView; field in WebViewStartupCtsActivity
33 mWebView = new WebView(this); in createAndAttachWebView()
34 setContentView(mWebView); in createAndAttachWebView()
35 return mWebView; in createAndAttachWebView()
39 return mWebView; in getWebView()
43 if (mWebView != null) { in detachAndDestroyWebView()
44 ViewGroup vg = (ViewGroup)mWebView.getParent(); in detachAndDestroyWebView()
45 vg.removeView(mWebView); in detachAndDestroyWebView()
46 mWebView.destroy(); in detachAndDestroyWebView()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DWebViewReadyHelper.java17 private final WebView mWebView; field in WebViewReadyHelper
20 mWebView = webview; in WebViewReadyHelper()
22 mWebView.setWebViewClient(mClient); in WebViewReadyHelper()
26 mWebView.loadData(data, null, null); in loadData()
31 mWebView.postVisualStateCallback(0, mVisualStateCallback);
38 mWebView.getViewTreeObserver().addOnDrawListener(mOnDrawListener);
39 mWebView.invalidate();
47 mWebView.postInvalidate();
51 mWebView.post(() -> {
52 mWebView.getViewTreeObserver().removeOnDrawListener(mOnDrawListener);
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DWebViewTestActivity.java28 private WebView mWebView; field in WebViewTestActivity
34 mWebView = new WebView(this); in onCreate()
35 setContentView(mWebView); in onCreate()
42 return mWebView; in getWebView()
47 if (mWebView != null) { in onDestroy()
48 ViewParent parent = mWebView.getParent(); in onDestroy()
50 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
52 mWebView.destroy(); in onDestroy()
DWebViewTest.java28 private WebView mWebView; field in WebViewTest
42 mWebView = activity.getWebView(); in setUp()
43 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieSyncManagerCtsActivity.java29 private WebView mWebView; field in CookieSyncManagerCtsActivity
38 mWebView = new WebView(this); in onCreate()
39 setContentView(mWebView); in onCreate()
57 if (mWebView != null) { in onDestroy()
58 ViewParent parent = mWebView.getParent(); in onDestroy()
60 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
62 mWebView.destroy(); in onDestroy()
78 return mWebView; in getWebView()
DWebViewCtsActivity.java32 private WebView mWebView; field in WebViewCtsActivity
40 mWebView = (WebView) findViewById(R.id.web_page); in onCreate()
62 return mWebView; in getWebView()
67 if (mWebView != null) { in onDestroy()
68 ViewParent parent = mWebView.getParent(); in onDestroy()
70 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
72 mWebView.destroy(); in onDestroy()
DWebViewTest.java157 private WebView mWebView; field in WebViewTest
170 mWebView = activity.getWebView(); in setUp()
171 if (mWebView != null) { in setUp()
183 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
308 mWebView.setHorizontalScrollbarOverlay(true); in testScrollBarOverlay()
309 mWebView.setVerticalScrollbarOverlay(false); in testScrollBarOverlay()
311 assertTrue(mWebView.overlayHorizontalScrollbar()); in testScrollBarOverlay()
312 assertFalse(mWebView.overlayVerticalScrollbar()); in testScrollBarOverlay()
322 assertNull(mWebView.getUrl()); in testLoadUrl()
323 assertNull(mWebView.getOriginalUrl()); in testLoadUrl()
[all …]
DWebViewZoomTest.java47 private WebView mWebView; field in WebViewZoomTest
65 mWebView = activity.getWebView(); in setUp()
66 if (mWebView == null) in setUp()
68 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
140 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
147 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
157 WebkitUtils.onMainThreadSync(() -> mWebView.invokeZoomPicker()); in testInvokeZoomPicker()
DPostMessageTest.java40 private WebView mWebView; field in PostMessageTest
54 mWebView = activity.getWebView(); in setUp()
55 if (mWebView != null) { in setUp()
56 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
DWebViewSslTest.java430 private WebView mWebView; field in WebViewSslTest
442 mWebView = activity.getWebView(); in setUp()
443 if (mWebView != null) { in setUp()
455 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
583 private WebView mWebView; in testOnReceivedSslError() field in WebViewSslTest.MockWebViewClient
590 mWebView = view; in testOnReceivedSslError()
598 return mWebView; in testOnReceivedSslError()
609 assertEquals(mWebView, webViewClient.webView()); in testOnReceivedSslError()
DCookieManagerTest.java43 private WebView mWebView; field in CookieManagerTest
54 mWebView = getActivity().getWebView(); in setUp()
55 if (mWebView != null) { in setUp()
56 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
/cts/tests/tests/text/src/android/text/cts/
DEmojiCtsActivity.java26 private WebView mWebView; field in EmojiCtsActivity
33 mWebView = (WebView) findViewById(R.id.web_page); in onCreate()
40 return mWebView; in getWebView()
45 if (mWebView != null) { in onDestroy()
46 mWebView.destroy(); in onDestroy()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DWebViewActivity.java82 mWebView = new MyWebView(context); in loadWebView()
83 mParent.addView(mWebView); in loadWebView()
84 mWebView.setWebViewClient(new WebViewClient() { in loadWebView()
115 mWebView.loadUrl(FAKE_URL); in loadWebView()
124 assertThat(mWebView.isAutofillEnabled()).isTrue(); in loadWebView()
141 return mWebView; in loadWebView()
DWebViewMultiScreenLoginActivity.java64 mWebView = findViewById(R.id.my_webview); in onCreate()
69 mWebView.setWebViewClient(new WebViewClient() { in loadWebView()
103 mWebView.loadUrl(FAKE_USERNAME_URL); in loadWebView()
112 assertThat(mWebView.isAutofillEnabled()).isTrue(); in loadWebView()
127 return mWebView; in loadWebView()
DAbstractWebViewActivity.java30 protected MyWebView mWebView; field in AbstractWebViewActivity
53 mWebView.dispatchKeyEvent(keyEvent); in dispatchKeyPress()
55 mWebView.dispatchKeyEvent(keyEvent); in dispatchKeyPress()