Searched refs:ringtone (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Dialer/InCallUI/src/com/android/incallui/ringtone/
H A DToneGeneratorFactory.java17 package com.android.incallui.ringtone;
H A DDialerRingtoneManager.java17 package com.android.incallui.ringtone;
61 * Determines if a ringtone should be played for the given call state (see {@link State}) and
65 * @param ringtoneUri the ringtone to potentially play.
66 * @return {@code true} if the ringtone should be played, {@code false} otherwise.
H A DInCallTonePlayer.java17 package com.android.incallui.ringtone;
/packages/services/Telecomm/src/com/android/server/telecom/
H A DRingtoneFactory.java38 * Uses the incoming {@link Call}'s ringtone URI (obtained by the Contact Lookup) to obtain a
40 * incoming call. If the ringtone URI is null, use the default Ringtone for the active user.
54 // Use the default ringtone of the work profile if the contact is a work profile contact.
59 Ringtone ringtone = null;
63 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri);
65 if(ringtone == null) {
66 // Contact didn't specify ringtone or custom Ringtone creation failed. Get default
67 // ringtone for user or profile.
68 ringtone = RingtoneManager.getRingtone(
72 if (ringtone !
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DAlarmModel.java45 /** The uri of the default ringtone to play for new alarms; mirrors last selection. */
48 /** Maps ringtone uri to ringtone title; looking up a title from scratch is expensive. */
75 // Special case: no ringtone has a title of "Silent".
85 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri);
86 if (ringtone == null) {
87 LogUtils.e("No ringtone for uri: %s", uri);
92 title = ringtone.getTitle(mContext);
112 LogUtils.i("Detected change to system default alarm ringtone; clearing caches");
116 // Titles such as "Default ringtone (Oxyge
[all...]
H A DTimerModel.java102 /** The uri of the ringtone to play for timers. */
105 /** The title of the ringtone to play for timers. */
339 * @return the uri of the default ringtone to play for all timers when no user selection exists
346 * @return {@code true} iff the ringtone to play for all timers is the silent ringtone
353 * @return the uri of the ringtone to play for all timers
364 * @return the title of the ringtone that is played for all timers
369 // Special case: no ringtone has a title of "Silent".
376 // Special case: default ringtone has a title of "Timer Expired".
379 final Ringtone ringtone
[all...]
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
H A DSettingsUtil.java44 * Queries for a ringtone name, and sets the name using a handler.
48 * @param handler The handler, which takes the name of the ringtone as a String as a parameter.
66 // silent ringtone
81 // Is it a silent ringtone?
85 // Fetch the ringtone title from the media provider
86 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri);
87 if (ringtone != null) {
89 final String title = ringtone.getTitle(context);
94 // Unknown title for the ringtone
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DPeopleOptionsItemData.java95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri);
96 if (ringtone != null) {
97 mSubtitle = ringtone.getTitle(mContext);
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DRingtonePickerActivity.java47 * available ringtones. The chosen ringtone's URI will be persisted as a string.
82 /** The position in the list of the ringtone to sample. */
101 * A Ringtone for the default ringtone. In most cases, the RingtoneManager
102 * will stop the previous ringtone. However, the RingtoneManager doesn't
103 * manage the default ringtone for us, so we should stop this one manually.
108 * The ringtone that's currently playing, unless the currently playing one is the default
109 * ringtone.
116 * Keep the currently playing ringtone around when changing orientation, so that it
186 // The volume keys will control the stream that we are choosing a ringtone for
282 // Stop playing the previous ringtone
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
H A DExpandedAlarmViewHolder.java53 public final TextView ringtone; field in class:ExpandedAlarmViewHolder
85 ringtone = (TextView) itemView.findViewById(R.id.choose_ringtone);
139 ringtone.setOnClickListener(new View.OnClickListener() {
190 ringtone.setText(title);
191 ringtone.setContentDescription(description + " " + title);
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertService.java876 String ringtone = NotificationPrefs.EMPTY_RINGTONE;
880 // If we've already played a ringtone, don't play any more sounds so only
882 ringtone = prefs.getRingtoneAndSilence();
885 prefs.getDefaultVibrate(), ringtone,
894 + (TextUtils.isEmpty(ringtone) ? ", quiet" : ", LOUD")
954 // Possibly generate a sound. If 'Silent' is chosen, the ringtone
969 private String ringtone = null; field in class:AlertService.NotificationPrefs
998 if (ringtone == null) {
1000 ringtone = EMPTY_RINGTONE;
1002 ringtone
[all...]
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ringtone/
H A DInCallTonePlayerTest.java17 package com.android.incallui.ringtone;
H A DDialerRingtoneManagerTest.java17 package com.android.incallui.ringtone;
/packages/apps/Calendar/src/com/android/calendar/
H A DGeneralPreferences.java330 String ringtone = getRingtoneTitleFromUri(activity, (String) newValue);
331 mRingtone.setSummary(ringtone == null ? "" : ringtone);
H A DUtils.java408 // default value when the ringtone dialog opens up.
412 // ringtone.
416 String ringtone = prefs.getString(GeneralPreferences.KEY_ALERTS_RINGTONE, null);
421 if (ringtone == null) {
423 ringtone = getSharedPreference(context, GeneralPreferences.KEY_ALERTS_RINGTONE,
427 setRingTonePreference(context, ringtone);
430 return ringtone;
/packages/services/Car/car_product/build/
H A Dcar.mk66 ro.config.ringtone=Girtab.ogg \
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DStatusBarNotifier.java59 import com.android.incallui.ringtone.DialerRingtoneManager;
60 import com.android.incallui.ringtone.InCallTonePlayer;
61 import com.android.incallui.ringtone.ToneGeneratorFactory;
387 String contentTitle, int state, int notificationType, Uri ringtone) {
399 || contentTitleChanged || !Objects.equals(mRingtone, ringtone);
415 mRingtone = ringtone;
386 checkForChangeAndSaveData(int icon, String content, Bitmap largeIcon, String contentTitle, int state, int notificationType, Uri ringtone) argument
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSettingsFragment.java254 * Sets the current ringtone.
256 private void setRingtone(Uri ringtone) { argument
257 if (ringtone != null) {
258 mInboxFolderPreferences.setNotificationRingtoneUri(ringtone.toString());
259 mRingtone = RingtoneManager.getRingtone(getActivity(), ringtone);
947 * Shows the system ringtone picker.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java6182 String ringtone) {
6185 if (ringtone != null) {
6186 values.put(Contacts.CUSTOM_RINGTONE, ringtone);
6195 boolean sendToVoicemail, String ringtone) {
6198 if (ringtone != null) {
6199 values.put(Contacts.CUSTOM_RINGTONE, ringtone);
6213 String ringtone = c.getString(c.getColumnIndex(Contacts.CUSTOM_RINGTONE));
6215 assertNull(ringtone);
6217 assertTrue(ArrayUtils.contains(expectedRingtone.split(","), ringtone));
6181 updateSendToVoicemailAndRingtone(long contactId, boolean sendToVoicemail, String ringtone) argument
6194 updateSendToVoicemailAndRingtoneWithSelection(long contactId, boolean sendToVoicemail, String ringtone) argument

Completed in 1832 milliseconds