Home
last modified time | relevance | path

Searched refs:mAwContents (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
DAwZoomTest.java26 private AwContents mAwContents; field in AwZoomTest
35 mAwContents = testContainerView.getAwContents(); in setUp()
62 return mAwContents.isMultiTouchZoomSupported(); in isMultiTouchZoomSupportedOnUiThread()
80 return mAwContents.getZoomControlsForTest();
89 mAwContents.invokeZoomPicker();
95 final float previousScale = getPixelScaleOnUiThread(mAwContents);
99 return mAwContents.zoomIn();
107 final float previousScale = getPixelScaleOnUiThread(mAwContents);
111 return mAwContents.zoomOut();
119 final float previousScale = getPixelScaleOnUiThread(mAwContents);
[all …]
DGeolocationTest.java24 private AwContents mAwContents; field in GeolocationTest
61 mAwContents = createAwTestContainerViewOnMainSync(mContentsClient).getAwContents(); in setUp()
62 enableJavaScriptOnUiThread(mAwContents); in setUp()
76 mAwContents.getSettings().setGeolocationEnabled(true); in setupGeolocation()
87 mAwContents, mContentsClient, "positionCount")); in getPositionCountFromJS()
110 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testGetPosition()
113 mAwContents.evaluateJavaScript("initiate_getCurrentPosition();", null); in testGetPosition()
122 mAwContents.evaluateJavaScript("initiate_getCurrentPosition();", null); in testGetPosition()
137 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testWatchPosition()
140 mAwContents.evaluateJavaScript("initiate_watchPosition();", null); in testWatchPosition()
[all …]
DNavigationHistoryTest.java39 private AwContents mAwContents; field in NavigationHistoryTest
48 mAwContents = testContainerView.getAwContents(); in setUp()
106 NavigationHistory history = getNavigationHistory(mAwContents);
110 enableJavaScriptOnUiThread(mAwContents);
112 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(),
115 history = getNavigationHistory(mAwContents);
127 NavigationHistory list = getNavigationHistory(mAwContents);
135 loadUrlSync(mAwContents, onPageFinishedHelper, page1Url);
136 loadUrlSync(mAwContents, onPageFinishedHelper, page2Url);
138 list = getNavigationHistory(mAwContents);
[all …]
DAwContentsClientShouldInterceptRequestTest.java146 private AwContents mAwContents; field in AwContentsClientShouldInterceptRequestTest
155 mAwContents = mTestContainerView.getAwContents(); in setUp()
175 loadUrlAsync(mAwContents, aboutPageUrl); in testCalledWithCorrectUrlParam()
182 assertEquals(CommonResources.ABOUT_TITLE, getTitleOnUiThread(mAwContents)); in testCalledWithCorrectUrlParam()
194 loadUrlAsync(mAwContents, pageWithIframeUrl); in testCalledWithCorrectIsMainFrameParam()
209 enableJavaScriptOnUiThread(mAwContents); in testCalledWithCorrectMethodParam()
212 loadUrlAsync(mAwContents, pageWithFormUrl); in testCalledWithCorrectMethodParam()
218 JSUtils.clickOnLinkUsingJs(this, mAwContents, in testCalledWithCorrectMethodParam()
231 enableJavaScriptOnUiThread(mAwContents); in testCalledWithCorrectHasUserGestureParam()
234 loadUrlAsync(mAwContents, pageWithLinkUrl); in testCalledWithCorrectHasUserGestureParam()
[all …]
DLoadDataWithBaseUrlTest.java31 private AwContents mAwContents; field in LoadDataWithBaseUrlTest
40 mAwContents = testContainerView.getAwContents(); in setUp()
47 loadDataWithBaseUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in loadDataWithBaseUrlSync()
97 AwSettings contentSettings = getAwSettingsOnUiThread(mAwContents); in testImageLoad()
105 assertEquals("5", getTitleOnUiThread(mAwContents)); in testImageLoad()
122 getAwSettingsOnUiThread(mAwContents).setJavaScriptEnabled(true); in testScriptLoad()
124 assertEquals(SCRIPT_LOADED, getTitleOnUiThread(mAwContents)); in testScriptLoad()
141 getAwSettingsOnUiThread(mAwContents).setJavaScriptEnabled(true); in testSameOrigin()
143 assertEquals(frameUrl, getTitleOnUiThread(mAwContents)); in testSameOrigin()
161 getAwSettingsOnUiThread(mAwContents).setJavaScriptEnabled(true); in testCrossOrigin()
[all …]
DClientOnPageFinishedTest.java23 private AwContents mAwContents; field in ClientOnPageFinishedTest
35 mAwContents = testContainerView.getAwContents(); in setTestAwContentsClient()
46 loadDataAsync(mAwContents, html, "text/html", false); in testOnPageFinishedPassesCorrectUrl()
102 loadUrlSync(mAwContents, onPageFinishedHelper, invalidUrl); in testOnPageFinishedCalledAfterError()
111 loadUrlSync(mAwContents, onPageFinishedHelper, "about:blank"); in testOnPageFinishedCalledAfterError()
144 loadUrlAsync(mAwContents, redirectUrl); in testOnPageFinishedCalledAfterRedirectedUrlIsOverridden()
173 loadDataAsync(mAwContents, in testOnPageFinishedNotCalledForValidSubresources()
185 loadUrlAsync(mAwContents, syncUrl); in testOnPageFinishedNotCalledForValidSubresources()
201 enableJavaScriptOnUiThread(mAwContents); in testOnPageFinishedNotCalledForHistoryApi()
217 loadUrlSync(mAwContents, onPageFinishedHelper, testUrl); in testOnPageFinishedNotCalledForHistoryApi()
[all …]
DClientAddMessageToConsoleTest.java27 private AwContents mAwContents; field in ClientAddMessageToConsoleTest
35 mAwContents = testContainerView.getAwContents(); in setUp()
40 mAwContents.getSettings().setJavaScriptEnabled(true); in setUp()
67 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testAddMessageToConsoleCalledWithCorrectLevel()
75 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testAddMessageToConsoleCalledWithCorrectLevel()
83 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testAddMessageToConsoleCalledWithCorrectLevel()
101 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testAddMessageToConsoleCalledWithCorrectMessage()
109 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testAddMessageToConsoleCalledWithCorrectMessage()
124 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testAddMessageToConsoleCalledWithCorrectLineAndSource()
DAwContentsRenderTest.java24 private AwContents mAwContents; field in AwContentsRenderTest
32 mAwContents = testContainerView.getAwContents(); in setUp()
39 mAwContents.setBackgroundColor(c); in setBackgroundColorOnUiThread()
46 mAwContents.onDraw(new android.graphics.Canvas(result)); in grabViewToBitmap()
81 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), "about:blank");
87 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(),
106 mAwContents.enableOnNewPicture(true, true);
111 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), "about:blank");
DClientOnReceivedErrorTest.java23 private AwContents mAwContents; field in ClientOnReceivedErrorTest
31 mAwContents = testContainerView.getAwContents(); in setUp()
42 loadUrlAsync(mAwContents, url); in testOnReceivedErrorOnInvalidUrl()
62 loadUrlAsync(mAwContents, url); in testOnReceivedErrorOnInvalidScheme()
80 loadDataAsync(mAwContents, in testNoErrorOnFailedSubresourceLoad()
96 loadUrlAsync(mAwContents, url); in testNonExistentAssetUrl()
112 loadUrlAsync(mAwContents, url); in testNonExistentResourceUrl()
128 getAwSettingsOnUiThread(mAwContents).setCacheMode(WebSettings.LOAD_CACHE_ONLY); in testCacheMiss()
129 loadUrlAsync(mAwContents, url); in testCacheMiss()
DCookieManagerTest.java37 private AwContents mAwContents; field in CookieManagerTest
47 mAwContents = testContainerView.getAwContents(); in setUp()
48 mAwContents.getSettings().setJavaScriptEnabled(true); in setUp()
79 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url); in testAcceptCookie()
87 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url); in testAcceptCookie()
94 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url); in testAcceptCookie()
105 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url); in testAcceptCookie()
118 this, mAwContents, in setCookieWithJavaScript()
378 mAwContents.getSettings().setAcceptThirdPartyCookies(false); in testThirdPartyCookie()
379 assertFalse(mAwContents.getSettings().getAcceptThirdPartyCookies()); in testThirdPartyCookie()
[all …]
DUserAgentTest.java18 private AwContents mAwContents; field in UserAgentTest
24 mAwContents = createAwTestContainerViewOnMainSync(mContentsClient).getAwContents(); in setUp()
34 getAwSettingsOnUiThread(mAwContents).setJavaScriptEnabled(true); in testNoExtraSpaceBeforeBuildName()
36 mAwContents, in testNoExtraSpaceBeforeBuildName()
43 final String ua = getTitleOnUiThread(mAwContents); in testNoExtraSpaceBeforeBuildName()
DKeySystemTest.java19 private AwContents mAwContents; field in KeySystemTest
27 mAwContents = testContainerView.getAwContents(); in setUp()
28 enableJavaScriptOnUiThread(mAwContents); in setUp()
30 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in setUp()
44 return executeJavaScriptAndWaitForResult(mAwContents, mContentsClient, in IsKeySystemSupported()
DAwContentsClientOnFormResubmissionTest.java65 private AwContents mAwContents; field in AwContentsClientOnFormResubmissionTest
74 mAwContents = testContainerView.getAwContents(); in setUp()
92 assertEquals("Reload", getTitleOnUiThread(mAwContents)); in testResend()
101 assertEquals("Load", getTitleOnUiThread(mAwContents)); in testDontResend()
108 postUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url, data); in doReload()
110 assertEquals("Load", getTitleOnUiThread(mAwContents)); in doReload()
120 mAwContents.getContentViewCore().reload(true); in doReload()
DAwContentsClientOnScaleChangedTest.java18 private AwContents mAwContents; field in AwContentsClientOnScaleChangedTest
26 mAwContents = testContainerView.getAwContents(); in setUp()
36 getAwSettingsOnUiThread(mAwContents).setUseWideViewPort(true); in testScaleUp()
37 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in testScaleUp()
39 ContentViewCore core = mAwContents.getContentViewCore(); in testScaleUp()
DGetTitleTest.java25 private AwContents mAwContents; field in GetTitleTest
43 mAwContents = testContainerView.getAwContents(); in setUp()
57 loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), in loadFromDataAndGetTitle()
59 return getTitleOnUiThread(mAwContents); in loadFromDataAndGetTitle()
68 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url); in loadFromUrlAndGetTitle()
69 return new PageInfo(getTitleOnUiThread(mAwContents), in loadFromUrlAndGetTitle()
160 getAwSettingsOnUiThread(mAwContents).setJavaScriptEnabled(true); in testGetTitleSetFromJS()
DCookieManagerStartupTest.java28 private AwContents mAwContents; field in CookieManagerStartupTest
57 mAwContents = testContainerView.getAwContents(); in startChromiumWithClient()
58 mAwContents.getSettings().setJavaScriptEnabled(true); in startChromiumWithClient()
82 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url); in testStartup()
84 mAwContents, in testStartup()
130 loadUrlSync(mAwContents, contentsClient.getOnPageFinishedHelper(), url); in testShouldInterceptRequestDeadlock()
DClientOnPageStartedTest.java19 private AwContents mAwContents; field in ClientOnPageStartedTest
31 mAwContents = testContainerView.getAwContents(); in setTestAwContentsClient()
42 loadDataAsync(mAwContents, html, "text/html", false); in testOnPageStartedPassesCorrectUrl()
95 loadUrlSync(mAwContents, onPageFinishedHelper, invalidUrl); in testOnPageStartedCalledOnceOnError()
104 loadUrlSync(mAwContents, onPageFinishedHelper, "about:blank"); in testOnPageStartedCalledOnceOnError()
DAwContentsClientFaviconTest.java85 private AwContents mAwContents; field in AwContentsClientFaviconTest
99 mAwContents = testContainerView.getAwContents(); in init()
118 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), pageUrl); in testReceiveBasicFavicon()
130 loadUrlAsync(mAwContents, pageUrl); in testReceiveBasicFavicon()
143 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), pageUrl); in testDoNotMakeRequestForFaviconAfter404()
152 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), pageUrl); in testDoNotMakeRequestForFaviconAfter404()
166 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), pageUrl); in testReceiveBasicTouchIconLinkRel()
DWebKitHitTestTest.java30 private AwContents mAwContents; field in WebKitHitTestTest
41 mAwContents = mTestView.getAwContents(); in setUp()
55 loadUrlSync(mAwContents, in setServerResponseAndLoad()
72 mAwContents.onTouchEvent(MotionEvent.obtain( in simulateTouchCenterOfWebViewOnUiThread()
75 mAwContents.onTouchEvent(MotionEvent.obtain( in simulateTouchCenterOfWebViewOnUiThread()
86 mAwContents.getContentViewCore().dispatchKeyEvent( in simulateTabDownUpOnUiThread()
88 mAwContents.getContentViewCore().dispatchKeyEvent( in simulateTabDownUpOnUiThread()
113 AwContents.HitTestData data = mAwContents.getLastHitTestResult(); in pollForHitTestDataOnUiThread()
127 AwContents.HitTestData data = mAwContents.getLastHitTestResult(); in pollForHrefAndImageSrcOnUiThread()
140 mAwContents.requestFocusNodeHref(focusNodeHrefMsg); in pollForHrefAndImageSrcOnUiThread()
[all …]
DAwQuotaManagerBridgeTest.java29 private AwContents mAwContents; field in AwQuotaManagerBridgeTest
38 mAwContents = mTestView.getAwContents(); in setUp()
42 AwSettings settings = getAwSettingsOnUiThread(mAwContents); in setUp()
158 loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), url); in useAppCache()
159 executeJavaScriptAndWaitForResult(mAwContents, mContentsClient, in useAppCache()
DContentViewMiscTest.java30 private AwContents mAwContents; field in ContentViewMiscTest
39 mAwContents = testContainerView.getAwContents(); in setUp()
/external/chromium_org/android_webview/test/shell/src/org/chromium/android_webview/test/
DAwTestContainerView.java31 private AwContents mAwContents; field in AwTestContainerView
45 mAwContents = awContents; in initialize()
49 return mAwContents.getContentViewCore(); in getContentViewCore()
53 return mAwContents; in getAwContents()
65 mAwContents.destroy(); in destroy()
71 mAwContents.onConfigurationChanged(newConfig); in onConfigurationChanged()
77 mAwContents.onAttachedToWindow(); in onAttachedToWindow()
83 mAwContents.onDetachedFromWindow(); in onDetachedFromWindow()
89 mAwContents.onFocusChanged(focused, direction, previouslyFocusedRect); in onFocusChanged()
94 return mAwContents.onCreateInputConnection(outAttrs); in onCreateInputConnection()
[all …]
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
DAwZoomControls.java17 private AwContents mAwContents; field in AwZoomControls
22 mAwContents = awContents; in AwZoomControls()
47 boolean canZoomIn = mAwContents.canZoomIn(); in updateZoomControls()
48 boolean canZoomOut = mAwContents.canZoomOut(); in updateZoomControls()
66 mAwContents.getSettings().shouldDisplayZoomControls()) { in getZoomController()
68 mAwContents.getContentViewCore().getContainerView()); in getZoomController()
95 mAwContents.zoomIn(); in onZoom()
97 mAwContents.zoomOut(); in onZoom()
DAwContentViewClient.java60 if (mAwContents.isFullScreen()) { in onShowCustomView()
63 viewGroup.addView(mAwContents.enterFullScreen()); in onShowCustomView()
72 mAwContents.exitFullScreen(); in onDestroyContentVideoView()
85 private AwContents mAwContents; field in AwContentViewClient
93 mAwContents = awContents; in AwContentViewClient()
DNullAwViewMethods.java25 private AwContents mAwContents; field in NullAwViewMethods
32 mAwContents = awContents; in NullAwViewMethods()
39 canvas.drawColor(mAwContents.getEffectiveBackgroundColor()); in onDraw()

12