Home | History | Annotate | Download | only in net

Lines Matching defs:NULL

119      * field *must* be initialized first, or else EMPTY will see a null value!
122 * to cache null. We intentionally create a new String instance so we can
132 public static final Uri EMPTY = new HierarchicalUri(null, Part.NULL,
133 PathPart.EMPTY, Part.NULL, Part.NULL);
176 * @return the scheme or null if this is a relative URI
211 * @return the authority for this URI or null if not present
223 * @return the authority for this URI or null if not present
233 * @return the user info for this URI or null if not present
243 * @return the user info for this URI or null if not present
253 * @return the host for this URI or null if not present
269 * @return the decoded path, or null if this is not a hierarchical URI
278 * @return the encoded path, or null if this is not a hierarchical URI
290 * @return the decoded query or null if there isn't one
301 * @return the encoded query or null if there isn't one
309 * @return the decoded fragment or null if there isn't one
317 * @return the encoded fragment or null if there isn't one
332 * @return the decoded last segment or null if the path is empty
384 if (scheme != null) {
391 if (ssp != null) {
404 ssp = "//" + ((getHost() != null) ? getHost() : "")
413 if (scheme != null) {
417 if (ssp != null) {
448 * @throws NullPointerException if uriString is null
462 * @throws NullPointerException if file is null
466 if (file == null) {
472 "file", Part.EMPTY, path, Part.NULL, Part.NULL);
489 if (uriString == null) {
561 return ssi == NOT_FOUND ? null : uriString.substring(0, ssi);
567 return ssp == null ? ssp = Part.fromEncoded(parseSsp()) : ssp;
591 if (authority == null) {
611 return path == null
638 return null;
644 return null;
656 return query == null
669 return null;
680 return null;
693 return fragment == null
703 return fsi == NOT_FOUND ? null : uriString.substring(fsi + 1);
720 * @return the authority or null if none is found
750 return null;
831 * @param fragment fragment, everything after the '#', null if undefined,
834 * @throws NullPointerException if scheme or ssp is null
841 if (scheme == null) {
844 if (ssp == null) {
867 this.fragment = fragment == null ? Part.NULL : fragment;
894 return scheme == null;
910 return null;
914 return null;
918 return null;
922 return null;
926 return null;
930 return null;
946 return null;
950 return null;
954 return null;
958 return null;
1000 static final PathSegments EMPTY = new PathSegments(null, 0);
1032 if (segments == null) {
1044 if (segments == null) {
1052 segments = null;
1069 return null;
1077 return userInfo == null
1087 if (authority == null) {
1088 return null;
1092 return end == NOT_FOUND ? null : authority.substring(0, end);
1110 if (authority == null) {
1111 return null;
1135 if (authority == null) {
1166 private final String scheme; // can be null
1176 this.path = path == null ? PathPart.NULL : path;
1209 return scheme == null;
1219 return ssp == null
1242 if (encodedAuthority != null) {
1248 if (encodedPath != null) {
1306 if (scheme != null) {
1362 * @param scheme name or {@code null} if this is a relative Uri
1394 this.opaquePart = null;
1416 this.opaquePart = null;
1426 * <p>If the path is not null and doesn't start with a '/', and if
1437 * <p>If the path is not null and doesn't start with a '/', and if
1461 this.opaquePart = null;
1509 this.opaquePart = null;
1511 String encodedParameter = encode(key, null) + "="
1512 + encode(value, null);
1514 if (query == null) {
1520 if (oldQuery == null || oldQuery.length() == 0) {
1533 return query((Part) null);
1540 * scheme is null
1543 if (opaquePart != null) {
1544 if (this.scheme == null) {
1551 // Hierarchical URIs should not return null for getPath().
1553 if (path == null || path == PathPart.NULL) {
1569 return scheme != null
1570 || (authority != null && authority != Part.NULL);
1594 if (query == null) {
1625 * @throws NullPointerException if key is null
1632 if (key == null) {
1637 if (query == null) {
1688 * @throws NullPointerException if key is null
1689 * @return the decoded value or null if no parameter is found
1696 if (key == null) {
1701 if (query == null) {
1702 return null;
1705 final String encodedKey = encode(key, null);
1734 return null;
1748 if (flag == null) {
1772 * @return normalized Uri (never null)
1778 if (scheme == null) return this; // give up
1785 /** Identifies a null parcelled Uri. */
1796 case NULL_TYPE_ID: return null;
1815 * @param uri to write, can be null
1818 if (uri == null) {
1835 * or null if s is null
1838 return encode(s, null);
1850 * null if no characters should be skipped
1852 * or null if s is null
1855 if (s == null) {
1856 return null;
1860 StringBuilder encoded = null;
1890 if (encoded == null) {
1929 // Encoded could still be null at this point if s is empty.
1930 return encoded == null ? s : encoded.toString();
1946 || (allow != null && allow.indexOf(c) != NOT_FOUND);
1955 * @return the given string with escaped octets decoded, or null if
1956 * s is null
1959 if (s == null) {
1960 return null;
2024 /** A part with null values. */
2025 static final Part NULL = new EmptyPart(null);
2060 * Returns given part or {@link #NULLnull.
2063 return part == null ? NULL : part;
2094 if (encoded == null) {
2095 return NULL;
2101 if (decoded == null) {
2102 return NULL;
2129 /** A part with null values. */
2130 static final PathPart NULL = new PathPart(null, null);
2156 * @return parsed path segments or null if this isn't a hierarchical
2160 if (pathSegments != null) {
2165 if (path == null) {
2197 if (oldPart == null) {
2204 if (oldPath == null) {
2268 if (encoded == null) {
2269 return NULL;
2291 if (oldPath == null || oldPath.length() == 0
2319 * @throws NullPointerException if baseUri is null
2370 && (getPath() != null) && !getPath().startsWith("/system/")) {