HomeSort by relevance Sort by last modified time
    Searched refs:uri (Results 1 - 25 of 1745) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/net/src/android/net/cts/
Uri_BuilderTest.java 20 import android.net.Uri.Builder;
21 import android.net.Uri;
25 Uri uri = Uri.parse("http://google.com/p1?query#fragment"); local
26 Builder builder = uri.buildUpon();
27 uri = builder.appendPath("p2").build();
28 assertEquals("http", uri.getScheme());
29 assertEquals("google.com", uri.getAuthority());
30 assertEquals("/p1/p2", uri.getPath())
    [all...]
UriTest.java 20 import android.net.Uri;
28 parcelAndUnparcel(Uri.parse("foo:bob%20lee"));
29 parcelAndUnparcel(Uri.fromParts("foo", "bob lee", "fragment"));
30 parcelAndUnparcel(new Uri.Builder()
39 private void parcelAndUnparcel(Uri u) {
41 Uri.writeToParcel(p, u);
43 assertEquals(u, Uri.CREATOR.createFromParcel(p));
47 Uri.writeToParcel(p, u);
49 assertEquals(u, Uri.CREATOR.createFromParcel(p));
53 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build()
96 Uri uri = Uri.parse("http:\/\/localhost:42"); local
174 Uri uri = Uri.fromFile(f); local
183 Uri uri = Uri.parse("content:\/\/user"); local
198 Uri uri = Uri.parse("content:\/\/user\/a\/b"); local
235 Uri uri = Uri.parse("mailto:nobody"); local
324 Uri uri = Uri.parse(uriString); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
StitchingChangeListener.java 19 import android.net.Uri;
22 public void onStitchingQueued(Uri uri);
24 public void onStitchingResult(Uri uri);
26 public void onStitchingProgress(Uri uri, int progress);
  /external/apache-http/src/org/apache/http/impl/client/
RedirectLocations.java 34 import java.net.URI;
43 private final Set<URI> uris;
47 this.uris = new HashSet<URI>();
51 * Returns true if this collection contains the given URI.
53 public boolean contains(final URI uri) {
54 return this.uris.contains(uri);
58 * Adds a new URI to the list of redirects.
60 public void add(final URI uri) {
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
URITest.java 19 import java.net.URI;
27 URI uri = new URI("http://username:password@host:8080/directory/file?query#ref"); local
28 assertEquals("http", uri.getScheme());
29 assertEquals("username:password@host:8080", uri.getAuthority());
30 assertEquals("username:password@host:8080", uri.getRawAuthority());
31 assertEquals("username:password", uri.getUserInfo());
32 assertEquals("username:password", uri.getRawUserInfo());
33 assertEquals("host", uri.getHost())
69 URI uri = new URI("http:\/\/user:pass@host\/path\/file?query#hash"); local
74 URI uri = new URI("http:\/\/\/path"); local
80 URI uri = new URI("http:\/path"); local
86 URI uri = new URI("http:\/\/host"); local
108 URI uri = new URI("http:\/\/user@userhost.com:password@host"); local
115 URI uri = new URI("http:\/\/user@host"); local
122 URI uri = new URI("http:\/\/user@host:8080"); local
130 URI uri = new URI("http:\/\/user:password@host:8080"); local
138 URI uri = new URI("http:\/\/user:password@:8080"); local
147 URI uri = new URI("http:\/\/user:password@:"); local
156 URI uri = new URI("http:\/\/host\/path"); local
162 URI uri = new URI("http:\/\/host?query"); local
169 URI uri = new URI("http:\/\/host#fragment"); local
177 URI uri = new URI("http:\/\/host\/file@foo"); local
184 URI uri = new URI("http:\/\/host\/file:colon"); local
189 URI uri = new URI("http:\/\/host\/file?query\/path"); local
195 URI uri = new URI("http:\/\/host\/file?query?another"); local
201 URI uri = new URI("http:\/\/host\/file?query@at"); local
207 URI uri = new URI("http:\/\/host\/file?query:colon"); local
213 URI uri = new URI("http:\/\/host\/file#fragment?query"); local
220 URI uri = new URI("http:\/\/host\/file#fragment:80"); local
227 URI uri = new URI("http:\/\/host\/file#fragment\/path"); local
242 URI uri = new URI("http:\/\/host:\/"); local
247 URI uri = new URI("http:\/\/host:x\/"); local
254 URI uri = new URI("http:\/\/host:-2\/"); local
261 URI uri = new URI("http:\/\/host:-1\/"); local
269 URI uri = base.resolve("another"); local
278 URI uri = base.resolve("#another"); local
286 URI uri = new URI("http:\/\/host\/a\/b\/..\/c"); local
416 URI uri = base.resolve("http:g"); local
439 URI uri = new URI("file:\/\/\/\/foo"); local
446 URI uri = new URI("file:\/\/x\/foo"); local
453 URI uri = new URI("http:\/\/\/foo"); local
460 URI uri = new URI("http:\/\/\/\/foo"); local
515 URI uri = new URI("http:\/\/host:-2\/"); local
527 URI uri = new URI("http:file"); local
535 URI uri = new URI("http", "user:pa55w?rd", "host", 80, "\/doc|search", local
557 URI uri = new URI("HTTP:\/\/host\/path"); local
562 URI uri = new URI("http:\/\/\/path"); local
568 URI uri = new URI("http:\/\/?query"); local
575 URI uri = new URI("http:\/\/#fragment"); local
664 URI uri = new URI("http:\/\/a_b.c.d.net\/"); local
    [all...]
  /external/chromium_org/third_party/libxml/src/
testURI.c 16 #include <libxml/uri.h>
25 xmlURIPtr uri; local
28 uri = xmlCreateURI();
31 ret = xmlParseURIReference(uri, str);
36 if (uri->scheme) printf("scheme: %s\n", uri->scheme);
37 if (uri->opaque) printf("opaque: %s\n", uri->opaque);
38 if (uri->authority) printf("authority: %s\n", uri->authority)
    [all...]
  /external/apache-http/src/org/apache/http/client/methods/
HttpDelete.java 34 import java.net.URI;
43 * identified by the Request-URI. [...] The client cannot
58 public HttpDelete(final URI uri) {
60 setURI(uri);
64 * @throws IllegalArgumentException if the uri is invalid.
66 public HttpDelete(final String uri) {
68 setURI(URI.create(uri));
HttpGet.java 34 import java.net.URI;
43 * entity) is identified by the Request-URI. If the Request-URI refers
65 public HttpGet(final URI uri) {
67 setURI(uri);
71 * @throws IllegalArgumentException if the uri is invalid.
73 public HttpGet(final String uri) {
75 setURI(URI.create(uri));
    [all...]
HttpHead.java 34 import java.net.URI;
65 public HttpHead(final URI uri) {
67 setURI(uri);
71 * @throws IllegalArgumentException if the uri is invalid.
73 public HttpHead(final String uri) {
75 setURI(URI.create(uri));
HttpPost.java 34 import java.net.URI;
44 * the Request-URI in the Request-Line. POST is designed to allow a uniform
69 public HttpPost(final URI uri) {
71 setURI(uri);
75 * @throws IllegalArgumentException if the uri is invalid.
77 public HttpPost(final String uri) {
79 setURI(URI.create(uri));
HttpPut.java 34 import java.net.URI;
43 * supplied Request-URI. If the Request-URI refers to an already
61 public HttpPut(final URI uri) {
63 setURI(uri);
67 * @throws IllegalArgumentException if the uri is invalid.
69 public HttpPut(final String uri) {
71 setURI(URI.create(uri));
    [all...]
HttpTrace.java 34 import java.net.URI;
64 public HttpTrace(final URI uri) {
66 setURI(uri);
70 * @throws IllegalArgumentException if the uri is invalid.
72 public HttpTrace(final String uri) {
74 setURI(URI.create(uri));
  /external/chromium/net/tools/flip_server/
spdy_util.cc 16 std::string EncodeURL(std::string uri, std::string host, std::string method) {
18 // TODO(mbelshe): if uri is fully qualified, need to strip protocol/host.
19 return std::string(method + "_" + uri);
23 if (uri[0] == '/') {
24 // uri is not fully qualified.
26 "http://" + host + uri, method + "_/", false);
28 filename = UrlToFilenameEncoder::Encode(uri, method + "_/", false);
  /external/chromium_org/net/tools/flip_server/
spdy_util.cc 16 std::string EncodeURL(std::string uri, std::string host, std::string method) {
18 // TODO(mbelshe): if uri is fully qualified, need to strip protocol/host.
19 return std::string(method + "_" + uri);
23 if (uri[0] == '/') {
24 // uri is not fully qualified.
26 "http://" + host + uri, method + "_/", false);
28 filename = UrlToFilenameEncoder::Encode(uri, method + "_/", false);
  /libcore/luni/src/main/java/java/net/
CookiePolicy.java 34 public boolean shouldAccept(URI uri, HttpCookie cookie) {
43 public boolean shouldAccept(URI uri, HttpCookie cookie) {
52 public boolean shouldAccept(URI uri, HttpCookie cookie) {
53 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
61 * @param uri
62 * the URI to used to determine acceptability
67 boolean shouldAccept(URI uri, HttpCookie cookie)
    [all...]
CookieStore.java 36 * A cookie may or may not has an associated URI. If not, the cookie's
38 * associated URI and no domain and path attribute are speicifed for the
39 * cookie, the given URI will indicate where this cookie comes from.
41 * If a cookie corresponding to the given URI already exists, then it is
44 * @param uri
45 * the uri associated with the specified cookie. A null value
46 * indicates the cookie is not associated with a URI
50 void add(URI uri, HttpCookie cookie);
53 * Retrieves cookies that match the specified URI. Return not expired cookies
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/address/
RFC2396UrlDecoder.java 48 * @param uri the path to decode
51 public static String decode(String uri) {
52 StringBuffer translatedUri = new StringBuffer(uri.length());
53 byte[] encodedchars = new byte[uri.length() / 3];
55 int length = uri.length();
58 if (uri.charAt(i) == '%') {
61 while (i < length && uri.charAt(i) == '%') {
64 byte x = (byte)Integer.parseInt(uri.substring(i + 1, i + 3), 16);
67 throw new IllegalArgumentException("Illegal hex characters in pattern %" + uri.substring(i + 1, i + 3));
85 translatedUri.append(uri.charAt(i))
    [all...]
  /frameworks/av/media/libmediaplayerservice/
ActivityManager.h 24 // Perform a ContentProvider.openFile() call for the given URI.
27 extern int openContentProviderFile(const String16& uri);
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_DumpFileProviderTest.java 20 import android.net.Uri;
53 Uri uri = Uri.parse(URI_PREFIX + fileName); local
54 assertOpenFileDescriptorThrowsError(uri);
60 final Uri uri = Uri.parse(URI_PREFIX + fileName); local
62 mResolver.openFileDescriptor(uri, "r");
71 final Uri uri = Uri.parse(URI_PREFIX + fileName) local
78 final Uri uri = Uri.parse(URI_PREFIX + fileName); local
    [all...]
  /frameworks/base/core/java/android/content/
ContentProviderResult.java 19 import android.net.Uri;
25 * to have exactly one of {@link #uri} or {@link #count} set.
28 public final Uri uri; field in class:ContentProviderResult
31 public ContentProviderResult(Uri uri) {
32 if (uri == null) throw new IllegalArgumentException("uri must not be null");
33 this.uri = uri;
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/
CrashingIconProvider.java 21 import android.net.Uri;
42 public ParcelFileDescriptor openFile(Uri uri, String mode) {
43 if (DBG) Log.d(TAG, "openFile(" + uri + ", " + mode + ")");
48 public int delete(Uri uri, String selection, String[] selectionArgs) {
49 if (DBG) Log.d(TAG, "delete(" + uri + ", " + selection + ", " + selectionArgs + ")");
54 public String getType(Uri uri) {
55 if (DBG) Log.d(TAG, "getType(" + uri + ")")
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/
UriTest.java 33 Uri.Builder builder = new Uri.Builder();
37 Uri uri = builder.build(); local
38 assertEquals("//foo", uri.toString());
43 parcelAndUnparcel(Uri.parse("foo:bob%20lee"));
44 parcelAndUnparcel(Uri.fromParts("foo", "bob lee", "fragment"));
45 parcelAndUnparcel(new Uri.Builder()
54 private void parcelAndUnparcel(Uri u) {
57 Uri.writeToParcel(p, u)
167 Uri uri = Uri.parse("http:\/\/localhost:42"); local
214 Uri uri = Uri.parse("foo:\/\/bar\/a%20a\/b%20b"); local
261 Uri uri = Uri.fromFile(f); local
268 Uri uri = Uri.parse("content:\/\/user"); local
289 Uri uri = Uri.parse("http:\/\/google.com.\/b\/c\/g"); local
296 Uri uri = Uri.parse("empty:"); local
304 Uri uri = Uri.parse("content:\/\/user"); local
310 Uri uri = Uri.parse("content:\/\/user\/a\/b"); local
346 Uri uri = Uri.parse("mailto:nobody"); local
436 Uri uri = Uri.parse(uriString); local
540 Uri uri = Uri.parse("http:\/\/test\/").buildUpon() local
551 Uri uri = Uri.parse("http:\/\/test\/").buildUpon() local
560 Uri uri; local
617 Uri uri = Uri.parse("http:\/\/www.google.com\/?=b"); local
622 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=b&&c=d"); local
627 Uri uri = Uri.parse("http:\/\/www.google.com?"); local
632 Uri uri = Uri.parse("http:\/\/www.google.com?a=b&"); local
637 Uri uri = Uri.parse("http:\/\/www.google.com\/?=b&"); local
645 Uri uri = Uri.parse("http:\/\/www.google.com?"); local
652 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=b&&c=d"); local
659 Uri uri = Uri.parse("http:\/\/test?a=1"); local
666 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=x&&c=z"); local
676 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=x&=d&c=z"); local
686 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=foo&b=&c="); local
696 Uri uri = Uri.parse("http:\/\/foo?a=bar&b=bar&c=&&d=baz&e&f&g=buzz&&&a&b=bar&h"); local
712 Uri uri = Uri.parse("http:\/\/www.google.com\/?a%20b=foo&c%20d="); local
721 Uri uri = Uri.parse("http:\/\/www.google.com\/?a%20b=foo&c%20d="); local
727 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=x&b=y&c=z").buildUpon() local
    [all...]
  /external/nist-sip/java/javax/sip/address/
AddressFactory.java 8 Address createAddress(URI uri);
9 Address createAddress(String displayName, URI uri)
11 SipURI createSipURI(String uri) throws ParseException;
13 TelURL createTelURL(String uri) throws ParseException;
14 URI createURI(String uri) throws ParseException;
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
UriUtils.java 19 import android.net.Uri;
28 /** Checks whether two URI are equal, taking care of the case where either is null. */
29 public static boolean areEqual(Uri uri1, Uri uri2) {
39 /** Parses a string into a URI and returns null if the given string is null. */
40 public static Uri parseUriOrNull(String uriString) {
44 return Uri.parse(uriString);
47 /** Converts a URI into a string, returns null if the given URI is null. */
48 public static String uriToString(Uri uri)
    [all...]
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
AndroidProtocolHandler.java 9 import android.net.Uri;
44 Uri uri = verifyUrl(url); local
45 if (uri == null) {
48 String path = uri.getPath();
49 if (uri.getScheme().equals(FILE_SCHEME)) {
51 return openAsset(context, uri);
53 return openResource(context, uri);
55 } else if (uri.getScheme().equals(CONTENT_SCHEME)) {
56 return openContent(context, uri);
163 Uri uri = verifyUrl(url); local
195 Uri uri = Uri.parse(url); local
    [all...]

Completed in 714 milliseconds

1 2 3 4 5 6 7 8 91011>>