Home
last modified time | relevance | path

Searched refs:webView (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewRenderProcessTest.java83 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
87 .setWebView(webView); in createTestEnvironment()
100 WebViewRenderProcess getRenderProcessOnUiThread(final WebView webView) { in getRenderProcessOnUiThread() argument
102 return webView.getWebViewRenderProcess(); in getRenderProcessOnUiThread()
107 final WebView webView) throws Throwable {
111 webView.setWebViewClient(new WebViewClient() {
114 WebViewRenderProcess result = webView.getWebViewRenderProcess();
118 webView.loadUrl("about:blank");
124 Future<Boolean> catchRenderProcessTermination(final WebView webView) {
128 webView.setWebViewClient(new WebViewClient() {
[all …]
DWebViewTransportTest.java53 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
57 .setWebView(webView); in createTestEnvironment()
66 WebView webView = getTestEnvironment().getWebView(); in testAccessWebView() local
67 WebViewTransport transport = webView.new WebViewTransport(); in testAccessWebView()
71 transport.setWebView(webView); in testAccessWebView()
72 assertSame(webView, transport.getWebView()); in testAccessWebView()
DWebViewRenderProcessClientTest.java84 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
88 .setWebView(webView); in createTestEnvironment()
130 WebView webView = mOnUiThread.getWebView(); in blockRenderProcess() local
131 webView.evaluateJavascript("blocker.block();", null); in blockRenderProcess()
139 WebView webView = mOnUiThread.getWebView(); in blockRenderProcess() local
142 webView.dispatchKeyEvent( in blockRenderProcess()
151 WebView webView = mOnUiThread.getWebView(); in addJsBlockerInterface()
152 webView.getSettings().setJavaScriptEnabled(true); in addJsBlockerInterface()
153 webView.addJavascriptInterface(blocker, "blocker"); in addJsBlockerInterface()
DWebViewStartupTest.java74 WebView webView = new WebView(ctx); in runCurrentWebViewPackageTest() local
75 webView.destroy(); in runCurrentWebViewPackageTest()
78 WebView webView = new WebView(ctx); in runCurrentWebViewPackageTest() local
79 webView.destroy(); in runCurrentWebViewPackageTest()
143 WebView webView = createAndCheckWebViewLooper(ctx); in runOnUiThread() local
144 webView.destroy(); in runOnUiThread()
168 WebView webView = in run() local
170 assertEquals(Looper.getMainLooper(), webView.getWebViewLooper()); in run()
171 WebkitUtils.onMainThreadSync(() -> webView.destroy()); in run()
DWebViewDarkModeTestBase.java53 WebView webView = mOnUiThread.getWebView(); in setWebViewSize() local
54 ViewGroup.LayoutParams params = webView.getLayoutParams(); in setWebViewSize()
57 webView.setLayoutParams(params); in setWebViewSize()
DServiceWorkerWebSettingsTest.java75 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
80 .setWebView(webView); in createTestEnvironment()
DWebViewTest.java190 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
195 .setWebView(webView) in createTestEnvironment()
223 WebView webView = new WebView(mContext); in testConstructor() local
224 webView.destroy(); in testConstructor()
225 webView = new WebView(mContext, null); in testConstructor()
226 webView.destroy(); in testConstructor()
227 webView = new WebView(mContext, null, 0); in testConstructor()
228 webView.destroy(); in testConstructor()
258 WebView webView = new WebView(credentialEncryptedContext); in testCreatingWebViewWithMultipleEncryptionContext() local
259 webView.destroy(); in testCreatingWebViewWithMultipleEncryptionContext()
[all …]
DWebBackForwardListTest.java76 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
81 .setWebView(webView); in createTestEnvironment()
DWebHistoryItemTest.java108 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
113 .setWebView(webView); in createTestEnvironment()
DCookieManagerTest.java68 WebView webView = getTestEnvironment().getWebView(); in setUp() local
69 if (webView == null) { in setUp()
73 mOnUiThread = new WebViewOnUiThread(webView); in setUp()
97 WebView webView = ((CookieSyncManagerCtsActivity) activity) in createTestEnvironment()
102 .setWebView(webView); in createTestEnvironment()
DServiceWorkerClientTest.java167 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
172 .setWebView(webView); in createTestEnvironment()
DHttpAuthHandlerTest.java90 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
95 .setWebView(webView); in createTestEnvironment()
DCookieTest.java86 WebView webView = ((CookieSyncManagerCtsActivity) activity) in createTestEnvironment()
91 .setWebView(webView); in createTestEnvironment()
DPostMessageTest.java91 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
95 .setWebView(webView); in createTestEnvironment()
DWebViewSslTest.java483 WebView webView = mActivity.getWebView(); in createTestEnvironment()
488 .setWebView(webView); in createTestEnvironment()
627 public WebView webView() { in testOnReceivedSslError() method in WebViewSslTest.MockWebViewClient
639 assertEquals(mWebView, webViewClient.webView()); in testOnReceivedSslError()
DWebViewZoomTest.java107 WebView webView = mActivity.getWebView(); in createTestEnvironment()
112 .setWebView(webView); in createTestEnvironment()
DWebSettingsTest.java134 WebView webView = ((WebViewCtsActivity) activity).getWebView(); in createTestEnvironment()
139 .setWebView(webView) in createTestEnvironment()
1120 WebView webView = mOnUiThread.getWebView(); in setWebViewSize() local
1121 ViewGroup.LayoutParams params = webView.getLayoutParams(); in setWebViewSize()
1124 webView.setLayoutParams(params); in setWebViewSize()
/cts/tests/tests/sdksandbox/webkit/sdk/src/com/android/cts/sdk/
DWebViewSandboxTestSdk.java63 WebView webView = new WebView(getContext()); in getView() local
64 FrameLayout rootLayout = wrapWebViewInLayout(webView); in getView()
70 .setWebView(webView) in getView()
89 WebView webView = mTestInstance.getTestEnvironment().getWebView(); in cleanUpOnTestFinish() local
90 ViewParent webviewParent = webView.getParent(); in cleanUpOnTestFinish()
92 ((ViewGroup) webviewParent).removeView(webView); in cleanUpOnTestFinish()
94 webView.destroy(); in cleanUpOnTestFinish()
98 private FrameLayout wrapWebViewInLayout(WebView webView) { in wrapWebViewInLayout() argument
114 webView.setLayoutParams( in wrapWebViewInLayout()
118 webviewParent.addView(webView); in wrapWebViewInLayout()
/cts/hostsidetests/resources/test-apps/RegisterSharedLibTestApp1/src/android/resources/registerresourcepaths1/
DRegisterResourcePathsTest.java55 WebView webView = mActivity.getWebView(); in testWebViewInitialization() local
57 webView.clearHistory(); in testWebViewInitialization()
58 Assert.assertNull(webView.getUrl()); in testWebViewInitialization()
59 webView.loadUrl("http://fake.url/", null); in testWebViewInitialization()
60 Assert.assertEquals("http://fake.url/", webView.getUrl()); in testWebViewInitialization()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewSyncLoader.java66 public WebViewSyncLoader(WebView webView) { in WebViewSyncLoader() argument
67 init(webView, new WaitForLoadedClient(this), new WaitForProgressClient(this), in WebViewSyncLoader()
72 WebView webView, in WebViewSyncLoader() argument
76 init(webView, waitForLoadedClient, waitForProgressClient, waitForNewPicture); in WebViewSyncLoader()
80 final WebView webView, in init() argument
86 init(webView, waitForLoadedClient, waitForProgressClient, waitForNewPicture); in init()
90 mWebView = webView; in init()
117 WebView webView = mWebView; in destroy() local
119 webView.clearHistory(); in destroy()
120 webView.clearCache(true); in destroy()
DWebViewOnUiThread.java78 public WebViewOnUiThread(WebView webView) { in WebViewOnUiThread() argument
79 super(webView); in WebViewOnUiThread()
80 mWebView = webView; in WebViewOnUiThread()
111 final WebView webView, in setWebViewRenderProcessClient() argument
114 webView.setWebViewRenderProcessClient(webViewRenderProcessClient) in setWebViewRenderProcessClient()
132 final WebView webView, in setWebViewRenderProcessClient() argument
136 webView.setWebViewRenderProcessClient(executor, webViewRenderProcessClient) in setWebViewRenderProcessClient()
151 final WebView webView) { in getWebViewRenderProcessClient() argument
153 return webView.getWebViewRenderProcessClient(); in getWebViewRenderProcessClient()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideMultipleProfileTest.java58 WebView webView = mActivity.getWebView(); in testCreateWebViewAndNavigate() local
59 Assert.assertNotNull(webView); in testCreateWebViewAndNavigate()
61 WebViewSyncLoader syncLoader = new WebViewSyncLoader(webView); in testCreateWebViewAndNavigate()
DWebViewDeviceSideStartupTest.java90 WebView webView = mActivity.getWebView(); in testCookieManagerBlockingUiThread() local
91 WebViewSyncLoader syncLoader = new WebViewSyncLoader(webView); in testCookieManagerBlockingUiThread()
93 assertEquals("1|count=41", webView.getTitle()); // outgoing cookie in testCookieManagerBlockingUiThread()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestWebView.java114 final TestWebView.Impl webView = new Impl(activity, UiDevice.getInstance( in launchTestWebViewActivity()
116 webView.setWebViewClient(new WebViewClient() { in launchTestWebViewActivity()
122 webViewRef.set(webView); in launchTestWebViewActivity()
124 layout.addView(webView); in launchTestWebViewActivity()
125 webView.loadEditorPage(); in launchTestWebViewActivity()
/cts/libs/webkit-shared/src/android/webkit/cts/
DSharedWebViewTestEnvironment.java58 WebView webView, in SharedWebViewTestEnvironment() argument
62 mWebView = webView; in SharedWebViewTestEnvironment()
161 public Builder setWebView(@NonNull WebView webView) {
162 mWebView = webView;

12