Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/net/
DUri.java367 String scheme = getScheme(); in toSafeString() local
369 if (scheme != null) { in toSafeString()
370 if (scheme.equalsIgnoreCase("tel") || scheme.equalsIgnoreCase("sip") in toSafeString()
371 || scheme.equalsIgnoreCase("sms") || scheme.equalsIgnoreCase("smsto") in toSafeString()
372 || scheme.equalsIgnoreCase("mailto")) { in toSafeString()
374 builder.append(scheme); in toSafeString()
393 if (scheme != null) { in toSafeString()
394 builder.append(scheme); in toSafeString()
531 private volatile String scheme = NOT_CACHED; field in Uri.StringUri
535 boolean cached = (scheme != NOT_CACHED); in getScheme()
[all …]
DWebAddress.java145 public void setScheme(String scheme) { in setScheme() argument
146 mScheme = scheme; in setScheme()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java48 .scheme("http") in testParcelling()
76 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUponOpaqueStringUri()
141 .scheme("http") in testEqualsAndHashCode()
150 .scheme("http") in testEqualsAndHashCode()
204 .scheme("foo") in testBuildUponEncodedOpaqueUri()
361 .scheme("mailto") in testOpaqueUri()
413 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument
429 if (scheme != null) { in testHierarchical()
430 sb.insert(0, scheme + ":"); in testHierarchical()
442 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
[all …]
/frameworks/base/docs/html/guide/topics/manifest/
Ddata-element.jd8 <dd><pre class="stx">&lt;data android:<a href="#scheme">scheme</a>="<i>string</i>"
27 {@code &lt;scheme>://&lt;host>:&lt;port>/[&lt;path>|&lt;pathPrefix>|&lt;pathPattern>]}</p>
32 …<li>If a <code><a href="{@docRoot}guide/topics/manifest/data-element.html#scheme">scheme</a></code>
45 &lt;data android:scheme="something" android:host="project.example.com" /&gt;
52 &lt;data android:scheme="something" /&gt
75 <dt><a name="scheme"></a>{@code android:scheme}</dt>
76 <dd>The scheme part of a URI. This is the minimal essential attribute for
77 specifying a URI; at least one {@code scheme} attribute must be set
81 A scheme is specified without the trailing colon (for example,
88 attribute) but no scheme, the {@code content:} and {@code file:} schemes are
[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(Locale.ROOT); in addLinks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbAccessoryUriActivity.java63 String scheme = mUri.getScheme(); in onCreate() local
64 if (!"http".equals(scheme) && !"https".equals(scheme)) { in onCreate()
/frameworks/base/core/java/android/provider/
DDocumentsContract.java534 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootsUri()
545 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootUri()
558 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRecentDocumentsUri()
570 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri()
583 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUri()
611 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUriUsingTree()
638 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildChildDocumentsUri()
668 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildChildDocumentsUriUsingTree()
685 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildSearchDocumentsUri()
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java360 final String scheme = intent.getScheme(); in queryIntentFromList() local
364 resolvedType, scheme, listCut.get(i), resultList, userId); in queryIntentFromList()
372 String scheme = intent.getScheme(); in queryIntent() local
380 TAG, "Resolving type=" + resolvedType + " scheme=" + scheme in queryIntent()
429 if (scheme != null) { in queryIntent()
430 schemeCut = mSchemeToFilter.get(scheme); in queryIntent()
437 if (resolvedType == null && scheme == null && intent.getAction() != null) { in queryIntent()
445 resolvedType, scheme, firstTypeCut, finalList, userId); in queryIntent()
449 resolvedType, scheme, secondTypeCut, finalList, userId); in queryIntent()
453 resolvedType, scheme, thirdTypeCut, finalList, userId); in queryIntent()
[all …]
/frameworks/base/media/java/android/media/
DMediaMetadataRetriever.java163 String scheme = uri.getScheme(); in setDataSource() local
164 if(scheme == null || scheme.equals("file")) { in setDataSource()
DMediaExtractor.java84 String scheme = uri.getScheme(); in setDataSource() local
85 if(scheme == null || scheme.equals("file")) { in setDataSource()
/frameworks/base/core/java/android/content/
DIntentFilter.java609 public final void addDataScheme(String scheme) { in addDataScheme() argument
611 if (!mDataSchemes.contains(scheme)) { in addDataScheme()
612 mDataSchemes.add(scheme.intern()); in addDataScheme()
639 public final boolean hasDataScheme(String scheme) { in hasDataScheme() argument
640 return mDataSchemes != null && mDataSchemes.contains(scheme); in hasDataScheme()
1078 public final int matchData(String type, String scheme, Uri data) { in matchData() argument
1090 if (schemes.contains(scheme != null ? scheme : "")) { in matchData()
1130 if (scheme != null && !"".equals(scheme) in matchData()
1131 && !"content".equals(scheme) in matchData()
1132 && !"file".equals(scheme)) { in matchData()
[all …]
DIntent.java4345 String scheme = null; in parseUri() local
4402 scheme = value; in parseUri()
4451 if (scheme != null) { in parseUri()
4452 data = scheme + ':' + data; in parseUri()
4473 scheme = data.substring(end+1, newEnd); in parseUri()
4482 scheme = data.substring(end+1); in parseUri()
4485 if (scheme == null) { in parseUri()
4492 data = scheme + ":"; in parseUri()
4494 data = scheme + "://" + authority + data.substring(end); in parseUri()
7298 String scheme = null; in toUri() local
[all …]
/frameworks/base/core/java/android/net/http/
DHttpAuthHeader.java289 String scheme = header.substring(0, i).trim(); in parseScheme() local
290 if (scheme.equalsIgnoreCase(DIGEST_TOKEN)) { in parseScheme()
296 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/telecomm/java/android/telecom/
DPhoneAccount.java523 for (String scheme : mSupportedUriSchemes) { in supportsUriScheme()
524 if (scheme != null && scheme.equals(uriScheme)) { in supportsUriScheme()
724 for (String scheme : mSupportedUriSchemes) { in toString()
725 sb.append(scheme) in toString()
/frameworks/base/docs/html/training/tv/start/
Dnavigation.jd21 navigation scheme for your TV app depends on understanding these limited controls and the limits
28 This lesson explains the minimum requirements for creating effective TV app navigation scheme and
38 and right. To build a great TV-optimized app, you must provide a navigation scheme where the user
65 The Android framework automatically applies a directional navigation scheme based on the
67 navigation scheme in your app using a D-pad controller. After testing, if you decide you want
126 The success of an app's navigation scheme on TV devices is depends on how easy it is for
136 attributes to help users easily determine what actions they can take next. Use a uniform scheme
/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/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/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/core/java/android/nfc/
DNfcActivityManager.java389 String scheme = uri.getScheme(); in createBeamShareData() local
390 if (scheme == null || (!scheme.equalsIgnoreCase("file") && in createBeamShareData()
391 !scheme.equalsIgnoreCase("content"))) { in createBeamShareData()
DNfcAdapter.java813 String scheme = uri.getScheme(); in setBeamPushUris() local
814 if (scheme == null || (!scheme.equalsIgnoreCase("file") && in setBeamPushUris()
815 !scheme.equalsIgnoreCase("content"))) { in setBeamPushUris()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java207 final String scheme = uri.getScheme(); in createInputStreamFactory() local
208 if ("data".equals(scheme)) { in createInputStreamFactory()
/frameworks/base/media/java/android/media/tv/
DTvContentRatingSystemInfo.java49 .scheme(ContentResolver.SCHEME_ANDROID_RESOURCE) in createTvContentRatingSystemInfo()
/frameworks/ex/common/java/com/android/common/
DSearch.java89 .scheme(ContentResolver.SCHEME_CONTENT) in getSuggestions()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsProvider.java99 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRecent()
104 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY) in buildState()
110 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildResume()

12345