/libcore/luni/src/test/java/libcore/java/net/ |
URLTest.java | 28 import java.net.URL; 45 URL url = new URL("http://username:password@host:8080/directory/file?query#ref"); local 46 assertEquals("http", url.getProtocol()); 47 assertEquals("username:password@host:8080", url.getAuthority()); 48 assertEquals("username:password", url.getUserInfo()); 49 assertEquals("host", url.getHost()); 50 assertEquals(8080, url.getPort()); 51 assertEquals(80, url.getDefaultPort()) 59 URL url = new URL("http:\/\/www.google.com:80\/example?language[id]=2"); local 121 URL url = new URL("http:\/\/user:pass@host\/path\/file?query#hash"); local 209 URL url = new URL("http:\/\/example.com:42\/file"); local 233 URL url = new URL("http:\/\/example.com\/file"); local 247 URL url = new URL("http:\/\/temporaryhost.com\/temporaryfile"); local 280 final URL url = new URL("http:\/\/user:pass@host\/path\/file?query#hash"); local 297 URL url = new URL("http:\/\/\/path"); local 304 URL url = new URL("http:\/path"); local 318 URL url = new URL("http:\/\/host"); local 325 URL url = new URL("http:\/\/"); local 339 URL url = new URL("http:"); local 355 URL url = new URL("http:\/\/user@userhost.com:password@host"); local 361 URL url = new URL("http:\/\/user@host"); local 368 URL url = new URL("http:\/\/user@host:8080"); local 376 URL url = new URL("http:\/\/user:password@host:8080"); local 384 URL url = new URL("http:\/\/user:password@:8080"); local 392 URL url = new URL("http:\/\/user:password@"); local 400 URL url = new URL("http:\/\/host\/path"); local 406 URL url = new URL("http:\/\/host?query"); local 413 URL url = new URL("http:\/\/host#fragment"); local 420 URL url = new URL("http:\/\/host\/file@foo"); local 427 URL url = new URL("http:\/\/host\/file:colon"); local 433 URL url = new URL("http:\/\/host\/file?query\/path"); local 440 URL url = new URL("http:\/\/host\/file?query?another"); local 447 URL url = new URL("http:\/\/host\/file?query@at"); local 472 URL url = new URL("http:\/\/host\/file?query:colon"); local 479 URL url = new URL("http:\/\/host\/file#fragment?query"); local 487 URL url = new URL("http:\/\/host\/file#fragment:80"); local 495 URL url = new URL("http:\/\/host\/file#fragment\/path"); local 502 URL url = new URL("http", "host", "\/file#fragment\/path"); local 509 URL url = new URL("http:\/\/host\/file#fragment#another"); local 516 URL url = new URL("http:\/\/host:\/"); local 562 URL url = new URL(base, "another"); local 572 URL url = new URL(base, "#another"); local 581 URL url = new URL("http:\/\/host\/a\/b\/..\/c"); local 704 URL url = new URL("http:\/\/user:[::1]@host"); local 710 URL url = new URL("http", "host", "a"); local 719 URL url = new URL("http", null, "a"); local 728 URL url = new URL("file:\/\/\/\/foo"); local 735 URL url = new URL("file:\/\/x\/foo"); local 747 URL url = new URL("http:\/\/\/foo"); local 754 URL url = new URL("http:\/\/\/\/foo"); local 766 URL url = new URL("file:..\/a\/b"); local 772 URL url = new URL("http:\/\/.\/"); local 783 URL url = new URL("http", "[192.168.0.1]", "\/"); local 793 URL url = new URL("http", "[www.android.com]", "\/"); local 803 URL url = new URL("http", "fe80::1234", "\/"); local 808 URL url = new URL("http:\/\/[::1]:2\/"); local 818 URL url = new URL("http", "host", 80, "\/doc|search?q=green robots#over 6\\""); local 828 URL url = new URL("HTTP:\/\/host\/path"); local 833 URL url = new URL("http:\/\/\/path"); local 839 URL url = new URL("http:\/\/?query"); local 846 URL url = new URL("http:\/\/#fragment"); local 884 URL url = new URL("http:\/\/a_b.c.d.net\/"); local 922 URL url = new URL("http:\/\/www.google.com\/"); local 943 URL url = new URL(String.format("http:\/\/%s#%s", host, fragment)); local 954 URL url = new URL(String.format("http:\/\/%s#%s", host, fragment)); local 964 URL url = new URL(host); local [all...] |
OldURLStreamHandlerTest.java | 24 import java.net.URL; 35 URL url1 = new URL("ftp://test_url/test?a=b&c=%D0+%D1"); 36 URL url2 = new URL("http://test_url/test?a=b&c=%D0+%D1"); 39 new URL("http://test_url+/test?a=b&c=%D0+%D1"); 55 URL url1 = new URL("ftp://test_url/test?a=b&c=%D0+%D1"); 58 URL url2 = new URL("http://test:pwd@fakehostname.fakedomain/test?a=b&c=%D0+%D1") 108 URL url = new URL("http:\/\/test.org"); local 134 URL url = new URL("http:\/\/test.org"); local 144 URL url = new URL("http:\/\/test.org"); local [all...] |
OldURLTest.java | 33 import java.net.URL; 58 new URL("http", "apache.org", 123456789, "file"); 60 new URL("http", "apache.org", -123, "file"); 69 URL testURL = new URL("http", "www.apache.org:8082", "test.html#anch"); 77 new URL("hftp", "apache.org:8082", "test.html#anch"); 90 new URL("test_protocol", "", "fake.jar"); 97 URL testURL1 = new URL("http", "www.apache.org:8080", "test.html#anch"); 98 URL testURL2 = new URL("http", "www.apache.org:8080", "test.html#anch") 245 URL url = new URL("http:\/\/web2.javasoft.com\/some+file.html"); local 483 URL url = new URL("http:\/\/www.example.com"); local 494 URL url = new URL("ftp:\/\/myUser:password@host.dom\/etc\/motd"); local 504 URL url = new URL("http:\/\/www.java2s.com:8080"); local 786 URL url = new URL(new URL(strURL), ref); local 792 URL url = new URL(strURL); local [all...] |
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/dependency/ |
DependencyResolver.java | 3 import java.net.URL; 6 URL getLocalArtifactUrl(DependencyJar dependency);
|
/libcore/ojluni/src/main/java/sun/net/ |
ProgressMeteringPolicy.java | 27 import java.net.URL; 39 public boolean shouldMeterInput(URL url, String method);
|
/external/jcommander/src/main/java/com/beust/jcommander/converters/ |
URLConverter.java | 24 import java.net.URL; 31 public class URLConverter extends BaseConverter<URL> { 37 public URL convert(String value) { 39 return new URL(value); 42 getErrorString(value, "a RFC 2396 and RFC 2732 compliant URL"));
|
/test/vti/test_serving/gae/testing/ |
test_e2e.py | 21 URL = os.environ.get("URL") 25 assert URL 26 print ("Running test against {}".format(URL)) 27 r = requests.get(URL)
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
SettingsRobolectricTestRunner.java | 19 import java.net.URL; 51 final URL appRoot = new URL("file:packages/apps/Settings/"); 52 final URL manifestPath = new URL(appRoot, "AndroidManifest.xml"); 53 final URL resDir = new URL(appRoot, "tests/robotests/res"); 54 final URL assetsDir = new URL(appRoot, "tests/robotests/assets"); 75 Fs.fromURL(new URL("file:packages/apps/Settings/res")), null)) [all...] |
/external/curl/tests/libtest/ |
lib1508.c | 28 int test(char *URL) 33 (void)URL;
|
lib517.c | 128 int test(char *URL) 132 (void)URL; /* not used */
|
lib1550.c | 28 int test(char *URL) 39 (void)URL; /* unused */
|
/external/javassist/src/main/javassist/ |
ClassPath.java | 19 import java.net.URL; 53 * Returns the uniform resource locator (URL) of the class file 59 URL find(String classname);
|
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/ |
HttpClientPool.java | 19 import java.net.URL; 33 /** Get the appropriate HttpClient for sending a request to the given URL. */ 34 public org.apache.http.client.HttpClient getHttpClient(URL server);
|
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/ |
URLFilter.java | 18 import java.net.URL; 21 * Request filter based on the request's URL. 27 * Check whether request to the provided URL is permitted to be issued. 29 * @throws IOException if the request to the provided URL is not permitted. 31 void checkURLPermitted(URL url) throws IOException;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
URLTest.java | 30 import java.net.URL; 39 protected URLConnection openConnection(URL u) 45 URL u; 47 URL u1; 49 URL u2; 51 URL u3; 53 URL u4; 55 URL u5; 57 URL u6; 64 * java.net.URL#URL(java.lang.String 868 URL url = new URL("http", ipv6Host, -1, "myfile"); local 1066 URL url = new URL(strURL); local 1077 URL url = new URL(new URL(strURL), ref); local 1103 URL url = new URL(null, "foobar:\/\/example.com\/foobar", myHandler); local [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
SettingsLibRobolectricTestRunner.java | 28 import java.net.URL; 44 final URL appRoot = 45 new URL("file:frameworks/base/packages/SettingsLib/tests/robotests"); 46 final URL manifestPath = new URL(appRoot, "AndroidManifest.xml"); 47 final URL resDir = new URL(appRoot, "res"); 48 final URL assetsDir = new URL(appRoot, "assets"); 68 return new ResourcePath(null, Fs.fromURL(new URL(spec)), null) [all...] |
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/ |
TvSettingsRobolectricTestRunner.java | 29 import java.net.URL; 50 final URL appRoot = new URL("file:packages/apps/TvSettings/Settings/tests/robotests"); 51 final URL manifestPath = new URL(appRoot, "AndroidManifest.xml"); 52 final URL resDir = new URL(appRoot, "res"); 53 final URL assetsDir = new URL(appRoot, "assets"); 75 return new ResourcePath(null, Fs.fromURL(new URL(spec)), null) [all...] |
/packages/services/Car/tests/robotests/src/com/android/car/ |
CarServiceRobolectricTestRunner.java | 29 import java.net.URL; 44 final URL appRoot = 45 new URL("file:packages/services/Car/tests/robotests"); 46 final URL manifestPath = new URL(appRoot, "AndroidManifest.xml"); 47 final URL resDir = new URL(appRoot, "res"); 48 final URL assetsDir = new URL(appRoot, "assets"); 65 return new ResourcePath(null, Fs.fromURL(new URL(spec)), null) [all...] |
/external/clang/lib/Basic/ |
Version.cpp | 32 StringRef URL(SVN_REPOSITORY); 34 StringRef URL(""); 39 StringRef SVNRepository("$URL$"); 40 if (URL.empty()) { 41 URL = SVNRepository.slice(SVNRepository.find(':'), 46 URL = URL.slice(0, URL.find("/src/tools/clang")); 49 size_t Start = URL.find("cfe/"); 51 URL = URL.substr(Start + 4) [all...] |
/libcore/luni/src/test/java/libcore/java/net/customstreamhandler/http/ |
Handler.java | 20 import java.net.URL; 25 * This specially-named class is created reflectively by {@link URL}. For the 30 @Override protected URLConnection openConnection(URL url) throws IOException { 31 return new HandlerURLConnection(url); 35 protected HandlerURLConnection(URL url) { 36 super(url);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/util/ |
UtilTest.java | 5 import java.net.URL; 19 assertThat(Util.url(uncPath)).isEqualTo(new URL("file:////hostname/path/to/file.jar")); 22 assertThat(Util.url(windowsPath)).isEqualTo(new URL("file:/" + windowsPath)); 25 assertThat(Util.url(unixPath)).isEqualTo(new URL("file://" + unixPath));
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/test_protocol/ |
Handler.java | 21 import java.net.URL; 26 protected URLConnection openConnection(URL u) throws IOException {
|
/external/proguard/src/proguard/ |
FileWordReader.java | 24 import java.net.URL; 28 * A <code>WordReader</code> that returns words from a file or a URL. 47 * Creates a new FileWordReader for the given URL. 49 public FileWordReader(URL url) throws IOException 51 super(new LineNumberReader(new BufferedReader(new InputStreamReader(url.openStream()))), 52 "file '" + url.toString() + "'",
|
/external/slf4j/log4j-over-slf4j/src/main/java/org/apache/log4j/spi/ |
Configurator.java | 20 import java.net.URL; 23 Implemented by classes capable of configuring log4j using a URL. 43 Interpret a resource pointed by a URL and set up log4j accordingly. 48 @param url The URL to parse 51 void doConfigure(URL url, LoggerRepository repository);
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/test_protocol/ |
Handler.java | 21 import java.net.URL; 26 protected URLConnection openConnection(URL u) throws IOException {
|