Home
last modified time | relevance | path

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

12

/packages/apps/DeskClock/src/com/android/deskclock/data/
DRingtoneModel.java90 final CustomRingtone ringtone = CustomRingtoneDAO.addCustomRingtone(mPrefs, uri, title); in addCustomRingtone() local
91 getMutableCustomRingtones().add(ringtone); in addCustomRingtone()
93 return ringtone; in addCustomRingtone()
98 for (CustomRingtone ringtone : ringtones) { in removeCustomRingtone()
99 if (ringtone.getUri().equals(uri)) { in removeCustomRingtone()
100 CustomRingtoneDAO.removeCustomRingtone(mPrefs, ringtone.getId()); in removeCustomRingtone()
101 ringtones.remove(ringtone); in removeCustomRingtone()
108 for (CustomRingtone ringtone : getMutableCustomRingtones()) { in getCustomRingtone()
109 if (ringtone.getUri().equals(uri)) { in getCustomRingtone()
110 return ringtone; in getCustomRingtone()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtonePickerActivity.java17 package com.android.deskclock.ringtone;
64 import static com.android.deskclock.ringtone.AddCustomRingtoneViewHolder.VIEW_TYPE_ADD_NEW;
65 import static com.android.deskclock.ringtone.HeaderViewHolder.VIEW_TYPE_ITEM_HEADER;
66 import static com.android.deskclock.ringtone.RingtoneViewHolder.VIEW_TYPE_CUSTOM_SOUND;
67 import static com.android.deskclock.ringtone.RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND;
387 private void startPlayingRingtone(RingtoneHolder ringtone) { in startPlayingRingtone() argument
388 if (!ringtone.isPlaying() && !ringtone.isSilent()) { in startPlayingRingtone()
389 RingtonePreviewKlaxon.start(getApplicationContext(), ringtone.getUri()); in startPlayingRingtone()
390 ringtone.setPlaying(true); in startPlayingRingtone()
393 if (!ringtone.isSelected()) { in startPlayingRingtone()
[all …]
DCustomRingtoneHolder.java17 package com.android.deskclock.ringtone;
23 CustomRingtoneHolder(CustomRingtone ringtone) { in CustomRingtoneHolder() argument
24 super(ringtone.getUri(), ringtone.getTitle(), ringtone.hasPermissions()); in CustomRingtoneHolder()
DRingtoneLoader.java17 package com.android.deskclock.ringtone;
88 for (CustomRingtone ringtone : mCustomRingtones) { in loadInBackground()
89 itemHolders.add(new CustomRingtoneHolder(ringtone)); in loadInBackground()
DSystemRingtoneHolder.java17 package com.android.deskclock.ringtone;
DAddCustomRingtoneHolder.java17 package com.android.deskclock.ringtone;
DHeaderHolder.java17 package com.android.deskclock.ringtone;
DHeaderViewHolder.java17 package com.android.deskclock.ringtone;
DRingtoneHolder.java17 package com.android.deskclock.ringtone;
DAddCustomRingtoneViewHolder.java17 package com.android.deskclock.ringtone;
/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java61 Ringtone ringtone = null; in getRingtone() local
65 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri); in getRingtone()
67 if(ringtone == null) { in getRingtone()
81 ringtone = RingtoneManager.getRingtone(contextToUse, defaultRingtoneUri); in getRingtone()
83 if (ringtone != null) { in getRingtone()
84 ringtone.setStreamType(AudioManager.STREAM_RING); in getRingtone()
86 return ringtone; in getRingtone()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.java68 public final TextView ringtone; field in ExpandedAlarmViewHolder
82 ringtone = (TextView) itemView.findViewById(R.id.choose_ringtone); in ExpandedAlarmViewHolder()
152 ringtone.setOnClickListener(new View.OnClickListener() { in ExpandedAlarmViewHolder()
207 ringtone.setText(title); in bindRingtone()
210 ringtone.setContentDescription(description + " " + title); in bindRingtone()
215 ringtone.setCompoundDrawablesRelativeWithIntrinsicBounds(icon, null, null, null); in bindRingtone()
279 ObjectAnimator.ofFloat(ringtone, TRANSLATION_Y, 0f), in onAnimateChange()
303 ringtone.setTranslationY(translationY); in setTranslationY()
370 final Animator ringtoneAnimation = ObjectAnimator.ofFloat(ringtone, View.ALPHA, 0f) in createCollapsingAnimator()
438 final Animator ringtoneAnimation = ObjectAnimator.ofFloat(ringtone, View.ALPHA, 1f) in createExpandingAnimator()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DRingtonePickerActivity.java520 Ringtone ringtone; in run() local
532 ringtone = mDefaultRingtone; in run()
535 ringtone = mRingtoneManager.getRingtone(getRingtoneManagerPosition(mSampleRingtonePos)); in run()
536 mCurrentRingtone = ringtone; in run()
539 if (ringtone != null) { in run()
541 ringtone.setAudioAttributes( in run()
542 new AudioAttributes.Builder(ringtone.getAudioAttributes()) in run()
546 ringtone.play(); in run()
/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/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/Dialer/java/com/android/dialer/util/
DSettingsUtil.java87 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); in getRingtoneName() local
88 if (ringtone != null) { in getRingtoneName()
90 final String title = ringtone.getTitle(context); in getRingtoneName()
/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/Dialer/java/com/android/incallui/
DStatusBarNotifier.java84 import com.android.incallui.ringtone.DialerRingtoneManager;
85 import com.android.incallui.ringtone.InCallTonePlayer;
86 import com.android.incallui.ringtone.ToneGeneratorFactory;
518 Uri ringtone) { in checkForChangeAndSaveData() argument
537 || !Objects.equals(mRingtone, ringtone); in checkForChangeAndSaveData()
554 mRingtone = ringtone; in checkForChangeAndSaveData()
/packages/apps/Settings/src/com/android/settings/notification/
DDefaultNotificationTonePreference.java59 public void setRingtone(Uri ringtone) { in setRingtone() argument
60 mRingtone = ringtone; in setRingtone()
DNotificationSoundPreference.java43 public void setRingtone(Uri ringtone) { in setRingtone() argument
44 mRingtone = ringtone; in setRingtone()
/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/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/java/com/android/incallui/ringtone/
DToneGeneratorFactory.java17 package com.android.incallui.ringtone;
DDialerRingtoneManager.java17 package com.android.incallui.ringtone;

12