Lines Matching refs:parse

45         parcelAndUnparcel(Uri.parse("foo:bob%20lee"));
76 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build();
89 Uri.parse("foo:bob%20lee").getSchemeSpecificPart());
91 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart());
93 Uri.parse("foo:/bob%20lee").getEncodedPath());
94 assertNull(Uri.parse("foo:bob%20lee").getPath());
96 Uri.parse("foo:?bob%20lee").getEncodedQuery());
97 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery());
99 Uri.parse("foo:#bob%20lee").getEncodedFragment());
104 assertTrue(Uri.parse("bob").isHierarchical());
105 assertFalse(Uri.parse("bob:").isHierarchical());
111 Uri.parse(null);
126 Uri a = Uri.parse("foo:a");
127 Uri b = Uri.parse("foo:b");
128 Uri b2 = Uri.parse("foo:b");
138 Uri a = Uri.parse("http://crazybob.org/test/?foo=bar#tee");
169 Uri uri = Uri.parse("http://localhost:42");
173 uri = Uri.parse("http://bob@localhost:42");
178 uri = Uri.parse("http://bob%20lee@localhost:42");
182 uri = Uri.parse("http://bob%40lee%3ajr@local%68ost:4%32");
187 uri = Uri.parse("http://localhost");
216 Uri uri = Uri.parse("foo://bar/a%20a/b%20b");
223 Uri base = Uri.parse("content://sms");
270 Uri uri = Uri.parse("content://user");
291 Uri uri = Uri.parse("http://google.com./b/c/g");
298 Uri uri = Uri.parse("empty:");
306 Uri uri = Uri.parse("content://user");
312 Uri uri = Uri.parse("content://user/a/b");
342 Uri withC = Uri.parse("foo:/a/b/").buildUpon().appendPath("c").build();
348 Uri uri = Uri.parse("mailto:nobody");
438 Uri uri = Uri.parse(uriString);
530 parcelAndUnparcel(Uri.parse("foo:bob%20lee"));
542 Uri uri = Uri.parse("http://test/").buildUpon()
553 Uri uri = Uri.parse("http://test/").buildUpon()
565 uri = Uri.parse("http://test/").buildUpon()
573 uri = Uri.parse("http://test/").buildUpon()
582 uri = Uri.parse("http://test/").buildUpon()
590 uri = Uri.parse("http://test/").buildUpon()
598 uri = Uri.parse("http://test/?qq=foo");
603 uri = Uri.parse("http://www.google.com/?a%20b=foo&c%20d=");
612 uri = Uri.parse("http://www.google.com/?a=&b=&&c=");
619 Uri uri = Uri.parse("http://www.google.com/?=b");
624 Uri uri = Uri.parse("http://www.google.com/?a=b&&c=d");
629 Uri uri = Uri.parse("http://www.google.com?");
634 Uri uri = Uri.parse("http://www.google.com?a=b&");
639 Uri uri = Uri.parse("http://www.google.com/?=b&");
647 Uri uri = Uri.parse("http://www.google.com?");
654 Uri uri = Uri.parse("http://www.google.com/?a=b&&c=d");
661 Uri uri = Uri.parse("http://test?a=1");
668 Uri uri = Uri.parse("http://www.google.com/?a=x&&c=z");
678 Uri uri = Uri.parse("http://www.google.com/?a=x&=d&c=z");
688 Uri uri = Uri.parse("http://www.google.com/?a=foo&b=&c=");
698 Uri uri = Uri.parse("http://foo?a=bar&b=bar&c=&&d=baz&e&f&g=buzz&&&a&b=bar&h");
714 Uri uri = Uri.parse("http://www.google.com/?a%20b=foo&c%20d=");
723 Uri uri = Uri.parse("http://www.google.com/?a%20b=foo&c%20d=");
729 Uri uri = Uri.parse("http://www.google.com/?a=x&b=y&c=z").buildUpon()
741 Uri.parse("http://foo/path?abc").getQueryParameters("abc"));
743 Uri.parse("http://foo/path?foo=bar&abc").getQueryParameters("abc"));
745 Uri.parse("http://foo/path?abcd=abc&abc").getQueryParameters("abc"));
747 Uri.parse("http://foo/path?abc=a&abc=&abc").getQueryParameters("abc"));
749 Uri.parse("http://foo/path?abc=a&abc=&abc=").getQueryParameters("abc"));
754 assertEquals("d e", Uri.parse("http://a/b?c=d%20e").getQueryParameter("c"));
755 assertEquals("d e", Uri.parse("http://a/b?c=d+e").getQueryParameter("c"));
760 assertTrue(Uri.parse("content://com.example/path").isPathPrefixMatch(
761 Uri.parse("content://com.example/path/")));
762 assertTrue(Uri.parse("content://com.example/path").isPathPrefixMatch(
763 Uri.parse("content://com.example/path")));
764 assertTrue(Uri.parse("content://com.example///path///").isPathPrefixMatch(
765 Uri.parse("content://com.example/path/")));
766 assertTrue(Uri.parse("content://com.example/path").isPathPrefixMatch(
767 Uri.parse("content://com.example///path///")));
770 assertTrue(Uri.parse("content://com.example/path/to/child").isPathPrefixMatch(
771 Uri.parse("content://com.example/path/")));
772 assertTrue(Uri.parse("content://com.example/path/to/child").isPathPrefixMatch(
773 Uri.parse("content://com.example/path")));
776 assertTrue(Uri.parse("content://com.example/path#fragment").isPathPrefixMatch(
777 Uri.parse("content://com.example/path/")));
778 assertTrue(Uri.parse("content://com.example/path?q=v").isPathPrefixMatch(
779 Uri.parse("content://com.example/path/")));
780 assertTrue(Uri.parse("content://com.example/path/?q=v").isPathPrefixMatch(
781 Uri.parse("content://com.example/path/")));
784 assertFalse(Uri.parse("content://com.example/path").isPathPrefixMatch(
785 Uri.parse("content://com.example/path/deeper/")));
786 assertFalse(Uri.parse("content://com.example/path2").isPathPrefixMatch(
787 Uri.parse("content://com.example/path")));
790 assertTrue(Uri.parse("content://com.example/path/").isPathPrefixMatch(
791 Uri.parse("content://com.example/")));
792 assertTrue(Uri.parse("content://com.example/path/").isPathPrefixMatch(
793 Uri.parse("content://com.example")));
796 assertFalse(Uri.parse("content://com.example/path/").isPathPrefixMatch(
797 Uri.parse("file://com.example/path/")));
798 assertFalse(Uri.parse("content://com.example/path/").isPathPrefixMatch(
799 Uri.parse("content://org.example/path/")));
802 assertTrue(Uri.parse("content://com.example/path path/").isPathPrefixMatch(
803 Uri.parse("content://com.example/path%20path/")));
804 assertFalse(Uri.parse("content://com.example/path/path").isPathPrefixMatch(
805 Uri.parse("content://com.example/path%2Fpath")));
857 assertEquals(expectedSafeString, Uri.parse(original).toSafeString());