Lines Matching refs:AudioManager
23 import android.media.AudioManager;
24 import android.media.AudioManager.OnAudioFocusChangeListener;
191 private AudioManager mAudioManager;
226 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
351 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:
352 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK:
359 case AudioManager.AUDIOFOCUS_LOSS:
367 case AudioManager.AUDIOFOCUS_GAIN:
477 int result = mAudioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC,
478 AudioManager.AUDIOFOCUS_GAIN);
479 mHasAudioFocus = result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED;