/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.java | 78 public void play(Uri ringtoneUri, long crescendoDuration) { in play() argument 80 postMessage(EVENT_PLAY, ringtoneUri, crescendoDuration, 0); in play() 108 private void postMessage(int messageCode, Uri ringtoneUri, long crescendoDuration, in postMessage() argument 116 if (ringtoneUri != null) { in postMessage() 118 bundle.putParcelable(RINGTONE_URI_KEY, ringtoneUri); in postMessage() 141 final Uri ringtoneUri = data.getParcelable(RINGTONE_URI_KEY); in getNewHandler() 143 if (getPlaybackDelegate().play(mContext, ringtoneUri, crescendoDuration)) { in getNewHandler() 245 boolean play(Context context, Uri ringtoneUri, long crescendoDuration); 279 public boolean play(final Context context, Uri ringtoneUri, long crescendoDuration) { 290 Uri alarmNoise = inTelephoneCall ? getInCallRingtoneUri(context) : ringtoneUri; [all …]
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | SettingsUtil.java | 47 final Uri ringtoneUri; in updateRingtoneName() local 52 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); in updateRingtoneName() 59 ringtoneUri = null; in updateRingtoneName() 66 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); in updateRingtoneName() 68 ringtoneUri = Uri.parse(uriString); in updateRingtoneName() 72 getRingtoneName(context, handler, ringtoneUri, msg, defaultRingtone); in updateRingtoneName() 75 public static void getRingtoneName(Context context, Handler handler, Uri ringtoneUri, int msg) { in getRingtoneName() argument 76 getRingtoneName(context, handler, ringtoneUri, msg, false); in getRingtoneName() 80 Context context, Handler handler, Uri ringtoneUri, int msg, boolean defaultRingtone) { in getRingtoneName() argument 83 if (ringtoneUri == null) { in getRingtoneName() [all …]
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
D | SettingsUtil.java | 55 final Uri ringtoneUri; in updateRingtoneName() local 60 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); in updateRingtoneName() 67 ringtoneUri = null; in updateRingtoneName() 74 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); in updateRingtoneName() 76 ringtoneUri = Uri.parse(uriString); in updateRingtoneName() 82 if (ringtoneUri == null) { in updateRingtoneName() 86 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); in updateRingtoneName()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | UpdateConversationOptionsAction.java | 51 final String ringtoneUri) { in setConversationNotificationSound() argument 55 conversationId, null, ringtoneUri, null); in setConversationNotificationSound() 79 final Boolean enableNotification, final String ringtoneUri, in UpdateConversationOptionsAction() argument 87 if (ringtoneUri != null) { in UpdateConversationOptionsAction() 88 actionParameters.putString(KEY_RINGTONE_URI, ringtoneUri); in UpdateConversationOptionsAction()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
D | EnterpriseContactsCursorWrapper.java | 100 String ringtoneUri = super.getString(columnIndex); in getString() local 103 if (ringtoneUri != null in getString() 104 && !Uri.parse(ringtoneUri).isPathPrefixMatch( in getString() 106 ringtoneUri = null; in getString() 108 return ringtoneUri; in getString()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | PeopleOptionsItemData.java | 91 Uri ringtoneUri = RingtoneUtil.getNotificationRingtoneUri(ringtoneString); in bind() local 94 if (ringtoneUri != null) { in bind() 95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri); in bind() 101 mRingtoneUri = ringtoneUri; in bind()
|
D | PeopleAndOptionsData.java | 182 final String ringtoneUri) { in setConversationNotificationSound() argument 186 ringtoneUri); in setConversationNotificationSound()
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | RingtonePreferenceController.java | 63 Uri ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(getContext(), in updateState() local 65 preference.setSummary(Ringtone.getTitle(getContext(), ringtoneUri, /* followSettingsUri= */ in updateState() local 83 Uri ringtoneUri = data.getParcelableExtra( in processActivityResult() local 86 getPreference().getRingtoneType(), ringtoneUri); in processActivityResult()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RingtonePreferenceControllerBase.java | 53 final Uri ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri( in updateSummary() local 57 if (ringtoneUri == null) { in updateSummary() 61 mContext, ringtoneUri, false /* followSettingsUri */, true /* allowRemote */); in updateSummary()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowRingtoneManager.java | 41 protected static Ringtone getRingtone(final Context context, Uri ringtoneUri) { in getRingtone() argument 46 public static void setActualDefaultRingtoneUri(Context context, int type, Uri ringtoneUri) { in setActualDefaultRingtoneUri() argument 47 sSetDefaultRingtoneCalled.put(type, ringtoneUri); in setActualDefaultRingtoneUri()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | RingtonePreferenceControllerBase.java | 53 final Uri ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri( in updateSummary() local 57 if (ringtoneUri == null) { in updateSummary() 61 mContext, ringtoneUri, false /* followSettingsUri */, true /* allowRemote */); in updateSummary()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Ringer.java | 53 public VibrationEffect get(Uri ringtoneUri, Context context) { in get() argument 54 return VibrationEffect.get(ringtoneUri, context); in get() 379 Uri ringtoneUri = ringtone != null ? ringtone.getUri() : null; in getVibrationEffectForCall() local 380 if (ringtoneUri != null) { in getVibrationEffectForCall() 382 effect = mVibrationEffectProxy.get(ringtoneUri, mContext); in getVibrationEffectForCall()
|
D | RingtoneFactory.java | 75 Uri ringtoneUri = incomingCall.getRingtone(); in getRingtone() local 78 if(ringtoneUri != null && userContext != null) { in getRingtone() 80 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri, volumeShaperConfig); in getRingtone()
|
D | AsyncRingtonePlayer.java | 199 Uri ringtoneUri = incomingCall.getRingtone(); 200 String ringtoneUriString = (ringtoneUri == null) ? "null" : 201 ringtoneUri.toSafeString();
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleNotifications.java | 420 final Uri ringtoneUri = RingtoneUtil.getNotificationRingtoneUri(state.getRingtoneUri()); in processAndSend() local 430 playObservableConversationNotificationSound(ringtoneUri); in processAndSend() 443 updateBuilderAudioVibrate(state, notifBuilder, silent, ringtoneUri, conversationId); in processAndSend() 601 final Uri ringtoneUri = getNotificationRingtoneUriForConversationId(conversationId); in createMessageNotification() local 602 playObservableConversationNotificationSound(ringtoneUri); in createMessageNotification() 640 final Uri ringtoneUri, final String conversationId) { in updateBuilderAudioVibrate() argument 663 notifBuilder.setSound(ringtoneUri); in updateBuilderAudioVibrate() 1099 private static void playObservableConversationNotificationSound(final Uri ringtoneUri) { in playObservableConversationNotificationSound() argument 1110 player.play(ringtoneUri, false, in playObservableConversationNotificationSound()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | RingtonePreference.java | 183 protected void onSaveRingtone(Uri ringtoneUri) { in onSaveRingtone() argument 184 persistString(ringtoneUri != null ? ringtoneUri.toString() : ""); in onSaveRingtone()
|
D | DefaultRingtonePreference.java | 45 protected void onSaveRingtone(Uri ringtoneUri) { in onSaveRingtone() argument 46 RingtoneManager.setActualDefaultRingtoneUri(mUserContext, getRingtoneType(), ringtoneUri); in onSaveRingtone()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RingtonePreference.java | 183 protected void onSaveRingtone(Uri ringtoneUri) { in onSaveRingtone() argument 184 persistString(ringtoneUri != null ? ringtoneUri.toString() : ""); in onSaveRingtone()
|
D | DefaultRingtonePreference.java | 45 protected void onSaveRingtone(Uri ringtoneUri) { in onSaveRingtone() argument 46 RingtoneManager.setActualDefaultRingtoneUri(mUserContext, getRingtoneType(), ringtoneUri); in onSaveRingtone()
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
D | DefaultRingtonePreference.java | 48 protected void onSaveRingtone(Uri ringtoneUri) { in onSaveRingtone() argument 57 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri); in onSaveRingtone() local
|
/packages/apps/Dialer/java/com/android/incallui/ringtone/ |
D | DialerRingtoneManager.java | 64 public boolean shouldPlayRingtone(int callState, @Nullable Uri ringtoneUri) { in shouldPlayRingtone() argument 67 && ringtoneUri != null; in shouldPlayRingtone()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsFragment.java | 796 final String ringtoneUri = mInboxFolderPreferences.getNotificationRingtoneUri(); in loadSettings() local 797 if (!TextUtils.isEmpty(ringtoneUri)) { in loadSettings() 798 mRingtone = RingtoneManager.getRingtone(getActivity(), Uri.parse(ringtoneUri)); in loadSettings() 951 final String ringtoneUri = mInboxFolderPreferences.getNotificationRingtoneUri(); in showRingtonePicker() local 952 if (!TextUtils.isEmpty(ringtoneUri)) { in showRingtonePicker() 953 intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, Uri.parse(ringtoneUri)); in showRingtonePicker()
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtoneLoader.java | 106 final Uri ringtoneUri = ringtoneManager.getRingtoneUri(i); in loadInBackground() local 107 itemHolders.add(new SystemRingtoneHolder(ringtoneUri, null)); in loadInBackground()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | RingtonePickerActivity.java | 288 protected void onPostExecute(Uri ringtoneUri) { in onActivityResult() 289 if (ringtoneUri != null) { in onActivityResult() 584 private void setSuccessResultWithRingtone(Uri ringtoneUri) { in setSuccessResultWithRingtone() argument 586 new Intent().putExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI, ringtoneUri)); in setSuccessResultWithRingtone()
|
/packages/apps/Email/src/com/android/email/preferences/ |
D | EmailPreferenceMigrator.java | 157 final String ringtoneUri = ecAccount.getRingtone(); in migrate() local 158 folderPreferences.setNotificationRingtoneUri(ringtoneUri); in migrate()
|