/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 88 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 …]
|
D | WebViewSyncLoader.java | 85 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()
|
D | WebkitUtils.java | 39 public final class WebkitUtils { class 194 private WebkitUtils() {} in WebkitUtils() method in WebkitUtils
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewRenderProcessTest.java | 95 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());
|
D | WebViewTest.java | 204 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 …]
|
D | PostMessageTest.java | 131 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()
|
D | WebChromeClientTest.java | 132 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 …]
|
D | WebViewRenderProcessClientTest.java | 124 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()
|
D | WebViewClientTest.java | 131 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 …]
|
D | WebViewZoomTest.java | 120 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()
|
D | WebViewStartupTest.java | 77 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()
|
D | CookieManagerTest.java | 195 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()
|
D | WebSettingsTest.java | 306 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 …]
|
D | WebHistoryItemTest.java | 123 WebkitUtils.onMainThreadSync(() -> { in testWebHistoryItem() 135 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in testWebHistoryItem()
|
D | TestProcessService.java | 56 return WebkitUtils.waitForFuture(testResultFuture);
|
D | WebViewTransportTest.java | 65 WebkitUtils.onMainThreadSync(() -> { in testAccessWebView()
|
D | WebViewDarkModeTestBase.java | 52 WebkitUtils.onMainThreadSync(() -> { in setWebViewSize()
|
D | WebViewDarkModeLightThemeTest.java | 70 WebkitUtils.onMainThreadSync(() -> { in testSimplifedDarkMode_rendersLight()
|
D | WebViewDarkModeDarkThemeTest.java | 71 WebkitUtils.onMainThreadSync(() -> { in testSimplifiedDarkMode_rendersDark()
|
D | TestProcessClient.java | 92 WebkitUtils.waitForFuture(exceptionPropagatingFuture); in run()
|
D | WebBackForwardListTest.java | 118 new PollingCheck(WebkitUtils.TEST_TIMEOUT_MS) { in checkBackForwardList()
|
D | TracingControllerTest.java | 190 WebkitUtils.onMainThreadSync(() -> {
|
D | WebViewSslTest.java | 494 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/ |
D | WebViewSandboxTestSdk.java | 30 import android.webkit.cts.WebkitUtils; 88 WebkitUtils.onMainThreadSync(() -> { in cleanUpOnTestFinish()
|