Home
last modified time | relevance | path

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

123

/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.java104 String url = server.getCookieUrl("conquest.html"); in testAcceptCookie() local
105 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
108 assertNull(mCookieManager.getCookie(url)); in testAcceptCookie()
113 url = server.getCookieUrl("war.html"); in testAcceptCookie()
114 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
116 waitForCookie(url); in testAcceptCookie()
117 String cookie = mCookieManager.getCookie(url); in testAcceptCookie()
125 url = server.getCookieUrl("famine.html"); in testAcceptCookie()
126 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAcceptCookie()
128 waitForCookie(url); in testAcceptCookie()
[all …]
DHttpAuthHandlerTest.java113 private void incorrectCredentialsAccessDenied(String url) throws Throwable { in incorrectCredentialsAccessDenied() argument
119 mOnUiThread.loadUrlAndWaitForCompletion(url); in incorrectCredentialsAccessDenied()
125 private void missingCredentialsAccessDenied(String url) throws Throwable { in missingCredentialsAccessDenied() argument
131 mOnUiThread.loadUrlAndWaitForCompletion(url); in missingCredentialsAccessDenied()
137 private void correctCredentialsAccessGranted(String url) throws Throwable { in correctCredentialsAccessGranted() argument
143 mOnUiThread.loadUrlAndWaitForCompletion(url); in correctCredentialsAccessGranted()
154 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testProceed() local
156 incorrectCredentialsAccessDenied(url); in testProceed()
157 missingCredentialsAccessDenied(url); in testProceed()
158 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 …]
DWebViewSslTest.java555 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testClearSslPreferences() local
558 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
565 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
572 mOnUiThread.loadUrlAndWaitForCompletion(url); in testClearSslPreferences()
628 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorProceed() local
630 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorProceed()
649 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedSslErrorCancel() local
652 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedSslErrorCancel()
710 final String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testSecureServerRequestingClientCertDoesNotCancelRequest() local
714 mOnUiThread.loadUrlAndWaitForCompletion(url); in testSecureServerRequestingClientCertDoesNotCancelRequest()
[all …]
DWebChromeClientTest.java95 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnProgressChanged() local
96 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged()
114 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedTitle() local
115 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle()
146 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedIcon() local
147 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedIcon()
236 WebView view, String url, String message, JsResult result) { in testOnJsBeforeUnloadIsCalled()
237 boolean ret = super.onJsBeforeUnload(view, url, message, result); in testOnJsBeforeUnloadIsCalled()
273 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_ALERT_URL); in testOnJsAlert() local
274 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnJsAlert()
[all …]
DWebViewClientTest.java224 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage() local
229 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadPage()
270 String url = testServer.setResponse(path, page, headers); in testOnReceivedLoginRequest() local
272 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedLoginRequest()
320 String url = mWebServer.getAssetUrl(TestHtmlConstants.BAD_IMAGE_PAGE_URL); in testOnReceivedErrorForSubresource() local
321 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedErrorForSubresource()
336 String url = mWebServer.getAssetUrl(TestHtmlConstants.NON_EXISTENT_PAGE_URL); in testOnReceivedHttpError() local
337 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedHttpError()
353 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_FORM_URL); in testOnFormResubmission() local
355 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnFormResubmission()
[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.java87 private void checkBackForwardList(final String... url) { in checkBackForwardList() argument
95 if (list.getSize() != url.length) { in checkBackForwardList()
98 if (list.getCurrentIndex() != url.length - 1) { in checkBackForwardList()
101 for (int i = 0; i < url.length; i++) { in checkBackForwardList()
103 if (!url[i].equals(item.getUrl())) { in checkBackForwardList()
DWebSettingsTest.java213 String url = mWebServer.getUserAgentUrl(); in testAccessUserAgentString() local
217 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
223 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
229 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
235 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString()
726 final String url = mWebServer.getAppCacheUrl(); in testAppCacheDisabled() local
729 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAppCacheDisabled()
752 final String url = mWebServer.getAppCacheUrl(); in testAppCacheEnabled() local
756 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAppCacheEnabled()
771 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAppCacheEnabled()
[all …]
DWebViewTest.java331 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadUrl() local
332 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadUrl()
334 assertEquals(url, mWebView.getUrl()); in testLoadUrl()
335 assertEquals(url, mWebView.getOriginalUrl()); in testLoadUrl()
392 String url = uriBuilder.build().toString(); in testLoadUrlDoesNotStripParamsWhenLoadingContentUrls() local
393 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadUrlDoesNotStripParamsWhenLoadingContentUrls()
406 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testAppInjectedXRequestedWithHeaderIsNotOverwritten() local
410 mOnUiThread.loadUrlAndWaitForCompletion(url, map); in testAppInjectedXRequestedWithHeaderIsNotOverwritten()
429 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testAppCanInjectHeadersViaImmutableMap() local
433 mOnUiThread.loadUrlAndWaitForCompletion(url, Collections.unmodifiableMap(map)); in testAppCanInjectHeadersViaImmutableMap()
[all …]
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java72 private TransformFilter mTransformFilterUpperChar = (final Matcher match, String url) -> {
460 public MyUrlSpan(String url) { in MyUrlSpan() argument
461 super(url); in MyUrlSpan()
516 String url = "name@gmail.com"; in testAddLinks_shouldNotAddEmailAddressAsUrl() local
517 verifyAddLinksWithWebUrlFails("Should not recognize email address as URL", url); in testAddLinks_shouldNotAddEmailAddressAsUrl()
522 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues() local
523 verifyAddLinksWithWebUrlSucceeds("Should accept commas", url); in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues()
528 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2"; in testAddLinks_addsLinksForUrlWithProtocolWithoutTld() local
530 " have TLD", url); in testAddLinks_addsLinksForUrlWithProtocolWithoutTld()
535 String url = "hTtP://android.com"; in testAddLinks_matchesProtocolCaseInsensitive() local
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DWebViewMultiScreenLoginActivity.java75 final String url = request.getUrl().toString(); in loadWebView()
76 if (!url.equals(FAKE_USERNAME_URL) && !url.equals(FAKE_PASSWORD_URL)) { in loadWebView()
77 Log.d(TAG, "Ignoring " + url); in loadWebView()
83 Log.d(TAG, "Converting " + url + " to " + rawPath); in loadWebView()
95 public void onPageFinished(WebView view, String url) { in loadWebView()
96 final CountDownLatch latch = mLatches.get(url); in loadWebView()
97 Log.v(TAG, "onPageFinished(): " + url + " latch: " + latch); in loadWebView()
DWebViewActivity.java90 final String url = request.getUrl().toString(); in loadWebView()
91 if (!url.equals(FAKE_URL)) { in loadWebView()
92 Log.d(TAG, "Ignoring " + url); in loadWebView()
98 Log.d(TAG, "Converting " + url + " to " + rawPath); in loadWebView()
110 public void onPageFinished(WebView view, String url) { in loadWebView()
111 Log.v(TAG, "onPageFinished(): " + url); in loadWebView()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewSyncLoader.java175 public void loadUrlAndWaitForCompletion(final String url) { in loadUrlAndWaitForCompletion() argument
176 callAndWait(() -> mWebView.loadUrl(url)); in loadUrlAndWaitForCompletion()
185 public void loadUrlAndWaitForCompletion(final String url, in loadUrlAndWaitForCompletion() argument
187 callAndWait(() -> mWebView.loadUrl(url, extraHeaders)); in loadUrlAndWaitForCompletion()
198 public void postUrlAndWaitForCompletion(final String url, final byte[] postData) { in postUrlAndWaitForCompletion() argument
199 callAndWait(() -> mWebView.postUrl(url, postData)); in postUrlAndWaitForCompletion()
406 public void onPageFinished(WebView view, String url) { in onPageFinished() argument
407 super.onPageFinished(view, url); in onPageFinished()
413 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onPageStarted() argument
414 super.onPageStarted(view, url, favicon); in onPageStarted()
/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/signature/lib/android/src/android/signature/cts/
DVirtualPath.java107 private final URL url; field in VirtualPath.ResourcePath
110 this.url = classLoader.getResource(path); in ResourcePath()
111 if (url == null) { in ResourcePath()
118 return url.openStream(); in newInputStream()
123 return url.toExternalForm(); in toString()
/cts/tests/tests/net/src/android/net/cts/
DCaptivePortalTest.kt116 val url = DeviceConfig.getProperty(NAMESPACE_CONNECTIVITY, urlKey) in assertEmptyOrLocalhostUrl() constant
117 assertTrue(TextUtils.isEmpty(url) || LOCALHOST_HOSTNAME == Uri.parse(url).host, in assertEmptyOrLocalhostUrl()
118 "$urlKey must not be set in production scenarios (current value: $url)") in assertEmptyOrLocalhostUrl()
189 private fun setHttpsUrl(url: String?) = setConfig(TEST_CAPTIVE_PORTAL_HTTPS_URL_SETTING, url) in setHttpsUrl()
190 private fun setHttpUrl(url: String?) = setConfig(TEST_CAPTIVE_PORTAL_HTTP_URL_SETTING, url) in setHttpsUrl()
/cts/libs/vogar-expect/src/vogar/expect/
DExpectationStore.java142 URL url = owningClass.getResource(expectationsPath); in parseResources() local
143 if (url == null) { in parseResources()
147 result.parse(url, mode); in parseResources()
153 private void parse(URL url, ModeId mode) throws IOException { in parse() argument
154 Log.verbose("loading expectations from " + url); in parse()
156 try (InputStream is = url.openStream(); in parse()
158 parse(reader, url.toString(), mode); in parse()
/cts/hostsidetests/incident/apps/netstatsapp/src/com/android/server/cts/netstats/
DNetstatsDeviceTest.java56 final URL url = new URL("https://www.android.com/"); in makeNetworkRequest() local
57 final HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection(); in makeNetworkRequest()
62 Log.i(TAG, "Response code from " + url + ": " + status); in makeNetworkRequest()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DNetworkLoggingDelegateTest.java121 for (final String url : URL_LIST) { in testNetworkLogging()
122 connectToWebsite(url); in testNetworkLogging()
139 final URL url = new URL("http://" + server); in connectToWebsite() local
140 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp280 const char* url = env->GetStringUTFChars(videoUrl, 0); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative() local
281 if (url) { in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
283 aMediaObjects.getVideoExtractor(), url); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
284 env->ReleaseStringUTFChars(videoUrl, url); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
697 const char* url = env->GetStringUTFChars(params.audioUrl, 0); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative() local
698 if (url) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
700 aMediaObjects.getAudioExtractor(), url); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
701 env->ReleaseStringUTFChars(params.audioUrl, url); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
711 url = env->GetStringUTFChars(params.videoUrl, 0); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
712 if (url) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
[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()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java1465 String url = server.getAssetUrl("raw/" + rname); in doStagefrightTest() local
1466 verifyServer(rid, url); in doStagefrightTest()
1468 doStagefrightTestMediaPlayer(url, config); in doStagefrightTest()
1469 doStagefrightTestMediaCodec(url, config); in doStagefrightTest()
1470 doStagefrightTestMediaMetadataRetriever(url, config); in doStagefrightTest()
1478 URL url = new URL(uri); in verifyServer() local
1479 InputStream in1 = new BufferedInputStream(url.openStream()); in verifyServer()
1694 private void doStagefrightTestMediaPlayer(final String url) throws Exception { in doStagefrightTestMediaPlayer() argument
1695 doStagefrightTestMediaPlayer(url, null); in doStagefrightTestMediaPlayer()
1699 final String url, CrashUtils.Config config) throws Exception { in doStagefrightTestMediaPlayer() argument
[all …]

123