@@ -88,6 +88,8 @@ public class AudioManager {
8888 *
8989 * @see #EXTRA_VIBRATE_TYPE
9090 * @see #EXTRA_VIBRATE_SETTING
91+ * @deprecated Applications should maintain their own vibrate policy based on
92+ * current ringer mode and listen to {@link #RINGER_MODE_CHANGED_ACTION} instead.
9193 */
9294 @ SdkConstant (SdkConstantType .BROADCAST_INTENT_ACTION )
9395 public static final String VIBRATE_SETTING_CHANGED_ACTION =
@@ -133,6 +135,8 @@ public class AudioManager {
133135 * @see #VIBRATE_SETTING_ON
134136 * @see #VIBRATE_SETTING_OFF
135137 * @see #VIBRATE_SETTING_ONLY_SILENT
138+ * @deprecated Applications should maintain their own vibrate policy based on
139+ * current ringer mode and listen to {@link #RINGER_MODE_CHANGED_ACTION} instead.
136140 */
137141 public static final String EXTRA_VIBRATE_SETTING = "android.media.EXTRA_VIBRATE_SETTING" ;
138142
@@ -142,6 +146,8 @@ public class AudioManager {
142146 * @see #VIBRATE_SETTING_CHANGED_ACTION
143147 * @see #VIBRATE_TYPE_NOTIFICATION
144148 * @see #VIBRATE_TYPE_RINGER
149+ * @deprecated Applications should maintain their own vibrate policy based on
150+ * current ringer mode and listen to {@link #RINGER_MODE_CHANGED_ACTION} instead.
145151 */
146152 public static final String EXTRA_VIBRATE_TYPE = "android.media.EXTRA_VIBRATE_TYPE" ;
147153
@@ -340,6 +346,8 @@ public class AudioManager {
340346 * @see #setVibrateSetting(int, int)
341347 * @see #getVibrateSetting(int)
342348 * @see #shouldVibrate(int)
349+ * @deprecated Applications should maintain their own vibrate policy based on
350+ * current ringer mode that can be queried via {@link #getRingerMode()}.
343351 */
344352 public static final int VIBRATE_TYPE_RINGER = 0 ;
345353
@@ -349,6 +357,8 @@ public class AudioManager {
349357 * @see #setVibrateSetting(int, int)
350358 * @see #getVibrateSetting(int)
351359 * @see #shouldVibrate(int)
360+ * @deprecated Applications should maintain their own vibrate policy based on
361+ * current ringer mode that can be queried via {@link #getRingerMode()}.
352362 */
353363 public static final int VIBRATE_TYPE_NOTIFICATION = 1 ;
354364
@@ -357,6 +367,8 @@ public class AudioManager {
357367 *
358368 * @see #setVibrateSetting(int, int)
359369 * @see #getVibrateSetting(int)
370+ * @deprecated Applications should maintain their own vibrate policy based on
371+ * current ringer mode that can be queried via {@link #getRingerMode()}.
360372 */
361373 public static final int VIBRATE_SETTING_OFF = 0 ;
362374
@@ -365,6 +377,8 @@ public class AudioManager {
365377 *
366378 * @see #setVibrateSetting(int, int)
367379 * @see #getVibrateSetting(int)
380+ * @deprecated Applications should maintain their own vibrate policy based on
381+ * current ringer mode that can be queried via {@link #getRingerMode()}.
368382 */
369383 public static final int VIBRATE_SETTING_ON = 1 ;
370384
@@ -374,6 +388,8 @@ public class AudioManager {
374388 *
375389 * @see #setVibrateSetting(int, int)
376390 * @see #getVibrateSetting(int)
391+ * @deprecated Applications should maintain their own vibrate policy based on
392+ * current ringer mode that can be queried via {@link #getRingerMode()}.
377393 */
378394 public static final int VIBRATE_SETTING_ONLY_SILENT = 2 ;
379395
@@ -966,6 +982,8 @@ public void forceVolumeControlStream(int streamType) {
966982 * called.
967983 * @see #setVibrateSetting(int, int)
968984 * @see #getVibrateSetting(int)
985+ * @deprecated Applications should maintain their own vibrate policy based on
986+ * current ringer mode that can be queried via {@link #getRingerMode()}.
969987 */
970988 public boolean shouldVibrate (int vibrateType ) {
971989 IAudioService service = getService ();
@@ -991,6 +1009,8 @@ public boolean shouldVibrate(int vibrateType) {
9911009 * {@link #VIBRATE_SETTING_ONLY_SILENT}.
9921010 * @see #setVibrateSetting(int, int)
9931011 * @see #shouldVibrate(int)
1012+ * @deprecated Applications should maintain their own vibrate policy based on
1013+ * current ringer mode that can be queried via {@link #getRingerMode()}.
9941014 */
9951015 public int getVibrateSetting (int vibrateType ) {
9961016 IAudioService service = getService ();
@@ -1017,6 +1037,8 @@ public int getVibrateSetting(int vibrateType) {
10171037 * {@link #VIBRATE_SETTING_ONLY_SILENT}.
10181038 * @see #getVibrateSetting(int)
10191039 * @see #shouldVibrate(int)
1040+ * @deprecated Applications should maintain their own vibrate policy based on
1041+ * current ringer mode that can be queried via {@link #getRingerMode()}.
10201042 */
10211043 public void setVibrateSetting (int vibrateType , int vibrateSetting ) {
10221044 IAudioService service = getService ();
0 commit comments