/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/Car/Settings/tests/robotests/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManagerTest.java | 80 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(USAGE_ALARM); in getRingtoneUri_defaultsToDefaultRingtoneUriIfConfigIsEmpty() local 82 assertThat(ringtoneUri).isEqualTo(System.DEFAULT_RINGTONE_URI); in getRingtoneUri_defaultsToDefaultRingtoneUriIfConfigIsEmpty() 93 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(USAGE_ALARM); in getRingtoneUri_defaultsToDefaultRingtoneUriIfUsageNotInConfig() local 95 assertThat(ringtoneUri).isEqualTo(System.DEFAULT_RINGTONE_URI); in getRingtoneUri_defaultsToDefaultRingtoneUriIfUsageNotInConfig() 105 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(usage); in getRingtoneUri_usesConfigValuesForUsageRingtoneMapping() local 107 assertThat(ringtoneUri).isEqualTo(Uri.parse(ringtoneValue)); in getRingtoneUri_usesConfigValuesForUsageRingtoneMapping()
|
/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()
|
/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()
|
D | VolumeSettingsRingtoneManager.java | 77 Uri ringtoneUri = Uri.parse(ringtoneStrings[i]); in populateAttributeUsageToRingtoneUriMap() local 78 LOG.d("Usage " + usage + " mapped to ringtone " + ringtoneUri); in populateAttributeUsageToRingtoneUriMap() 79 mAttributeUsageToRingtoneUriMap.put(usage, ringtoneUri); in populateAttributeUsageToRingtoneUriMap()
|
/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/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/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/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/Telecomm/src/com/android/server/telecom/ |
D | RingtoneFactory.java | 73 Uri ringtoneUri = incomingCall.getRingtone(); in getRingtone() local 76 if(ringtoneUri != null && userContext != null) { in getRingtone() 78 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri, volumeShaperConfig); in getRingtone()
|
D | Ringer.java | 55 public VibrationEffect get(Uri ringtoneUri, Context context) { in get() argument 56 return VibrationEffect.get(ringtoneUri, context); in get() 385 Uri ringtoneUri = ringtone != null ? ringtone.getUri() : null; in getVibrationEffectForCall() local 386 if (ringtoneUri != null) { in getVibrationEffectForCall() 388 effect = mVibrationEffectProxy.get(ringtoneUri, mContext); in getVibrationEffectForCall()
|
D | AsyncRingtonePlayer.java | 187 Uri ringtoneUri = incomingCall.getRingtone(); 188 String ringtoneUriString = (ringtoneUri == null) ? "null" : 189 ringtoneUri.toSafeString();
|
/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/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtoneLoader.kt | 93 val ringtoneUri = ringtoneManager.getRingtoneUri(i) in loadInBackground() constant 94 itemHolders.add(SystemRingtoneHolder(ringtoneUri, null)) in loadInBackground()
|
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 | 285 protected void onPostExecute(Uri ringtoneUri) { in onActivityResult() 286 if (ringtoneUri != null) { in onActivityResult() 582 private void setSuccessResultWithRingtone(Uri ringtoneUri) { in setSuccessResultWithRingtone() argument 584 new Intent().putExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI, ringtoneUri)); in setSuccessResultWithRingtone()
|