Home
last modified time | relevance | path

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

12

/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java66 String url = "http://www.foo.com"; in testDomain() local
69 mCookieManager.setCookie(url, "a=b"); in testDomain()
70 String cookie = mCookieManager.getCookie(url); in testDomain()
78 mCookieManager.setCookie(url, "c=d; domain=.foo.com"); in testDomain()
79 cookie = mCookieManager.getCookie(url); in testDomain()
89 mCookieManager.setCookie(url, "e=f; domain=www.foo.com"); in testDomain()
90 cookie = mCookieManager.getCookie(url); in testDomain()
151 String url = "http://foo.bar.com"; in testInvalidDomain() local
153 mCookieManager.setCookie(url, "a=1; domain=.yo.foo.bar.com"); in testInvalidDomain()
154 String cookie = mCookieManager.getCookie(url); in testInvalidDomain()
[all …]
DCookieManagerTest.java102 String url = server.getCookieUrl("conquest.html"); in testAcceptCookie() local
103 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
106 assertNull(mCookieManager.getCookie(url)); in testAcceptCookie()
111 url = server.getCookieUrl("war.html"); in testAcceptCookie()
112 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
114 waitForCookie(url); in testAcceptCookie()
115 String cookie = mCookieManager.getCookie(url); in testAcceptCookie()
123 url = server.getCookieUrl("famine.html"); in testAcceptCookie()
124 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
126 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.java129 byte[] url = new byte[0]; in testDecode()
130 byte[] result = URLUtil.decode(url); in testDecode()
133 url = new byte[] { 'w', 'w', 'w', '.', 'n', 'a', 'm', 'e', '.', 'c', 'o', 'm', '/', in testDecode()
135 result = URLUtil.decode(url); in testDecode()
140 url = new byte[] { 'w', 'w', 'w', '.', 'n', 'a', 'm', 'e', '.', 'c', 'o', 'm', '/', in testDecode()
143 result = URLUtil.decode(url); in testDecode()
150 String url = "ftp://example.url/test"; in testGuessFileName() local
151 assertEquals("test.jpg", URLUtil.guessFileName(url, null, "image/jpeg")); in testGuessFileName()
153 assertEquals("test.bin", URLUtil.guessFileName(url, null, "application/octet-stream")); in testGuessFileName()
162 String url = "domainName"; in testGuessUrl() local
[all …]
DWebChromeClientTest.java81 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnProgressChanged() local
82 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged()
100 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedTitle() local
101 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle()
135 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedIcon() local
136 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedIcon()
247 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_ALERT_URL); in testOnJsAlert() local
248 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsAlert()
272 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_CONFIRM_URL); in testOnJsConfirm() local
273 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsConfirm()
[all …]
DWebViewSslTest.java557 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testClearSslPreferences() local
560 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
567 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
574 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
630 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorProceed() local
632 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorProceed()
651 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorCancel() local
654 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorCancel()
712 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testSecureServerRequestingClientCertDoesNotCancelRequest() local
716 mOnUiThread.loadUrlAndWaitForCompletion(url); in testSecureServerRequestingClientCertDoesNotCancelRequest()
[all …]
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()
DWebHistoryItemTest.java97 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testWebHistoryItem() local
98 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem()
110 assertEquals(url, item.getUrl()); in testWebHistoryItem()
111 assertEquals(url, item.getOriginalUrl()); in testWebHistoryItem()
116 url = mWebServer.getAssetUrl(TestHtmlConstants.BR_TAG_URL); in testWebHistoryItem()
117 mOnUiThread.loadUrlAndWaitForCompletion(url); in testWebHistoryItem()
DWebViewClientTest.java199 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage() local
204 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadPage()
245 String url = testServer.setResponse(path, page, headers); in testOnReceivedLoginRequest() local
247 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedLoginRequest()
285 String url = mWebServer.getAssetUrl(TestHtmlConstants.BAD_IMAGE_PAGE_URL); in testOnReceivedErrorForSubresource() local
286 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedErrorForSubresource()
301 String url = mWebServer.getAssetUrl(TestHtmlConstants.NON_EXISTENT_PAGE_URL); in testOnReceivedHttpError() local
302 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedHttpError()
318 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_FORM_URL); in testOnFormResubmission() local
320 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnFormResubmission()
[all …]
DWebSettingsTest.java163 String url = mWebServer.getUserAgentUrl(); in testAccessUserAgentString() local
167 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
173 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
179 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
185 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
660 final String url = mWebServer.getAppCacheUrl();
663 mOnUiThread.loadUrlAndWaitForCompletion(url);
686 final String url = mWebServer.getAppCacheUrl();
690 mOnUiThread.loadUrlAndWaitForCompletion(url);
705 mOnUiThread.loadUrlAndWaitForCompletion(url);
[all …]
DWebViewTest.java323 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testInvokeZoomPicker() local
324 mOnUiThread.loadUrlAndWaitForCompletion(url); in testInvokeZoomPicker()
506 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL);
507 mOnUiThread.loadUrlAndWaitForCompletion(url);
509 assertEquals(url, mWebView.getUrl());
510 assertEquals(url, mWebView.getOriginalUrl());
567 String url = uriBuilder.build().toString();
568 mOnUiThread.loadUrlAndWaitForCompletion(url);
581 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL);
585 mOnUiThread.loadUrlAndWaitForCompletion(url, map);
[all …]
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java68 private TransformFilter mTransformFilterUpperChar = (final Matcher match, String url) -> {
467 String url = "name@gmail.com"; in testAddLinks_shouldNotAddEmailAddressAsUrl() local
468 verifyAddLinksWithWebUrlFails("Should not recognize email address as URL", url); in testAddLinks_shouldNotAddEmailAddressAsUrl()
473 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues() local
474 verifyAddLinksWithWebUrlSucceeds("Should accept commas", url); in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues()
479 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2"; in testAddLinks_addsLinksForUrlWithProtocolWithoutTld() local
481 " have TLD", url); in testAddLinks_addsLinksForUrlWithProtocolWithoutTld()
486 String url = "hTtP://android.com"; in testAddLinks_matchesProtocolCaseInsensitive() local
487 verifyAddLinksWithWebUrlSucceeds("Protocol matching should be case insensitive", url); in testAddLinks_matchesProtocolCaseInsensitive()
492 String url = "http://www.android.com"; in testAddLinks_matchesValidUrlWithSchemeAndHostname() local
[all …]
/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/hostsidetests/incident/apps/netstatsapp/src/com/android/server/cts/netstats/
DNetstatsDeviceTest.java55 final URL url = new URL("https://www.android.com/"); in makeNetworkRequest() local
56 final HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection(); in makeNetworkRequest()
61 Log.i(TAG, "Response code from " + url + ": " + status); in makeNetworkRequest()
/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.java36 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testWebUrl_matchesUrlsWithCommasInRequestParameterValues() local
37 assertTrue("WEB_URL pattern should match commas", Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesUrlsWithCommasInRequestParameterValues()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DWebViewActivity.java88 final String url = request.getUrl().toString(); in loadWebView()
89 if (!url.equals(FAKE_URL)) { in loadWebView()
90 Log.d(TAG, "Ignoring " + url); in loadWebView()
96 Log.d(TAG, "Converting " + url + " to " + rawPath); in loadWebView()
108 public void onPageFinished(WebView view, String url) { in loadWebView()
109 Log.v(TAG, "onPageFinished(): " + url); in loadWebView()
/cts/tests/tests/assist/common/src/android/assist/common/
DMyWebView.java39 public void myLoadData(String url, String data, String mimeType, String encoding) { in myLoadData() argument
40 mUrl = url; in myLoadData()
/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.java465 public void loadUrlAndWaitForCompletion(final String url) {
469 mWebView.loadUrl(url);
481 public void loadUrlAndWaitForCompletion(final String url,
486 mWebView.loadUrl(url, extraHeaders);
491 public void loadUrl(final String url) {
495 mWebView.loadUrl(url);
509 public void postUrlAndWaitForCompletion(final String url, final byte[] postData) {
513 mWebView.postUrl(url, postData);
1072 public void onPageFinished(WebView view, String url) {
1073 super.onPageFinished(view, url);
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java149 for (final String url : NOT_LOGGED_URLS_LIST) { in testNetworkLoggingAndRetrieval()
150 connectToWebsite(url); in testNetworkLoggingAndRetrieval()
165 for (final String url : LOGGED_URLS_LIST) { in generateBatches()
166 connectToWebsite(url); in generateBatches()
266 final URL url = new URL("http://" + server); in connectToWebsite() local
267 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp227 const char* url = env->GetStringUTFChars(videoUrl, 0); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative() local
228 if (url) { in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
230 aMediaObjects.getVideoExtractor(), url); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
231 env->ReleaseStringUTFChars(videoUrl, url); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
581 const char* url = env->GetStringUTFChars(params.audioUrl, 0); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative() local
582 if (url) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
584 aMediaObjects.getAudioExtractor(), url); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
585 env->ReleaseStringUTFChars(params.audioUrl, url); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
595 url = env->GetStringUTFChars(params.videoUrl, 0); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
596 if (url) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
[all …]
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java75 final String url = server.getCookieUrl("death.html"); in testCookieManagerBlockingUiThread() local
85 cookieManager.setCookie(url, "count=41"); in testCookieManagerBlockingUiThread()
111 onUiThread.loadUrlAndWaitForCompletion(url); in testCookieManagerBlockingUiThread()
114 String cookie = cookieManager.getCookie(url); in testCookieManagerBlockingUiThread()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java889 String url = server.getAssetUrl("raw/" + rname); in doStagefrightTest() local
890 verifyServer(rid, url); in doStagefrightTest()
891 doStagefrightTestMediaPlayer(url); in doStagefrightTest()
892 doStagefrightTestMediaCodec(url); in doStagefrightTest()
893 doStagefrightTestMediaMetadataRetriever(url); in doStagefrightTest()
901 URL url = new URL(uri); in verifyServer() local
902 InputStream in1 = new BufferedInputStream(url.openStream()); in verifyServer()
1050 private void doStagefrightTestMediaPlayer(final String url) throws Exception { in doStagefrightTestMediaPlayer() argument
1051 doStagefrightTestMediaPlayer(-1, url); in doStagefrightTestMediaPlayer()
1119 private void doStagefrightTestMediaCodec(final String url) throws Exception { in doStagefrightTestMediaCodec() argument
[all …]
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java224 URL url; in testNetworkAccess() local
226 url = new URL(webServer.getAssetUrl("hello.html")); in testNetworkAccess()
234 is = url.openStream(); in testNetworkAccess()

12