Home
last modified time | relevance | path

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

12

/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java65 String url = "http://www.foo.com"; in testDomain() local
68 mCookieManager.setCookie(url, "a=b"); in testDomain()
69 String cookie = mCookieManager.getCookie(url); in testDomain()
77 mCookieManager.setCookie(url, "c=d; domain=.foo.com"); in testDomain()
78 cookie = mCookieManager.getCookie(url); in testDomain()
88 mCookieManager.setCookie(url, "e=f; domain=www.foo.com"); in testDomain()
89 cookie = mCookieManager.getCookie(url); in testDomain()
150 String url = "http://foo.bar.com"; in testInvalidDomain() local
152 mCookieManager.setCookie(url, "a=1; domain=.yo.foo.bar.com"); in testInvalidDomain()
153 String cookie = mCookieManager.getCookie(url); in testInvalidDomain()
[all …]
DCookieManagerTest.java101 String url = server.getCookieUrl("conquest.html"); in testAcceptCookie() local
102 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
105 assertNull(mCookieManager.getCookie(url)); in testAcceptCookie()
110 url = server.getCookieUrl("war.html"); in testAcceptCookie()
111 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
113 waitForCookie(url); in testAcceptCookie()
114 String cookie = mCookieManager.getCookie(url); in testAcceptCookie()
122 url = server.getCookieUrl("famine.html"); in testAcceptCookie()
123 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
125 waitForCookie(url); in testAcceptCookie()
[all …]
DHttpAuthHandlerTest.java111 private void incorrectCredentialsAccessDenied(String url) throws Throwable { in incorrectCredentialsAccessDenied() argument
117 mOnUiThread.loadUrlAndWaitForCompletion(url); in incorrectCredentialsAccessDenied()
123 private void missingCredentialsAccessDenied(String url) throws Throwable { in missingCredentialsAccessDenied() argument
129 mOnUiThread.loadUrlAndWaitForCompletion(url); in missingCredentialsAccessDenied()
135 private void correctCredentialsAccessGranted(String url) throws Throwable { in correctCredentialsAccessGranted() argument
141 mOnUiThread.loadUrlAndWaitForCompletion(url); in correctCredentialsAccessGranted()
152 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testProceed() local
154 incorrectCredentialsAccessDenied(url); in testProceed()
155 missingCredentialsAccessDenied(url); in testProceed()
156 correctCredentialsAccessGranted(url); in testProceed()
[all …]
DURLUtilTest.java125 byte[] url = new byte[0]; in testDecode()
126 byte[] result = URLUtil.decode(url); in testDecode()
129 url = new byte[] { 'w', 'w', 'w', '.', 'n', 'a', 'm', 'e', '.', 'c', 'o', 'm', '/', in testDecode()
131 result = URLUtil.decode(url); in testDecode()
136 url = new byte[] { 'w', 'w', 'w', '.', 'n', 'a', 'm', 'e', '.', 'c', 'o', 'm', '/', in testDecode()
139 result = URLUtil.decode(url); in testDecode()
146 String url = "ftp://example.url/test"; in testGuessFileName() local
147 assertEquals("test.jpg", URLUtil.guessFileName(url, null, "image/jpeg")); in testGuessFileName()
149 assertEquals("test.bin", URLUtil.guessFileName(url, null, "application/octet-stream")); in testGuessFileName()
158 String url = "domainName"; in testGuessUrl() local
[all …]
DWebViewSslTest.java556 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testClearSslPreferences() local
559 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
566 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
573 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
629 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorProceed() local
631 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorProceed()
650 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorCancel() local
653 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorCancel()
711 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testSecureServerRequestingClientCertDoesNotCancelRequest() local
715 mOnUiThread.loadUrlAndWaitForCompletion(url); in testSecureServerRequestingClientCertDoesNotCancelRequest()
[all …]
DWebChromeClientTest.java78 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnProgressChanged() local
79 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged()
97 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedTitle() local
98 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle()
132 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedIcon() local
133 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedIcon()
239 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_ALERT_URL); in testOnJsAlert() local
240 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsAlert()
264 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_CONFIRM_URL); in testOnJsConfirm() local
265 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsConfirm()
[all …]
DWebHistoryItemTest.java96 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testWebHistoryItem() local
97 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem()
109 assertEquals(url, item.getUrl()); in testWebHistoryItem()
110 assertEquals(url, item.getOriginalUrl()); in testWebHistoryItem()
115 url = mWebServer.getAssetUrl(TestHtmlConstants.BR_TAG_URL); in testWebHistoryItem()
116 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem()
DWebBackForwardListTest.java85 private void checkBackForwardList(final String... url) { in checkBackForwardList() argument
93 if (list.getSize() != url.length) { in checkBackForwardList()
96 if (list.getCurrentIndex() != url.length - 1) { in checkBackForwardList()
99 for (int i = 0; i < url.length; i++) { in checkBackForwardList()
101 if (!url[i].equals(item.getUrl())) { in checkBackForwardList()
DWebViewClientTest.java191 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage() local
196 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadPage()
237 String url = testServer.setResponse(path, page, headers); in testOnReceivedLoginRequest() local
239 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedLoginRequest()
277 String url = mWebServer.getAssetUrl(TestHtmlConstants.BAD_IMAGE_PAGE_URL); in testOnReceivedErrorForSubresource() local
278 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedErrorForSubresource()
293 String url = mWebServer.getAssetUrl(TestHtmlConstants.NON_EXISTENT_PAGE_URL); in testOnReceivedHttpError() local
294 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedHttpError()
310 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_FORM_URL); in testOnFormResubmission() local
312 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnFormResubmission()
[all …]
DWebViewStartupTest.java54 final String url = server.getCookieUrl("death.html"); in testCookieManagerBlockingUiThread() local
64 cookieManager.setCookie(url, "count=41"); in testCookieManagerBlockingUiThread()
82 onUiThread.loadUrlAndWaitForCompletion(url); in testCookieManagerBlockingUiThread()
85 String cookie = cookieManager.getCookie(url); in testCookieManagerBlockingUiThread()
DWebSettingsTest.java152 String url = mWebServer.getUserAgentUrl(); in testAccessUserAgentString() local
156 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
162 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
168 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
174 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
647 final String url = mWebServer.getAppCacheUrl();
650 mOnUiThread.loadUrlAndWaitForCompletion(url);
673 final String url = mWebServer.getAppCacheUrl();
677 mOnUiThread.loadUrlAndWaitForCompletion(url);
692 mOnUiThread.loadUrlAndWaitForCompletion(url);
[all …]
DWebViewTest.java300 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testInvokeZoomPicker() local
301 mOnUiThread.loadUrlAndWaitForCompletion(url); in testInvokeZoomPicker()
482 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL);
483 mOnUiThread.loadUrlAndWaitForCompletion(url);
485 assertEquals(url, mWebView.getUrl());
486 assertEquals(url, mWebView.getOriginalUrl());
543 String url = uriBuilder.build().toString();
544 mOnUiThread.loadUrlAndWaitForCompletion(url);
557 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL);
561 mOnUiThread.loadUrlAndWaitForCompletion(url, map);
[all …]
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java57 public final String transformUrl(final Matcher match, String url) {
471 String url = "name@gmail.com"; in testAddLinks_shouldNotAddEmailAddressAsUrl() local
472 assertAddLinksWithWebUrlFails("Should not recognize email address as URL", url); in testAddLinks_shouldNotAddEmailAddressAsUrl()
476 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues() local
477 assertAddLinksWithWebUrlSucceeds("Should accept commas", url); in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues()
482 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2"; in testAddLinks_addsLinksForUrlWithProtocolWithoutTld() local
484 " have TLD", url); in testAddLinks_addsLinksForUrlWithProtocolWithoutTld()
489 String url = "hTtP://android.com"; in testAddLinks_matchesProtocolCaseInsensitive() local
490 assertAddLinksWithWebUrlSucceeds("Protocol matching should be case insensitive", url); in testAddLinks_matchesProtocolCaseInsensitive()
495 String url = "http://www.android.com"; in testAddLinks_matchesValidUrlWithSchemeAndHostname() local
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestLog.java82 static TestLog fromDataName(String dataName, String url) { in fromDataName() argument
88 if (url == null) { in fromDataName()
92 return new TestLog(logType, url); in fromDataName()
103 String url = parser.getAttributeValue(null, URL_ATTR); in fromXml() local
104 if (url == null) { in fromXml()
110 return new TestLog(logType, url); in fromXml()
117 public static TestLog of(TestLogType logType, String url) { in of() argument
118 return new TestLog(logType, url); in of()
121 private TestLog(TestLogType logType, String url) { in TestLog() argument
123 this.mUrl = url; in TestLog()
DMultipartForm.java74 URL url = new URL(serverUrl); in submitForm() local
75 connection = (HttpURLConnection) url.openConnection(); in submitForm()
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DTestUtils.java109 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertUrlConnectionFails() local
110 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in assertUrlConnectionFails()
120 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertUrlConnectionSucceeds() local
121 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in assertUrlConnectionSucceeds()
127 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertHttpClientSucceeds() local
130 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertHttpClientSucceeds()
138 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); in assertHttpClientFails() local
141 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertHttpClientFails()
/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.java29 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testWebUrl_matchesUrlsWithCommasInRequestParameterValues() local
30 assertTrue("WEB_URL pattern should match commas", Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesUrlsWithCommasInRequestParameterValues()
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java145 URL url = owningClass.getResource(expectationsPath); in parseResources() local
146 if (url == null) { in parseResources()
150 result.parse(url, mode); in parseResources()
156 private void parse(URL url, ModeId mode) throws IOException { in parse() argument
157 Log.verbose("loading expectations from " + url); in parse()
159 try (InputStream is = url.openStream(); in parse()
161 parse(reader, url.toString(), mode); in parse()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java433 public void loadUrlAndWaitForCompletion(final String url) {
437 mWebView.loadUrl(url);
449 public void loadUrlAndWaitForCompletion(final String url,
454 mWebView.loadUrl(url, extraHeaders);
459 public void loadUrl(final String url) {
463 mWebView.loadUrl(url);
477 public void postUrlAndWaitForCompletion(final String url, final byte[] postData) {
481 mWebView.postUrl(url, postData);
1044 public void onPageFinished(WebView view, String url) {
1045 super.onPageFinished(view, url);
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Images_ThumbnailsTest.java288 Uri url[] = new Uri[3]; in testThumbnailOrderedQuery() local
290 for (int i = 0; i < url.length; i++) { in testThumbnailOrderedQuery()
291 url[i] = Uri.parse(Media.insertImage(mContentResolver, src, null, null)); in testThumbnailOrderedQuery()
292 long origId = Long.parseLong(url[i].getLastPathSegment()); in testThumbnailOrderedQuery()
299 Cursor c = mContentResolver.query(url[1], null, null, null, null); in testThumbnailOrderedQuery()
307 long removedId = Long.parseLong(url[1].getLastPathSegment()); in testThumbnailOrderedQuery()
308 long remainingId1 = Long.parseLong(url[0].getLastPathSegment()); in testThumbnailOrderedQuery()
309 long remainingId2 = Long.parseLong(url[2].getLastPathSegment()); in testThumbnailOrderedQuery()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java220 URL url; in testNetworkAccess() local
222 url = new URL(webServer.getAssetUrl("hello.html")); in testNetworkAccess()
230 is = url.openStream(); in testNetworkAccess()
/cts/tests/tests/mediastress/preconditions/src/android/mediastress/cts/preconditions/
DMediaPreparer.java221 URL url; in downloadMediaToHost() local
225 url = new URL(mediaUrlString); in downloadMediaToHost()
238 URLConnection conn = url.openConnection(); in downloadMediaToHost()
244 logInfo("Downloading media files to host from %s", url.toString()); in downloadMediaToHost()
/cts/common/util/src/com/android/compatibility/common/util/
DMultipartForm.java95 URL url = new URL(serverUrl); in submitForm() local
96 connection = (HttpURLConnection) url.openConnection(); in submitForm()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java289 URL url = startWebServer(); in doInBackground() local
290 makeHttpsRequest(url); in doInBackground()
339 private void makeHttpsRequest(URL url) throws Exception { in makeHttpsRequest() argument
340 log("Making https request to " + url); in makeHttpsRequest()
345 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in makeHttpsRequest()

12