Home
last modified time | relevance | path

Searched refs:WebkitUtils (Results 1 – 15 of 15) sorted by relevance

/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java86 WebkitUtils.onMainThreadSync(() -> { in setWebViewClient()
92 WebkitUtils.onMainThreadSync(() -> { in setWebChromeClient()
111 WebkitUtils.onMainThreadSync(() -> in setWebViewRenderProcessClient()
133 WebkitUtils.onMainThreadSync(() -> in setWebViewRenderProcessClient()
150 return WebkitUtils.onMainThreadSync(() -> { in getWebViewRenderProcessClient()
156 WebkitUtils.onMainThreadSync(() -> { in setPictureListener()
162 WebkitUtils.onMainThreadSync(() -> { in setNetworkAvailable()
168 WebkitUtils.onMainThreadSync(() -> { in setDownloadListener()
174 WebkitUtils.onMainThreadSync(() -> { in setBackgroundColor()
180 WebkitUtils.onMainThreadSync(() -> { in clearCache()
[all …]
DWebViewSyncLoader.java86 WebkitUtils.onMainThreadSync(() -> { in init()
102 WebkitUtils.onMainThreadSync(this::detach); in detach()
116 WebkitUtils.onMainThreadSync(this::destroy); in destroy()
241 waitForCriteria(WebkitUtils.TEST_TIMEOUT_MS, in waitForLoadCompletion()
283 WebkitUtils.onMainThread(call); in callAndWait()
DWebkitUtils.java39 public final class WebkitUtils { class
194 private WebkitUtils() {} in WebkitUtils() method in WebkitUtils
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewRenderProcessTest.java58 return WebkitUtils.onMainThreadSync(() -> { in terminateRenderProcessOnUiThread()
64 return WebkitUtils.onMainThreadSync(() -> { in getRenderProcessOnUiThread()
73 WebkitUtils.onMainThread(() -> {
90 WebkitUtils.onMainThread(() -> {
125 …final WebViewRenderProcess renderer = WebkitUtils.waitForFuture(startAndGetRenderProcess(webView));
132 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView)));
140 WebkitUtils.waitForFuture(terminationFuture));
150 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView2)));
154 WebkitUtils.onMainThreadSync(() -> webView2.destroy());
DPostMessageTest.java182 WebkitUtils.onMainThreadSync(() -> { in testMessageChannel()
200 WebkitUtils.waitForNextQueueElement(queue)); in testMessageChannel()
218 WebkitUtils.onMainThreadSync(() -> { in testClose()
263 WebkitUtils.onMainThreadSync(() -> { in testReceiveMessagePort()
296 WebkitUtils.onMainThreadSync(() -> { in testWebMessageHandler()
307 WebkitUtils.waitForFuture(messageHandlerThreadFuture)); in testWebMessageHandler()
327 WebkitUtils.onMainThreadSync(() -> { in testWebMessageDefaultHandler()
337 WebkitUtils.waitForFuture(messageMainLooperFuture)); in testWebMessageDefaultHandler()
DWebViewRenderProcessClientTest.java88 WebkitUtils.waitForFuture(mIsBlocked); in waitForBlocked()
93 WebkitUtils.onMainThreadSync(new Runnable() { in blockRenderProcess()
108 WebkitUtils.onMainThreadSync(new Runnable() { in addJsBlockerInterface()
144 WebkitUtils.waitForFuture(rendererUnblocked); in testWebViewRenderProcessClientOnExecutor()
DWebViewZoomTest.java140 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
147 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
157 WebkitUtils.onMainThreadSync(() -> mWebView.invokeZoomPicker()); in testInvokeZoomPicker()
302 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in pollingCheckForCanZoomIn()
376 return WebkitUtils.waitForNextQueueElement(mCallQueue); in waitForNextScaleChange()
DWebChromeClientTest.java134 WebkitUtils.onMainThreadSync(() -> { in testOnReceivedIcon()
247 assertEquals(JAVASCRIPT_UNLOAD, WebkitUtils.waitForNextQueueElement(pageTitleQueue)); in testOnJsBeforeUnloadIsCalled()
248 assertEquals(LISTENER_ADDED, WebkitUtils.waitForNextQueueElement(pageTitleQueue)); in testOnJsBeforeUnloadIsCalled()
251 assertEquals(TOUCH_RECEIVED, WebkitUtils.waitForNextQueueElement(pageTitleQueue)); in testOnJsBeforeUnloadIsCalled()
257 WebkitUtils.waitForFuture(onJsBeforeUnloadFuture); in testOnJsBeforeUnloadIsCalled()
388 WebkitUtils.waitForNextQueueElement(consoleMessageQueue); in testOnConsoleMessage()
DWebViewTest.java856 WebkitUtils.waitForFuture(onCreateWindowFuture); in testJavascriptInterfaceForClientPopup()
884 WebkitUtils.onMainThreadSync(() -> { in waitForPictureToHaveColor()
913 WebkitUtils.onMainThread(() -> { in testCapturePicture()
1392 assertEquals(2, (int)WebkitUtils.waitForFuture(l.future())); in testFindAll()
1414 WebkitUtils.waitForFuture(l.future()); in testFindNext()
1483 WebkitUtils.onMainThreadSync(() -> { in testDocumentHasImages()
1491 assertEquals(1, (int)WebkitUtils.waitForFuture(handler.future())); in testDocumentHasImages()
1821 WebkitUtils.waitForFuture(imageLoaded.future()); in testRequestImageRef()
2147 WebkitUtils.waitForFuture(downloadStartFuture); in testSetDownloadListener()
2226 WebkitUtils.waitForFuture(future); in testSetWebChromeClient()
[all …]
DWebHistoryItemTest.java86 WebkitUtils.onMainThreadSync(() -> { in testWebHistoryItem()
DCookieManagerTest.java416 WebkitUtils.onMainThreadSync(() -> { in removeAllCookiesOnUiThread()
422 WebkitUtils.onMainThreadSync(() -> { in removeSessionCookiesOnUiThread()
DWebSettingsTest.java275 WebkitUtils.onMainThreadSync(() -> { in openIconDatabase()
519 WebkitUtils.waitForFuture(createWindowFuture); in testAccessJavaScriptCanOpenWindowsAutomatically()
1205 WebkitUtils.onMainThreadSync(() -> { in setWebViewSize()
1317 WebkitUtils.waitForNextQueueElement(mReceivedIconQueue); in waitForNextIcon()
DTracingControllerTest.java175 WebkitUtils.onMainThreadSync(() -> {
DWebViewClientTest.java787 assertEquals(url, WebkitUtils.waitForFuture(pageCommitVisibleFuture)); in testOnPageCommitVisibleCalled()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java36 import android.webkit.cts.WebkitUtils;
145 WebkitUtils.onMainThreadSync(() -> { in runCurrentWebViewPackageTest()
237 WebView webView = WebkitUtils.onMainThreadSync(() -> { in testGetWebViewLooperCreatedOnUiThreadFromInstrThread()