/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/ |
test_upload.py | 44 def __init__(self, url): 45 self.url = url 46 if not isinstance(url, str): 47 self.req = url 68 def _urlopen(self, url): 69 self.last_open = FakeOpen(url)
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
SafeSaxTest.java | 246 String url = attributes.getValue("", "url"); 247 if (video.thumbnailUrl == null && url.length() > 0) { 248 video.thumbnailUrl = url; 256 String url = attributes.getValue("", "url"); 257 if (url != null) { 258 video.videoUrl = url; 266 String url = attributes.getValue("", "url"); 390 String url = attributes.getValue("", "url"); local 398 String url = attributes.getValue("", "url"); local 406 String url = attributes.getValue("", "url"); local [all...] |
/external/slf4j/slf4j-site/src/site/pages/js/ |
decorator.js | 7 var anchor = findAnchorInURL(document.URL); 14 function findAnchorInURL(url) { 16 if(url == null) return null 17 var index = url.lastIndexOf("#"); 18 if(index != -1 && (index+1) < url.length) 19 return url.substr(index+1);
|
/frameworks/volley/src/main/java/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/test/java/libcore/xml/ |
JaxenXPathTestSuite.java | 73 * <document url="..."> 78 * <document url="..."> 90 String url = document.getAttribute("url"); local 91 InputSource inputSource = new InputSource("file:" + jaxenHome + "/" + url); 93 contextToTestSuite(result, url, inputSource, context); 103 private static void contextToTestSuite(TestSuite suite, String url, 120 Context context = new Context(inputSource, url, select); 219 private final String url; 222 Context(InputSource inputSource, String url, String select) [all...] |
/external/jetty/src/java/org/eclipse/jetty/webapp/ |
WebAppClassLoader.java | 23 import java.net.URL; 76 /** Convert a URL or path to a Resource. 79 * @param urlOrPath The URL or path to convert 80 * @return The Resource for the URL/path 141 super(new URL[]{},parent!=null?parent 239 URL url= resource.getURL(); local 240 addURL(url); 303 public Enumeration<URL> getResources(String name) throws IOException 308 List<URL> from_parent = toList(server_class?null:_parent.getResources(name)) 338 URL url= null; local [all...] |
/frameworks/base/media/java/android/media/ |
MediaHTTPConnection.java | 30 import java.net.URL; 50 private URL mURL = null; 80 mURL = new URL(uri); 147 private static final boolean isLocalHost(URL url) { 148 if (url == null) { 152 String host = url.getHost(); 177 URL url = mURL; local 180 boolean noProxy = isLocalHost(url); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
JarURLConnectionTest.java | 28 import java.net.URL; 41 private URL copyAndOpenResourceStream(String jarFile, String inFile) 49 return new URL("jar:file:" + file.getPath() + "!/" + inFile); 57 URL u = copyAndOpenResourceStream("lf.jar", "swt.dll"); 70 URL u = copyAndOpenResourceStream("lf.jar", "plus.bmp"); 78 URL url = copyAndOpenResourceStream("lf.jar", "foo.jar!/Bugs/HelloWorld.class"); local 79 assertEquals("foo.jar!/Bugs/HelloWorld.class", ((JarURLConnection) url.openConnection()).getEntryName()); 86 URL u = copyAndOpenResourceStream("lf.jar", "plus.bmp"); 99 URL url = copyAndOpenResourceStream("lf.jar", "missing") local 161 URL url = new URL("jar:file:" + file.getPath() + "!\/HasAttributes.txt"); local 190 URL url = new URL("jar:file:\/\/\/bar.jar!\/foo.jar!\/Bugs\/HelloWorld.class"); local 219 URL url = new URL("jar:file:" + file.getAbsolutePath() + "!\/entry.txt"); local 305 URL url = copyAndOpenResourceStream("url-test.jar", "test%20folder%20for%20url%20test\/test"); local [all...] |
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/ |
HttpClient4.java | 21 import java.net.URL; 62 final String url = request.url.toExternalForm(); local 71 isPost ? new HttpPost(url) : new HttpPut(url); 81 httpRequest = new HttpDelete(url); 83 httpRequest = new HttpGet(url); 88 HttpClient client = clientPool.getHttpClient(new URL(httpRequest.getURI().toString())); 119 public HttpClient getHttpClient(URL server)
|
/external/oauth/core/src/main/java/net/oauth/http/ |
HttpMessage.java | 21 import java.net.URL; 44 public HttpMessage(String method, URL url) 46 this(method, url, null); 49 public HttpMessage(String method, URL url, InputStream body) 52 this.url = url; 57 public URL url; field in class:HttpMessage [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
InterceptorTest.java | 22 import java.net.URL; 58 .url("https://localhost:1/") 96 .url(server.getUrl("/")) 121 .url(server.getUrl("/")) 142 .url(new URL("http://" + sameHost + ":" + differentPort + "/")) 149 .url(server.getUrl("/")) 173 .url(server.getUrl("/")) 200 .url(server.getUrl("/")) 236 .url(server.getUrl("/") [all...] |
/external/wpa_supplicant_8/src/ap/ |
hs20.c | 95 u8 osu_method, const char *url) 104 if (url) { 105 len = 1 + os_strlen(url); 107 wpa_printf(MSG_INFO, "HS 2.0: Too long URL for " 108 "WNM-Notification: '%s'", url); 127 if (url) { 129 wpabuf_put_data(buf, url, len - 1); 132 /* Server URL and Server Method fields not included */
|
/frameworks/base/core/java/android/webkit/ |
WebChromeClient.java | 52 * Notify the host application of the url for an apple-touch-icon. 54 * @param url The icon url. 55 * @param precomposed True if the url is for a precomposed touch icon. 57 public void onReceivedTouchIconUrl(WebView view, String url, 160 * @param url The url of the page requesting the dialog. 165 public boolean onJsAlert(WebView view, String url, String message, 177 * @param url The url of the page requesting the dialog [all...] |
/frameworks/data-binding/ |
propLoader.gradle | 39 url repo 50 url repo 63 url repo
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
AddRssItem.java | 39 String url = ((TextView) findViewById(R.id.url_textbox)).getText().toString(); 40 if(TextUtils.isEmpty(title) || TextUtils.isEmpty(url)){ 42 "You must specify both a title and a URL value", 49 res.putExtra(RssContentProvider.URL, url);
|
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/tvcm/ |
style_sheet.py | 52 url = m.group('url') 53 image = images_by_url[url] 58 return "url(data:image/%s;base64,%s)" % (ext[1:], data) 60 # I'm assuming we only have url()'s associated with images 61 return re.sub('url\((?P<quote>"|\'|)(?P<url>[^"\'()]*)(?P=quote)\)', 73 'url\((?:["|\']?)([^"\'()]*)(?:["|\']?)\)', 76 def resolve_url(url): 77 if os.path.isabs(url) [all...] |
/external/javassist/src/main/javassist/ |
URLClassPath.java | 22 * A class search-path specified with URL (http). 35 * Creates a search path specified with URL (http). 40 * "org.javassist.test.Main", then the given URL is used for loading that class. 49 * <p>If <code>packageName</code> is <code>null</code>, the URL is used 97 * Returns the URL. 101 public URL find(String classname) { 165 URL url; local 167 url = new URL("http", host, port, filename) [all...] |
/external/markdown/markdown/extensions/ |
imagelinks.py | 41 url = url_manager.BlogEntryUrl(url_manager.BlogUrl("all"), 84 new_block += SLIDESHOW_LINK % url.get_slideshow() 106 photo_url = url.get_photo(album, photo,
|
/libcore/benchmarks/src/benchmarks/regression/ |
SSLSocketBenchmark.java | 26 import java.net.URL; 48 URL url = new URL(uri); local 50 this.host = InetAddress.getByName(url.getHost()); 52 int p = url.getPort();
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
macurl2path.py | 11 """OS-specific conversion from a relative URL of the 'file' scheme 18 raise RuntimeError, 'Cannot convert non-local URL to pathname' 23 raise RuntimeError, 'Cannot convert non-local URL to pathname' 53 """OS-specific conversion from a file system path to a relative URL 80 for url in ["index.html", 85 print '%r -> %r' % (url, url2pathname(url))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
macurl2path.py | 11 """OS-specific conversion from a relative URL of the 'file' scheme 18 raise RuntimeError, 'Cannot convert non-local URL to pathname' 23 raise RuntimeError, 'Cannot convert non-local URL to pathname' 53 """OS-specific conversion from a file system path to a relative URL 80 for url in ["index.html", 85 print '%r -> %r' % (url, url2pathname(url))
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
EmpiricalDistribution.java | 22 import java.net.URL; 69 * Computes the empirical distribution using data read from a URL. 71 * @param url url of the input file 74 void load(URL url) throws IOException;
|
/external/google-breakpad/src/common/mac/ |
HTTPMultipartUpload.h | 39 NSURL *url_; // The destination URL (STRONG) 46 - (id)initWithURL:(NSURL *)url; 48 - (NSURL *)URL;
|
/external/lldb/include/lldb/Core/ |
Connection.h | 50 /// Connect using the connect string \a url. 52 /// @param[in] url 69 Connect (const char *url, Error *error_ptr) = 0;
|
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
CustomDispatcherTest.java | 22 import java.net.URL; 49 final URL url = mockWebServer.getUrl("/"); local 50 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); 89 final URL url = mockWebServer.getUrl(path); 92 conn = (HttpURLConnection) url.openConnection();
|