HomeSort by relevance Sort by last modified time
    Searched refs:ringtone (Results 1 - 25 of 40) sorted by null

1 2

  /packages/apps/DeskClock/src/com/android/deskclock/ringtone/
CustomRingtoneHolder.java 17 package com.android.deskclock.ringtone;
23 CustomRingtoneHolder(CustomRingtone ringtone) {
24 super(ringtone.getUri(), ringtone.getTitle(), ringtone.hasPermissions());
SystemRingtoneHolder.java 17 package com.android.deskclock.ringtone;
AddCustomRingtoneHolder.java 17 package com.android.deskclock.ringtone;
HeaderHolder.java 17 package com.android.deskclock.ringtone;
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. *
    [all...]
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...]
HeaderViewHolder.java 17 package com.android.deskclock.ringtone;
AddCustomRingtoneViewHolder.java 17 package com.android.deskclock.ringtone;
RingtoneHolder.java 17 package com.android.deskclock.ringtone;
  /packages/apps/Dialer/java/com/android/incallui/ringtone/
ToneGeneratorFactory.java 17 package com.android.incallui.ringtone;
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.
InCallTonePlayer.java 17 package com.android.incallui.ringtone;
  /packages/apps/DeskClock/src/com/android/deskclock/data/
RingtoneModel.java 29 import android.media.Ringtone;
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); local
91 getMutableCustomRingtones().add(ringtone);
93 return ringtone;
98 for (CustomRingtone ringtone : ringtones) {
99 if (ringtone.getUri().equals(uri))
136 final CustomRingtone ringtone = i.next(); local
180 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri); local
    [all...]
  /packages/services/Telecomm/src/com/android/server/telecom/
RingtoneFactory.java 24 import android.media.Ringtone;
40 * Uses the incoming {@link Call}'s ringtone URI (obtained by the Contact Lookup) to obtain a
41 * {@link Ringtone} from the {@link RingtoneManager} that can be played by the system during an
42 * incoming call. If the ringtone URI is null, use the default Ringtone for the active user.
55 public Ringtone getRingtone(Call incomingCall) {
56 // Use the default ringtone of the work profile if the contact is a work profile contact.
61 Ringtone ringtone = null; local
64 // Ringtone URI is explicitly specified. First, try to create a Ringtone with that
    [all...]
  /packages/apps/PhoneCommon/src/com/android/phone/common/util/
SettingsUtil.java 23 import android.media.Ringtone;
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
72 // up as "Unknown Ringtone".
81 // Is it a silent ringtone?
85 // Fetch the ringtone title from the media provider
86 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); local
87 if (ringtone != null)
    [all...]
  /packages/apps/Settings/src/com/android/settings/notification/
DefaultNotificationTonePreference.java 28 import android.media.Ringtone;
59 public void setRingtone(Uri ringtone) {
60 mRingtone = ringtone;
68 return Ringtone.getTitle(mUserContext, uri, false /* followSettingsUri */,
NotificationSoundPreference.java 22 import android.media.Ringtone;
43 public void setRingtone(Uri ringtone) {
44 mRingtone = ringtone;
71 return Ringtone.getTitle(getContext(), uri, false /* followSettingsUri */,
  /packages/apps/Dialer/java/com/android/dialer/util/
SettingsUtil.java 22 import android.media.Ringtone;
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
64 // up as "Unknown Ringtone".
82 // Is it a silent ringtone?
86 // Fetch the ringtone title from the media provider
87 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); local
88 if (ringtone != null)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/data/
PeopleOptionsItemData.java 20 import android.media.Ringtone;
95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri); local
96 if (ringtone != null) {
97 mSubtitle = ringtone.getTitle(mContext);
  /build/make/target/product/
full_base.mk 42 ro.config.ringtone=Ring_Synth_04.ogg \
  /cts/tests/tests/media/src/android/media/cts/
RingtoneManagerTest.java 27 import android.media.Ringtone;
150 Ringtone r = mRingtoneManager.getRingtone(0);
169 Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri); local
170 ringtone.play();
171 assertTrue(ringtone.isPlaying());
172 ringtone.stop();
173 assertFalse(ringtone.isPlaying());
174 Ringtone newRingtone = mRingtoneManager.getRingtone(0);
175 assertFalse(ringtone.isPlaying())
    [all...]
  /external/libbackup/src/com/google/android/libraries/backup/
PreferenceBackupUtil.java 6 import android.media.Ringtone;
24 Ringtone sound = RingtoneManager.getRingtone(context, Uri.parse(uri));
32 * Get ringtone uri from a preference key in a shared preferences file, retrieve the associated
33 * ringtone's title and, if possible, save the title to the target preference key.
35 * @param srcRingtoneUriPrefKey preference key of the ringtone uri.
36 * @param dstRingtoneTitlePrefKey preference key where the ringtone title should be put.
56 // Check whether the ringtoneType is a valid combination of the 3 ringtone types.
69 Ringtone ringtone = manager.getRingtone(i); local
70 if (ringtone.getTitle(context).equals(title))
    [all...]
  /packages/providers/MediaProvider/src/com/android/providers/media/
RingtonePickerActivity.java 28 import android.media.Ringtone;
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.
124 private Ringtone mDefaultRingtone;
127 * The ringtone that's currently playing, unless the currently playing one is the defaul
520 Ringtone ringtone; local
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
ExpandedAlarmViewHolder.java 68 public final TextView ringtone; field in class:ExpandedAlarmViewHolder
82 ringtone = (TextView) itemView.findViewById(R.id.choose_ringtone);
151 // Ringtone editor handler
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
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/alerts/
AlertService.java 876 String ringtone = NotificationPrefs.EMPTY_RINGTONE; local
969 private String ringtone = null; field in class:AlertService.NotificationPrefs
    [all...]

Completed in 612 milliseconds

1 2