/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
AudioManagerTest.java | 4 import android.media.AudioManager; 15 private AudioManager audioManager; 17 private AudioManager.OnAudioFocusChangeListener listener; 21 audioManager = Robolectric.newInstanceOf(AudioManager.class); 22 shadowAudioManager = Robolectric.shadowOf(audioManager); 23 listener = new AudioManager.OnAudioFocusChangeListener() { 33 audioManager.requestAudioFocus(listener, 999, 888); 41 int value = audioManager.requestAudioFocus(listener, 999, 888) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
AudioInputDeviceNotificationsActivity.java | 25 import android.media.AudioManager; 89 AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); 90 audioManager.registerAudioDeviceCallback(new TestAudioDeviceCallback(), null);
|
AudioOutputDeviceNotificationsActivity.java | 25 import android.media.AudioManager; 89 AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); 90 audioManager.registerAudioDeviceCallback(new TestAudioDeviceCallback(), null);
|
HifiUltrasoundTestActivity.java | 24 import android.media.AudioManager; 87 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 88 String micSupportString = audioManager.getProperty( 89 AudioManager.PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND); 90 String spkrSupportString = audioManager.getProperty( 91 AudioManager.PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND); 303 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeVoiceActivity.java | 23 import android.media.AudioManager; 62 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 63 if (audioManager != null) { 65 audioManager.adjustStreamVolume(AudioManager.STREAM_NOTIFICATION, 66 AudioManager.ADJUST_SAME, 67 AudioManager.FLAG_SHOW_UI);
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
WiredHeadsetManager.java | 22 import android.media.AudioManager; 37 if (AudioManager.ACTION_HEADSET_PLUG.equals(intent.getAction())) { 54 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); 55 mIsPluggedIn = audioManager.isWiredHeadsetOn();
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
MediaUtilImpl.java | 20 import android.media.AudioManager; 36 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); 39 mediaPlayer.setAudioStreamType(AudioManager.STREAM_NOTIFICATION);
|
NotificationPlayer.java | 20 import android.media.AudioManager; 85 final AudioManager audioManager = 86 (AudioManager) Factory.get().getApplicationContext() 97 audioManager.requestAudioFocus(null, mCmd.stream, 98 mCmd.looping ? AudioManager.AUDIOFOCUS_GAIN_TRANSIENT 99 : AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK); 110 mAudioManager = audioManager; 244 private AudioManager mAudioManager;
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
AppRTCAudioManager.java | 20 import android.media.AudioManager; 47 private AudioManager audioManager; 48 private int savedAudioMode = AudioManager.MODE_INVALID; 105 audioManager = ((AudioManager) context.getSystemService( 129 savedAudioMode = audioManager.getMode(); 130 savedIsSpeakerPhoneOn = audioManager.isSpeakerphoneOn(); 131 savedIsMicrophoneMute = audioManager.isMicrophoneMute(); 134 audioManager.requestAudioFocus(null, AudioManager.STREAM_VOICE_CALL [all...] |
CallActivity.java | 117 private AppRTCAudioManager audioManager = null; 378 audioManager = AppRTCAudioManager.create(this, new Runnable() { 390 audioManager.init(); 431 if (audioManager != null) { 432 audioManager.close(); 433 audioManager = null;
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
TtyManager.java | 23 import android.media.AudioManager; 108 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 109 audioManager.setParameters("tty_mode=" + audioTtyMode);
|
Ringer.java | 23 import android.media.AudioManager; 118 AudioManager audioManager = 119 (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 120 if (audioManager.getStreamVolume(AudioManager.STREAM_RING) > 0) { 200 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); 201 int ringerMode = audioManager.getRingerModeInternal() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
NotificationPlayer.java | 21 import android.media.AudioManager; 80 AudioManager audioManager = 81 (AudioManager) mCmd.context.getSystemService(Context.AUDIO_SERVICE); 90 if (!audioManager.isMusicActiveRemotely()) { 95 audioManager.requestAudioFocus(null, 97 AudioManager.AUDIOFOCUS_GAIN); 99 audioManager.requestAudioFocus(null, 101 AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK); 103 mAudioManagerWithAudioFocus = audioManager; [all...] |
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
WebRtcAudioManager.java | 17 import android.media.AudioManager; 26 // WebRtcAudioManager handles tasks that uses android.media.AudioManager. 34 // recommended to always use AudioManager.MODE_IN_COMMUNICATION. 74 private final AudioManager audioManager; 93 audioManager = (AudioManager) context.getSystemService( 110 Logging.d(TAG, "audio mode is: " + AUDIO_MODES[audioManager.getMode()]); 123 return (audioManager.getMode() == AudioManager.MODE_IN_COMMUNICATION) [all...] |
WebRtcAudioTrack.java | 19 import android.media.AudioManager; 42 private final AudioManager audioManager; 148 audioManager = (AudioManager) context.getSystemService( 186 audioTrack = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 198 assertTrue(audioTrack.getStreamType() == AudioManager.STREAM_VOICE_CALL); 225 assertTrue(audioManager != null); 226 return audioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL) [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
VolumeControlAction.java | 24 import android.media.AudioManager; 163 AudioManager audioManager = tv().getService().getAudioManager(); 164 int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); 166 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
|
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/ |
SampleMediaRouteProvider.java | 25 import android.media.AudioManager; 175 .setPlaybackStream(AudioManager.STREAM_MUSIC) 186 .setPlaybackStream(AudioManager.STREAM_MUSIC) 198 .setPlaybackStream(AudioManager.STREAM_MUSIC) 210 .setPlaybackStream(AudioManager.STREAM_MUSIC) 333 AudioManager audioManager = 334 (AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE); 335 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0) [all...] |
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/ |
SampleMediaRouteProvider.java | 25 import android.media.AudioManager; 175 .setPlaybackStream(AudioManager.STREAM_MUSIC) 186 .setPlaybackStream(AudioManager.STREAM_MUSIC) 198 .setPlaybackStream(AudioManager.STREAM_MUSIC) 210 .setPlaybackStream(AudioManager.STREAM_MUSIC) 333 AudioManager audioManager = 334 (AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE); 335 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0) [all...] |
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/provider/ |
SampleMediaRouteProvider.java | 25 import android.media.AudioManager; 175 .setPlaybackStream(AudioManager.STREAM_MUSIC) 186 .setPlaybackStream(AudioManager.STREAM_MUSIC) 198 .setPlaybackStream(AudioManager.STREAM_MUSIC) 210 .setPlaybackStream(AudioManager.STREAM_MUSIC) 333 AudioManager audioManager = 334 (AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE); 335 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0) [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
SampleMediaRouteProvider.java | 26 import android.media.AudioManager; 171 .setPlaybackStream(AudioManager.STREAM_MUSIC) 184 .setPlaybackStream(AudioManager.STREAM_MUSIC) 197 .setPlaybackStream(AudioManager.STREAM_MUSIC) 212 .setPlaybackStream(AudioManager.STREAM_MUSIC) 338 AudioManager audioManager = 339 (AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE); 340 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
SettingsActivity.java | 23 import android.media.AudioManager; 79 setVolumeControlStream(AudioManager.STREAM_ALARM); 192 final AudioManager audioManager = 193 (AudioManager) activity.getSystemService(Context.AUDIO_SERVICE); 194 audioManager.adjustStreamVolume(AudioManager.STREAM_ALARM, 195 AudioManager.ADJUST_SAME, AudioManager.FLAG_SHOW_UI);
|
/packages/services/Telephony/src/com/android/phone/ |
PhoneGlobals.java | 28 import android.media.AudioManager; 389 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 390 audioManager.setParameter(SettingsConstants.HAC_KEY, [all...] |
/developers/build/prebuilts/gradle/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
MainActivity.java | 23 import android.media.AudioManager; 278 // The results from AudioManager.getDevices can't be trusted unless the device 283 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 284 AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
|
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
MainActivity.java | 23 import android.media.AudioManager; 278 // The results from AudioManager.getDevices can't be trusted unless the device 283 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 284 AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
|
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
MainActivity.java | 23 import android.media.AudioManager; 278 // The results from AudioManager.getDevices can't be trusted unless the device 283 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 284 AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
|