Searched refs:mAudioManager (Results 1 – 8 of 8) sorted by relevance
/development/samples/browseable/FindMyPhone/Application/src/com.example.android.wearable.findphone/ |
D | SoundAlarmListenerService.java | 41 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/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/ |
D | AudioStreamer.java | 78 private AudioManager mAudioManager; field in AudioStreamer 160 mAudioManager = mDeviceContext.getSystemService(AudioManager.class); in start() 162 mAudioManager.registerAudioPlaybackCallback(mAudioPlaybackCallback, null); in start() 185 int ret = mAudioManager.registerAudioPolicy(mAudioPolicy); in registerAudioPolicy() 266 mAudioManager.unregisterAudioPolicy(mAudioPolicy); in updateAudioPolicies() 270 mAudioManager.unregisterAudioPolicy(mUidAudioPolicy); in updateAudioPolicies() 289 int ret = mAudioManager.registerAudioPolicy(uidPolicy); in registerUidPolicy() 306 if (mAudioManager != null) { in stop() 308 mAudioManager.unregisterAudioPolicy(mUidAudioPolicy); in stop() 312 mAudioManager.unregisterAudioPolicy(mAudioPolicy); in stop() [all …]
|
D | AudioInjector.java | 74 private AudioManager mAudioManager; field in AudioInjector 180 mAudioManager = mDeviceContext.getSystemService(AudioManager.class); in start() 183 mAudioManager.registerAudioRecordingCallback(mAudioRecordingCallback, null); in start() 205 if (mAudioManager != null) { in stop() 207 mAudioManager.unregisterAudioRecordingCallback(mAudioRecordingCallback); in stop() 210 mAudioManager.unregisterAudioPolicy(mAudioPolicy); in stop() 212 mAudioManager = null; in stop() 260 mAudioManager.unregisterAudioPolicy(mAudioPolicy); in updateAudioPolicies() 279 int ret = mAudioManager.registerAudioPolicy(audioPolicy); in registerAudioPolicy()
|
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | SoundRecorder.java | 51 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/ |
D | ClockBackService.java | 215 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/ |
D | MainActivity.java | 98 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/ |
D | Playback.java | 75 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()
|
/development/samples/training/NavigationDrawer/libs/ |
D | android-support-v4.jar | META-INF/
META-INF/MANIFEST.MF
android/
android/support/
android/ ... |