/cts/tests/tests/media/src/android/media/cts/ |
RingtoneManagerTest.java | 27 import android.media.RingtoneManager; 40 private RingtoneManager mRingtoneManager; 55 mRingtoneManager = new RingtoneManager(mActivity); 59 mDefaultUri = RingtoneManager.getActualDefaultRingtoneUri(mContext, 60 RingtoneManager.TYPE_RINGTONE); 72 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, 78 new RingtoneManager(mActivity); 79 new RingtoneManager(mContext); 87 assertNotNull(RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI)) [all...] |
RingtoneTest.java | 23 import android.media.RingtoneManager; 43 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI); 55 mDefaultRingUri = RingtoneManager.getActualDefaultRingtoneUri(mContext, 56 RingtoneManager.TYPE_RINGTONE); 71 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, 90 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, null); 91 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI); 96 Uri uri = RingtoneManager.getValidRingtoneUri(mContext) [all...] |
RingtonePickerActivity.java | 21 * This activity is just for create a RingtoneManager
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
FolderPreferences.java | 24 import android.media.RingtoneManager; 151 if (RingtoneManager.isDefault(uri)) { 154 final RingtoneManager ringtoneManager = new RingtoneManager(getContext()); 155 ringtoneManager.setType(RingtoneManager.TYPE_NOTIFICATION); 156 final Cursor cursor = ringtoneManager.getCursor(); 160 Uri.parse(cursor.getString(RingtoneManager.URI_COLUMN_INDEX)), 161 cursor.getLong(RingtoneManager.ID_COLUMN_INDEX)) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
DefaultRingtonePreference.java | 22 import android.media.RingtoneManager; 43 ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false); 48 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri); 53 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
|
/packages/services/Telephony/src/com/android/phone/ |
DefaultRingtonePreference.java | 21 import android.media.RingtoneManager; 44 ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false); 49 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri); 54 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
|
/frameworks/base/core/java/android/preference/ |
RingtonePreference.java | 22 import android.media.RingtoneManager; 59 RingtoneManager.TYPE_RINGTONE); 89 * @see RingtoneManager#EXTRA_RINGTONE_TYPE 109 * @see RingtoneManager#EXTRA_RINGTONE_SHOW_DEFAULT 128 * @see RingtoneManager#EXTRA_RINGTONE_SHOW_SILENT 137 Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); 156 ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, 159 ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, mShowDefault); 161 ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_DEFAULT_URI, 162 RingtoneManager.getDefaultUri(getRingtoneType())) [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
RingtonePickerActivity.java | 23 import android.media.RingtoneManager; 42 * @see RingtoneManager#ACTION_RINGTONE_PICKER 56 private RingtoneManager mRingtoneManager; 90 * A Ringtone for the default ringtone. In most cases, the RingtoneManager 91 * will stop the previous ringtone. However, the RingtoneManager doesn't 136 mHasDefaultItem = intent.getBooleanExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true); 137 mUriForDefaultItem = intent.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_DEFAULT_URI); 146 mHasSilentItem = intent.getBooleanExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, true); 149 mRingtoneManager = new RingtoneManager(this); 152 mType = intent.getIntExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, -1) [all...] |
/frameworks/base/docs/html/sdk/api_diff/19/changes/ |
android.media.RingtoneManager.html | 10 android.media.RingtoneManager 74 Class android.media.<A HREF="../../../../reference/android/media/RingtoneManager.html" target="_top"><font size="+2"><code>RingtoneManager</code></font></A> 86 <A NAME="android.media.RingtoneManager.getIncludeDrm_changed()"></A> 87 <nobr><code>boolean</code> <A HREF="../../../../reference/android/media/RingtoneManager.html#getIncludeDrm()" target="_top"><code>getIncludeDrm</code></A>() </nobr> 96 <A NAME="android.media.RingtoneManager.setIncludeDrm_changed(boolean)"></A> 97 <nobr><code>void</code> <A HREF="../../../../reference/android/media/RingtoneManager.html#setIncludeDrm(boolean)" target="_top"><code>setIncludeDrm</code></A>(<code>boolean</code>) </nobr> 115 <A NAME="android.media.RingtoneManager.EXTRA_RINGTONE_INCLUDE_DRM"></A> 116 <nobr><code>String</code> <A HREF="../../../../reference/android/media/RingtoneManager.html#EXTRA_RINGTONE_INCLUDE_DRM" target="_top"><code>EXTRA_RINGTONE_INCLUDE_DRM</code></font></A></nobr> </TD>
|
fields_index_changes.html | 66 <nobr><A HREF="android.media.RingtoneManager.html#android.media.RingtoneManager.EXTRA_RINGTONE_INCLUDE_DRM" class="hiddenlink" target="rightframe">EXTRA_RINGTONE_INCLUDE_DRM</A>
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertReminder.java | 26 import android.media.RingtoneManager; 81 * Use the RingtoneManager to play the alert reminder sound. 84 Uri notificationUri = RingtoneManager.getDefaultUri( 85 RingtoneManager.TYPE_NOTIFICATION | RingtoneManager.TYPE_ALARM); 90 Ringtone r = RingtoneManager.getRingtone(this, notificationUri);
|
CellBroadcastAlertAudio.java | 29 import android.media.RingtoneManager; 374 Uri notificationUri = RingtoneManager.getDefaultUri( 375 RingtoneManager.TYPE_NOTIFICATION | RingtoneManager.TYPE_ALARM); 380 Ringtone r = RingtoneManager.getRingtone(this, notificationUri);
|
/frameworks/base/docs/html/sdk/api_diff/3/changes/ |
android.media.RingtoneManager.html | 10 android.media.RingtoneManager 74 Class android.media.<A HREF="../../../../reference/android/media/RingtoneManager.html" target="_top"><font size="+2"><code>RingtoneManager</code></font></A> 86 <A NAME="android.media.RingtoneManager.inferStreamType_added()"></A> 87 <nobr><code>int</code> <A HREF="../../../../reference/android/media/RingtoneManager.html#inferStreamType()" target="_top"><code>inferStreamType</code></A>()</nobr>
|
/frameworks/base/media/java/android/media/ |
Ringtone.java | 38 * picker, see {@link RingtoneManager}. 40 * @see RingtoneManager 118 Uri actualUri = RingtoneManager.getActualDefaultRingtoneUri(context, 119 RingtoneManager.getDefaultType(uri)); 282 int ringtoneType = RingtoneManager.getDefaultType(mUri); 284 RingtoneManager.getActualDefaultRingtoneUri(mContext, ringtoneType) != null) {
|
RingtoneManager.java | 39 * RingtoneManager provides access to ringtones, notification, and other types 51 public class RingtoneManager { 53 private static final String TAG = "RingtoneManager"; 227 * Constructs a RingtoneManager. This constructor is recommended as its 232 public RingtoneManager(Activity activity) { 238 * Constructs a RingtoneManager. The instance constructed by this 244 public RingtoneManager(Context context) { 351 * If {@link RingtoneManager#RingtoneManager(Activity)} was not used, the 410 * Gets the position of a {@link Uri} within this {@link RingtoneManager} [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactLoaderFragment.java | 27 import android.media.RingtoneManager; 422 Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); 424 intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true); 426 intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); 428 intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, true); 435 ringtoneUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE); 439 intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, ringtoneUri); 453 Uri pickedUri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmKlaxon.java | 24 import android.media.RingtoneManager; 76 alarmNoise = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); 82 // TODO: Reuse mMediaPlayer instead of creating a new one and/or use RingtoneManager.
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 26 import android.media.RingtoneManager; 113 ? RingtoneManager.TYPE_RINGTONE : RingtoneManager.TYPE_NOTIFICATION; 114 RingtoneManager.setActualDefaultRingtoneUri(mContext, ringtoneType, ringtoneUri);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
HandleApiCalls.java | 23 import android.media.RingtoneManager; 140 alarm.alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); 282 ringTone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM).toString();
|
TimerRingService.java | 27 import android.media.RingtoneManager; 111 // RingtoneManager.
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
Alarm.java | 26 import android.media.RingtoneManager; 242 this.alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); 259 alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
|
AlarmInstance.java | 25 import android.media.RingtoneManager; 283 mRingtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettingsFragment.java | 27 import android.media.RingtoneManager; 308 Uri uri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI); 321 mRingtone = RingtoneManager.getRingtone(getActivity(), ringtone); 593 mRingtone = RingtoneManager.getRingtone(getActivity(), Uri.parse(ringtoneUri)); [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
AvailableIntentsTest.java | 25 import android.media.RingtoneManager; 239 assertCanBeHandled(new Intent(RingtoneManager.ACTION_RINGTONE_PICKER));
|
/frameworks/base/services/java/com/android/server/ |
DockObserver.java | 24 import android.media.RingtoneManager; 176 final Ringtone sfx = RingtoneManager.getRingtone(mContext, soundUri);
|