/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 430 private WebViewOnUiThread mOnUiThread; field in WebViewSslTest 453 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 459 if (mOnUiThread != null) { in tearDown() 460 mOnUiThread.cleanUp(); in tearDown() 492 super(mOnUiThread); in testInsecureSiteClearsCertificate() 501 mOnUiThread.setWebViewClient(new MockWebViewClient()); in testInsecureSiteClearsCertificate() 502 mOnUiThread.loadUrlAndWaitForCompletion( in testInsecureSiteClearsCertificate() 511 mOnUiThread.loadUrlAndWaitForCompletion( in testInsecureSiteClearsCertificate() 523 super(mOnUiThread); in testSecureSiteSetsCertificate() 532 mOnUiThread.loadUrlAndWaitForCompletion( in testSecureSiteSetsCertificate() [all …]
|
D | WebViewTest.java | 133 private WebViewOnUiThread mOnUiThread; field in WebViewTest 157 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 163 if (mOnUiThread != null) { in tearDown() 164 mOnUiThread.cleanUp(); in tearDown() 261 mOnUiThread.loadUrlAndWaitForCompletion(url); in testInvokeZoomPicker() 271 mOnUiThread.setLayoutHeightToMatchParent(); in testZoom() 274 mOnUiThread.setWebViewClient(webViewClient); in testZoom() 277 mOnUiThread.loadUrlAndWaitForCompletion( in testZoom() 281 WebSettings settings = mOnUiThread.getSettings(); in testZoom() 284 float currScale = mOnUiThread.getScale(); in testZoom() [all …]
|
D | WebSettingsTest.java | 63 private WebViewOnUiThread mOnUiThread; field in WebSettingsTest 75 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 76 mSettings = mOnUiThread.getSettings(); in setUp() 86 if (mOnUiThread != null) { in tearDown() 87 mOnUiThread.cleanUp(); in tearDown() 156 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 157 assertEquals(defaultUserAgent, mOnUiThread.getTitle()); in testAccessUserAgentString() 162 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 163 assertEquals(defaultUserAgent, mOnUiThread.getTitle()); in testAccessUserAgentString() 168 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 | 47 private WebViewOnUiThread mOnUiThread; field in WebViewClientTest 67 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 73 if (mOnUiThread != null) { in tearDown() 74 mOnUiThread.cleanUp(); in tearDown() 88 assertFalse(webViewClient.shouldOverrideUrlLoading(mOnUiThread.getWebView(), null)); in testShouldOverrideUrlLoadingDefault() 97 mOnUiThread.setWebViewClient(webViewClient); in testShouldOverrideUrlLoading() 98 mOnUiThread.getSettings().setJavaScriptEnabled(true); in testShouldOverrideUrlLoading() 102 mOnUiThread.loadDataAndWaitForCompletion(data, "text/html", null); in testShouldOverrideUrlLoading() 103 clickOnLinkUsingJs("link", mOnUiThread); in testShouldOverrideUrlLoading() 118 mOnUiThread.setWebViewClient(mainWebViewClient); in testShouldOverrideUrlLoadingOnCreateWindow() [all …]
|
D | WebHistoryItemTest.java | 32 private WebViewOnUiThread mOnUiThread; field in WebHistoryItemTest 60 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 66 if (mOnUiThread != null) { in tearDown() 67 mOnUiThread.cleanUp(); in tearDown() 81 final WaitForIconClient waitForIconClient = new WaitForIconClient(mOnUiThread); in testWebHistoryItem() 82 mOnUiThread.setWebChromeClient(waitForIconClient); in testWebHistoryItem() 93 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 97 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem() 105 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 112 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 | PostMessageTest.java | 35 private WebViewOnUiThread mOnUiThread; field in PostMessageTest 50 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 51 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 57 if (mOnUiThread != null) { in tearDown() 58 mOnUiThread.cleanUp(); in tearDown() 88 mOnUiThread.loadDataWithBaseURLAndWaitForCompletion(BASE_URI, data, in loadPage() 96 return mOnUiThread.getTitle().equals(title); in waitForTitle() 108 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testSimpleMessageToMainFrame() 120 mOnUiThread.postWebMessage(new WebMessage(Integer.toString(i)), in testMultipleMessagesToMainFrame() 132 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testMessageChannel() [all …]
|
D | WebChromeClientTest.java | 37 private WebViewOnUiThread mOnUiThread; field in WebChromeClientTest 50 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 57 if (mOnUiThread != null) { in tearDown() 58 mOnUiThread.cleanUp(); in tearDown() 75 mOnUiThread.setWebChromeClient(webChromeClient); in testOnProgressChanged() 79 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged() 94 mOnUiThread.setWebChromeClient(webChromeClient); in testOnReceivedTitle() 98 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle() 115 mOnUiThread.setWebChromeClient(webChromeClient); in testOnReceivedIcon() 130 assertNull(mOnUiThread.getFavicon()); in testOnReceivedIcon() [all …]
|
D | CookieManagerTest.java | 42 private WebViewOnUiThread mOnUiThread; field in CookieManagerTest 53 mOnUiThread = new WebViewOnUiThread(this, mWebView); in setUp() 72 mOnUiThread.cleanUp(); in testGetInstance() 102 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 103 assertEquals("0", mOnUiThread.getTitle()); // no cookies passed in testAcceptCookie() 111 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 112 assertEquals("0", mOnUiThread.getTitle()); // no cookies passed in testAcceptCookie() 123 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() 124 assertEquals("1|count=0", mOnUiThread.getTitle()); // outgoing cookie in testAcceptCookie() 134 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie() [all …]
|
D | GeolocationTest.java | 107 private WebViewOnUiThread mOnUiThread; field in GeolocationTest 146 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp() 147 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp() 148 mOnUiThread.getSettings().setGeolocationEnabled(true); in setUp() 149 mOnUiThread.getSettings().setGeolocationDatabasePath( in setUp() 154 mOnUiThread.addJavascriptInterface(mJavascriptStatusReceiver, JS_INTERFACE_NAME); in setUp() 157 mOnUiThread.setWebViewClient(new InterceptClient(mOnUiThread)); in setUp() 192 if (mOnUiThread != null) { in tearDown() 193 mOnUiThread.cleanUp(); in tearDown() 266 mOnUiThread.loadUrlAndWaitForCompletion(url); in loadUrlAndUpdateLocation() [all …]
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 987 private WebViewOnUiThread mOnUiThread; 990 mOnUiThread = onUiThread; 996 mOnUiThread.onProgressChanged(newProgress); 1008 private WebViewOnUiThread mOnUiThread; 1011 mOnUiThread = onUiThread; 1017 mOnUiThread.onPageFinished(); 1023 mOnUiThread.onPageStarted();
|