diff options
author | 2024-02-05 13:45:10 +0000 | |
---|---|---|
committer | 2024-02-05 14:10:28 +0000 | |
commit | ba4bf1dffa2a9bf41744de8ca079bec88c124ab8 (patch) | |
tree | 8a4fa0ad125faa4c1c0f6b38e0ce040d938dfcca | |
parent | b846b6d5cb832094bdf13425c7db3796bf59f985 (diff) |
Revert "Add new extras and categories to the RingtoneManager class."
This reverts commit ffac374d4cd0d022ecc5c3718fcd2307a95d4b6d.
Bug: 323853450
Change-Id: I1ba2662f99669abefbee7ec2e0340c2474f45557
-rw-r--r-- | media/java/android/media/RingtoneManager.java | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/media/java/android/media/RingtoneManager.java b/media/java/android/media/RingtoneManager.java index 12db8c0824db..c4f2159a23dc 100644 --- a/media/java/android/media/RingtoneManager.java +++ b/media/java/android/media/RingtoneManager.java @@ -30,7 +30,6 @@ import android.content.ContentProvider; import android.content.ContentResolver; import android.content.ContentUris; import android.content.Context; -import android.content.Intent; import android.content.pm.PackageManager.NameNotFoundException; import android.content.pm.UserInfo; import android.content.res.AssetFileDescriptor; @@ -121,53 +120,6 @@ public class RingtoneManager { public static final String ACTION_RINGTONE_PICKER = "android.intent.action.RINGTONE_PICKER"; /** - * Given to the ringtone picker as a string that represents the category of ringtone picker that - * should be used. This value should also be returned once a ringtone is selected. - * <p> - * The categories are: - * <li>{@link #CATEGORY_RINGTONE_PICKER_SOUND} - * <li>{@link #CATEGORY_RINGTONE_PICKER_VIBRATION} - * <li>{@link #CATEGORY_RINGTONE_PICKER_RINGTONE} - * <li>{@link Intent#CATEGORY_DEFAULT} - * - * <p> If the category is {@link Intent#CATEGORY_DEFAULT} or absent, then the picker will - * default to a sound-only ringtone picker. - * - * <p> If the selected category was not supported, then the returned category will be null. - * - * @hide - */ - public static final String EXTRA_RINGTONE_PICKER_CATEGORY = - "android.intent.extra.ringtone.RINGTONE_PICKER_CATEGORY"; - - /** - * A sound-only ringtone picker. - * - * @hide - * @see #EXTRA_RINGTONE_PICKER_CATEGORY - */ - public static final String CATEGORY_RINGTONE_PICKER_SOUND = - "android.net.category.RINGTONE_PICKER_SOUND"; - - /** - * A vibration-only ringtone picker. - * - * @hide - * @see #EXTRA_RINGTONE_PICKER_CATEGORY - */ - public static final String CATEGORY_RINGTONE_PICKER_VIBRATION = - "android.net.category.RINGTONE_PICKER_VIBRATION"; - - /** - * A combined sound and vibration ringtone picker. - * - * @hide - * @see #EXTRA_RINGTONE_PICKER_CATEGORY - */ - public static final String CATEGORY_RINGTONE_PICKER_RINGTONE = - "android.net.category.RINGTONE_PICKER_RINGTONE"; - - /** * Given to the ringtone picker as a boolean. Whether to show an item for * "Default". * @@ -208,18 +160,6 @@ public class RingtoneManager { */ public static final String EXTRA_RINGTONE_EXISTING_URI = "android.intent.extra.ringtone.EXISTING_URI"; - - /** - * Similar to #EXTRA_RINGTONE_EXISTING_URI but the {@link Uri} can include both sound and - * vibration. - * <p>This can include silent sound/vibration explicitly by setting that part of the URI to - * null. - * - * @hide - * @see #ACTION_RINGTONE_PICKER - */ - public static final String EXTRA_RINGTONE_EXISTING_RINGTONE_URI = - "android.intent.extra.ringtone.RINGTONE_EXISTING_RINGTONE_URI"; /** * Given to the ringtone picker as a {@link Uri}. The {@link Uri} of the |