/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
H A D | CustomRingtoneHolder.java | 17 package com.android.deskclock.ringtone; 23 CustomRingtoneHolder(CustomRingtone ringtone) { argument 24 super(ringtone.getUri(), ringtone.getTitle(), ringtone.hasPermissions());
|
H A D | SystemRingtoneHolder.java | 17 package com.android.deskclock.ringtone;
|
H A D | AddCustomRingtoneHolder.java | 17 package com.android.deskclock.ringtone;
|
H A D | HeaderHolder.java | 17 package com.android.deskclock.ringtone;
|
H A 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; 73 * <li>a ringtone representing pure silence</li> 74 * <li>a ringtone representing a default ringtone</li> 84 /** Key to an extra that identifies the alarm to which the selected ringtone is attached. */ 87 /** Key to an extra that identifies the selected ringtone 387 startPlayingRingtone(RingtoneHolder ringtone) argument 405 stopPlayingRingtone(RingtoneHolder ringtone, boolean deselect) argument [all...] |
H A D | RingtoneLoader.java | 17 package com.android.deskclock.ringtone; 39 * Assembles the list of ItemHolders that back the RecyclerView used to choose a ringtone. 63 // Prime the ringtone title cache for later access. 75 LogUtils.e("Could not get system ringtone cursor"); 87 // Add an item holder for each custom ringtone and also cache a pretty name. 88 for (CustomRingtone ringtone : mCustomRingtones) { 89 itemHolders.add(new CustomRingtoneHolder(ringtone)); 92 // Add an item holder for the "Add new" music ringtone. 98 // Add an item holder for the silent ringtone. 104 // Add an item holder for each system ringtone [all...] |
H A D | HeaderViewHolder.java | 17 package com.android.deskclock.ringtone;
|
H A D | AddCustomRingtoneViewHolder.java | 17 package com.android.deskclock.ringtone;
|
H A D | RingtoneHolder.java | 17 package com.android.deskclock.ringtone;
|
H A D | RingtoneViewHolder.java | 17 package com.android.deskclock.ringtone;
|
/packages/apps/Dialer/java/com/android/incallui/ringtone/ |
H A D | ToneGeneratorFactory.java | 17 package com.android.incallui.ringtone;
|
H A D | DialerRingtoneManager.java | 17 package com.android.incallui.ringtone; 59 * Determines if a ringtone should be played for the given call state (see {@link State}) and 63 * @param ringtoneUri the ringtone to potentially play. 64 * @return {@code true} if the ringtone should be played, {@code false} otherwise.
|
H A D | InCallTonePlayer.java | 17 package com.android.incallui.ringtone;
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
H A D | RingtoneModel.java | 51 * All ringtone data is accessed via this model. 59 /** Maps ringtone uri to ringtone title; looking up a title from scratch is expensive. */ 84 // If the uri is already present in an existing ringtone, do nothing. 90 final CustomRingtone ringtone = CustomRingtoneDAO.addCustomRingtone(mPrefs, uri, title); 91 getMutableCustomRingtones().add(ringtone); 93 return ringtone; 98 for (CustomRingtone ringtone : ringtones) { 99 if (ringtone.getUri().equals(uri)) { 100 CustomRingtoneDAO.removeCustomRingtone(mPrefs, ringtone [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | RingtoneFactory.java | 40 * Uses the incoming {@link Call}'s ringtone URI (obtained by the Contact Lookup) to obtain a 42 * incoming call. If the ringtone URI is null, use the default Ringtone for the active user. 56 // Use the default ringtone of the work profile if the contact is a work profile contact. 61 Ringtone ringtone = null; 65 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri); 67 if(ringtone == null) { 68 // Contact didn't specify ringtone or custom Ringtone creation failed. Get default 69 // ringtone for user or profile. 81 ringtone = RingtoneManager.getRingtone(contextToUse, defaultRingtoneUri); 83 if (ringtone ! [all...] |
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
H A D | SettingsUtil.java | 44 * 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/Settings/src/com/android/settings/notification/ |
H A D | DefaultNotificationTonePreference.java | 59 public void setRingtone(Uri ringtone) { argument 60 mRingtone = ringtone;
|
H A D | NotificationSoundPreference.java | 43 public void setRingtone(Uri ringtone) { argument 44 mRingtone = ringtone;
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | SettingsUtil.java | 36 * Queries for a ringtone name, and sets the name using a handler. This is a method was originally 40 * @param handler The handler, which takes the name of the ringtone as a String as a parameter. 58 // silent ringtone 82 // Is it a silent ringtone? 86 // Fetch the ringtone title from the media provider 87 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); 88 if (ringtone != null) { 90 final String title = ringtone.getTitle(context); 95 // Unknown title for the ringtone
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
H A D | PeopleOptionsItemData.java | 95 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 D | RingtonePickerActivity.java | 60 * available ringtones. The chosen ringtone's URI will be persisted as a string. 95 /** The position in the list of the ringtone to sample. */ 113 /** Id of the user to which the ringtone picker should list the ringtones */ 120 * A Ringtone for the default ringtone. In most cases, the RingtoneManager 121 * will stop the previous ringtone. However, the RingtoneManager doesn't 122 * manage the default ringtone for us, so we should stop this one manually. 127 * The ringtone that's currently playing, unless the currently playing one is the default 128 * ringtone. 133 * Stable ID for the ringtone that is currently checked (may be -1 if no ringtone i [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
H A D | ExpandedAlarmViewHolder.java | 68 public final TextView ringtone; field in class:ExpandedAlarmViewHolder 82 ringtone = (TextView) itemView.findViewById(R.id.choose_ringtone); 152 ringtone.setOnClickListener(new View.OnClickListener() { 207 ringtone.setText(title); 210 ringtone.setContentDescription(description + " " + title); 215 ringtone.setCompoundDrawablesRelativeWithIntrinsicBounds(icon, null, null, null); 279 ObjectAnimator.ofFloat(ringtone, TRANSLATION_Y, 0f), 303 ringtone.setTranslationY(translationY); 370 final Animator ringtoneAnimation = ObjectAnimator.ofFloat(ringtone, View.ALPHA, 0f) 438 final Animator ringtoneAnimation = ObjectAnimator.ofFloat(ringtone, Vie [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertService.java | 876 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 D | GeneralPreferences.java | 330 String ringtone = getRingtoneTitleFromUri(activity, (String) newValue); 331 mRingtone.setSummary(ringtone == null ? "" : ringtone);
|
/packages/services/Car/car_product/build/ |
H A D | car.mk | 67 ro.config.ringtone=Girtab.ogg \
|