Home
last modified time | relevance | path

Searched refs:ringtoneUri (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/media/java/android/media/
DRingtoneManager.java539 public int getRingtonePosition(Uri ringtoneUri) { in getRingtonePosition() argument
541 if (ringtoneUri == null) return -1; in getRingtonePosition()
559 if (ringtoneUri.equals(ContentUris.withAppendedId(currentUri, cursor in getRingtonePosition()
717 public static Ringtone getRingtone(final Context context, Uri ringtoneUri) { in getRingtone() argument
719 return getRingtone(context, ringtoneUri, -1); in getRingtone()
733 private static Ringtone getRingtone(final Context context, Uri ringtoneUri, int streamType) { in getRingtone() argument
740 r.setUri(ringtoneUri); in getRingtone()
743 Log.e(TAG, "Failed to open ringtone " + ringtoneUri + ": " + ex); in getRingtone()
814 Uri ringtoneUri = uriString != null ? Uri.parse(uriString) : null; in getActualDefaultRingtoneUri() local
818 if (ringtoneUri != null in getActualDefaultRingtoneUri()
[all …]
DMediaScanner.java1120 final Uri ringtoneUri = ContentUris.withAppendedId(uri, rowId);
1122 RingtoneManager.getDefaultType(settingUri), ringtoneUri);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java224 Uri ringtoneUri = null; in setRingtone()
226 ringtoneUri = null; in setRingtone()
229 ringtoneUri = mContext.getContentResolver().uncanonicalize(canonicalUri); in setRingtone()
230 if (ringtoneUri == null) { in setRingtone()
237 RingtoneManager.setActualDefaultRingtoneUri(mContext, ringtoneType, ringtoneUri); in setRingtone()
241 final Uri ringtoneUri = Uri.parse(value); in getCanonicalRingtoneValue() local
242 final Uri canonicalUri = mContext.getContentResolver().canonicalize(ringtoneUri); in getCanonicalRingtoneValue()
/frameworks/base/core/java/android/preference/
DRingtonePreference.java185 protected void onSaveRingtone(Uri ringtoneUri) { in onSaveRingtone() argument
186 persistString(ringtoneUri != null ? ringtoneUri.toString() : ""); in onSaveRingtone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java66 public static void setRingtoneUri(Context context, Uri ringtoneUri) { in setRingtoneUri() argument
68 String ringtoneUriStr = ringtoneUri != null ? ringtoneUri.toString() : ""; in setRingtoneUri()