/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/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.kt | 72 fun play(ringtoneUri: Uri?, crescendoDuration: Long) { in <lambda>() 74 postMessage(EVENT_PLAY, ringtoneUri, crescendoDuration, 0) in <lambda>() 104 ringtoneUri: Uri?, in <lambda>() 114 if (ringtoneUri != null) { in <lambda>() 116 bundle.putParcelable(RINGTONE_URI_KEY, ringtoneUri) in <lambda>() 138 val ringtoneUri = data.getParcelable<Uri>(RINGTONE_URI_KEY) in <lambda>() constant 140 if (playbackDelegate.play(mContext, ringtoneUri, crescendoDuration)) { in <lambda>() 191 fun play(context: Context, ringtoneUri: Uri?, crescendoDuration: Long): Boolean in <lambda>() 223 override fun play(context: Context, ringtoneUri: Uri?, crescendoDuration: Long): Boolean { in <lambda>() 234 var alarmNoise = if (inTelephoneCall) getInCallRingtoneUri(context) else ringtoneUri in <lambda>() [all …]
|
/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/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | RingtonePreferenceController.java | 56 Uri ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(getContext(), in updateState() local 59 if (mRingtoneManager.getRingtonePosition(ringtoneUri) < 0) { in updateState() 60 ringtoneUri = null; in updateState() 62 preference.setSummary(Ringtone.getTitle(getContext(), ringtoneUri, in updateState() local
|
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/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/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/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/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() 79 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri, in getRingtone()
|
D | AsyncRingtonePlayer.java | 187 Uri ringtoneUri = incomingCall.getRingtone(); 188 String ringtoneUriString = (ringtoneUri == null) ? "null" : 189 ringtoneUri.toSafeString();
|
D | Ringer.java | 55 public VibrationEffect get(Uri ringtoneUri, Context context) { in get() argument 56 return VibrationEffect.get(ringtoneUri, context); in get() 361 Uri ringtoneUri = ringtone != null ? ringtone.getUri() : null; in getVibrationEffectForCall() local 362 if (ringtoneUri != null) { in getVibrationEffectForCall() 364 effect = mVibrationEffectProxy.get(ringtoneUri, mContext); in getVibrationEffectForCall()
|
/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/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/ |
D | ShadowRingtoneManager.java | 44 public static Ringtone getRingtone(Context context, Uri ringtoneUri) { in getRingtone() argument 45 ShadowRingtoneManager.sRingtoneUri = ringtoneUri; in getRingtone()
|
/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/Settings/src/com/android/settings/notification/ |
D | RingtonePreferenceControllerBase.java | 54 final Uri ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri( in updateSummary() local 60 mContext, ringtoneUri, false /* followSettingsUri */, true /* allowRemote */); in updateSummary()
|
D | SoundWorkSettingsController.java | 179 Uri ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type); in updateRingtoneName() local 180 return Ringtone.getTitle(context, ringtoneUri, false /* followSettingsUri */, in updateRingtoneName()
|
/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()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | RingtoneModel.kt | 142 val ringtoneUri: Uri = ringtoneManager.getRingtoneUri(cursor.getPosition()) in loadRingtoneTitles() constant 143 mRingtoneTitles[ringtoneUri] = ringtoneTitle in loadRingtoneTitles()
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | ApplicationSettingsActivity.java | 176 final Uri ringtoneUri = Uri.parse(ringtoneString); in updateSoundSummary() local 178 ringtoneUri); in updateSoundSummary()
|