Home
last modified time | relevance | path

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

123456

/packages/apps/Settings/src/com/android/settings/slices/
DCustomSliceRegistry.java61 .scheme(ContentResolver.SCHEME_CONTENT)
71 .scheme(ContentResolver.SCHEME_CONTENT)
81 .scheme(ContentResolver.SCHEME_CONTENT)
91 .scheme(ContentResolver.SCHEME_CONTENT)
101 .scheme(ContentResolver.SCHEME_CONTENT)
110 .scheme(ContentResolver.SCHEME_CONTENT)
119 .scheme(ContentResolver.SCHEME_CONTENT)
128 .scheme(ContentResolver.SCHEME_CONTENT)
137 .scheme(ContentResolver.SCHEME_CONTENT)
146 .scheme(ContentResolver.SCHEME_CONTENT)
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUriTest.java32 .scheme("http") in testParcelling()
54 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUpon()
69 .scheme("foo") in testBuildUpon()
178 .scheme("http") in testEqualsAndHashCode()
187 .scheme("http") in testEqualsAndHashCode()
338 .scheme("mailto") in testOpaqueUri()
389 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument
405 if (scheme != null) { in testHierarchical()
406 sb.insert(0, scheme + ":"); in testHierarchical()
418 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
[all …]
DUri_BuilderTest.java43 .scheme("http") in testBuilderOperations()
58 .scheme("mailto") in testBuilderOperations()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java84 .scheme("badscheme") in getType_notContentScheme_throwsIllegalArgumentException()
95 .scheme(ContentResolver.SCHEME_CONTENT) in getType_invalidAuthority_throwsIllegalArgumentException()
106 .scheme(ContentResolver.SCHEME_CONTENT) in getType_emptyPath_throwsIllegalArgumentException()
115 .scheme(ContentResolver.SCHEME_CONTENT) in getType_missingPackageName_throwsIllegalArgumentException()
125 .scheme(ContentResolver.SCHEME_CONTENT) in getType_missingFileName_throwsIllegalArgumentException()
135 .scheme(ContentResolver.SCHEME_CONTENT) in getType_incorrectFileName_throwsIllegalArgumentException()
154 .scheme(ContentResolver.SCHEME_CONTENT) in getType_packageNotAModule_throwsIllegalArgumentException()
173 .scheme(ContentResolver.SCHEME_CONTENT) in getType_validUri_returnsHtmlMimeType()
184 .scheme("badscheme") in openFile_notContentScheme_throwsIllegalArgumentException()
195 .scheme(ContentResolver.SCHEME_CONTENT) in openFile_invalidAuthority_throwsIllegalArgumentException()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java108 new Uri.Builder().scheme(SCHEME_CONTENT)
114 new Uri.Builder().scheme(SCHEME_CONTENT)
260 .scheme(ContentResolver.SCHEME_CONTENT) in onBindSlice_requestsBlockedSlice_returnsNull()
315 .scheme(SCHEME_CONTENT) in getDescendantUris_wrongPath_returnsEmpty()
331 .scheme(SCHEME_CONTENT) in getDescendantUris_invalidPath_returnsEmpty()
347 .scheme(SCHEME_CONTENT) in getDescendantUris_platformSlice_doesNotReturnOEMSlice()
362 .scheme(SCHEME_CONTENT) in getDescendantUris_oemSlice_doesNotReturnPlatformSlice()
378 .scheme(SCHEME_CONTENT) in getDescendantUris_oemSlice_returnsOEMUriDescendant()
385 .scheme(SCHEME_CONTENT) in getDescendantUris_oemSlice_returnsOEMUriDescendant()
402 .scheme(SCHEME_CONTENT) in getDescendantUris_oemSliceNoPath_returnsOEMUriDescendant()
[all …]
DSlicesDatabaseAccessorTest.java140 .scheme(ContentResolver.SCHEME_CONTENT) in testGetSliceFromUri_validUri_validSliceReturned()
162 .scheme(ContentResolver.SCHEME_CONTENT) in testGetSliceFromUri_invalidUri_errorThrown()
223 .scheme(SCHEME_CONTENT) in getSliceUris_publicSlice_returnPublicUri()
241 .scheme(SCHEME_CONTENT) in getSliceUris_nonPublicSlice_returnNonPublicUri()
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapContract.java164 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildAccountUri()
176 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildAccountUriwithId()
188 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildMessageUri()
200 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildMessageUri()
213 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildMessageUriWithId()
227 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildFolderUri()
240 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildConversationUri()
253 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildConvoContactsUri()
265 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildConvoContactsUri()
279 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildConvoContactsUriWithId()
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java71 String scheme = mUri.getScheme(); in getIntentForUri() local
72 if ("tel".equals(scheme)) { in getIntentForUri()
74 } else if ("sms".equals(scheme) || "smsto".equals(scheme)) { in getIntentForUri()
82 String scheme = mUri.getScheme(); in getPrettyUriString() local
83 boolean tel = "tel".equals(scheme); in getPrettyUriString()
84 boolean sms = "sms".equals(scheme) || "smsto".equals(scheme); in getPrettyUriString()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DUtils.java104 String scheme = uri.getScheme(); in piiHandle() local
106 if (!TextUtils.isEmpty(scheme)) { in piiHandle()
107 sb.append(scheme).append(":"); in piiHandle()
111 if (PhoneAccount.SCHEME_TEL.equals(scheme)) { in piiHandle()
113 } else if (PhoneAccount.SCHEME_SIP.equals(scheme)) { in piiHandle()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/filetransfer/
DFileUploadController.java46 import org.apache.http.conn.scheme.Scheme;
47 import org.apache.http.conn.scheme.SchemeRegistry;
141 String scheme = authHeader.getValue(); in createAuthScheme() local
143 if (scheme.contains(AuthPolicy.DIGEST)) { in createAuthScheme()
152 throw new IllegalArgumentException("Unable to create authentication scheme " + scheme); in createAuthScheme()
164 Scheme scheme = new Scheme("https", socketFactory, port); in getSecureHttpClient() local
168 registry.register(scheme); in getSecureHttpClient()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java83 final String scheme = uri.getScheme(); in isLocalResourceUri() local
84 return TextUtils.equals(scheme, ContentResolver.SCHEME_ANDROID_RESOURCE) || in isLocalResourceUri()
85 TextUtils.equals(scheme, ContentResolver.SCHEME_CONTENT) || in isLocalResourceUri()
86 TextUtils.equals(scheme, ContentResolver.SCHEME_FILE); in isLocalResourceUri()
93 final String scheme = uri.getScheme(); in isBugleAppResource() local
94 return TextUtils.equals(scheme, ContentResolver.SCHEME_ANDROID_RESOURCE); in isBugleAppResource()
106 .scheme(ContentResolver.SCHEME_ANDROID_RESOURCE) in getUriForResourceId()
DAvatarUriUtil.java84 public static final Uri DEFAULT_BACKGROUND_AVATAR = new Uri.Builder().scheme(SCHEME)
130 builder.scheme(SCHEME); in joinAvatarUriToGroup()
213 builder.scheme(SCHEME); in createSimIconUri()
236 builder.scheme(SCHEME); in fromLocalResourceWithFallback()
247 builder.scheme(SCHEME); in fromName()
260 builder.scheme(SCHEME); in fromIdentifier()
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java88 String scheme = mUri.getScheme(); in MovieViewControl() local
89 if ("http".equalsIgnoreCase(scheme) in MovieViewControl()
90 || "rtsp".equalsIgnoreCase(scheme)) { in MovieViewControl()
138 String scheme = uri.getScheme(); in uriSupportsBookmarks() local
140 return ("content".equalsIgnoreCase(scheme) in uriSupportsBookmarks()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DMdnsDiscovery.java67 public MdnsDiscovery(BuiltInPrintService printService, String scheme) { in MdnsDiscovery() argument
70 switch (scheme) { in MdnsDiscovery()
78 throw new IllegalArgumentException("unrecognized scheme " + scheme); in MdnsDiscovery()
114 String scheme = info.getServiceType().contains(SERVICE_IPPS) ? SCHEME_IPPS : SCHEME_IPP; in toNetworkPrinter() local
115 Uri path = Uri.parse(scheme + "://" + info.getHost().getHostAddress() + ":" + info.getPort() in toNetworkPrinter()
DManualDiscovery.java107 String scheme = uri.getScheme(); in addManualPrinter() local
108 if (!TextUtils.isEmpty(givenScheme) && !scheme.equals(givenScheme)) { in addManualPrinter()
114 Uri targetUri = uri.buildUpon().scheme(scheme).encodedAuthority(authority).path(path) in addManualPrinter()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java105 String scheme = uri.getScheme(); in generateFileInfo() local
112 if ("content".equals(scheme)) { in generateFileInfo()
157 } else if ("file".equals(scheme)) { in generateFileInfo()
177 if (scheme.equals("content")) { in generateFileInfo()
/packages/apps/Contacts/src/com/android/contacts/activities/
DShowOrCreateActivity.java105 String scheme = null; in onCreate() local
108 scheme = data.getScheme(); in onCreate()
129 if (ContactsUtils.SCHEME_MAILTO.equals(scheme)) { in onCreate()
135 } else if (PhoneAccount.SCHEME_TEL.equals(scheme)) { in onCreate()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java111 .scheme("content") in openCursor()
215 .scheme("content") in findImages()
260 .scheme("content") in resolveAccount()
294 .scheme("content") in resolveAlbumIds()
335 .scheme("content") in findAlbums()
437 .scheme("content") in getStream()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriImage.java94 String scheme = mUri.getScheme(); in openOrDownloadInner() local
95 if (ContentResolver.SCHEME_CONTENT.equals(scheme) in openOrDownloadInner()
96 || ContentResolver.SCHEME_ANDROID_RESOURCE.equals(scheme) in openOrDownloadInner()
97 || ContentResolver.SCHEME_FILE.equals(scheme)) { in openOrDownloadInner()
/packages/apps/Contacts/src/com/android/contacts/list/
DMultiSelectPhoneNumbersListFragment.java81 final String scheme = getActivity().getIntent().getStringExtra( in onOptionsItemSelected() local
86 getActivity(), getAdapter().getSelectedContactIdsArray(), scheme); in onOptionsItemSelected()
88 GroupUtil.startSendToSelectionActivity(this, list, scheme, title); in onOptionsItemSelected()
DMultiSelectEmailAddressesListFragment.java81 final String scheme = getActivity().getIntent().getStringExtra( in onOptionsItemSelected() local
86 getActivity(), getAdapter().getSelectedContactIdsArray(), scheme); in onOptionsItemSelected()
88 GroupUtil.startSendToSelectionActivity(this, list, scheme, title); in onOptionsItemSelected()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java602 String scheme = srcUri.getScheme(); in getLocalFileFromUri() local
603 if (scheme == null) { in getLocalFileFromUri()
611 if (scheme.equals(ContentResolver.SCHEME_CONTENT)) { in getLocalFileFromUri()
624 } else if (scheme.equals(ContentResolver.SCHEME_FILE)) { in getLocalFileFromUri()
743 String scheme = sourceUri.getScheme(); in isFileUri() local
744 if (scheme != null && scheme.equals(ContentResolver.SCHEME_FILE)) { in isFileUri()
/packages/apps/TV/src/com/android/tv/util/images/
DBitmapUtils.java197 String scheme = uri.getScheme(); in isContentResolverUri() local
198 return ContentResolver.SCHEME_CONTENT.equals(scheme) in isContentResolverUri()
199 || ContentResolver.SCHEME_ANDROID_RESOURCE.equals(scheme) in isContentResolverUri()
200 || ContentResolver.SCHEME_FILE.equals(scheme); in isContentResolverUri()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java88 String scheme = mUri.getScheme(); in onCreate() local
97 if (scheme.equals("http")) { in onCreate()
167 if (scheme.equals(ContentResolver.SCHEME_CONTENT)) { in onCreate()
179 } else if (scheme.equals("file")) { in onCreate()
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt83 val scheme: String? = mUri?.getScheme() in onCreate() constant
90 if (scheme == "http") { in onCreate()
152 if (scheme == ContentResolver.SCHEME_CONTENT) { in onCreate()
163 } else if (scheme == "file") { in onCreate()

123456