Home
last modified time | relevance | path

Searched refs:scheme (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/core/java/android/net/
DUri.java365 String scheme = getScheme(); in toSafeString() local
367 if (scheme != null) { in toSafeString()
368 if (scheme.equalsIgnoreCase("tel") || scheme.equalsIgnoreCase("sip") in toSafeString()
369 || scheme.equalsIgnoreCase("sms") || scheme.equalsIgnoreCase("smsto") in toSafeString()
370 || scheme.equalsIgnoreCase("mailto")) { in toSafeString()
372 builder.append(scheme); in toSafeString()
391 if (scheme != null) { in toSafeString()
392 builder.append(scheme); in toSafeString()
529 private volatile String scheme = NOT_CACHED; field in Uri.StringUri
533 boolean cached = (scheme != NOT_CACHED); in getScheme()
[all …]
DWebAddress.java138 public void setScheme(String scheme) { in setScheme() argument
139 mScheme = scheme; in setScheme()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java46 .scheme("http") in testParcelling()
74 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUponOpaqueStringUri()
139 .scheme("http") in testEqualsAndHashCode()
148 .scheme("http") in testEqualsAndHashCode()
202 .scheme("foo") in testBuildUponEncodedOpaqueUri()
359 .scheme("mailto") in testOpaqueUri()
411 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument
427 if (scheme != null) { in testHierarchical()
428 sb.insert(0, scheme + ":"); in testHierarchical()
440 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
[all …]
/frameworks/base/docs/html/guide/topics/manifest/
Ddata-element.jd14 android:<a href="#scheme">scheme</a>="<i>string</i>" /&gt;</pre></dd>
26 <p style="margin-left: 2em">{@code scheme://host:port/path} <i>or</i>
31 If a <code><a href="{@docRoot}guide/topics/manifest/data-element.html#scheme">scheme</a></code> is …
44 &lt;data android:scheme="something" android:host="project.example.com" /&gt;
51 &lt;data android:scheme="something" /&gt
75 unless a <code><a href="{@docRoot}guide/topics/manifest/data-element.html#scheme">scheme</a></code>…
131 <code><a href="#scheme">scheme</a></code> and <code><a href="#host">host</a></code>
137 if the <code><a href="#scheme">scheme</a></code> and
141 <dt><a name="scheme"></a>{@code android:scheme}</dt>
142 <dd>The scheme part of a URI. This is the minimal essential attribute for
[all …]
/frameworks/base/core/java/android/text/util/
DLinkify.java306 public static final void addLinks(TextView text, Pattern pattern, String scheme) { in addLinks() argument
307 addLinks(text, pattern, scheme, null, null); in addLinks()
325 public static final void addLinks(TextView text, Pattern p, String scheme, in addLinks() argument
329 if (addLinks(s, p, scheme, matchFilter, transformFilter)) { in addLinks()
346 public static final boolean addLinks(Spannable text, Pattern pattern, String scheme) { in addLinks() argument
347 return addLinks(text, pattern, scheme, null, null); in addLinks()
365 String scheme, MatchFilter matchFilter, in addLinks() argument
368 String prefix = (scheme == null) ? "" : scheme.toLowerCase(); in addLinks()
/frameworks/base/services/java/com/android/server/
DIntentResolverOld.java212 final String scheme = intent.getScheme(); in queryIntentFromList() local
216 resolvedType, scheme, listCut.get(i), resultList, userId); in queryIntentFromList()
224 String scheme = intent.getScheme(); in queryIntent() local
232 TAG, "Resolving type " + resolvedType + " scheme " + scheme in queryIntent()
279 if (scheme != null) { in queryIntent()
280 schemeCut = mSchemeToFilter.get(scheme); in queryIntent()
287 if (resolvedType == null && scheme == null && intent.getAction() != null) { in queryIntent()
295 resolvedType, scheme, firstTypeCut, finalList, userId); in queryIntent()
299 resolvedType, scheme, secondTypeCut, finalList, userId); in queryIntent()
303 resolvedType, scheme, thirdTypeCut, finalList, userId); in queryIntent()
[all …]
DIntentResolver.java223 final String scheme = intent.getScheme(); in queryIntentFromList() local
227 resolvedType, scheme, listCut.get(i), resultList, userId); in queryIntentFromList()
235 String scheme = intent.getScheme(); in queryIntent() local
243 TAG, "Resolving type " + resolvedType + " scheme " + scheme in queryIntent()
290 if (scheme != null) { in queryIntent()
291 schemeCut = mSchemeToFilter.get(scheme); in queryIntent()
298 if (resolvedType == null && scheme == null && intent.getAction() != null) { in queryIntent()
306 resolvedType, scheme, firstTypeCut, finalList, userId); in queryIntent()
310 resolvedType, scheme, secondTypeCut, finalList, userId); in queryIntent()
314 resolvedType, scheme, thirdTypeCut, finalList, userId); in queryIntent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbAccessoryUriActivity.java66 String scheme = mUri.getScheme(); in onCreate() local
67 if (!"http".equals(scheme) && !"https".equals(scheme)) { in onCreate()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java230 String scheme = uri.getScheme(); in getImageBounds() local
252 String scheme = uri.getScheme(); in openInputStream() local
253 if ("http".equals(scheme) || "https".equals(scheme)) { in openInputStream()
264 } else if ("data".equals(scheme)) { in openInputStream()
/frameworks/base/core/java/android/content/
DIntentFilter.java585 public final void addDataScheme(String scheme) { in addDataScheme() argument
587 if (!mDataSchemes.contains(scheme)) { in addDataScheme()
588 mDataSchemes.add(scheme.intern()); in addDataScheme()
615 public final boolean hasDataScheme(String scheme) { in hasDataScheme() argument
616 return mDataSchemes != null && mDataSchemes.contains(scheme); in hasDataScheme()
900 public final int matchData(String type, String scheme, Uri data) { in matchData() argument
914 if (schemes.contains(scheme != null ? scheme : "")) { in matchData()
940 if (scheme != null && !"".equals(scheme) in matchData()
941 && !"content".equals(scheme) in matchData()
942 && !"file".equals(scheme)) { in matchData()
[all …]
DContentResolver.java481 String scheme = uri.getScheme(); in openInputStream() local
482 if (SCHEME_ANDROID_RESOURCE.equals(scheme)) { in openInputStream()
492 } else if (SCHEME_FILE.equals(scheme)) { in openInputStream()
645 String scheme = uri.getScheme(); in openAssetFileDescriptor() local
646 if (SCHEME_ANDROID_RESOURCE.equals(scheme)) { in openAssetFileDescriptor()
656 } else if (SCHEME_FILE.equals(scheme)) { in openAssetFileDescriptor()
/frameworks/base/media/java/android/media/
DMediaMetadataRetriever.java153 String scheme = uri.getScheme(); in setDataSource() local
154 if(scheme == null || scheme.equals("file")) { in setDataSource()
DMediaExtractor.java82 String scheme = uri.getScheme(); in setDataSource() local
83 if(scheme == null || scheme.equals("file")) { in setDataSource()
DMediaPlayer.java868 String scheme = uri.getScheme(); in setDataSource() local
869 if(scheme == null || scheme.equals("file")) { in setDataSource()
1754 String scheme = uri.getScheme(); in addTimedTextSource() local
1755 if(scheme == null || scheme.equals("file")) { in addTimedTextSource()
/frameworks/base/core/java/android/net/http/
DHttpAuthHeader.java287 String scheme = header.substring(0, i).trim(); in parseScheme() local
288 if (scheme.equalsIgnoreCase(DIGEST_TOKEN)) { in parseScheme()
294 if (scheme.equalsIgnoreCase(BASIC_TOKEN)) { in parseScheme()
DAndroidHttpClient.java36 import org.apache.http.conn.scheme.PlainSocketFactory;
37 import org.apache.http.conn.scheme.Scheme;
38 import org.apache.http.conn.scheme.SchemeRegistry;
/frameworks/base/core/java/android/nfc/
DNfcActivityManager.java302 String scheme = uri.getScheme(); in createBeamShareData() local
303 if (scheme == null || (!scheme.equalsIgnoreCase("file") && in createBeamShareData()
304 !scheme.equalsIgnoreCase("content"))) { in createBeamShareData()
DNfcAdapter.java649 String scheme = uri.getScheme(); in setBeamPushUris() local
650 if (scheme == null || (!scheme.equalsIgnoreCase("file") && in setBeamPushUris()
651 !scheme.equalsIgnoreCase("content"))) { in setBeamPushUris()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DRsBench.java57 String scheme = uri.getScheme(); in onCreate() local
58 if ("iterations".equals(scheme)) { in onCreate()
/frameworks/support/v4/java/android/support/v4/content/
DLocalBroadcastManager.java206 final String scheme = intent.getScheme(); in sendBroadcast() local
212 TAG, "Resolving type " + type + " scheme " + scheme in sendBroadcast()
231 int match = receiver.filter.match(action, type, scheme, data, in sendBroadcast()
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java827 String scheme = uri.getScheme(); in convertUriToPath() local
828 if (null == scheme || scheme.equals("") || in convertUriToPath()
829 scheme.equals(ContentResolver.SCHEME_FILE)) { in convertUriToPath()
832 } else if (scheme.equals("http")) { in convertUriToPath()
835 } else if (scheme.equals(ContentResolver.SCHEME_CONTENT)) { in convertUriToPath()
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DFsUtils.java30 import org.apache.http.conn.scheme.PlainSocketFactory;
31 import org.apache.http.conn.scheme.Scheme;
32 import org.apache.http.conn.scheme.SchemeRegistry;
/frameworks/ex/common/java/com/android/common/
DSearch.java89 .scheme(ContentResolver.SCHEME_CONTENT) in getSuggestions()
/frameworks/base/docs/html/guide/appendix/
Dapp-intents.jd46 java.lang.String) Uri.fromParts(scheme, ssp, fragment)} factory
67 <td>Opens the Maps application to the given location or query. The Geo URI scheme
79 <td>Opens the Street View application to the given location. The URI scheme is
Dg-app-intents.jd55 java.lang.String) Uri.fromParts(scheme, ssp, fragment)} factory
77 <td>Opens the Maps application to the given location or query. The Geo URI scheme
90 <td>Opens the Street View application to the given location. The URI scheme is

1234