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.java63 String url = "http://www.foo.com"; in testDomain() local
66 mCookieManager.setCookie(url, "a=b"); in testDomain()
67 String cookie = mCookieManager.getCookie(url); in testDomain()
75 mCookieManager.setCookie(url, "c=d; domain=.foo.com"); in testDomain()
76 cookie = mCookieManager.getCookie(url); in testDomain()
86 mCookieManager.setCookie(url, "e=f; domain=www.foo.com"); in testDomain()
87 cookie = mCookieManager.getCookie(url); in testDomain()
148 String url = "http://foo.bar.com"; in testInvalidDomain() local
150 mCookieManager.setCookie(url, "a=1; domain=.yo.foo.bar.com"); in testInvalidDomain()
151 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 …]
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()
240 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_ALERT_URL); in testOnJsAlert() local
241 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsAlert()
265 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_CONFIRM_URL); in testOnJsConfirm() local
266 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsConfirm()
[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 …]
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.java184 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage() local
189 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadPage()
236 String url = mWebServer.getAssetUrl(TestHtmlConstants.BAD_IMAGE_PAGE_URL); in testOnReceivedErrorForSubresource() local
237 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedErrorForSubresource()
252 String url = mWebServer.getAssetUrl(TestHtmlConstants.NON_EXISTENT_PAGE_URL); in testOnReceivedHttpError() local
253 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedHttpError()
269 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_FORM_URL); in testOnFormResubmission() local
271 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnFormResubmission()
275 assertFalse(url.equals(mOnUiThread.getUrl())); in testOnFormResubmission()
316 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.EMBEDDED_IMG_URL); in testOnReceivedHttpAuthRequest() local
[all …]
DWebViewStartupTest.java53 final String url = server.getCookieUrl("death.html"); in testCookieManagerBlockingUiThread() local
63 cookieManager.setCookie(url, "count=41"); in testCookieManagerBlockingUiThread()
81 onUiThread.loadUrlAndWaitForCompletion(url); in testCookieManagerBlockingUiThread()
84 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.java260 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testInvokeZoomPicker() local
261 mOnUiThread.loadUrlAndWaitForCompletion(url); in testInvokeZoomPicker()
442 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL);
443 mOnUiThread.loadUrlAndWaitForCompletion(url);
445 assertEquals(url, mWebView.getUrl());
446 assertEquals(url, mWebView.getOriginalUrl());
503 String url = uriBuilder.build().toString();
504 mOnUiThread.loadUrlAndWaitForCompletion(url);
517 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL);
521 mOnUiThread.loadUrlAndWaitForCompletion(url, map);
[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/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/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java427 public void loadUrlAndWaitForCompletion(final String url) {
431 mWebView.loadUrl(url);
443 public void loadUrlAndWaitForCompletion(final String url,
448 mWebView.loadUrl(url, extraHeaders);
453 public void loadUrl(final String url) {
457 mWebView.loadUrl(url);
471 public void postUrlAndWaitForCompletion(final String url, final byte[] postData) {
475 mWebView.postUrl(url, postData);
1015 public void onPageFinished(WebView view, String url) {
1016 super.onPageFinished(view, url);
[all …]
/cts/tools/signature-tools/templates/
DLink.st1 <a class="$link_style; null="default"$" href="$url$">$name$</a>
DClassChangedLink.st1 $Link(url={$it.packageName$.$it.name$.html}, name={<tt>$it.name$</tt>})$
DPackageChangedLink.st1 $Link(url={changes/pkg_$it.name$.html}, name={<tt>$it.name$</tt>})$
DPackageAddedLink.st1 $Link(url={http://code.google.com/android/reference/$it.packageFragments; separator="/"$/package-su…
DClassReferenceLink.st1 $Link(url={http://code.google.com/android/reference/$it.packageFragments; separator="/"$/$it.name$.…
/cts/suite/cts/deviceTests/browserbench/src/com/android/cts/browser/
DBrowserBenchTest.java134 String url = mWebServer.getAssetUrl(OCTANE_START_FILE) + "?auto=1"; in testOctane() local
136 doTest(url, ResultType.LOWER_BETTER, ResultUnit.MS, in testOctane()
140 private void doTest(String url, ResultType typeNonFinal, ResultUnit unitNonFinal, in doTest() argument
148 Uri uri = Uri.parse(url); in doTest()
/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/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java231 URL url = new URL(mServerUri + SHUTDOWN_PREFIX); in shutdown() local
232 if (url.getProtocol().equalsIgnoreCase("http")) { in shutdown()
237 socket = new Socket(url.getHost(), url.getPort()); in shutdown()
249 URLConnection connection = openConnection(url); in shutdown()
273 private URLConnection openConnection(URL url) in openConnection() argument
276 return url.openConnection(); in openConnection()
282 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in openConnection()
461 public String getLinkedScriptUrl(String path, String url) { in getLinkedScriptUrl() argument
467 sb.append(URLEncoder.encode(url, "UTF-8")); in getLinkedScriptUrl()
524 public synchronized boolean wasResourceRequested(String url) { in wasResourceRequested() argument
[all …]

12