Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 56) 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.java327 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadUrl() local
328 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadUrl()
330 assertEquals(url, mWebView.getUrl()); in testLoadUrl()
331 assertEquals(url, mWebView.getOriginalUrl()); in testLoadUrl()
388 String url = uriBuilder.build().toString(); in testLoadUrlDoesNotStripParamsWhenLoadingContentUrls() local
389 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadUrlDoesNotStripParamsWhenLoadingContentUrls()
402 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testAppInjectedXRequestedWithHeaderIsNotOverwritten() local
406 mOnUiThread.loadUrlAndWaitForCompletion(url, map); in testAppInjectedXRequestedWithHeaderIsNotOverwritten()
425 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testAppCanInjectHeadersViaImmutableMap() local
429 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/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/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/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/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/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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java154 for (final String url : NOT_LOGGED_URLS_LIST) { in testNetworkLoggingAndRetrieval()
155 connectToWebsite(url); in testNetworkLoggingAndRetrieval()
170 for (final String url : LOGGED_URLS_LIST) { in generateBatches()
171 connectToWebsite(url); in generateBatches()
328 final URL url = new URL("http://" + server); in connectToWebsite() local
329 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java76 final String url = server.getCookieUrl("death.html"); in testCookieManagerBlockingUiThread() local
86 cookieManager.setCookie(url, "count=41"); in testCookieManagerBlockingUiThread()
112 syncLoader.loadUrlAndWaitForCompletion(url); in testCookieManagerBlockingUiThread()
115 String cookie = cookieManager.getCookie(url); in testCookieManagerBlockingUiThread()

123