HomeSort by relevance Sort by last modified time
    Searched defs:ringtone (Results 1 - 25 of 31) 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());
AddCustomRingtoneHolder.java 17 package com.android.deskclock.ringtone;
SystemRingtoneHolder.java 17 package com.android.deskclock.ringtone;
HeaderHolder.java 17 package com.android.deskclock.ringtone;
HeaderViewHolder.java 17 package com.android.deskclock.ringtone;
AddCustomRingtoneViewHolder.java 17 package com.android.deskclock.ringtone;
RingtoneHolder.java 17 package com.android.deskclock.ringtone;
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...]
RingtoneViewHolder.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...]
  /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;
  /cts/tests/tests/media/src/android/media/cts/
RingtoneManagerTest.java 28 import android.media.Ringtone;
158 Ringtone r = mRingtoneManager.getRingtone(0);
177 Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri); local
178 ringtone.play();
179 assertTrue(ringtone.isPlaying());
180 ringtone.stop();
181 assertFalse(ringtone.isPlaying());
182 Ringtone newRingtone = mRingtoneManager.getRingtone(0);
183 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/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/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/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...]
Ringer.java 28 import android.media.Ringtone;
38 * Controls the ringtone player.
156 // 2. Volume is over zero, we should ring for the contact, and there's a audible ringtone
187 // request the custom ringtone from the call and expect it to be current.
209 Ringtone ringtone = factory.getRingtone(call); local
210 Uri ringtoneUri = ringtone != null ? ringtone.getUri() : null;
  /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/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/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);
  /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/
HandleApiCalls.java 589 * <li>ringtone uri</li>
625 selection.append(" AND ").append(Alarm.RINGTONE).append("=?");
627 // If the intent explicitly specified a NULL ringtone, treat it as the default ringtone.
629 final Uri ringtone = getAlertFromIntent(intent, defaultRingtone); local
630 args.add(ringtone.toString());
  /packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
SoundSettingsTest.java 184 * Rather than verifying every ringtone, verify the ones least likely to change
185 * (None and Hangouts) and an arbitrary one from the ringtone pool.
190 mHelper.clickSetting("Phone ringtone");
192 Settings.System.RINGTONE);
199 mHelper.clickSetting("Phone ringtone");
200 verifyRingtone(new RingtoneSetting("Hangouts Call", "31"), Settings.System.RINGTONE);
206 mHelper.clickSetting("Phone ringtone");
207 String ringtone = ringtoneSounds.get(mDevice.getProductName()).toString(); local
209 verifyRingtone(new RingtoneSetting(ringtone, ringtoneSettingValue),
210 Settings.System.RINGTONE);
    [all...]

Completed in 327 milliseconds

1 2