/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 23 import android.media.AudioManager; 101 mFocusLossReceived = AudioManager.AUDIOFOCUS_NONE; in FocusRequester() 114 mFocusLossReceived = AudioManager.AUDIOFOCUS_NONE; in FocusRequester() 134 return ((mGrantFlags & AudioManager.AUDIOFOCUS_FLAG_LOCK) != 0); in isLockedFocusOwner() 183 case AudioManager.AUDIOFOCUS_NONE: in focusChangeToString() 185 case AudioManager.AUDIOFOCUS_GAIN: in focusChangeToString() 187 case AudioManager.AUDIOFOCUS_GAIN_TRANSIENT: in focusChangeToString() 189 case AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK: in focusChangeToString() 191 case AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE: in focusChangeToString() 193 case AudioManager.AUDIOFOCUS_LOSS: in focusChangeToString() [all …]
|
D | MediaFocusControl.java | 24 import android.media.AudioManager; 143 exFocusOwner.handleFocusLoss(AudioManager.AUDIOFOCUS_LOSS, null); in discardAudioFocusOwner() 156 mFocusStack.peek().handleFocusGain(AudioManager.AUDIOFOCUS_GAIN); in notifyTopOfAudioFocusStack() 341 return AudioManager.AUDIOFOCUS_REQUEST_GRANTED; in pushBelowLockedFocusOwners() 344 return AudioManager.AUDIOFOCUS_REQUEST_DELAYED; in pushBelowLockedFocusOwners() 464 AudioManager.AUDIOFOCUS_REQUEST_GRANTED); in notifyExtPolicyCurrentFocusAsync() 528 } else if (requestResult == AudioManager.AUDIOFOCUS_REQUEST_GRANTED in notifyExtFocusPolicyFocusRequest_syncAf() 529 || requestResult == AudioManager.AUDIOFOCUS_REQUEST_DELAYED) { in notifyExtFocusPolicyFocusRequest_syncAf() 578 return AudioManager.AUDIOFOCUS_REQUEST_FAILED; in dispatchFocusChange() 583 return AudioManager.AUDIOFOCUS_REQUEST_FAILED; in dispatchFocusChange() [all …]
|
D | AudioService.java | 25 import static android.media.AudioManager.RINGER_MODE_NORMAL; 26 import static android.media.AudioManager.RINGER_MODE_SILENT; 27 import static android.media.AudioManager.RINGER_MODE_VIBRATE; 68 import android.media.AudioManager; 281 private final int[][] SOUND_EFFECT_FILES_MAP = new int[AudioManager.NUM_SOUND_EFFECTS][2]; 529 private int mPrevVolDirection = AudioManager.ADJUST_SAME; 834 mScoConnectionState = AudioManager.SCO_AUDIO_STATE_ERROR; in onSystemReady() 839 Intent newIntent = new Intent(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED); in onSystemReady() 840 newIntent.putExtra(AudioManager.EXTRA_SCO_AUDIO_STATE, in onSystemReady() 841 AudioManager.SCO_AUDIO_STATE_DISCONNECTED); in onSystemReady() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioManagerTest.java | 21 import android.media.AudioManager; 23 import android.media.AudioManager.OnAudioFocusChangeListener; 38 private AudioManager mAudioManager; 43 private int[] ringtoneMode = {AudioManager.RINGER_MODE_NORMAL, 44 AudioManager.RINGER_MODE_SILENT, AudioManager.RINGER_MODE_VIBRATE}; 57 mAudioManager = (AudioManager)getActivity().getSystemService(Context.AUDIO_SERVICE); in initializeAudioManagerWithLooper() 101 return (getRingtone == AudioManager.RINGER_MODE_NORMAL); in validateSetRingTone() 146 AudioManager.STREAM_MUSIC, in verifyAudioFocusLoss() 147 AudioManager.AUDIOFOCUS_GAIN); in verifyAudioFocusLoss() 149 result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED); in verifyAudioFocusLoss() [all …]
|
D | MediaVisualizerTest.java | 24 import android.media.AudioManager; 233 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_0PollingCapture() 235 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_0PollingCapture() 236 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0PollingCapture() 237 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0PollingCapture() 238 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0PollingCapture() 253 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0PollingCapture() 299 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0PollingCapture() 312 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_1ListenerCapture() 314 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_1ListenerCapture() [all …]
|
D | MediaPresetReverbTest.java | 25 import android.media.AudioManager; 200 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_0AuxiliarySoundModification() 202 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_0AuxiliarySoundModification() 203 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification() 204 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0AuxiliarySoundModification() 205 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0AuxiliarySoundModification() 221 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification() 258 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0AuxiliarySoundModification() 273 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_1InsertSoundModification() 275 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_1InsertSoundModification() [all …]
|
D | MediaAudioTrackTest.java | 23 import android.media.AudioManager; 142 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorMono16MusicStream() 155 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorStereo16MusicStream() 168 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorMono16MusicStatic() 181 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorStereo16MusicStatic() 198 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorMono8MusicStream() 210 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorStereo8MusicStream() 222 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorMono8MusicStatic() 234 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorStereo8MusicStatic() 254 final int[] STREAM_TYPES = { AudioManager.STREAM_ALARM, AudioManager.STREAM_BLUETOOTH_SCO, in testConstructorStreamType() [all …]
|
D | MediaEnvReverbTest.java | 25 import android.media.AudioManager; 355 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_0AuxiliarySoundModification() 357 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_0AuxiliarySoundModification() 358 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification() 359 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0AuxiliarySoundModification() 360 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0AuxiliarySoundModification() 376 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification() 415 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0AuxiliarySoundModification() 430 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_1InsertSoundModification() 432 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_1InsertSoundModification() [all …]
|
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/ |
D | FixVibrateSetting.java | 24 import android.media.AudioManager; 32 AudioManager mAudioManager; 45 mAudioManager = (AudioManager)getSystemService(AUDIO_SERVICE); in onCreate() 70 case AudioManager.VIBRATE_SETTING_OFF: in getSettingValue() 72 case AudioManager.VIBRATE_SETTING_ON: in getSettingValue() 74 case AudioManager.VIBRATE_SETTING_ONLY_SILENT: in getSettingValue() 95 String ringer = getSettingValue(AudioManager.VIBRATE_TYPE_RINGER); in update() 96 String notification = getSettingValue(AudioManager.VIBRATE_TYPE_NOTIFICATION); in update() 102 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION, in fix() 103 AudioManager.VIBRATE_SETTING_ON); in fix() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioFocusRequest.java | 22 import android.media.AudioManager.OnAudioFocusChangeListener; 246 case AudioManager.AUDIOFOCUS_GAIN: in isValidFocusGain() 247 case AudioManager.AUDIOFOCUS_GAIN_TRANSIENT: in isValidFocusGain() 248 case AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK: in isValidFocusGain() 249 case AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE: in isValidFocusGain() 302 return (mFlags & AudioManager.AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS) in willPauseWhenDucked() 303 == AudioManager.AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS; in willPauseWhenDucked() 312 return (mFlags & AudioManager.AUDIOFOCUS_FLAG_DELAY_OK) in acceptsDelayedFocusGain() 313 == AudioManager.AUDIOFOCUS_FLAG_DELAY_OK; in acceptsDelayedFocusGain() 324 return (mFlags & AudioManager.AUDIOFOCUS_FLAG_LOCK) in locksFocus() [all …]
|
D | AudioPortEventHandler.java | 33 private final ArrayList<AudioManager.OnAudioPortUpdateListener> mListeners = 34 new ArrayList<AudioManager.OnAudioPortUpdateListener>(); 61 ArrayList<AudioManager.OnAudioPortUpdateListener> listeners; in init() 64 listeners = new ArrayList<AudioManager.OnAudioPortUpdateListener>(); in init() 66 listeners.add((AudioManager.OnAudioPortUpdateListener)msg.obj); in init() 77 AudioManager.resetAudioPortGeneration(); in init() 87 int status = AudioManager.updateAudioPortCache(ports, patches, null); in init() 88 if (status != AudioManager.SUCCESS) { in init() 138 void registerListener(AudioManager.OnAudioPortUpdateListener l) { in registerListener() 148 void unregisterListener(AudioManager.OnAudioPortUpdateListener l) { in unregisterListener()
|
/frameworks/support/media-compat/tests/src/android/support/v4/media/ |
D | AudioAttributesCompatTest.java | 23 import android.media.AudioManager; 74 mMediaLegacyAAC = mkBuilder(AudioManager.STREAM_MUSIC).build(); in setUp() 79 mNotificationLegacyAAC = mkBuilder(AudioManager.STREAM_NOTIFICATION).build(); in setUp() 123 assertThat(mMediaAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); in testLegacyStreamTypeInference() 124 assertThat(mMediaLegacyAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); in testLegacyStreamTypeInference() 126 mNotificationAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_NOTIFICATION)); in testLegacyStreamTypeInference() 129 equalTo(AudioManager.STREAM_NOTIFICATION)); in testLegacyStreamTypeInference() 135 assertThat(mMediaAACFromAA.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); in testLegacyStreamTypeInferenceApi21() 147 AudioAttributesCompat mediaLegacyAAC = mkBuilder(AudioManager.STREAM_MUSIC).build(); in testLegacyStreamTypeInferenceInLegacyMode() 154 mkBuilder(AudioManager.STREAM_NOTIFICATION).build(); in testLegacyStreamTypeInferenceInLegacyMode() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | Util.java | 20 import android.media.AudioManager; 43 AudioManager.FLAG_SHOW_UI, 44 AudioManager.FLAG_VIBRATE, 45 AudioManager.FLAG_PLAY_SOUND, 46 AudioManager.FLAG_ALLOW_RINGER_MODES, 47 AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE, 48 AudioManager.FLAG_SHOW_VIBRATE_HINT, 49 AudioManager.FLAG_SHOW_SILENT_HINT, 50 AudioManager.FLAG_FROM_KEY, 51 AudioManager.FLAG_SHOW_UI_WARNINGS, [all …]
|
D | VolumeDialogControllerImpl.java | 29 import android.media.AudioManager; 95 private AudioManager mAudio; 124 mAudio = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in VolumeDialogControllerImpl() 140 public AudioManager getAudioManager() { in getAudioManager() 324 if (stream == AudioManager.STREAM_MUSIC) { in checkRoutedToBluetoothW() 326 (mAudio.getDevicesForStream(AudioManager.STREAM_MUSIC) & in checkRoutedToBluetoothW() 327 (AudioManager.DEVICE_OUT_BLUETOOTH_A2DP | in checkRoutedToBluetoothW() 328 AudioManager.DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES | in checkRoutedToBluetoothW() 329 AudioManager.DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER)) != 0; in checkRoutedToBluetoothW() 347 && (flags & AudioManager.FLAG_SHOW_UI) != 0; in shouldShowUI() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 26 import android.media.AudioManager; 60 private final AudioManager mAudioManager; 92 mAudioManager = context.getSystemService(AudioManager.class); in SeekBarVolumizer() 110 if (mStreamType == AudioManager.STREAM_RING) { in SeekBarVolumizer() 112 } else if (mStreamType == AudioManager.STREAM_NOTIFICATION) { in SeekBarVolumizer() 122 return stream == AudioManager.STREAM_RING || stream == AudioManager.STREAM_NOTIFICATION; in isNotificationOrRing() 146 } else if (mNotificationOrRing && mRingerMode == AudioManager.RINGER_MODE_VIBRATE) { in updateSeekBar() 160 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_UNMUTE, 0); in handleMessage() 162 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_MUTE, 0); in handleMessage() 165 AudioManager.FLAG_SHOW_UI_WARNINGS); in handleMessage() [all …]
|
/frameworks/support/media-compat/java/android/support/v4/media/ |
D | AudioAttributesCompat.java | 22 import android.media.AudioManager; 663 case AudioManager.STREAM_VOICE_CALL: in usageForStreamType() 666 case AudioManager.STREAM_SYSTEM: in usageForStreamType() 668 case AudioManager.STREAM_RING: in usageForStreamType() 670 case AudioManager.STREAM_MUSIC: in usageForStreamType() 672 case AudioManager.STREAM_ALARM: in usageForStreamType() 674 case AudioManager.STREAM_NOTIFICATION: in usageForStreamType() 678 case AudioManager.STREAM_DTMF: in usageForStreamType() 707 ? AudioManager.STREAM_SYSTEM in toVolumeStreamType() 712 ? AudioManager.STREAM_VOICE_CALL in toVolumeStreamType() [all …]
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | Playback.java | 23 import android.media.AudioManager; 46 public class Playback implements AudioManager.OnAudioFocusChangeListener, 76 private AudioManager mAudioManager; 80 new IntentFilter(AudioManager.ACTION_AUDIO_BECOMING_NOISY); 85 if (AudioManager.ACTION_AUDIO_BECOMING_NOISY.equals(intent.getAction())) { 100 this.mAudioManager = (AudioManager) service.getSystemService(Context.AUDIO_SERVICE); in Playback() 172 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); in play() 245 int result = mAudioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC, in tryToGetAudioFocus() 246 AudioManager.AUDIOFOCUS_GAIN); in tryToGetAudioFocus() 247 if (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) { in tryToGetAudioFocus() [all …]
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
D | ScoAudioTest.java | 29 import android.media.AudioManager; 61 AudioManager mAudioManager; 62 AudioManager mAudioManager2; 105 intentFilter.addAction(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED); in onCreate() 106 intentFilter.addAction(AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED); in onCreate() 109 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() 110 … mAudioManager2 = (AudioManager) getApplicationContext().getSystemService(Context.AUDIO_SERVICE); in onCreate() 114 R.raw.sine440_mo_16b_16k, AudioManager.STREAM_BLUETOOTH_SCO); in onCreate() 134 String.valueOf(AudioManager.STREAM_BLUETOOTH_SCO)); in onCreate() 186 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in onPause() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | TonesAutoTest.java | 24 import android.media.AudioManager; 40 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesDtmfTest() 64 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesSupervisoryTest() 101 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesProprietaryTest() 126 toneGen1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesSimultaneousTest() 127 toneGen2 = new ToneGenerator(AudioManager.STREAM_MUSIC, 50); in tonesSimultaneousTest() 156 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesStressTest()
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | VolumeCtrl.java | 21 import android.media.AudioManager; 70 int stream = AudioManager.STREAM_MUSIC; in run() 73 int adjDir = AudioManager.ADJUST_RAISE; in run() 117 case ADJUST_RAISE: adjDir = AudioManager.ADJUST_RAISE; break; in run() 118 case ADJUST_SAME: adjDir = AudioManager.ADJUST_SAME; break; in run() 119 case ADJUST_LOWER: adjDir = AudioManager.ADJUST_LOWER; break; in run() 152 final int flag = showUi? AudioManager.FLAG_SHOW_UI : 0; in run()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImplTest.java | 26 import android.media.AudioManager; 54 mVolumeController.onVolumeChangedW(0, AudioManager.FLAG_SHOW_UI); in testVolumeChangeW_deviceNotInteractiveAOD() 62 mVolumeController.onVolumeChangedW(0, AudioManager.FLAG_SHOW_UI); in testVolumeChangeW_deviceInteractive() 70 mVolumeController.onVolumeChangedW(0, AudioManager.FLAG_SHOW_UI); in testVolumeChangeW_deviceInteractive_StartedSleeping() 73 mVolumeController.onVolumeChangedW(0, AudioManager.FLAG_SHOW_UI); in testVolumeChangeW_deviceInteractive_StartedSleeping()
|
/frameworks/support/media-compat/api21/android/support/v4/media/session/ |
D | MediaControllerCompatApi21.java | 23 import android.media.AudioManager; 238 return AudioManager.STREAM_MUSIC; in toLegacyStreamType() 240 return AudioManager.STREAM_SYSTEM; in toLegacyStreamType() 242 return AudioManager.STREAM_VOICE_CALL; in toLegacyStreamType() 244 return AudioManager.STREAM_DTMF; in toLegacyStreamType() 246 return AudioManager.STREAM_ALARM; in toLegacyStreamType() 248 return AudioManager.STREAM_RING; in toLegacyStreamType() 254 return AudioManager.STREAM_NOTIFICATION; in toLegacyStreamType() 257 return AudioManager.STREAM_MUSIC; in toLegacyStreamType()
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | MediaSessionService.java | 24 import android.media.AudioManager; 92 case AudioManager.AUDIOFOCUS_LOSS: in handleMessage() 97 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT: in handleMessage() 102 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK: in handleMessage() 107 case AudioManager.AUDIOFOCUS_GAIN: in handleMessage() 121 private AudioManager mAudioManager; 182 private AudioManager.OnAudioFocusChangeListener mOnAudioFocusChangeListener = new 183 AudioManager.OnAudioFocusChangeListener() { 225 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() 335 mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); in initializePlayer() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 39 import android.media.AudioManager; 99 private final AudioManager mAudioManager; 125 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in TvInputHardwareManager() 147 filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); in onBootPhase() 148 filter.addAction(AudioManager.STREAM_MUTE_CHANGED_ACTION); in onBootPhase() 505 mCurrentMaxIndex = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in updateVolume() 506 mCurrentIndex = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in updateVolume() 512 case AudioManager.VOLUME_CHANGED_ACTION: { in handleVolumeChange() 513 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in handleVolumeChange() 514 if (streamType != AudioManager.STREAM_MUSIC) { in handleVolumeChange() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | WiredAccessoryManager.java | 27 import android.media.AudioManager; 78 private final AudioManager mAudioManager; 93 mAudioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); in WiredAccessoryManager() 270 outDevice = AudioManager.DEVICE_OUT_WIRED_HEADSET; in setDeviceStateLocked() 271 inDevice = AudioManager.DEVICE_IN_WIRED_HEADSET; in setDeviceStateLocked() 273 outDevice = AudioManager.DEVICE_OUT_WIRED_HEADPHONE; in setDeviceStateLocked() 275 outDevice = AudioManager.DEVICE_OUT_LINE; in setDeviceStateLocked() 277 outDevice = AudioManager.DEVICE_OUT_ANLG_DOCK_HEADSET; in setDeviceStateLocked() 279 outDevice = AudioManager.DEVICE_OUT_DGTL_DOCK_HEADSET; in setDeviceStateLocked() 281 outDevice = AudioManager.DEVICE_OUT_HDMI; in setDeviceStateLocked()
|