/cts/tests/tests/media/src/android/media/cts/ |
RingtoneManagerTest.java | 27 import android.media.Ringtone; 125 Ringtone r = mRingtoneManager.getRingtone(0); 141 Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri); local 142 ringtone.play(); 143 assertTrue(ringtone.isPlaying()); 144 ringtone.stop(); 145 assertFalse(ringtone.isPlaying()); 146 Ringtone newRingtone = mRingtoneManager.getRingtone(0); 147 assertFalse(ringtone.isPlaying()) [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
RingtonePickerActivity.java | 22 import android.media.Ringtone; 40 * available ringtones. The chosen ringtone's URI will be persisted as a string. 71 /** The position in the list of the ringtone to sample. */ 90 * A Ringtone for the default ringtone. In most cases, the RingtoneManager 91 * will stop the previous ringtone. However, the RingtoneManager doesn't 92 * manage the default ringtone for us, so we should stop this one manually. 94 private Ringtone mDefaultRingtone; 97 * The ringtone that's currently playing, unless the currently playing one is the default 98 * ringtone 309 Ringtone ringtone; local [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
GeneralPreferences.java | 27 import android.media.Ringtone; 172 // the Ringtone dialog will open up with the correct value. 330 String ringtone = getRingtoneTitleFromUri(activity, (String) newValue); local 331 mRingtone.setSummary(ringtone == null ? "" : ringtone); 348 Ringtone ring = RingtoneManager.getRingtone(getActivity(), Uri.parse(uri));
|
Utils.java | 408 // default value when the ringtone dialog opens up. 412 // ringtone. 416 String ringtone = prefs.getString(GeneralPreferences.KEY_ALERTS_RINGTONE, null); local 421 if (ringtone == null) { 423 ringtone = getSharedPreference(context, GeneralPreferences.KEY_ALERTS_RINGTONE, 427 setRingTonePreference(context, ringtone); 430 return ringtone; [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmClockFragment.java | 39 import android.media.Ringtone; 127 private Bundle mRingtoneTitleCache; // Key: ringtone uri, value: ringtone title 473 // Save the last selected ringtone as the default for new alarms 541 TextView ringtone; field in class:AlarmClockFragment.AlarmItemAdapter.ItemHolder 677 holder.ringtone = (TextView) view.findViewById(R.id.choose_ringtone); 977 final String ringtone; local [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...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettingsFragment.java | 28 import android.media.Ringtone; 137 private Ringtone mRingtone; 254 * Sets the current ringtone. 256 private void setRingtone(Uri ringtone) { 257 if (ringtone != null) { 258 mInboxFolderPreferences.setNotificationRingtoneUri(ringtone.toString()); 259 mRingtone = RingtoneManager.getRingtone(getActivity(), ringtone); [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsProvider2Test.java | 5632 String ringtone = c.getString(c.getColumnIndex(Contacts.CUSTOM_RINGTONE)); local [all...] |