/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/dependency/ |
PropertiesDependencyResolverTest.java | 12 import java.net.URL; 38 URL url = resolver.getLocalArtifactUrl(new DependencyJar("com.group", "example", "1.3", null)); local 39 assertThat(url).isEqualTo(new URL("file:///path/1")); 47 URL url = resolver.getLocalArtifactUrl(new DependencyJar("com.group", "example", "1.3", null)); local 48 assertThat(url).isEqualTo(new URL("file://" + temporaryFolder.getRoot() + "/path/1")); 57 when(mock.getLocalArtifactUrl(dependencyJar)).thenReturn(new URL("file:///path/3")) 58 URL url = resolver.getLocalArtifactUrl(dependencyJar); local [all...] |
CachedDependencyResolverTest.java | 12 import java.net.URL; 39 public boolean isValid(URL url) { 44 public boolean isValid(URL[] urls) { 49 private URL url; field in class:CachedDependencyResolverTest 59 url = new URL("http://localhost"); 66 when(internalResolver.getLocalArtifactUrl(dependency)).thenReturn(url); 68 URL url = res.getLocalArtifactUrl(dependency) local 79 URL url = res.getLocalArtifactUrl(dependency); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
LoadLocaleProviderTestHelper.java | 20 import java.net.URL; 26 public LoadLocaleProviderTestHelper(URL[] classpathes)
|
/libcore/ojluni/src/main/java/sun/misc/ |
URLClassPath.java | 41 import java.net.URL; 90 private ArrayList<URL> path = new ArrayList<URL>(); 93 Stack<URL> urls = new Stack<URL>(); 98 /* Map of each URL opened to its corresponding Loader */ 114 * searched in the order specified for classes and resources. A URL 116 * the URL is assumed to refer to a JAR file. 124 public URLClassPath(URL[] urls, 144 public URLClassPath(URL[] urls) 215 URL url = loader.findResource(name, check); local 259 private URL url = null; local [all...] |
/libcore/support/src/test/java/tests/util/ |
ClassLoaderBuilder.java | 21 import java.net.URL; 113 List<URL> classpath = new ArrayList<URL>(); 116 return new URLClassLoader(classpath.toArray(new URL[classpath.size()]), bridge); 128 URL manifest = classLoader.getResource(manifestFile); 138 private List<URL> classpathToUrls(String propertyName) { 141 List<URL> result = new ArrayList<URL>();
|
/prebuilts/jdk/jdk8/darwin-x86/sample/nio/server/ |
URLDumper.java | 45 * A simple example to illustrate using a URL to access a resource 48 * Any type of URL can be used: http, https, ftp, etc. 57 System.out.println("Usage: URLDumper <URL> <file>"); 64 URL url = new URL(location); local 69 InputStream is = url.openStream();
|
/prebuilts/jdk/jdk8/linux-x86/sample/nio/server/ |
URLDumper.java | 45 * A simple example to illustrate using a URL to access a resource 48 * Any type of URL can be used: http, https, ftp, etc. 57 System.out.println("Usage: URLDumper <URL> <file>"); 64 URL url = new URL(location); local 69 InputStream is = url.openStream();
|
/external/curl/docs/cmdline-opts/ |
globoff.d | 3 Help: Disable URL sequences and ranges using {} and [] 5 This option switches off the "URL globbing parser". When you set this option, 7 interpreted by curl itself. Note that these letters are not normal legal URL
|
path-as-is.d | 2 Help: Do not squash .. sequences in URL path 5 Tell curl to not handle sequences of /../ or /./ in the given URL
|
proto-default.d | 2 Help: Use PROTOCOL for any URL missing a scheme 6 Tells curl to use \fIprotocol\fP for any URL missing a scheme name. 17 Without this option curl would make a guess based on the host, see --url for
|
upload-file.d | 6 This transfers the specified local file to the remote URL. If there is no file 7 part in the specified URL, curl will append the local file name. NOTE that you 18 You can specify one --upload-file for each URL on the command line. Each 19 --upload-file + URL pair specifies what to upload and to where. curl also 21 multiple files to a single URL by using the same URL globbing style supported 22 in the URL, like this:
|
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
HttpsTransportSE.java | 6 import java.net.URL; 51 retVal = new URL(url).getHost(); 64 retVal = new URL(url).getPort(); 77 retVal = new URL(url).getPath();
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
BitmapRequestKeyImpl.java | 24 import java.net.URL; 28 public final URL mUrl; 34 URL url = null; local 36 url = new URL(uriString); 40 mUrl = url;
|
/libcore/ojluni/src/main/java/javax/crypto/ |
JarVerifier.java | 47 // The URL for the JAR file we want to verify. 48 private URL jarURL; 53 * Creates a JarVerifier object to verify the given URL. 59 JarVerifier(URL jarURL, boolean savePerms) { 79 // construct a JAR URL so we can open a JarURLConnection 81 final URL url = jarURL.getProtocol().equalsIgnoreCase("jar")? local 82 jarURL : new URL("jar:" + jarURL.toString() + "!/"); 93 (JarURLConnection) url.openConnection(); 101 throw new SecurityException("Cannot load " + url.toString(), pae) [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
WebsiteDataItem.java | 33 return getContentValues().getAsString(Website.URL);
|
/tools/tradefederation/core/src/com/android/tradefed/util/net/ |
IHttpHelper.java | 25 import java.net.URL; 42 * Build the full encoded URL request string. 44 * @param url the base URL 45 * @param paramMap the URL parameters 46 * @return the constructed URL 49 public String buildUrl(String url, MultiMap<String, String> paramMap); 54 * @param paramMap the URL parameters 61 * Performs a GET HTTP request method for a given URL and returns it as a {@link String}. 68 * <li>Java URL Connection [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
HttpUrlFetcher.java | 12 import java.net.URL; 15 * A DataFetcher that retrieves an {@link java.io.InputStream} for a Url. 43 private InputStream loadDataWithRedirects(URL url, int redirects, URL lastUrl) throws IOException { 50 if (lastUrl != null && url.toURI().equals(lastUrl.toURI())) { 57 urlConnection = connectionFactory.build(url); 75 throw new IOException("Received empty or null redirect url"); 77 URL redirectUrl = new URL(url, redirectUrlString) [all...] |
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
JarFileFactory.java | 30 import java.net.URL; 45 /* the url to file cache */ 48 /* the file to url cache */ 49 private static final HashMap<JarFile, URL> urlCache = new HashMap<>(); 60 URL u; 70 public JarFile get(URL url) throws IOException { 71 return get(url, true); 74 JarFile get(URL url, boolean useCaches) throws IOException [all...] |
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/dependency/ |
CachedDependencyResolver.java | 12 import java.net.URL; 36 public URL getLocalArtifactUrl(DependencyJar dependency) { 38 final URL urlFromCache = cache.load(cacheName, URL.class); 44 final URL url = dependencyResolver.getLocalArtifactUrl(dependency); local 45 cache.write(cacheName, url); 46 return url; 54 boolean isValid(URL url); [all...] |
/external/curl/tests/libtest/ |
lib570.c | 25 /* build request url */ 31 int test(char *URL) 54 test_setopt(curl, CURLOPT_URL, URL); 58 stream_uri = suburl(URL, request++); 79 stream_uri = suburl(URL, request++); 94 stream_uri = suburl(URL, request++);
|
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/ |
OkUrlFactory.java | 24 import java.net.URL; 53 public HttpURLConnection open(URL url) { 54 return open(url, client.getProxy()); 57 HttpURLConnection open(URL url, Proxy proxy) { 58 String protocol = url.getProtocol(); 62 if (protocol.equals("http")) return new HttpURLConnectionImpl(url, copy, urlFilter); 63 if (protocol.equals("https")) return new HttpsURLConnectionImpl(url, copy, urlFilter); 68 * Creates a URLStreamHandler as a {@link java.net.URL#setURLStreamHandlerFactory} [all...] |
/libcore/ojluni/src/main/java/java/net/ |
JarURLConnection.java | 37 * A URL Connection to a Java ARchive (JAR) file or an entry in a JAR 40 * <p>The syntax of a JAR URL is: 43 * jar:<url>!/{entry} 51 * a JAR file. The example above is a JAR URL which refers to a JAR 52 * entry. If the entry name is omitted, the URL refers to the whole 58 * JarURLConnection when they know that the URL they created is a JAR 59 * URL, and they need JAR-specific functionality. For example: 62 * URL url = new URL("jar:file:/home/duke/duke.jar!/") [all...] |
/libcore/ojluni/src/main/java/sun/net/ |
ProgressSource.java | 27 import java.net.URL; 38 // URL 39 private URL url; field in class:ProgressSource 40 // URL method 62 public ProgressSource(URL url, String method) { 63 this(url, method, -1); 69 public ProgressSource(URL url, String method, long expected) [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
ClassLoader.java | 34 import java.net.URL; 211 // URL[] urls = new URL[paths.length]; 214 // urls[i] = new URL("file://" + paths[i]); 779 * @return A <tt>URL</tt> object for reading the resource, or 785 public URL getResource(String name) { 786 URL url; local 788 url = parent.getResource(name); 790 url = getBootstrapResource(name) 987 URL url = getResource(name); local 1009 URL url = getSystemResource(name); local [all...] |
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/ |
TestUtils.java | 25 import java.net.URL; 109 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); local 110 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); 120 URL url = new URL((https ? "https://" : "http://") + host + ":" + port); local 121 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); 127 URL url = new URL((https ? "https://" : "http://") + host + ":" + port) local 138 URL url = new URL((https ? "https:\/\/" : "http:\/\/") + host + ":" + port); local [all...] |