Home
last modified time | relevance | path

Searched refs:contentUri (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/content/
DContentUris.java84 public static long parseId(Uri contentUri) { in parseId() argument
85 String last = contentUri.getLastPathSegment(); in parseId()
109 public static Uri withAppendedId(Uri contentUri, long id) { in withAppendedId() argument
110 return appendId(contentUri.buildUpon(), id).build(); in withAppendedId()
/frameworks/opt/telephony/src/java/android/telephony/
DSmsManager.java931 public void sendMultimediaMessage(Context context, Uri contentUri, String locationUrl, in sendMultimediaMessage() argument
933 if (contentUri == null) { in sendMultimediaMessage()
941 context.grantUriPermission(PHONE_PACKAGE_NAME, contentUri, in sendMultimediaMessage()
943 grantCarrierPackageUriPermission(context, contentUri, in sendMultimediaMessage()
946 iMms.sendMessage(getSubId(), ActivityThread.currentPackageName(), contentUri, in sendMultimediaMessage() local
953 private void grantCarrierPackageUriPermission(Context context, Uri contentUri, String action, in grantCarrierPackageUriPermission() argument
961 context.grantUriPermission(carrierPackages.get(0), contentUri, permission); in grantCarrierPackageUriPermission()
978 public void downloadMultimediaMessage(Context context, String locationUrl, Uri contentUri, in downloadMultimediaMessage() argument
983 if (contentUri == null) { in downloadMultimediaMessage()
991 context.grantUriPermission(PHONE_PACKAGE_NAME, contentUri, in downloadMultimediaMessage()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DIMms.aidl42 void sendMessage(long subId, String callingPkg, in Uri contentUri, in sendMessage() argument
60 in Uri contentUri, in Bundle configOverrides, in downloadMessage() argument
130 Uri importMultimediaMessage(String callingPkg, in Uri contentUri, String messageId, in importMultimediaMessage() argument
190 Uri addMultimediaMessageDraft(String callingPkg, in Uri contentUri); in addMultimediaMessageDraft() argument
/frameworks/opt/vcard/java/com/android/vcard/
DVCardComposer.java286 public boolean init(final Uri contentUri, final String selection, in init() argument
288 return init(contentUri, sContactsProjection, selection, selectionArgs, sortOrder, null); in init()
304 public boolean init(final Uri contentUri, final String selection, in init() argument
307 return init(contentUri, sContactsProjection, selection, selectionArgs, sortOrder, in init()
348 public boolean init(final Uri contentUri, final String[] projection, in init() argument
351 if (!ContactsContract.AUTHORITY.equals(contentUri.getAuthority())) { in init()
352 if (DEBUG) Log.d(LOG_TAG, "Unexpected contentUri: " + contentUri); in init()
360 if (!initInterCursorCreationPart(contentUri, projection, selection, selectionArgs, in init()
398 final Uri contentUri, final String[] projection, in initInterCursorCreationPart() argument
402 contentUri, projection, selection, selectionArgs, sortOrder); in initInterCursorCreationPart()
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java222 public void sendMessage(long subId, String callingPkg, Uri contentUri, in sendMessage() argument
230 getServiceGuarded().sendMessage(subId, callingPkg, contentUri, locationUrl, in sendMessage()
236 Uri contentUri, Bundle configOverrides, in downloadMessage() argument
244 getServiceGuarded().downloadMessage(subId, callingPkg, locationUrl, contentUri, in downloadMessage()
281 public Uri importMultimediaMessage(String callingPkg, Uri contentUri, in importMultimediaMessage() argument
292 callingPkg, contentUri, messageId, timestampSecs, seen, read); in importMultimediaMessage()
350 public Uri addMultimediaMessageDraft(String callingPkg, Uri contentUri) in addMultimediaMessageDraft() argument
359 return getServiceGuarded().addMultimediaMessageDraft(callingPkg, contentUri); in addMultimediaMessageDraft()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRemotePlaybackClient.java245 public void play(Uri contentUri, String mimeType, Bundle metadata, in play() argument
247 playOrEnqueue(contentUri, mimeType, metadata, positionMillis, in play()
280 public void enqueue(Uri contentUri, String mimeType, Bundle metadata, in enqueue() argument
282 playOrEnqueue(contentUri, mimeType, metadata, positionMillis, in enqueue()
286 private void playOrEnqueue(Uri contentUri, String mimeType, Bundle metadata, in playOrEnqueue() argument
289 if (contentUri == null) { in playOrEnqueue()
298 intent.setDataAndType(contentUri, mimeType); in playOrEnqueue()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java639 private void restoreSettings(BackupDataInput data, Uri contentUri, in restoreSettings() argument
648 restoreSettings(settings, settings.length, contentUri, movedToGlobal); in restoreSettings()
651 private void restoreSettings(byte[] settings, int bytes, Uri contentUri, in restoreSettings() argument
654 Log.i(TAG, "restoreSettings: " + contentUri); in restoreSettings()
659 if (contentUri.equals(Settings.Secure.CONTENT_URI)) { in restoreSettings()
661 } else if (contentUri.equals(Settings.System.CONTENT_URI)) { in restoreSettings()
663 } else if (contentUri.equals(Settings.Global.CONTENT_URI)) { in restoreSettings()
666 throw new IllegalArgumentException("Unknown URI: " + contentUri); in restoreSettings()
705 : contentUri; in restoreSettings()
/frameworks/base/core/tests/coretests/src/android/provider/
DSearchRecentSuggestionsProviderTest.java381 Uri contentUri = Uri.parse(uriStr); in getQueryCursor() local
385 Cursor c = cr.query(contentUri, null, null, selArgs, null); in getQueryCursor()
/frameworks/base/docs/html/training/camera/
Dphotobasics.jd255 Uri contentUri = Uri.fromFile(f);
256 mediaScanIntent.setData(contentUri);
/frameworks/base/docs/html/training/contacts-provider/
Dretrieve-names.jd799 Uri contentUri = Uri.withAppendedPath(
805 contentUri,
/frameworks/base/docs/html/guide/topics/media/
Dmediaplayer.jd738 Uri contentUri = ContentUris.withAppendedId(
743 mMediaPlayer.setDataSource(getApplicationContext(), contentUri);