Lines Matching refs:AudioManager
26 import android.media.AudioManager;
58 private final AudioManager mAudioManager;
86 mAudioManager = context.getSystemService(AudioManager.class);
104 if (mStreamType == AudioManager.STREAM_RING) {
106 } else if (mStreamType == AudioManager.STREAM_NOTIFICATION) {
116 return stream == AudioManager.STREAM_RING || stream == AudioManager.STREAM_NOTIFICATION;
140 } else if (mNotificationOrRing && mRingerMode == AudioManager.RINGER_MODE_VIBRATE) {
154 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_UNMUTE, 0);
156 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_MUTE, 0);
159 AudioManager.FLAG_SHOW_UI_WARNINGS);
383 final IntentFilter filter = new IntentFilter(AudioManager.VOLUME_CHANGED_ACTION);
384 filter.addAction(AudioManager.INTERNAL_RINGER_MODE_CHANGED_ACTION);
386 filter.addAction(AudioManager.STREAM_DEVICES_CHANGED_ACTION);
396 if (AudioManager.VOLUME_CHANGED_ACTION.equals(action)) {
397 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1);
398 int streamValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, -1);
400 } else if (AudioManager.INTERNAL_RINGER_MODE_CHANGED_ACTION.equals(action)) {
407 } else if (AudioManager.STREAM_DEVICES_CHANGED_ACTION.equals(action)) {
408 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1);