Home
last modified time | relevance | path

Searched refs:ringtone (Results 1 – 21 of 21) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java59 Ringtone ringtone = null; in getRingtone() local
63 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri); in getRingtone()
65 if(ringtone == null) { in getRingtone()
68 ringtone = RingtoneManager.getRingtone( in getRingtone()
72 if (ringtone != null) { in getRingtone()
73 ringtone.setStreamType(AudioManager.STREAM_RING); in getRingtone()
75 return ringtone; in getRingtone()
/packages/providers/MediaProvider/src/com/android/providers/media/
DRingtonePickerActivity.java310 Ringtone ringtone; in run() local
322 ringtone = mDefaultRingtone; in run()
325 ringtone = mRingtoneManager.getRingtone(getRingtoneManagerPosition(mSampleRingtonePos)); in run()
326 mCurrentRingtone = ringtone; in run()
329 if (ringtone != null) { in run()
331 ringtone.setAudioAttributes( in run()
332 new AudioAttributes.Builder(ringtone.getAudioAttributes()) in run()
336 ringtone.play(); in run()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.java53 public final TextView ringtone; field in ExpandedAlarmViewHolder
85 ringtone = (TextView) itemView.findViewById(R.id.choose_ringtone); in ExpandedAlarmViewHolder()
139 ringtone.setOnClickListener(new View.OnClickListener() { in ExpandedAlarmViewHolder()
190 ringtone.setText(title); in bindRingtoneTitle()
191 ringtone.setContentDescription(description + " " + title); in bindRingtoneTitle()
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DSettingsUtil.java86 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); in updateRingtoneName() local
87 if (ringtone != null) { in updateRingtoneName()
89 final String title = ringtone.getTitle(context); in updateRingtoneName()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DAlarmModel.java85 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri); in getAlarmRingtoneTitle() local
86 if (ringtone == null) { in getAlarmRingtoneTitle()
92 title = ringtone.getTitle(mContext); in getAlarmRingtoneTitle()
DTimerModel.java379 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri); in getTimerRingtoneTitle() local
380 mTimerRingtoneTitle = ringtone.getTitle(mContext); in getTimerRingtoneTitle()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPeopleOptionsItemData.java95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri); in bind() local
96 if (ringtone != null) { in bind()
97 mSubtitle = ringtone.getTitle(mContext); in bind()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertService.java876 String ringtone = NotificationPrefs.EMPTY_RINGTONE; in postNotification() local
882 ringtone = prefs.getRingtoneAndSilence(); in postNotification()
885 prefs.getDefaultVibrate(), ringtone, in postNotification()
894 + (TextUtils.isEmpty(ringtone) ? ", quiet" : ", LOUD") in postNotification()
969 private String ringtone = null; field in AlertService.NotificationPrefs
998 if (ringtone == null) { in getRingtoneAndSilence()
1000 ringtone = EMPTY_RINGTONE; in getRingtoneAndSilence()
1002 ringtone = Utils.getRingTonePreference(context); in getRingtoneAndSilence()
1005 String retVal = ringtone; in getRingtoneAndSilence()
1006 ringtone = EMPTY_RINGTONE; in getRingtoneAndSilence()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DStatusBarNotifier.java59 import com.android.incallui.ringtone.DialerRingtoneManager;
60 import com.android.incallui.ringtone.InCallTonePlayer;
61 import com.android.incallui.ringtone.ToneGeneratorFactory;
386 String contentTitle, int state, int notificationType, Uri ringtone) { in checkForChangeAndSaveData() argument
398 || contentTitleChanged || !Objects.equals(mRingtone, ringtone); in checkForChangeAndSaveData()
414 mRingtone = ringtone; in checkForChangeAndSaveData()
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java330 String ringtone = getRingtoneTitleFromUri(activity, (String) newValue); in onPreferenceChange() local
331 mRingtone.setSummary(ringtone == null ? "" : ringtone); in onPreferenceChange()
DUtils.java416 String ringtone = prefs.getString(GeneralPreferences.KEY_ALERTS_RINGTONE, null); in getRingTonePreference() local
421 if (ringtone == null) { in getRingTonePreference()
423 ringtone = getSharedPreference(context, GeneralPreferences.KEY_ALERTS_RINGTONE, in getRingTonePreference()
427 setRingTonePreference(context, ringtone); in getRingTonePreference()
430 return ringtone; in getRingTonePreference()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ringtone/
DToneGeneratorFactory.java17 package com.android.incallui.ringtone;
DDialerRingtoneManager.java17 package com.android.incallui.ringtone;
DInCallTonePlayer.java17 package com.android.incallui.ringtone;
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java256 private void setRingtone(Uri ringtone) { in setRingtone() argument
257 if (ringtone != null) { in setRingtone()
258 mInboxFolderPreferences.setNotificationRingtoneUri(ringtone.toString()); in setRingtone()
259 mRingtone = RingtoneManager.getRingtone(getActivity(), ringtone); in setRingtone()
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ringtone/
DInCallTonePlayerTest.java17 package com.android.incallui.ringtone;
DDialerRingtoneManagerTest.java17 package com.android.incallui.ringtone;
/packages/services/Car/car_product/build/
Dcar.mk66 ro.config.ringtone=Girtab.ogg \
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java6182 String ringtone) { in updateSendToVoicemailAndRingtone() argument
6185 if (ringtone != null) { in updateSendToVoicemailAndRingtone()
6186 values.put(Contacts.CUSTOM_RINGTONE, ringtone); in updateSendToVoicemailAndRingtone()
6195 boolean sendToVoicemail, String ringtone) { in updateSendToVoicemailAndRingtoneWithSelection() argument
6198 if (ringtone != null) { in updateSendToVoicemailAndRingtoneWithSelection()
6199 values.put(Contacts.CUSTOM_RINGTONE, ringtone); in updateSendToVoicemailAndRingtoneWithSelection()
6213 String ringtone = c.getString(c.getColumnIndex(Contacts.CUSTOM_RINGTONE)); in assertSendToVoicemailAndRingtone() local
6215 assertNull(ringtone); in assertSendToVoicemailAndRingtone()
6217 assertTrue(ArrayUtils.contains(expectedRingtone.split(","), ringtone)); in assertSendToVoicemailAndRingtone()
/packages/services/Car/bluetooth/bt-map-service/
Dbt_hci_startup_issues.txt69691 [ro.config.ringtone]: [Girtab.ogg]
87962 …eded, sql="SELECT _id, year, month, day, hour, minutes, label, vibrate, ringtone, alarm_id, alarm_…
87963 …eded, sql="SELECT _id, year, month, day, hour, minutes, label, vibrate, ringtone, alarm_id, alarm_…
87964 …eded, sql="SELECT _id, year, month, day, hour, minutes, label, vibrate, ringtone, alarm_id, alarm_…
87965 …eded, sql="SELECT _id, year, month, day, hour, minutes, label, vibrate, ringtone, alarm_id, alarm_…
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz