Home
last modified time | relevance | path

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

/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java88 WebkitUtils.onMainThreadSync(() -> { in setWebViewClient()
94 WebkitUtils.onMainThreadSync(() -> { in setWebChromeClient()
113 WebkitUtils.onMainThreadSync(() -> in setWebViewRenderProcessClient()
135 WebkitUtils.onMainThreadSync(() -> in setWebViewRenderProcessClient()
152 return WebkitUtils.onMainThreadSync(() -> { in getWebViewRenderProcessClient()
158 WebkitUtils.onMainThreadSync(() -> { in setPictureListener()
164 WebkitUtils.onMainThreadSync(() -> { in setNetworkAvailable()
170 WebkitUtils.onMainThreadSync(() -> { in setDownloadListener()
176 WebkitUtils.onMainThreadSync(() -> { in setBackgroundColor()
182 WebkitUtils.onMainThreadSync(() -> { in clearCache()
[all …]
DWebViewSyncLoader.java85 WebkitUtils.onMainThreadSync(() -> { in init()
101 WebkitUtils.onMainThreadSync(this::detach); in detach()
114 WebkitUtils.onMainThreadSync(this::destroy); in destroy()
239 waitForLoadCompletionOnUiThread(WebkitUtils.TEST_TIMEOUT_MS); in waitForLoadCompletion()
241 waitForLoadCompletionOnTestThread(WebkitUtils.TEST_TIMEOUT_MS); in waitForLoadCompletion()
278 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.java95 return WebkitUtils.onMainThreadSync(() -> { in terminateRenderProcessOnUiThread()
101 return WebkitUtils.onMainThreadSync(() -> { in getRenderProcessOnUiThread()
110 WebkitUtils.onMainThread(() -> {
127 WebkitUtils.onMainThread(() -> {
155 …final WebViewRenderProcess renderer = WebkitUtils.waitForFuture(startAndGetRenderProcess(webView));
162 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView)));
170 WebkitUtils.waitForFuture(terminationFuture));
180 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView2)));
184 WebkitUtils.onMainThreadSync(() -> webView2.destroy());
DWebViewTest.java204 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in createTestEnvironment()
221 WebkitUtils.onMainThreadSync( in testConstructor()
234 WebkitUtils.onMainThreadSync( in testCreatingWebViewWithDeviceEncrpytionFails()
249 WebkitUtils.onMainThreadSync( in testCreatingWebViewWithMultipleEncryptionContext()
273 WebkitUtils.onMainThreadSync( in testCreatingWebViewCreatesCookieSyncManager()
308 WebkitUtils.onMainThreadSync( in testScrollBarOverlay()
324 WebkitUtils.onMainThreadSync( in testLoadUrl()
345 WebkitUtils.onMainThreadSync( in testPostUrlWithNonNetworkUrl()
371 WebkitUtils.onMainThreadSync( in testLoadUrlDoesNotStripParamsWhenLoadingContentUrls()
390 WebkitUtils.onMainThreadSync( in testAppInjectedXRequestedWithHeaderIsNotOverwritten()
[all …]
DPostMessageTest.java131 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in waitForTitle()
210 WebkitUtils.onMainThreadSync(() -> { in testMessageChannel()
228 WebkitUtils.waitForNextQueueElement(queue)); in testMessageChannel()
244 WebkitUtils.onMainThreadSync(() -> { in testClose()
288 WebkitUtils.onMainThreadSync(() -> { in testReceiveMessagePort()
319 WebkitUtils.onMainThreadSync(() -> { in testWebMessageHandler()
330 WebkitUtils.waitForFuture(messageHandlerThreadFuture)); in testWebMessageHandler()
348 WebkitUtils.onMainThreadSync(() -> { in testWebMessageDefaultHandler()
358 WebkitUtils.waitForFuture(messageMainLooperFuture)); in testWebMessageDefaultHandler()
DWebChromeClientTest.java132 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testOnProgressChanged()
149 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testOnReceivedTitle()
164 WebkitUtils.onMainThreadSync(() -> { in testOnReceivedIcon()
179 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testOnReceivedIcon()
204 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in runWindowTest()
212 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in runWindowTest()
268 assertEquals(JAVASCRIPT_UNLOAD, WebkitUtils.waitForNextQueueElement(pageTitleQueue)); in testOnJsBeforeUnloadIsCalled()
269 assertEquals(LISTENER_ADDED, WebkitUtils.waitForNextQueueElement(pageTitleQueue)); in testOnJsBeforeUnloadIsCalled()
272 assertEquals(TOUCH_RECEIVED, WebkitUtils.waitForNextQueueElement(pageTitleQueue)); in testOnJsBeforeUnloadIsCalled()
278 WebkitUtils.waitForFuture(onJsBeforeUnloadFuture); in testOnJsBeforeUnloadIsCalled()
[all …]
DWebViewRenderProcessClientTest.java124 WebkitUtils.waitForFuture(mIsBlocked); in waitForBlocked()
129 WebkitUtils.onMainThreadSync(() -> { in blockRenderProcess()
138 WebkitUtils.onMainThreadSync(() -> { in blockRenderProcess()
148 WebkitUtils.onMainThreadSync(new Runnable() { in addJsBlockerInterface()
184 WebkitUtils.waitForFuture(rendererUnblocked); in testWebViewRenderProcessClientOnExecutor()
DWebViewClientTest.java131 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in createTestEnvironment()
216 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testShouldOverrideUrlLoadingOnCreateWindow()
222 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testShouldOverrideUrlLoadingOnCreateWindow()
236 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testShouldOverrideUrlLoadingOnCreateWindow()
250 WebkitUtils.onMainThreadSync(() -> { in testShouldOverrideUrlLoadingOnCreateWindow()
278 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testLoadPage()
285 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testLoadPage()
292 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testLoadPage()
318 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testOnReceivedLoginRequest()
396 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testOnFormResubmission()
[all …]
DWebViewZoomTest.java120 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in createTestEnvironment()
157 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
164 WebkitUtils.onMainThreadSync(() -> { return mWebView.getZoomControls(); })); in testGetZoomControls()
172 WebkitUtils.onMainThreadSync(() -> mWebView.invokeZoomPicker()); in testInvokeZoomPicker()
306 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in pollingCheckForCanZoomIn()
387 return WebkitUtils.waitForNextQueueElement(mCallQueue); in waitForNextScaleChange()
DWebViewStartupTest.java77 WebkitUtils.onMainThreadSync(() -> { in runCurrentWebViewPackageTest()
169 WebkitUtils.onMainThreadSync(() -> createAndCheckWebViewLooper(ctx)); in run()
171 WebkitUtils.onMainThreadSync(() -> webView.destroy()); in run()
210 final WebView webview = WebkitUtils.waitForFuture(webViewFuture); in run()
DCookieManagerTest.java195 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testSetCookieNullCallback()
269 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testRemoveCookiesNullCallback()
280 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testRemoveCookiesNullCallback()
455 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in waitForCookie()
476 WebkitUtils.onMainThreadSync(() -> { in removeAllCookiesOnUiThread()
482 WebkitUtils.onMainThreadSync(() -> { in removeSessionCookiesOnUiThread()
DWebSettingsTest.java306 WebkitUtils.onMainThreadSync(() -> { in openIconDatabase()
515 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testAccessJavaScriptCanOpenWindowsAutomatically()
527 WebkitUtils.waitForFuture(createWindowFuture); in testAccessJavaScriptCanOpenWindowsAutomatically()
529 WebkitUtils.onMainThreadSync(() -> { in testAccessJavaScriptCanOpenWindowsAutomatically()
544 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testAccessJavaScriptEnabled()
554 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testAccessJavaScriptEnabled()
715 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testAppCacheDisabled()
740 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testAppCacheEnabled()
1119 WebkitUtils.onMainThreadSync(() -> { in setWebViewSize()
1155 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in waitForNonEmptyImage()
[all …]
DWebHistoryItemTest.java123 WebkitUtils.onMainThreadSync(() -> { in testWebHistoryItem()
135 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testWebHistoryItem()
DTestProcessService.java56 return WebkitUtils.waitForFuture(testResultFuture);
DWebViewTransportTest.java65 WebkitUtils.onMainThreadSync(() -> { in testAccessWebView()
DWebViewDarkModeTestBase.java52 WebkitUtils.onMainThreadSync(() -> { in setWebViewSize()
DWebViewDarkModeLightThemeTest.java70 WebkitUtils.onMainThreadSync(() -> { in testSimplifedDarkMode_rendersLight()
DWebViewDarkModeDarkThemeTest.java71 WebkitUtils.onMainThreadSync(() -> { in testSimplifiedDarkMode_rendersDark()
DTestProcessClient.java92 WebkitUtils.waitForFuture(exceptionPropagatingFuture); in run()
DWebBackForwardListTest.java118 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in checkBackForwardList()
DTracingControllerTest.java190 WebkitUtils.onMainThreadSync(() -> {
DWebViewSslTest.java494 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in createTestEnvironment()
939 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in clearClientCertPreferences()
/cts/tests/tests/sdksandbox/webkit/sdk/src/com/android/cts/sdk/
DWebViewSandboxTestSdk.java30 import android.webkit.cts.WebkitUtils;
88 WebkitUtils.onMainThreadSync(() -> { in cleanUpOnTestFinish()