Home
last modified time | relevance | path

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

/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java66 private WebView mWebView; field in WebViewOnUiThread
80 mWebView = webView; in WebViewOnUiThread()
89 mWebView.setWebViewClient(webViewClient); in setWebViewClient()
95 mWebView.setWebChromeClient(webChromeClient); in setWebChromeClient()
104 setWebViewRenderProcessClient(mWebView, webViewRenderProcessClient); in setWebViewRenderProcessClient()
124 setWebViewRenderProcessClient(mWebView, executor, webViewRenderProcessClient); in setWebViewRenderProcessClient()
144 return getWebViewRenderProcessClient(mWebView); in getWebViewRenderProcessClient()
159 mWebView.setPictureListener(pictureListener); in setPictureListener()
165 mWebView.setNetworkAvailable(available); in setNetworkAvailable()
171 mWebView.setDownloadListener(listener); in setDownloadListener()
[all …]
DWebViewSyncLoader.java63 private WebView mWebView; field in WebViewSyncLoader
90 mWebView = webView; in init()
91 mWebView.setWebViewClient(waitForLoadedClient); in init()
92 mWebView.setWebChromeClient(waitForProgressClient); in init()
93 mWebView.setPictureListener(waitForNewPicture); in init()
104 mWebView.setWebChromeClient(null); in detach()
105 mWebView.setWebViewClient(null); in detach()
106 mWebView.setPictureListener(null); in detach()
117 WebView webView = mWebView; in destroy()
128 return mWebView; in getWebView()
[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
37 mWebView = new WebView(this); in onCreate()
38 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
39 mWebView = new WebView(this); in onCreate()
40 setContentView(mWebView); in onCreate()
53 if (mWebView != null) { in onDestroy()
54 ViewParent parent = mWebView.getParent(); in onDestroy()
56 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
58 mWebView.destroy(); in onDestroy()
72 return mWebView; in getWebView()
DWebViewCtsActivity.java29 private WebView mWebView; field in WebViewCtsActivity
39 mWebView = (WebView) findViewById(R.id.web_page); in onCreate()
43 return mWebView; in getWebView()
52 if (mWebView != null) { in onDestroy()
53 ViewParent parent = mWebView.getParent(); in onDestroy()
55 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
57 mWebView.destroy(); in onDestroy()
DWebViewTest.java155 private WebView mWebView; field in WebViewTest
160 mWebView = getTestEnvironment().getWebView(); in setUp()
161 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
311 mWebView.setHorizontalScrollbarOverlay(true); in testScrollBarOverlay()
312 mWebView.setVerticalScrollbarOverlay(false); in testScrollBarOverlay()
314 assertTrue(mWebView.overlayHorizontalScrollbar()); in testScrollBarOverlay()
315 assertFalse(mWebView.overlayVerticalScrollbar()); in testScrollBarOverlay()
326 assertNull(mWebView.getUrl()); in testLoadUrl()
327 assertNull(mWebView.getOriginalUrl()); in testLoadUrl()
328 assertEquals(INITIAL_PROGRESS, mWebView.getProgress()); in testLoadUrl()
[all …]
DWebViewZoomTest.java62 private WebView mWebView; field in WebViewZoomTest
74 mWebView = getTestEnvironment().getWebView(); in setUp()
75 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
157 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
164 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
172 WebkitUtils.onMainThreadSync(() -> mWebView.invokeZoomPicker()); in testInvokeZoomPicker()
DPostMessageTest.java55 private WebView mWebView; field in PostMessageTest
67 mWebView = getTestEnvironment().getWebView(); in setUp()
68 if (mWebView != null) { in setUp()
69 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
DWebViewSslTest.java450 private WebView mWebView; field in WebViewSslTest
456 mWebView = getTestEnvironment().getWebView(); in setUp()
457 mOnUiThread = new WebViewOnUiThread(mWebView); in setUp()
613 private WebView mWebView; in testOnReceivedSslError() field in WebViewSslTest.MockWebViewClient
620 mWebView = view; in testOnReceivedSslError()
628 return mWebView; in testOnReceivedSslError()
639 assertEquals(mWebView, webViewClient.webView()); in testOnReceivedSslError()
/cts/tests/tests/text/src/android/text/cts/
DEmojiCtsActivity.java28 private WebView mWebView; field in EmojiCtsActivity
38 mWebView = (WebView) findViewById(R.id.web_page); 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()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DWebViewActivity.java88 mWebView = new MyWebView(context); in loadWebView()
89 mParent.addView(mWebView); in loadWebView()
90 mWebView.setWebViewClient(new WebViewClient() { in loadWebView()
121 mWebView.loadUrl(FAKE_URL); in loadWebView()
130 assertThat(mWebView.isAutofillEnabled()).isTrue(); in loadWebView()
147 return mWebView; in loadWebView()
191 getAutofillManager().notifyVirtualViewsReady(mWebView, viewInfo); in notifyViewReady()
213 getAutofillManager().notifyVirtualViewsReady(mWebView, viewInfo); in notifyViewReady()
217 getAutofillManager().notifyVirtualViewsReady(mWebView, new SparseArray<>()); in notifyViewReadyWithEmptyInfo()
221 getAutofillManager().notifyVirtualViewsReady(mWebView, null); in notifyViewReadyWithNullInfo()
DAbstractWebViewActivity.java32 protected MyWebView mWebView; field in AbstractWebViewActivity
58 mWebView.dispatchKeyEvent(keyEvent); in dispatchKeyPress()
62 mWebView.dispatchKeyEvent(keyEvent); in dispatchKeyPress()
DWebViewMultiScreenLoginActivity.java67 mWebView = findViewById(R.id.my_webview); in onCreate()
72 mWebView.setWebViewClient(new WebViewClient() { in loadWebView()
106 mWebView.loadUrl(FAKE_USERNAME_URL); in loadWebView()
115 assertThat(mWebView.isAutofillEnabled()).isTrue(); in loadWebView()
130 return mWebView; in loadWebView()
/cts/libs/webkit-shared/src/android/webkit/cts/
DSharedWebViewTestEnvironment.java52 @Nullable private final WebView mWebView; field in SharedWebViewTestEnvironment
62 mWebView = webView; in SharedWebViewTestEnvironment()
74 return mWebView; in getWebView()
149 private WebView mWebView;
162 mWebView = webView;
190 mContext, mWebView, mHostAppInvoker, mRootLayout);
/cts/libs/webkit-shared/
DREADME.md54 .setWebView(mWebView)
123 mWebView = getTestEnvironment().getWebView();