Home
last modified time | relevance | path

Searched refs:mAudioManager (Results 1 – 5 of 5) sorted by relevance

/development/samples/browseable/FindMyPhone/Application/src/com.example.android.wearable.findphone/
DSoundAlarmListenerService.java41 private AudioManager mAudioManager; field in SoundAlarmListenerService
50 mAudioManager = (AudioManager) getSystemService(AUDIO_SERVICE); in onCreate()
51 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM); in onCreate()
52 mMaxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_ALARM); in onCreate()
60 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0); in onDestroy()
77 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM); in onDataChanged()
80 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mMaxVolume, 0); in onDataChanged()
91 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0); in onDataChanged()
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DSoundRecorder.java51 private final AudioManager mAudioManager; field in SoundRecorder
68 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in SoundRecorder()
183 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, in startPlay()
184 mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0 /* flags */); in startPlay()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DClockBackService.java215 private AudioManager mAudioManager; field in ClockBackService
332 mAudioManager = (AudioManager) getSystemService(Service.AUDIO_SERVICE); in onServiceConnected()
335 int ringerMode = mAudioManager.getRingerMode(); in onServiceConnected()
385 int currentRingerVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING); in generateScreenOnOrOffUtternace()
386 int maxRingerVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING); in generateScreenOnOrOffUtternace()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DMainActivity.java98 private AudioManager mAudioManager; field in MainActivity
363 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
393 mAudioManager.requestAudioFocus(mAfChangeListener, AudioManager.STREAM_MUSIC, in registerRemoteControlClient()
395 mAudioManager.registerMediaButtonEventReceiver(mEventReceiver); in registerRemoteControlClient()
397 mAudioManager.registerRemoteControlClient(mRemoteControlClient); in registerRemoteControlClient()
410 mAudioManager.abandonAudioFocus(mAfChangeListener); in unregisterRemoteControlClient()
411 mAudioManager.unregisterMediaButtonEventReceiver(mEventReceiver); in unregisterRemoteControlClient()
412 mAudioManager.unregisterRemoteControlClient(mRemoteControlClient); in unregisterRemoteControlClient()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPlayback.java75 private AudioManager mAudioManager; field in Playback
99 this.mAudioManager = (AudioManager) service.getSystemService(Context.AUDIO_SERVICE); in Playback()
244 int result = mAudioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC, in tryToGetAudioFocus()
258 if (mAudioManager.abandonAudioFocus(this) == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) { in giveUpAudioFocus()