/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | CookieTest.java | 66 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 …]
|
D | CookieManagerTest.java | 102 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 …]
|
D | HttpAuthHandlerTest.java | 111 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 …]
|
D | URLUtilTest.java | 125 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 …]
|
D | WebViewSslTest.java | 557 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 …]
|
D | WebChromeClientTest.java | 79 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnProgressChanged() local 80 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnProgressChanged() 98 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedTitle() local 99 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedTitle() 133 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedIcon() local 134 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 …]
|
D | WebHistoryItemTest.java | 97 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()
|
D | WebBackForwardListTest.java | 85 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()
|
D | WebViewClientTest.java | 193 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage() local 198 mOnUiThread.loadUrlAndWaitForCompletion(url); in testLoadPage() 239 String url = testServer.setResponse(path, page, headers); in testOnReceivedLoginRequest() local 241 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedLoginRequest() 279 String url = mWebServer.getAssetUrl(TestHtmlConstants.BAD_IMAGE_PAGE_URL); in testOnReceivedErrorForSubresource() local 280 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedErrorForSubresource() 295 String url = mWebServer.getAssetUrl(TestHtmlConstants.NON_EXISTENT_PAGE_URL); in testOnReceivedHttpError() local 296 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnReceivedHttpError() 312 String url = mWebServer.getAssetUrl(TestHtmlConstants.JS_FORM_URL); in testOnFormResubmission() local 314 mOnUiThread.loadUrlAndWaitForCompletion(url); in testOnFormResubmission() [all …]
|
D | WebSettingsTest.java | 154 String url = mWebServer.getUserAgentUrl(); in testAccessUserAgentString() local 158 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 164 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 170 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 176 mOnUiThread.loadUrlAndWaitForCompletion(url); in testAccessUserAgentString() 639 final String url = mWebServer.getAppCacheUrl(); 642 mOnUiThread.loadUrlAndWaitForCompletion(url); 665 final String url = mWebServer.getAppCacheUrl(); 669 mOnUiThread.loadUrlAndWaitForCompletion(url); 684 mOnUiThread.loadUrlAndWaitForCompletion(url); [all …]
|
D | WebViewTest.java | 309 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testInvokeZoomPicker() local 310 mOnUiThread.loadUrlAndWaitForCompletion(url); in testInvokeZoomPicker() 491 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); 492 mOnUiThread.loadUrlAndWaitForCompletion(url); 494 assertEquals(url, mWebView.getUrl()); 495 assertEquals(url, mWebView.getOriginalUrl()); 552 String url = uriBuilder.build().toString(); 553 mOnUiThread.loadUrlAndWaitForCompletion(url); 566 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); 570 mOnUiThread.loadUrlAndWaitForCompletion(url, map); [all …]
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 67 private TransformFilter mTransformFilterUpperChar = (final Matcher match, String url) -> { 496 String url = "name@gmail.com"; in testAddLinks_shouldNotAddEmailAddressAsUrl() local 497 verifyAddLinksWithWebUrlFails("Should not recognize email address as URL", url); in testAddLinks_shouldNotAddEmailAddressAsUrl() 502 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues() local 503 verifyAddLinksWithWebUrlSucceeds("Should accept commas", url); in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues() 508 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2"; in testAddLinks_addsLinksForUrlWithProtocolWithoutTld() local 510 " have TLD", url); in testAddLinks_addsLinksForUrlWithProtocolWithoutTld() 515 String url = "hTtP://android.com"; in testAddLinks_matchesProtocolCaseInsensitive() local 516 verifyAddLinksWithWebUrlSucceeds("Protocol matching should be case insensitive", url); in testAddLinks_matchesProtocolCaseInsensitive() 521 String url = "http://www.android.com"; in testAddLinks_matchesValidUrlWithSchemeAndHostname() local [all …]
|
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/ |
D | TestUtils.java | 109 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/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | BatteryStatsWifiTransferTests.java | 38 URL url = new URL(SERVER_URL); in download() local 39 conn = (HttpURLConnection) url.openConnection(); in download() 70 URL url = new URL(SERVER_URL + "?" + new String(queryChars)); in upload() local 71 conn = (HttpURLConnection) url.openConnection(); in upload()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 361 String url = server.getAssetUrl("raw/" + rname); in doStagefrightTest() local 362 doStagefrightTestMediaPlayer(url); in doStagefrightTest() 363 doStagefrightTestMediaCodec(url); in doStagefrightTest() 364 doStagefrightTestMediaMetadataRetriever(url); in doStagefrightTest() 468 private void doStagefrightTestMediaPlayer(final String url) throws Exception { in doStagefrightTestMediaPlayer() argument 469 doStagefrightTestMediaPlayer(-1, url); in doStagefrightTestMediaPlayer() 537 private void doStagefrightTestMediaCodec(final String url) throws Exception { in doStagefrightTestMediaCodec() argument 538 doStagefrightTestMediaCodec(-1, url); in doStagefrightTestMediaCodec() 541 private void doStagefrightTestMediaCodec(final int rid, final String url) throws Exception { in doStagefrightTestMediaCodec() argument 581 if (url == null) { in doStagefrightTestMediaCodec() [all …]
|
/cts/hostsidetests/incident/apps/netstatsapp/src/com/android/server/cts/netstats/ |
D | NetstatsDeviceTest.java | 54 final URL url = new URL("http://www.android.com/"); in makeNetworkRequest() local 55 final HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in makeNetworkRequest() 60 Log.i(TAG, "Response code from " + url + ": " + status); in makeNetworkRequest()
|
/cts/tests/tests/netsecpolicy/src/android/security/ |
D | NetworkSecurityPolicyTestBase.java | 74 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/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | NetworkLoggingTest.java | 134 for (final String url : NOT_LOGGED_URLS_LIST) { in testNetworkLoggingAndRetrieval() 135 connectToWebsite(url); in testNetworkLoggingAndRetrieval() 147 for (final String url : LOGGED_URLS_LIST) { in testNetworkLoggingAndRetrieval() 148 connectToWebsite(url); in testNetworkLoggingAndRetrieval() 238 final URL url = new URL("http://" + urlString); in connectToWebsite() local 239 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | PatternsTest.java | 36 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/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 226 const char* url = env->GetStringUTFChars(videoUrl, 0); in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative() local 227 if (url) { in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative() 229 aMediaObjects.getVideoExtractor(), url); in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative() 230 env->ReleaseStringUTFChars(videoUrl, url); in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative() 533 const char* url = env->GetStringUTFChars(params.audioUrl, 0); in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative() local 534 if (url) { in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative() 536 aMediaObjects.getAudioExtractor(), url); in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative() 537 env->ReleaseStringUTFChars(params.audioUrl, url); in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative() 547 url = env->GetStringUTFChars(params.videoUrl, 0); in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative() 548 if (url) { in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative() [all …]
|
/cts/libs/vogar-expect/src/vogar/ |
D | ExpectationStore.java | 145 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/ |
D | WebViewOnUiThread.java | 465 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); 1081 public void onPageFinished(WebView view, String url) { 1082 super.onPageFinished(view, url); [all …]
|
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/ |
D | WebViewDeviceSideStartupTest.java | 67 final String url = server.getCookieUrl("death.html"); in testCookieManagerBlockingUiThread() local 77 cookieManager.setCookie(url, "count=41"); in testCookieManagerBlockingUiThread() 95 onUiThread.loadUrlAndWaitForCompletion(url); in testCookieManagerBlockingUiThread() 98 String cookie = cookieManager.getCookie(url); in testCookieManagerBlockingUiThread()
|
/cts/tests/tests/assist/common/src/android/assist/common/ |
D | MyWebView.java | 39 public void myLoadData(String url, String data, String mimeType, String encoding) { in myLoadData() argument 40 mUrl = url; in myLoadData()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStore_Images_ThumbnailsTest.java | 289 Uri url[] = new Uri[3]; in testThumbnailOrderedQuery() local 291 for (int i = 0; i < url.length; i++) { in testThumbnailOrderedQuery() 292 url[i] = Uri.parse(Media.insertImage(mContentResolver, src, null, null)); in testThumbnailOrderedQuery() 293 long origId = Long.parseLong(url[i].getLastPathSegment()); in testThumbnailOrderedQuery() 300 Cursor c = mContentResolver.query(url[1], null, null, null, null); in testThumbnailOrderedQuery() 308 long removedId = Long.parseLong(url[1].getLastPathSegment()); in testThumbnailOrderedQuery() 309 long remainingId1 = Long.parseLong(url[0].getLastPathSegment()); in testThumbnailOrderedQuery() 310 long remainingId2 = Long.parseLong(url[2].getLastPathSegment()); in testThumbnailOrderedQuery()
|