/packages/apps/Dialer/java/com/android/dialer/util/ |
SettingsUtil.java | 47 final Uri ringtoneUri; 52 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); 59 ringtoneUri = null; 66 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); 68 ringtoneUri = Uri.parse(uriString); 72 getRingtoneName(context, handler, ringtoneUri, msg, defaultRingtone); 75 public static void getRingtoneName(Context context, Handler handler, Uri ringtoneUri, int msg) { 76 getRingtoneName(context, handler, ringtoneUri, msg, false); 80 Context context, Handler handler, Uri ringtoneUri, int msg, boolean defaultRingtone) { 83 if (ringtoneUri == null) [all...] |
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
SettingsUtil.java | 55 final Uri ringtoneUri; 60 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); 67 ringtoneUri = null; 74 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); 76 ringtoneUri = Uri.parse(uriString); 82 if (ringtoneUri == null) { 86 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri);
|
/packages/apps/Settings/src/com/android/settings/ |
DefaultRingtonePreference.java | 45 protected void onSaveRingtone(Uri ringtoneUri) { 46 RingtoneManager.setActualDefaultRingtoneUri(mUserContext, getRingtoneType(), ringtoneUri);
|
RingtonePreference.java | 180 * @param ringtoneUri The chosen ringtone's {@link Uri}. Can be null. 182 protected void onSaveRingtone(Uri ringtoneUri) { 183 persistString(ringtoneUri != null ? ringtoneUri.toString() : "");
|
/packages/apps/Settings/src/com/android/settings/notification/ |
RingtonePreferenceControllerBase.java | 47 Uri ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(mContext, getRingtoneType()); 49 mContext, ringtoneUri, false /* followSettingsUri */, true /* allowRemote */);
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
VolumeLineItem.java | 56 Uri ringtoneUri; 60 ringtoneUri = Settings.System.DEFAULT_RINGTONE_URI; 63 ringtoneUri = Settings.System.DEFAULT_NOTIFICATION_URI; 66 ringtoneUri = Settings.System.DEFAULT_ALARM_ALERT_URI; 68 mRingtone = RingtoneManager.getRingtone(context, ringtoneUri);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AsyncRingtonePlayer.java | 78 public void play(Uri ringtoneUri, long crescendoDuration) { 80 postMessage(EVENT_PLAY, ringtoneUri, crescendoDuration, 0); 104 * @param ringtoneUri the ringtone in question, if any 108 private void postMessage(int messageCode, Uri ringtoneUri, long crescendoDuration, 116 if (ringtoneUri != null) { 118 bundle.putParcelable(RINGTONE_URI_KEY, ringtoneUri); 141 final Uri ringtoneUri = data.getParcelable(RINGTONE_URI_KEY); 143 if (getPlaybackDelegate().play(mContext, ringtoneUri, crescendoDuration)) { 245 boolean play(Context context, Uri ringtoneUri, long crescendoDuration); 279 public boolean play(final Context context, Uri ringtoneUri, long crescendoDuration) [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
PeopleOptionsItemData.java | 91 Uri ringtoneUri = RingtoneUtil.getNotificationRingtoneUri(ringtoneString); 94 if (ringtoneUri != null) { 95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri); 101 mRingtoneUri = ringtoneUri;
|
PeopleAndOptionsData.java | 182 final String ringtoneUri) { 186 ringtoneUri);
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
DefaultRingtonePreference.java | 48 protected void onSaveRingtone(Uri ringtoneUri) { 57 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
UpdateConversationOptionsAction.java | 51 final String ringtoneUri) { 55 conversationId, null, ringtoneUri, null); 79 final Boolean enableNotification, final String ringtoneUri, 87 if (ringtoneUri != null) { 88 actionParameters.putString(KEY_RINGTONE_URI, ringtoneUri);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
AsyncRingtonePlayer.java | 138 Uri ringtoneUri = incomingCall.getRingtone(); 139 String ringtoneUriString = (ringtoneUri == null) ? "null" : 140 ringtoneUri.toSafeString();
|
RingtoneFactory.java | 60 Uri ringtoneUri = incomingCall.getRingtone(); 63 if(ringtoneUri != null && userContext != null) { 65 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri);
|
/packages/apps/Dialer/java/com/android/incallui/ringtone/ |
DialerRingtoneManager.java | 63 * @param ringtoneUri the ringtone to potentially play. 66 public boolean shouldPlayRingtone(int callState, @Nullable Uri ringtoneUri) { 69 && ringtoneUri != null;
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
VoicemailRingtonePreference.java | 102 protected void onSaveRingtone(Uri ringtoneUri) { 103 telephonyManager.setVoicemailRingtoneUri(phoneAccountHandle, ringtoneUri);
|
/frameworks/base/media/java/android/media/ |
RingtoneManager.java | 536 * @param ringtoneUri The {@link Uri} to retreive the position of. 539 public int getRingtonePosition(Uri ringtoneUri) { 541 if (ringtoneUri == null) return -1; 559 if (ringtoneUri.equals(ContentUris.withAppendedId(currentUri, cursor 714 * @param ringtoneUri The {@link Uri} of a sound or ringtone. 717 public static Ringtone getRingtone(final Context context, Uri ringtoneUri) { 719 return getRingtone(context, ringtoneUri, -1); 733 private static Ringtone getRingtone(final Context context, Uri ringtoneUri, int streamType) { 740 r.setUri(ringtoneUri); 743 Log.e(TAG, "Failed to open ringtone " + ringtoneUri + ": " + ex) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
EnterpriseContactsCursorWrapper.java | 100 String ringtoneUri = super.getString(columnIndex); 103 if (ringtoneUri != null 104 && !Uri.parse(ringtoneUri).isPathPrefixMatch( 106 ringtoneUri = null; 108 return ringtoneUri;
|
/frameworks/base/core/java/android/preference/ |
RingtonePreference.java | 183 * @param ringtoneUri The chosen ringtone's {@link Uri}. Can be null. 185 protected void onSaveRingtone(Uri ringtoneUri) { 186 persistString(ringtoneUri != null ? ringtoneUri.toString() : "");
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
VoicemailNotificationSettingsUtil.java | 66 public static void setRingtoneUri(Context context, Uri ringtoneUri) { 68 String ringtoneUriStr = ringtoneUri != null ? ringtoneUri.toString() : "";
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
RingtoneLoader.java | 106 final Uri ringtoneUri = ringtoneManager.getRingtoneUri(i); 107 itemHolders.add(new SystemRingtoneHolder(ringtoneUri, null));
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 224 Uri ringtoneUri = null; 226 ringtoneUri = null; 229 ringtoneUri = mContext.getContentResolver().uncanonicalize(canonicalUri); 230 if (ringtoneUri == null) { 237 RingtoneManager.setActualDefaultRingtoneUri(mContext, ringtoneType, ringtoneUri); 241 final Uri ringtoneUri = Uri.parse(value); 242 final Uri canonicalUri = mContext.getContentResolver().canonicalize(ringtoneUri);
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
RingtoneModel.java | 154 final Uri ringtoneUri = ringtoneManager.getRingtoneUri(cursor.getPosition()); 155 mRingtoneTitles.put(ringtoneUri, ringtoneTitle);
|
/packages/apps/Email/src/com/android/email/preferences/ |
EmailPreferenceMigrator.java | 157 final String ringtoneUri = ecAccount.getRingtone(); 158 folderPreferences.setNotificationRingtoneUri(ringtoneUri);
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
ApplicationSettingsActivity.java | 176 final Uri ringtoneUri = Uri.parse(ringtoneString); 178 ringtoneUri);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
BugleNotifications.java | 420 final Uri ringtoneUri = RingtoneUtil.getNotificationRingtoneUri(state.getRingtoneUri()); 430 playObservableConversationNotificationSound(ringtoneUri); 443 updateBuilderAudioVibrate(state, notifBuilder, silent, ringtoneUri, conversationId); 601 final Uri ringtoneUri = getNotificationRingtoneUriForConversationId(conversationId); 602 playObservableConversationNotificationSound(ringtoneUri); 640 final Uri ringtoneUri, final String conversationId) { 663 notifBuilder.setSound(ringtoneUri); [all...] |