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

/packages/services/Telecomm/src/com/android/server/telecom/
H A DAsyncRingtonePlayer.java32 * Plays the default ringtone. Uses {@link Ringtone} in a separate thread so that this class can be
36 // Message codes used with the ringtone thread.
44 /** Handler running on the ringtone thread. */
47 /** The current ringtone. Only used by the ringtone thread. */
59 /** Plays the ringtone. */
60 void play(Uri ringtone) { argument
62 postMessage(EVENT_PLAY, true /* shouldCreateHandler */, ringtone);
65 /** Stops playing the ringtone. */
72 * Posts a message to the ringtone
78 postMessage(int messageCode, boolean shouldCreateHandler, Uri ringtone) argument
[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.java41 * available ringtones. The chosen ringtone's URI will be persisted as a string.
72 /** The position in the list of the ringtone to sample. */
91 * A Ringtone for the default ringtone. In most cases, the RingtoneManager
92 * will stop the previous ringtone. However, the RingtoneManager doesn't
93 * manage the default ringtone for us, so we should stop this one manually.
98 * The ringtone that's currently playing, unless the currently playing one is the default
99 * ringtone.
106 * Keep the currently playing ringtone around when changing orientation, so that it
166 // The volume keys will control the stream that we are choosing a ringtone for
262 // Stop playing the previous ringtone
[all...]
/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/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/apps/DeskClock/src/com/android/deskclock/
H A DAlarmClockFragment.java129 private Bundle mRingtoneTitleCache; // Key: ringtone uri, value: ringtone title
472 // Save the last selected ringtone as the default for new alarms
477 // If the user chose an external ringtone and has not yet granted the permission to read
525 // The permission change may alter the cached ringtone titles so clear them.
576 TextView ringtone; field in class:AlarmClockFragment.AlarmItemAdapter.ItemHolder
716 holder.ringtone = (TextView) view.findViewById(R.id.choose_ringtone);
1039 final String ringtone;
1041 ringtone = mContext.getResources().getString(R.string.silent_alarm_summary);
1043 ringtone
[all...]
/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.java2263 assertEquals(null, rewritten.getString(column++)); // ringtone
5828 String ringtone) {
5831 if (ringtone != null) {
5832 values.put(Contacts.CUSTOM_RINGTONE, ringtone);
5841 boolean sendToVoicemail, String ringtone) {
5844 if (ringtone != null) {
5845 values.put(Contacts.CUSTOM_RINGTONE, ringtone);
5859 String ringtone = c.getString(c.getColumnIndex(Contacts.CUSTOM_RINGTONE));
5861 assertNull(ringtone);
5863 assertTrue(ArrayUtils.contains(expectedRingtone.split(","), ringtone));
5827 updateSendToVoicemailAndRingtone(long contactId, boolean sendToVoicemail, String ringtone) argument
5840 updateSendToVoicemailAndRingtoneWithSelection(long contactId, boolean sendToVoicemail, String ringtone) argument
[all...]

Completed in 498 milliseconds