/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
AudioTestUtils.java | 20 import android.media.AudioManager; 21 import android.media.AudioManager.OnAudioFocusChangeListener; 27 AudioManager audioManager, 33 return doRequestFocus(audioManager, listener, attributesBuilder.build(), androidFocus); 37 AudioManager audioManager, 41 return doRequestFocus(audioManager, listener, attributes, androidFocus, false); 45 AudioManager audioManager, [all...] |
/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...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MediaButtonHelper.java | 4 import android.media.AudioManager; 26 sMethodRegisterMediaButtonEventReceiver = AudioManager.class.getMethod( 29 sMethodUnregisterMediaButtonEventReceiver = AudioManager.class.getMethod( 37 public static void registerMediaButtonEventReceiverCompat(AudioManager audioManager, 43 sMethodRegisterMediaButtonEventReceiver.invoke(audioManager, receiver); 62 public static void unregisterMediaButtonEventReceiverCompat(AudioManager audioManager, 68 sMethodUnregisterMediaButtonEventReceiver.invoke(audioManager, receiver);
|
RemoteControlHelper.java | 19 import android.media.AudioManager; 42 sRegisterRemoteControlClientMethod = AudioManager.class.getMethod( 44 sUnregisterRemoteControlClientMethod = AudioManager.class.getMethod( 58 public static void registerRemoteControlClient(AudioManager audioManager, 65 sRegisterRemoteControlClientMethod.invoke(audioManager, 73 public static void unregisterRemoteControlClient(AudioManager audioManager, 80 sUnregisterRemoteControlClientMethod.invoke(audioManager,
|
/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;
|
/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...] |
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
WiredHeadsetManager.java | 22 import android.media.AudioManager; 38 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); 39 mIsPluggedIn = audioManager.isWiredHeadsetOn(); 81 if (AudioManager.ACTION_HEADSET_PLUG.equals(intent.getAction())) {
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
AlarmVolumePreference.java | 23 import android.media.AudioManager; 40 import static android.media.AudioManager.STREAM_ALARM; 59 final AudioManager audioManager = (AudioManager) context.getSystemService(AUDIO_SERVICE); 65 mSeekbar.setMax(audioManager.getStreamMaxVolume(STREAM_ALARM)); 66 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM)); 74 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM)); 95 audioManager.setStreamVolume(STREAM_ALARM, progress, 0);
|
/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);
|
/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);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
SoundSettingsTest.java | 21 import android.media.AudioManager; 53 AudioManager audioManager = mock(AudioManager.class); 54 doReturn(audioManager).when(context).getSystemService(Context.AUDIO_SERVICE);
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
ConnectionServiceTest.java | 23 import android.media.AudioManager; 120 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 121 assertEquals(AudioManager.MODE_IN_COMMUNICATION, audioManager.getMode()); 124 assertEquals(AudioManager.MODE_IN_CALL, audioManager.getMode());
|
/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);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
SafetyWarningDialog.java | 24 import android.media.AudioManager; 39 private final AudioManager mAudioManager; 44 public SafetyWarningDialog(Context context, AudioManager audioManager) { 47 mAudioManager = audioManager;
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
TtyManager.java | 23 import android.media.AudioManager; 109 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 110 audioManager.setParameters("tty_mode=" + audioTtyMode);
|
Ringer.java | 25 import android.media.AudioManager; 120 AudioManager audioManager = 121 (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 122 boolean isVolumeOverZero = audioManager.getStreamVolume(AudioManager.STREAM_RING) > 0; 245 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); 246 int ringerMode = audioManager.getRingerModeInternal() [all...] |
/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;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
NotificationPlayer.java | 21 import android.media.AudioManager; 90 AudioManager audioManager = 91 (AudioManager) mCmd.context.getSystemService(Context.AUDIO_SERVICE); 108 if (!audioManager.isMusicActiveRemotely()) { 112 int focusGain = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK; 114 focusGain = AudioManager.AUDIOFOCUS_GAIN; 116 mNotificationRampTimeMs = audioManager.getFocusRampTimeMs( 118 audioManager.requestAudioFocus(null, mCmd.attributes, 120 mAudioManagerWithAudioFocus = audioManager; [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioNativeTest.java | 23 import android.media.AudioManager; 241 AudioManager audioManager = 242 (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); 247 audioManager.getDevices(AudioManager.GET_DEVICES_INPUTS)) {
|
/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);
|