/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | RingtoneModel.java | 90 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/ |
D | RingtonePickerActivity.java | 17 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 …]
|
D | CustomRingtoneHolder.java | 17 package com.android.deskclock.ringtone; 23 CustomRingtoneHolder(CustomRingtone ringtone) { in CustomRingtoneHolder() argument 24 super(ringtone.getUri(), ringtone.getTitle(), ringtone.hasPermissions()); in CustomRingtoneHolder()
|
D | RingtoneLoader.java | 17 package com.android.deskclock.ringtone; 88 for (CustomRingtone ringtone : mCustomRingtones) { in loadInBackground() 89 itemHolders.add(new CustomRingtoneHolder(ringtone)); in loadInBackground()
|
D | SystemRingtoneHolder.java | 17 package com.android.deskclock.ringtone;
|
D | AddCustomRingtoneHolder.java | 17 package com.android.deskclock.ringtone;
|
D | HeaderHolder.java | 17 package com.android.deskclock.ringtone;
|
D | HeaderViewHolder.java | 17 package com.android.deskclock.ringtone;
|
D | RingtoneHolder.java | 17 package com.android.deskclock.ringtone;
|
D | AddCustomRingtoneViewHolder.java | 17 package com.android.deskclock.ringtone;
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RingtoneFactory.java | 61 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/ |
D | ExpandedAlarmViewHolder.java | 68 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/ |
D | RingtonePickerActivity.java | 520 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/ |
D | AlertService.java | 876 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/ |
D | SettingsUtil.java | 86 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/ |
D | SettingsUtil.java | 87 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/ |
D | PeopleOptionsItemData.java | 95 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/ |
D | StatusBarNotifier.java | 83 import com.android.incallui.ringtone.DialerRingtoneManager; 84 import com.android.incallui.ringtone.InCallTonePlayer; 85 import com.android.incallui.ringtone.ToneGeneratorFactory; 524 Uri ringtone) { in checkForChangeAndSaveData() argument 543 || !Objects.equals(mRingtone, ringtone); in checkForChangeAndSaveData() 560 mRingtone = ringtone; in checkForChangeAndSaveData()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | DefaultNotificationTonePreference.java | 59 public void setRingtone(Uri ringtone) { in setRingtone() argument 60 mRingtone = ringtone; in setRingtone()
|
D | NotificationSoundPreference.java | 43 public void setRingtone(Uri ringtone) { in setRingtone() argument 44 mRingtone = ringtone; in setRingtone()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.java | 330 String ringtone = getRingtoneTitleFromUri(activity, (String) newValue); in onPreferenceChange() local 331 mRingtone.setSummary(ringtone == null ? "" : ringtone); in onPreferenceChange()
|
D | Utils.java | 416 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/ |
D | AccountSettingsFragment.java | 256 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/ |
D | ToneGeneratorFactory.java | 17 package com.android.incallui.ringtone;
|
D | DialerRingtoneManager.java | 17 package com.android.incallui.ringtone;
|