HomeSort by relevance Sort by last modified time
    Searched refs:audioManager (Results 1 - 25 of 63) sorted by null

1 2 3

  /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/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();
  /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);
  /packages/services/Telecomm/src/com/android/server/telecom/
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...]
TtyManager.java 23 import android.media.AudioManager;
108 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
109 audioManager.setParameters("tty_mode=" + audioTtyMode);
  /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);
HifiUltrasoundSpeakerTestActivity.java 24 import android.media.AudioManager;
102 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
103 String micSupportString = audioManager.getProperty(
104 AudioManager.PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND);
105 String spkrSupportString = audioManager.getProperty(
106 AudioManager.PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND);
342 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,
  /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...]
  /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/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/support/media-compat/jellybean-mr2/android/support/v4/media/
TransportMediatorJellybeanMR2.java 24 import android.media.AudioManager;
33 final AudioManager mAudioManager;
69 AudioManager.OnAudioFocusChangeListener mAudioFocusChangeListener
70 = new AudioManager.OnAudioFocusChangeListener() {
96 public TransportMediatorJellybeanMR2(Context context, AudioManager audioManager,
99 mAudioManager = audioManager;
145 AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);
  /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);
  /packages/apps/MusicFX/src/com/android/musicfx/
ActivityMusic.java 34 import android.media.AudioManager;
189 final AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
192 || audioManager.isBluetoothA2dpOn();
201 } else if (action.equals(AudioManager.ACTION_AUDIO_BECOMING_NOISY)) {
202 mIsHeadsetOn = audioManager.isBluetoothA2dpOn() || audioManager.isWiredHeadsetOn();
209 mIsHeadsetOn = audioManager.isWiredHeadsetOn();
480 intentFilter.addAction(AudioManager.ACTION_AUDIO_BECOMING_NOISY)
    [all...]
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
BasicCallTests.java 32 import android.media.AudioManager;
480 AudioManager audioManager = (AudioManager) mComponentContextFixture.getTestDouble()
486 verify(audioManager, timeout(TEST_TIMEOUT)).requestAudioFocusForCall(anyInt(), anyInt());
487 verify(audioManager, timeout(TEST_TIMEOUT).atLeastOnce())
488 .setMode(AudioManager.MODE_IN_CALL);
498 verify(audioManager, timeout(TEST_TIMEOUT))
501 verify(audioManager, timeout(TEST_TIMEOUT))
507 verify(audioManager, timeout(TEST_TIMEOUT)
    [all...]

Completed in 4773 milliseconds

1 2 3