/development/samples/training/network-usage/src/com/example/android/networkusage/ |
NetworkActivity.java | 42 import java.net.URL; 67 private static final String URL = 150 new DownloadXmlTask().execute(URL); 220 String url = null; local 263 // Given a string representation of a URL, sets up a connection and gets 266 URL url = new URL(urlString); local 267 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
|
/external/emma/tools/java/com/vladium/tools/ |
ClassDep.java | 15 import java.net.URL; 51 final URL [] classPath; 54 classPath = new URL [tokenizer.countTokens ()]; 99 public ClassDep (final String [] rootSet, final URL [] classPath) 217 private final URL [] m_classPath;
|
/external/okhttp/src/main/java/com/squareup/okhttp/ |
OkHttpClient.java | 30 import java.net.URL; 328 dispatcher.enqueue(open(request.url()), request, responseReceiver); 339 public HttpURLConnection open(URL url) { 340 return open(url, proxy); 343 HttpURLConnection open(URL url, Proxy proxy) { 344 String protocol = url.getProtocol(); 348 if (protocol.equals("http")) return new HttpURLConnectionImpl(url, copy); 349 if (protocol.equals("https")) return new HttpsURLConnectionImpl(url, copy) [all...] |
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
NetworkActivity.java | 42 import java.net.URL; 67 private static final String URL = 150 new DownloadXmlTask().execute(URL); 220 String url = null; local 263 // Given a string representation of a URL, sets up a connection and gets 266 URL url = new URL(urlString); local 267 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
|
/frameworks/volley/src/com/android/volley/toolbox/ |
HurlStack.java | 37 import java.net.URL; 58 * Returns a URL to use instead of the provided one, or null to indicate 59 * this URL should not be used at all. 90 String url = request.getUrl(); local 95 String rewritten = mUrlRewriter.rewriteUrl(url); 97 throw new IOException("URL blocked by rewriter: " + url); 99 url = rewritten; 101 URL parsedUrl = new URL(url) [all...] |
/libcore/luni/src/main/java/javax/xml/validation/ |
SchemaFactoryFinder.java | 27 import java.net.URL; 223 for (URL resource : createServiceFileIterator()) { 295 private Iterable<URL> createServiceFileIterator() { 301 Enumeration<URL> e = classLoader.getResources(SERVICE_ID); 411 URL it = loader.getResource(classnameAsResource);
|
/libcore/luni/src/main/java/libcore/net/url/ |
JarURLConnectionImpl.java | 18 package libcore.net.url; 30 import java.net.URL; 46 * file which can be anywhere that can be referred to by an URL. 50 private static final HashMap<URL, JarFile> jarCache = new HashMap<URL, JarFile>(); 52 private URL jarFileURL; 63 * @param url 64 * the URL of the JAR 66 * if the URL is malformed 70 public JarURLConnectionImpl(URL url) throws MalformedURLException, IOException [all...] |
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldManifestTest.java | 25 import java.net.URL; 85 Manifest manifest = new Manifest(new URL(Support_Resources 93 Manifest manifest1 = new Manifest(new URL(Support_Resources.getURL( 95 Manifest manifest2 = new Manifest(new URL(Support_Resources.getURL( 110 manifest1 = new Manifest(new URL(Support_Resources 113 fail("Malformed URL"); 138 fail("Malformed URL");
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_urllibnet.py | 96 # Make sure same URL as opened is returned by geturl. 97 URL = "http://www.python.org/" 98 open_url = self.urlopen(URL) 103 self.assertEqual(gotten_url, URL) 107 URL = "http://www.python.org/XXXinvalidXXX" 108 open_url = urllib.FancyURLopener().open(URL)
|
test_xmlrpc.py | 275 ADDR = PORT = URL = None 308 global ADDR, PORT, URL 314 URL = "http://%s:%d"%(ADDR, PORT) 367 global ADDR, PORT, URL 373 URL = "http://%s:%d"%(ADDR, PORT) 453 p = xmlrpclib.ServerProxy(URL) 466 p = xmlrpclib.ServerProxy(URL) 493 p = xmlrpclib.ServerProxy(URL) 508 p = xmlrpclib.ServerProxy(URL) 522 p = xmlrpclib.ServerProxy(URL) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_urllibnet.py | 96 # Make sure same URL as opened is returned by geturl. 97 URL = "http://www.python.org/" 98 open_url = self.urlopen(URL) 103 self.assertEqual(gotten_url, URL) 107 URL = "http://www.python.org/XXXinvalidXXX" 108 open_url = urllib.FancyURLopener().open(URL)
|
test_xmlrpc.py | 275 ADDR = PORT = URL = None 308 global ADDR, PORT, URL 314 URL = "http://%s:%d"%(ADDR, PORT) 367 global ADDR, PORT, URL 373 URL = "http://%s:%d"%(ADDR, PORT) 453 p = xmlrpclib.ServerProxy(URL) 466 p = xmlrpclib.ServerProxy(URL) 493 p = xmlrpclib.ServerProxy(URL) 508 p = xmlrpclib.ServerProxy(URL) 522 p = xmlrpclib.ServerProxy(URL) [all...] |
/external/chromium_org/third_party/libxml/src/ |
catalog.c | 137 xmlChar *URL; /* The expanded URL using the base */ 271 const xmlChar *value, const xmlChar *URL, xmlCatalogPrefer prefer, 300 if (URL == NULL) 301 URL = value; 302 if (URL != NULL) 303 ret->URL = xmlStrdup(URL); 305 ret->URL = NULL; 349 if (ret->URL != NULL [all...] |
/external/libxml2/ |
catalog.c | 137 xmlChar *URL; /* The expanded URL using the base */ 271 const xmlChar *value, const xmlChar *URL, xmlCatalogPrefer prefer, 300 if (URL == NULL) 301 URL = value; 302 if (URL != NULL) 303 ret->URL = xmlStrdup(URL); 305 ret->URL = NULL; 349 if (ret->URL != NULL [all...] |
/packages/apps/Browser/src/com/android/browser/provider/ |
BrowserProvider2.java | 91 public static final String URL = "url"; 106 "ON bookmarks.url = images." + Images.URL; 108 "ON history.url = images." + Images.URL; 116 "ON history.url = bookmarks.url LEFT OUTER JOIN images " + 117 "ON history.url = images.url_key"; 125 "history LEFT OUTER JOIN bookmarks ON history.url = bookmarks.url" 532 String url = c.getString(0); local 564 String url = c.getString(0); local 1359 String url = c.getString(2); local 1476 String url = values.getAsString(Bookmarks.URL); local 1498 String url = values.getAsString(History.URL); local 1742 String url = values.getAsString(Images.URL); local 1919 String url = null; local 2026 String url = null; local [all...] |
/external/chromium_org/ui/webui/resources/js/ |
util.js | 59 * Generates a CSS url string. 60 * @param {string} s The URL to generate the CSS url for. 61 * @return {string} The CSS url string. 63 function url(s) { 74 return 'url("' + s2 + '")'; 78 * Generates a CSS -webkit-image-set for a chrome:// url. 80 * The scale-factor-specific url is generated by replacing the first instance of 82 * @param {string} path The URL to generate an image set for. 91 return url(path) [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
MultipartForm.java | 26 import java.net.URL; 68 * @return a url if the server redirected to another url 74 URL url = new URL(serverUrl); local 75 connection = (HttpURLConnection) url.openConnection();
|
/developers/build/prebuilts/gradle/NetworkConnect/NetworkConnectSample/src/main/java/com/example/android/networkconnect/ |
MainActivity.java | 37 import java.net.URL; 134 * Given a string representation of a URL, sets up a connection and gets 136 * @param urlString A string representation of a URL. 142 URL url = new URL(urlString); local 143 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
|
/developers/samples/android/connectivity/network/NetworkConnect/NetworkConnectSample/src/main/java/com/example/android/networkconnect/ |
MainActivity.java | 37 import java.net.URL; 134 * Given a string representation of a URL, sets up a connection and gets 136 * @param urlString A string representation of a URL. 142 URL url = new URL(urlString); local 143 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
|
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/ |
MainActivity.java | 37 import java.net.URL; 134 * Given a string representation of a URL, sets up a connection and gets 136 * @param urlString A string representation of a URL. 142 URL url = new URL(urlString); local 143 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
RSSPullService.java | 30 import java.net.URL; 36 * This service pulls RSS content from a web site URL contained in the incoming Intent (see 64 * URL of the web site from which the RSS parser gets data. 68 // Gets a URL to read from the incoming Intent's "data" value 78 // A URL that's local to this method 79 URL localURL; 85 * A block that tries to connect to the Picasa featured picture URL passed as the "data" 90 // Convert the incoming data string to a URL. 91 localURL = new URL(localUrlString); 94 * Tries to open a connection to the URL. If an IO error occurs, this throws a [all...] |
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
JarOutputStreamTest.java | 23 import java.net.URL; 75 URL jarURL = new URL((new File(resources, testClass)).toURL()
|
/external/chromium_org/content/browser/fileapi/ |
file_system_operation_runner_unittest.cc | 53 FileSystemURL URL(const std::string& path) { 76 operation_runner()->Truncate(URL("foo"), 0, 88 // Invalid URL error, which calls DidFinish synchronously. 105 // Call Truncate with non-existent URL, and try to cancel it immediately 108 operation_runner()->Truncate(URL("foo"), 0, 130 // Call Truncate with invalid URL, and try to cancel it immediately
|
/external/chromium_org/ui/base/dragdrop/ |
os_exchange_data_provider_aura.cc | 41 void OSExchangeDataProviderAura::SetURL(const GURL& url, 43 url_ = url; 45 formats_ |= OSExchangeData::URL; 47 SetString(UTF8ToUTF16(url.spec())); 78 GURL* url, 81 if ((formats_ & OSExchangeData::URL) == 0) { 83 return GetPlainTextURL(url); 89 *url = url_; 126 if ((formats_ & OSExchangeData::URL) != 0) { 129 // No URL, see if we have plain text that can be parsed as a URL [all...] |
/external/mockito/src/org/mockito/internal/configuration/ |
ClassPathLoader.java | 14 import java.net.URL; 144 Enumeration<URL> resources; 152 for (URL resource : Collections.list(resources)) {
|