Home
last modified time | relevance | path

Searched refs:mOnUiThread (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java430 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 …]
DWebViewTest.java133 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()
301 mOnUiThread.loadUrlAndWaitForCompletion(url); in testInvokeZoomPicker()
311 mOnUiThread.setLayoutHeightToMatchParent(); in testZoom()
314 mOnUiThread.setWebViewClient(webViewClient); in testZoom()
317 mOnUiThread.loadUrlAndWaitForCompletion( in testZoom()
321 WebSettings settings = mOnUiThread.getSettings(); in testZoom()
324 float currScale = mOnUiThread.getScale(); in testZoom()
[all …]
DWebSettingsTest.java63 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 …]
DHttpAuthHandlerTest.java38 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 …]
DWebViewClientTest.java50 private WebViewOnUiThread mOnUiThread; field in WebViewClientTest
70 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp()
76 if (mOnUiThread != null) { in tearDown()
77 mOnUiThread.cleanUp(); in tearDown()
91 assertFalse(webViewClient.shouldOverrideUrlLoading(mOnUiThread.getWebView(), new String())); in testShouldOverrideUrlLoadingDefault()
100 mOnUiThread.setWebViewClient(webViewClient); in testShouldOverrideUrlLoading()
101 mOnUiThread.getSettings().setJavaScriptEnabled(true); in testShouldOverrideUrlLoading()
105 mOnUiThread.loadDataAndWaitForCompletion(data, "text/html", null); in testShouldOverrideUrlLoading()
106 clickOnLinkUsingJs("link", mOnUiThread); in testShouldOverrideUrlLoading()
125 mOnUiThread.setWebViewClient(mainWebViewClient); in testShouldOverrideUrlLoadingOnCreateWindow()
[all …]
DWebChromeClientTest.java37 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 …]
DPostMessageTest.java35 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 …]
DWebHistoryItemTest.java32 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 …]
DWebBackForwardListTest.java31 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()
DServiceWorkerClientTest.java67 private WebViewOnUiThread mOnUiThread; field in ServiceWorkerClientTest
121 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp()
122 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp()
125 mOnUiThread.addJavascriptInterface(mJavascriptStatusReceiver, JS_INTERFACE_NAME); in setUp()
126 mOnUiThread.setWebViewClient(new InterceptClient(mOnUiThread)); in setUp()
131 if (mOnUiThread != null) { in tearDown()
132 mOnUiThread.cleanUp(); in tearDown()
144 mOnUiThread.loadUrlAndWaitForCompletion(INDEX_URL); in testServiceWorkerClientInterceptCallback()
DGeolocationTest.java108 private WebViewOnUiThread mOnUiThread; field in GeolocationTest
147 mOnUiThread = new WebViewOnUiThread(this, webview); in setUp()
148 mOnUiThread.getSettings().setJavaScriptEnabled(true); in setUp()
149 mOnUiThread.getSettings().setGeolocationEnabled(true); in setUp()
150 mOnUiThread.getSettings().setGeolocationDatabasePath( in setUp()
155 mOnUiThread.addJavascriptInterface(mJavascriptStatusReceiver, JS_INTERFACE_NAME); in setUp()
158 mOnUiThread.setWebViewClient(new InterceptClient(mOnUiThread)); in setUp()
202 if (mOnUiThread != null) { in tearDown()
203 mOnUiThread.cleanUp(); in tearDown()
299 mOnUiThread.loadUrlAndWaitForCompletion(url); in loadUrlAndUpdateLocation()
[all …]
DCookieManagerTest.java42 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 …]
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java1016 private WebViewOnUiThread mOnUiThread;
1019 mOnUiThread = onUiThread;
1025 mOnUiThread.onProgressChanged(newProgress);
1037 private WebViewOnUiThread mOnUiThread;
1040 mOnUiThread = onUiThread;
1046 mOnUiThread.onPageFinished();
1052 mOnUiThread.onPageStarted();