/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 431 private WebViewOnUiThread mOnUiThread; field in WebViewSslTest 454 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 460 if (mOnUiThread != null) { in tearDown() 461 mOnUiThread.cleanUp(); in tearDown() 493 super(mOnUiThread); in testInsecureSiteClearsCertificate() 502 mOnUiThread.setWebViewClient(new MockWebViewClient()); in testInsecureSiteClearsCertificate() 503 mOnUiThread.loadUrlAndWaitForCompletion( in testInsecureSiteClearsCertificate() 512 mOnUiThread.loadUrlAndWaitForCompletion( in testInsecureSiteClearsCertificate() 524 super(mOnUiThread); in testSecureSiteSetsCertificate() 533 mOnUiThread.loadUrlAndWaitForCompletion( in testSecureSiteSetsCertificate() [all …]
|
D | WebViewTest.java | 142 private WebViewOnUiThread mOnUiThread; field in WebViewTest 166 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 172 if (mOnUiThread != null) { in tearDown() 173 mOnUiThread.cleanUp(); in tearDown() 310 mOnUiThread.loadUrlAndWaitForCompletion(url); in testInvokeZoomPicker() 320 mOnUiThread.setLayoutHeightToMatchParent(); in testZoom() 323 mOnUiThread.setWebViewClient(webViewClient); in testZoom() 326 mOnUiThread.loadUrlAndWaitForCompletion( in testZoom() 330 WebSettings settings = mOnUiThread.getSettings(); in testZoom() 333 float currScale = mOnUiThread.getScale(); in testZoom() [all …]
|
D | WebSettingsTest.java | 65 private WebViewOnUiThread mOnUiThread; field in WebSettingsTest 77 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 78 mSettings = mOnUiThread.getSettings(); in setUp() 88 if (mOnUiThread != null) { in tearDown() 89 mOnUiThread.cleanUp(); in tearDown() 158 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 159 assertEquals(defaultUserAgent, mOnUiThread.getTitle()); in testAccessUserAgentString() 164 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 165 assertEquals(defaultUserAgent, mOnUiThread.getTitle()); in testAccessUserAgentString() 170 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() [all …]
|
D | HttpAuthHandlerTest.java | 38 private WebViewOnUiThread mOnUiThread; field in HttpAuthHandlerTest 49 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 55 if (mOnUiThread != null) { in tearDown() 56 mOnUiThread.cleanUp(); in tearDown() 75 super(mOnUiThread); in ProceedHttpAuthClient() 100 super(mOnUiThread); in CancelHttpAuthClient() 113 mOnUiThread.setWebViewClient(client); in incorrectCredentialsAccessDenied() 117 mOnUiThread.loadUrlAndWaitForCompletion(url); in incorrectCredentialsAccessDenied() 120 … assertEquals(CtsTestServer.getReasonString(HttpStatus.SC_UNAUTHORIZED), mOnUiThread.getTitle()); in incorrectCredentialsAccessDenied() 125 mOnUiThread.setWebViewClient(client); in missingCredentialsAccessDenied() [all …]
|
D | WebViewClientTest.java | 52 private WebViewOnUiThread mOnUiThread; field in WebViewClientTest 72 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 78 if (mOnUiThread != null) { in tearDown() 79 mOnUiThread.cleanUp(); in tearDown() 93 assertFalse(webViewClient.shouldOverrideUrlLoading(mOnUiThread.getWebView(), new String())); in testShouldOverrideUrlLoadingDefault() 102 mOnUiThread.setWebViewClient(webViewClient); in testShouldOverrideUrlLoading() 103 mOnUiThread.getSettings().setJavaScriptEnabled(true); in testShouldOverrideUrlLoading() 107 mOnUiThread.loadDataAndWaitForCompletion(data, "text/html", null); in testShouldOverrideUrlLoading() 108 clickOnLinkUsingJs("link", mOnUiThread); in testShouldOverrideUrlLoading() 127 mOnUiThread.setWebViewClient(mainWebViewClient); in testShouldOverrideUrlLoadingOnCreateWindow() [all …]
|
D | WebChromeClientTest.java | 38 private WebViewOnUiThread mOnUiThread; field in WebChromeClientTest 51 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 58 if (mOnUiThread != null) { in tearDown() 59 mOnUiThread.cleanUp(); in tearDown() 76 mOnUiThread.setWebChromeClient(webChromeClient); in testOnProgressChanged() 80 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged() 95 mOnUiThread.setWebChromeClient(webChromeClient); in testOnReceivedTitle() 99 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle() 116 mOnUiThread.setWebChromeClient(webChromeClient); in testOnReceivedIcon() 131 assertNull(mOnUiThread.getFavicon()); in testOnReceivedIcon() [all …]
|
D | PostMessageTest.java | 36 private WebViewOnUiThread mOnUiThread; field in PostMessageTest 51 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 52 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 58 if (mOnUiThread != null) { in tearDown() 59 mOnUiThread.cleanUp(); in tearDown() 89 mOnUiThread.loadDataWithBaseURLAndWaitForCompletion(BASE_URI, data, in loadPage() 97 return mOnUiThread.getTitle().equals(title); in waitForTitle() 109 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testSimpleMessageToMainFrame() 121 mOnUiThread.postWebMessage(new WebMessage(Integer.toString(i)), in testMultipleMessagesToMainFrame() 133 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testMessageChannel() [all …]
|
D | WebHistoryItemTest.java | 33 private WebViewOnUiThread mOnUiThread; field in WebHistoryItemTest 61 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 67 if (mOnUiThread != null) { in tearDown() 68 mOnUiThread.cleanUp(); in tearDown() 82 final WaitForIconClient waitForIconClient = new WaitForIconClient(mOnUiThread); in testWebHistoryItem() 83 mOnUiThread.setWebChromeClient(waitForIconClient); in testWebHistoryItem() 94 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 98 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem() 106 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 113 Bitmap icon = mOnUiThread.getFavicon(); in testWebHistoryItem() [all …]
|
D | WebBackForwardListTest.java | 31 private WebViewOnUiThread mOnUiThread; field in WebBackForwardListTest 42 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 48 if (mOnUiThread != null) { in tearDown() 49 mOnUiThread.cleanUp(); in tearDown() 58 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testGetCurrentItem() 72 mOnUiThread.loadUrlAndWaitForCompletion(url1); in testGetCurrentItem() 75 mOnUiThread.loadUrlAndWaitForCompletion(url2); in testGetCurrentItem() 78 mOnUiThread.loadUrlAndWaitForCompletion(url3); in testGetCurrentItem() 89 if (mOnUiThread.getProgress() < 100) { in checkBackForwardList() 92 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in checkBackForwardList()
|
D | ServiceWorkerClientTest.java | 69 private WebViewOnUiThread mOnUiThread; field in ServiceWorkerClientTest 123 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 124 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 127 mOnUiThread.addJavascriptInterface(mJavascriptStatusReceiver, JS_INTERFACE_NAME); in setUp() 128 mOnUiThread.setWebViewClient(new InterceptClient(mOnUiThread)); in setUp() 133 if (mOnUiThread != null) { in tearDown() 134 mOnUiThread.cleanUp(); in tearDown() 150 mOnUiThread.loadUrlAndWaitForCompletion(INDEX_URL); in testServiceWorkerClientInterceptCallback()
|
D | GeolocationTest.java | 109 private WebViewOnUiThread mOnUiThread; field in GeolocationTest 148 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 149 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 150 mOnUiThread.getSettings().setGeolocationEnabled(true); in setUp() 151 mOnUiThread.getSettings().setGeolocationDatabasePath( in setUp() 156 mOnUiThread.addJavascriptInterface(mJavascriptStatusReceiver, JS_INTERFACE_NAME); in setUp() 159 mOnUiThread.setWebViewClient(new InterceptClient(mOnUiThread)); in setUp() 203 if (mOnUiThread != null) { in tearDown() 204 mOnUiThread.cleanUp(); in tearDown() 300 mOnUiThread.loadUrlAndWaitForCompletion(url); in loadUrlAndUpdateLocation() [all …]
|
D | CookieManagerTest.java | 43 private WebViewOnUiThread mOnUiThread; field in CookieManagerTest 54 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 73 mOnUiThread.cleanUp(); in testGetInstance() 103 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 104 assertEquals("0", mOnUiThread.getTitle()); // no cookies passed in testAcceptCookie() 112 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 113 assertEquals("0", mOnUiThread.getTitle()); // no cookies passed in testAcceptCookie() 124 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 125 assertEquals("1|count=0", mOnUiThread.getTitle()); // outgoing cookie in testAcceptCookie() 135 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | WebViewTest.java | 29 private WebViewOnUiThread mOnUiThread; field in WebViewTest 43 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 48 if (mOnUiThread != null) { in tearDown() 49 mOnUiThread.cleanUp(); in tearDown() 60 mOnUiThread.loadUrlAndWaitForCompletion("about:blank"); in testWebViewLoads()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 1053 private WebViewOnUiThread mOnUiThread; 1056 mOnUiThread = onUiThread; 1062 mOnUiThread.onProgressChanged(newProgress); 1074 private WebViewOnUiThread mOnUiThread; 1077 mOnUiThread = onUiThread; 1083 mOnUiThread.onPageFinished(); 1089 mOnUiThread.onPageStarted();
|