Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 115) sorted by relevance

12345

/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java100 String url = "http://www.foo.com"; in testDomain() local
103 mCookieManager.setCookie(url, "a=b"); in testDomain()
104 String cookie = mCookieManager.getCookie(url); in testDomain()
112 mCookieManager.setCookie(url, "c=d; domain=.foo.com"); in testDomain()
113 cookie = mCookieManager.getCookie(url); in testDomain()
123 mCookieManager.setCookie(url, "e=f; domain=www.foo.com"); in testDomain()
124 cookie = mCookieManager.getCookie(url); in testDomain()
181 String url = "http://foo.bar.com"; in testInvalidDomain() local
183 mCookieManager.setCookie(url, "a=1; domain=.yo.foo.bar.com"); in testInvalidDomain()
184 String cookie = mCookieManager.getCookie(url); in testInvalidDomain()
[all …]
DCookieManagerTest.java138 String url = mWebServer.getCookieUrl("conquest.html"); in testAcceptCookie() local
139 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
142 assertNull(mCookieManager.getCookie(url)); in testAcceptCookie()
147 url = mWebServer.getCookieUrl("war.html"); in testAcceptCookie()
148 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
150 waitForCookie(url); in testAcceptCookie()
151 String cookie = mCookieManager.getCookie(url); in testAcceptCookie()
159 url = mWebServer.getCookieUrl("famine.html"); in testAcceptCookie()
160 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
162 waitForCookie(url); in testAcceptCookie()
[all …]
DHttpAuthHandlerTest.java147 private void incorrectCredentialsAccessDenied(String url) throws Throwable { in incorrectCredentialsAccessDenied() argument
153 mOnUiThread.loadUrlAndWaitForCompletion(url); in incorrectCredentialsAccessDenied()
159 private void missingCredentialsAccessDenied(String url) throws Throwable { in missingCredentialsAccessDenied() argument
165 mOnUiThread.loadUrlAndWaitForCompletion(url); in missingCredentialsAccessDenied()
171 private void correctCredentialsAccessGranted(String url) throws Throwable { in correctCredentialsAccessGranted() argument
177 mOnUiThread.loadUrlAndWaitForCompletion(url); in correctCredentialsAccessGranted()
185 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testProceed() local
187 incorrectCredentialsAccessDenied(url); in testProceed()
188 missingCredentialsAccessDenied(url); in testProceed()
189 correctCredentialsAccessGranted(url); in testProceed()
[all …]
DWebViewSslTest.java584 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testClearSslPreferences() local
587 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
595 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
603 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
656 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorProceed() local
658 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorProceed()
675 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorCancel() local
678 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorCancel()
734 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testSecureServerRequestingClientCertDoesNotCancelRequest() local
738 mOnUiThread.loadUrlAndWaitForCompletion(url); in testSecureServerRequestingClientCertDoesNotCancelRequest()
[all …]
DURLUtilTest.java160 byte[] url = new byte[0]; in testDecode()
161 byte[] result = URLUtil.decode(url); in testDecode()
164 url = new byte[] { 'w', 'w', 'w', '.', 'n', 'a', 'm', 'e', '.', 'c', 'o', 'm', '/', in testDecode()
166 result = URLUtil.decode(url); in testDecode()
181 String url = "ftp://example.url/test"; in testGuessFileName() local
182 assertEquals("test.jpg", URLUtil.guessFileName(url, null, "image/jpeg")); in testGuessFileName()
184 assertEquals("test.bin", URLUtil.guessFileName(url, null, "application/octet-stream")); in testGuessFileName()
194 String url = "domainName"; in testGuessUrl() local
195 assertEquals("http://www.domainName.com/", URLUtil.guessUrl(url)); in testGuessUrl()
206 String url = "http://www.google.com#test"; in testStripAnchor() local
[all …]
DWebViewClientTest.java271 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage() local
276 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadPage()
314 String url = mWebServer.setResponse(path, page, headers); in testOnReceivedLoginRequest() local
316 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedLoginRequest()
358 String url = mWebServer.getAssetUrl(TestHtmlConstants.BAD_IMAGE_PAGE_URL); in testOnReceivedErrorForSubresource() local
359 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedErrorForSubresource()
372 String url = mWebServer.getAssetUrl(TestHtmlConstants.NON_EXISTENT_PAGE_URL); in testOnReceivedHttpError() local
373 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedHttpError()
387 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_FORM_URL); in testOnFormResubmission() local
389 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnFormResubmission()
[all …]
DWebChromeClientTest.java129 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnProgressChanged() local
130 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged()
146 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedTitle() local
147 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle()
176 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedIcon() local
177 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedIcon()
257 WebView view, String url, String message, JsResult result) { in testOnJsBeforeUnloadIsCalled()
258 boolean ret = super.onJsBeforeUnload(view, url, message, result); in testOnJsBeforeUnloadIsCalled()
292 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_ALERT_URL); in testOnJsAlert() local
293 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsAlert()
[all …]
DWebHistoryItemTest.java133 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testWebHistoryItem() local
134 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem()
146 assertEquals(url, item.getUrl()); in testWebHistoryItem()
147 assertEquals(url, item.getOriginalUrl()); in testWebHistoryItem()
152 url = mWebServer.getAssetUrl(TestHtmlConstants.BR_TAG_URL); in testWebHistoryItem()
153 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem()
DWebBackForwardListTest.java117 private void checkBackForwardList(final String... url) { in checkBackForwardList() argument
125 if (list.getSize() != url.length) { in checkBackForwardList()
128 if (list.getCurrentIndex() != url.length - 1) { in checkBackForwardList()
131 for (int i = 0; i < url.length; i++) { in checkBackForwardList()
133 if (!url[i].equals(item.getUrl())) { in checkBackForwardList()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java73 private TransformFilter mTransformFilterUpperChar = (final Matcher match, String url) -> {
461 public MyUrlSpan(String url) { in MyUrlSpan() argument
462 super(url); in MyUrlSpan()
517 String url = "name@gmail.com"; in testAddLinks_shouldNotAddEmailAddressAsUrl() local
518 verifyAddLinksWithWebUrlFails("Should not recognize email address as URL", url); in testAddLinks_shouldNotAddEmailAddressAsUrl()
523 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues() local
524 verifyAddLinksWithWebUrlSucceeds("Should accept commas", url); in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues()
529 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2"; in testAddLinks_addsLinksForUrlWithProtocolWithoutTld() local
531 " have TLD", url); in testAddLinks_addsLinksForUrlWithProtocolWithoutTld()
536 String url = "hTtP://android.com"; in testAddLinks_matchesProtocolCaseInsensitive() local
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DOWNERS2 # Bug template url: https://b.corp.google.com/issues/new?component=1517318&template=1946513 = per-f…
5 # Bug template url: https://b.corp.google.com/issues/new?component=316245&template=1018194 = per-fi…
8 # Bug template url: https://b.corp.google.com/issues/new?component=970984&template=1516678 = per-fi…
11 # Bug template url: https://b.corp.google.com/issues/new?component=316020&template=1018174 = per-fi…
14 # Bug template url: https://b.corp.google.com/issues/new?component=929241&template=1490914 = per-fi…
17 # Bug template url: https://buganizer.corp.google.com/issues/new?component=1519745&template=1948140…
20 # Bug template url: https://b.corp.google.com/issues/new?component=316125&template=1018199
/cts/tests/signature/lib/android/src/android/signature/cts/
DVirtualPath.java161 private final URL url; field in VirtualPath.ResourcePath
164 this.url = classLoader.getResource(path); in ResourcePath()
165 if (url == null) { in ResourcePath()
172 return url.openStream(); in newInputStream()
184 return url.equals(that.url); in equals()
189 return Objects.hash(url); in hashCode()
194 return url.toExternalForm(); in toString()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DOWNERS2 # Bug template url: https://b.corp.google.com/issues/new?component=316251&template=1018197 = per-fi…
5 # Bug template url: https://b.corp.google.com/issues/new?component=970984&template=1516678 = per-fi…
8 # Bug template url: https://b.corp.google.com/issues/new?component=1214056&template=1713787 = per-f…
11 # Bug template url: https://b.corp.google.com/issues/new?component=66910&template=188786 = per-file…
14 # Bug template url: https://b.corp.google.com/issues/new?component=761894&template=1433482 = per-fi…
17 # Bug template url: https://b.corp.google.com/issues/new?component=316125&template=1018199
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DWebViewMultiScreenLoginActivity.java78 final String url = request.getUrl().toString(); in loadWebView()
79 if (!url.equals(FAKE_USERNAME_URL) && !url.equals(FAKE_PASSWORD_URL)) { in loadWebView()
80 Log.d(TAG, "Ignoring " + url); in loadWebView()
86 Log.d(TAG, "Converting " + url + " to " + rawPath); in loadWebView()
98 public void onPageFinished(WebView view, String url) { in loadWebView()
99 final CountDownLatch latch = mLatches.get(url); in loadWebView()
100 Log.v(TAG, "onPageFinished(): " + url + " latch: " + latch); in loadWebView()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewSyncLoader.java172 public void loadUrlAndWaitForCompletion(final String url) { in loadUrlAndWaitForCompletion() argument
173 callAndWait(() -> mWebView.loadUrl(url)); in loadUrlAndWaitForCompletion()
182 public void loadUrlAndWaitForCompletion(final String url, in loadUrlAndWaitForCompletion() argument
184 callAndWait(() -> mWebView.loadUrl(url, extraHeaders)); in loadUrlAndWaitForCompletion()
195 public void postUrlAndWaitForCompletion(final String url, final byte[] postData) { in postUrlAndWaitForCompletion() argument
196 callAndWait(() -> mWebView.postUrl(url, postData)); in postUrlAndWaitForCompletion()
414 public void onPageFinished(WebView view, String url) { in onPageFinished() argument
415 super.onPageFinished(view, url); in onPageFinished()
421 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onPageStarted() argument
422 super.onPageStarted(view, url, favicon); in onPageStarted()
/cts/libs/webkit-shared/src/android/webkit/cts/
DSharedSdkWebServer.java148 public boolean wasResourceRequested(String url) {
150 return mWebServer.wasResourceRequested(url);
162 public HttpRequest getLastAssetRequest(String url) {
164 return mWebServer.getLastAssetRequest(url);
186 public String getLinkedScriptUrl(String path, String url) {
188 return mWebServer.getLinkedScriptUrl(path, url);
DIWebServer.aidl54 boolean wasResourceRequested(String url); in wasResourceRequested() argument
58 HttpRequest getLastAssetRequest(String url); in getLastAssetRequest() argument
64 String getLinkedScriptUrl(String path, String url); in getLinkedScriptUrl() argument
DSharedWebViewTestEnvironment.java386 public boolean wasResourceRequested(String url) {
389 return mWebServer.wasResourceRequested(url);
400 public HttpRequest getLastAssetRequest(String url) {
403 return toHttpRequest(url, mWebServer.getLastAssetRequest(url));
422 public String getLinkedScriptUrl(String path, String url) {
425 return mWebServer.getLinkedScriptUrl(path, url);
430 String url, org.apache.http.HttpRequest apacheRequest) {
435 return new HttpRequest(url, apacheRequest);
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DTestUtils.java112 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertUrlConnectionFails() local
113 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in assertUrlConnectionFails()
123 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertUrlConnectionSucceeds() local
124 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in assertUrlConnectionSucceeds()
130 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertHttpClientSucceeds() local
133 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertHttpClientSucceeds()
141 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertHttpClientFails() local
144 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertHttpClientFails()
/cts/tools/mcts/
Ddownload_mcts.sh85 local url="https://dl.google.com/android/xts/mcts/${path}/${file}"
89 wget -q ${url} || true
95 … url_link_last_modified_string=$(curl -sI ${url} | grep -i "last-modified" | cut -d: -f2- | xargs)
100 wget -q ${url} || true
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DWorkProfileNetworkLoggingDelegateTest.java98 for (final String url : LOGGED_URLS_LIST) { in testConnectToWebsites_shouldBeLogged()
99 connectToWebsite(url); in testConnectToWebsites_shouldBeLogged()
105 for (final String url : NOT_LOGGED_URLS_LIST) { in testConnectToWebsites_shouldNotBeLogged()
106 connectToWebsite(url); in testConnectToWebsites_shouldNotBeLogged()
163 final URL url = new URL("https://" + server); in connectToWebsite() local
164 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DOWNERS2 # Bug template url: https://b.corp.google.com/issues/new?component=316020&template=1018174 = per-fi…
5 # Bug template url: https://b.corp.google.com/issues/new?component=928697&template=1490890 = per-fi…
8 # Bug template url: https://b.corp.google.com/issues/new?component=316125&template=1018199
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DOWNERS2 # Bug template url: https://b.corp.google.com/issues/new?component=1517318&template=1946513 = per-f…
5 # Bug template url: https://b.corp.google.com/issues/new?component=1514550&template=0 = per-file *S…
8 # Bug template url: https://b.corp.google.com/issues/new?component=316275&template=1018192
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java74 URL url = new URL(mHttpOnlyWebServer.getUserAgentUrl()); in assertCleartextHttpURLConnectionSucceeds() local
78 conn = (HttpURLConnection) url.openConnection(); in assertCleartextHttpURLConnectionSucceeds()
87 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionSucceeds()
92 URL url = new URL(mHttpOnlyWebServer.getUserAgentUrl()); in assertCleartextHttpURLConnectionBlocked() local
96 conn = (HttpURLConnection) url.openConnection(); in assertCleartextHttpURLConnectionBlocked()
110 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionBlocked()
123 URL url = new URL(mHttpOnlyWebServer.getUserAgentUrl()); in assertAndroidHttpClientCleartextRequestSucceeds() local
126 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertAndroidHttpClientCleartextRequestSucceeds()
131 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertAndroidHttpClientCleartextRequestSucceeds()
136 URL url = new URL(mHttpOnlyWebServer.getUserAgentUrl()); in assertAndroidHttpClientCleartextRequestBlocked() local
[all …]
/cts/tests/tests/util/src/android/util/cts/
DPatternsTest.java37 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testWebUrl_matchesUrlsWithCommasInRequestParameterValues() local
38 assertTrue("WEB_URL pattern should match commas", Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesUrlsWithCommasInRequestParameterValues()

12345