Home
last modified time | relevance | path

Searched refs:mAudioManager (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioManagerTest.java38 private AudioManager mAudioManager; field in MediaAudioManagerTest
57 mAudioManager = (AudioManager)getActivity().getSystemService(Context.AUDIO_SERVICE); in initializeAudioManagerWithLooper()
98 int getRingtone = mAudioManager.getRingerMode(); in validateSetRingTone()
113 mAudioManager.setRingerMode(ringtoneMode[i]); in testSetRingtoneMode()
145 int result = mAudioManager.requestAudioFocus(mAudioFocusListener, in verifyAudioFocusLoss()
151 result = mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, in verifyAudioFocusLoss()
164 mAudioManager.registerAudioFocusListener(mAudioFocusListener); in setupAudioFocusListener()
169 mAudioManager.abandonAudioFocus(mAudioFocusListener); in cleanupAudioFocusListener()
170 mAudioManager.unregisterAudioFocusListener(mAudioFocusListener); in cleanupAudioFocusListener()
218 int result = mAudioManager.requestAudioFocus(mAudioFocusListener, in testAudioFocusStressListenerRequestAbandon()
[all …]
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/
DTransportMediatorJellybeanMR2.java35 final AudioManager mAudioManager; field in TransportMediatorJellybeanMR2
88 mAudioManager = audioManager; in TransportMediatorJellybeanMR2()
122 mAudioManager.registerMediaButtonEventReceiver(mPendingIntent); in gainFocus()
123 mAudioManager.registerRemoteControlClient(mRemoteControl); in gainFocus()
133 mAudioManager.requestAudioFocus(mAudioFocusChangeListener, in takeAudioFocus()
185 mAudioManager.abandonAudioFocus(mAudioFocusChangeListener); in dropAudioFocus()
193 mAudioManager.unregisterRemoteControlClient(mRemoteControl); in loseFocus()
194 mAudioManager.unregisterMediaButtonEventReceiver(mPendingIntent); in loseFocus()
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
DFixVibrateSetting.java32 AudioManager mAudioManager; field in FixVibrateSetting
45 mAudioManager = (AudioManager)getSystemService(AUDIO_SERVICE); in onCreate()
68 int setting = mAudioManager.getVibrateSetting(vibrateType); in getSettingValue()
102 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION, in fix()
107 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION, in unfix()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DObscureSpeechDelegate.java40 private final AudioManager mAudioManager; field in ObscureSpeechDelegate
44 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in ObscureSpeechDelegate()
94 if (mAudioManager.isWiredHeadsetOn() || mAudioManager.isBluetoothA2dpOn()) { in shouldObscureSpeech()
DKeyguardViewBase.java61 private AudioManager mAudioManager; field in KeyguardViewBase
332 if (mAudioManager == null) { in interceptMediaKey()
333 mAudioManager = (AudioManager) getContext().getSystemService( in interceptMediaKey()
339 mAudioManager.adjustSuggestedStreamVolume( in interceptMediaKey()
375 if (mAudioManager == null) { in handleMediaKeyEvent()
376 mAudioManager = (AudioManager) getContext().getSystemService( in handleMediaKeyEvent()
380 mAudioManager.dispatchMediaKeyEvent(keyEvent); in handleMediaKeyEvent()
DKeyguardTransportControlView.java85 private AudioManager mAudioManager; field in KeyguardTransportControlView
273 mAudioManager = new AudioManager(mContext); in KeyguardTransportControlView()
358 mAudioManager.registerRemoteController(mRemoteController); in onAttachedToWindow()
375 mAudioManager.unregisterRemoteController(mRemoteController); in onDetachedFromWindow()
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java54 private final AudioManager mAudioManager; field in SeekBarVolumizer
75 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in SeekBarVolumizer()
77 mMaxStreamVolume = mAudioManager.getStreamMaxVolume(mStreamType); in SeekBarVolumizer()
82 mOriginalStreamVolume = mAudioManager.getStreamVolume(mStreamType); in SeekBarVolumizer()
116 mAudioManager.setStreamVolume(mStreamType, mLastProgress, in handleMessage()
184 mAudioManager.setStreamVolume(mStreamType, mOriginalStreamVolume, 0); in revertVolume()
288 if (mSeekBar != null && mAudioManager != null) { in onChange()
289 final int volume = mAudioManager.getStreamVolume(mStreamType); in onChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeUI.java56 private AudioManager mAudioManager; field in VolumeUI
66 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in start()
95 mAudioManager.setVolumeController(mVolumeController); in updateController()
99 mAudioManager.setVolumeController(null); in updateController()
124 if (mAudioManager != null && mVolumeController != null) { in initPanel()
125 mAudioManager.notifyVolumeControllerVisible(mVolumeController, visible); in initPanel()
DVolumePanel.java135 private final AudioManager mAudioManager; field in VolumePanel
265 private final AudioManager mAudioManager; field in VolumePanel.SafetyWarning
273 mAudioManager = audioManager; in SafetyWarning()
298 mAudioManager.disableSafeMediaVolume(); in onKeyUp()
306 mAudioManager.disableSafeMediaVolume(); in onClick()
339 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in VolumePanel()
382 mAudioManager.forceVolumeControlStream(mActiveStreamType); in VolumePanel()
541 return mAudioManager.isMasterMute(); in isMuted()
546 return mAudioManager.isStreamMute(streamType); in isMuted()
552 return mAudioManager.getMasterMaxVolume(); in getStreamMaxVolume()
[all …]
/frameworks/base/media/java/android/media/
DAudioPortEventHandler.java36 private AudioManager mAudioManager; field in AudioPortEventHandler
46 mAudioManager = audioManager; in AudioPortEventHandler()
75 mAudioManager.resetAudioPortGeneration(); in AudioPortEventHandler()
80 int status = mAudioManager.updateAudioPortCache(ports, patches); in AudioPortEventHandler()
DRingtone.java53 private final AudioManager mAudioManager; field in Ringtone
71 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in Ringtone()
73 mRemotePlayer = allowRemote ? mAudioManager.getRingtonePlayer() : null; in Ringtone()
247 if (mAudioManager.getStreamVolume( in play()
312 if (mAudioManager.getStreamVolume(AudioAttributes.toLegacyStreamType(mAudioAttributes)) in playFallbackRingtone()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java61 AudioManager mAudioManager; field in ScoAudioTest
109 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
152 mCurrentMode = mAudioManager.getMode(); in onCreate()
186 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in onPause()
195 mOriginalVoiceVolume = mAudioManager.getStreamVolume( in onResume()
198 mCurrentMode = mAudioManager.getMode(); in onResume()
209 AudioManager mngr = mAudioManager;
569 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in onUtteranceCompleted()
580 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in onUtteranceCompleted()
602 mOriginalVoiceVolume = mAudioManager.getStreamVolume(
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java77 private AudioManager mAudioManager; field in ZenModeHelper
115 mAudioManager = audioManager; in setAudioManager()
245 if (mAudioManager != null) { in updateZenMode()
246 int ringerMode = mAudioManager.getRingerMode(); in updateZenMode()
263 mAudioManager.setRingerMode(forcedRingerMode, false /*checkZen*/); in updateZenMode()
307 if (mAudioManager != null) { in handleRingerModeChanged()
309 final int ringerMode = mAudioManager.getRingerMode(); in handleRingerModeChanged()
DNotificationManagerService.java169 AudioManager mAudioManager; field in NotificationManagerService
499 final IRingtonePlayer player = mAudioManager.getRingtonePlayer();
560 final IRingtonePlayer player = mAudioManager.getRingtonePlayer();
938 mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in onBootPhase()
939 mZenModeHelper.setAudioManager(mAudioManager); in onBootPhase()
1867 && mAudioManager != null) { in buzzBeepBlinkLocked()
1909 if ((mAudioManager.getStreamVolume( in buzzBeepBlinkLocked()
1911 && !mAudioManager.isAudioFocusExclusive()) { in buzzBeepBlinkLocked()
1915 mAudioManager.getRingtonePlayer(); in buzzBeepBlinkLocked()
1939 && (mAudioManager.getRingerMode() in buzzBeepBlinkLocked()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java40 private AudioManager mAudioManager; field in SettingsHelper
44 mAudioManager = (AudioManager) context in SettingsHelper()
169 mAudioManager.loadSoundEffects(); in setSoundEffects()
171 mAudioManager.unloadSoundEffects(); in setSoundEffects()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneFallbackEventHandler.java46 AudioManager mAudioManager; field in PhoneFallbackEventHandler
279 if (mAudioManager == null) { in getAudioManager()
280 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in getAudioManager()
282 return mAudioManager; in getAudioManager()
DGlobalActions.java106 private final AudioManager mAudioManager; field in GlobalActions
131 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in GlobalActions()
217 mSilentModeAction = new SilentModeTriStateAction(mContext, mAudioManager, mHandler); in createDialog()
529 mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL;
887 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
889 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
906 private final AudioManager mAudioManager;
911 mAudioManager = audioManager;
935 int selectedIndex = ringerModeToIndex(mAudioManager.getRingerMode());
968 mAudioManager.setRingerMode(indexToRingerMode(index));
/frameworks/support/v4/java/android/support/v4/media/
DTransportMediator.java51 final AudioManager mAudioManager; field in TransportMediator
162 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in TransportMediator()
166 mController = new TransportMediatorJellybeanMR2(mContext, mAudioManager, in TransportMediator()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DSystemMediaRouteProvider.java115 private final AudioManager mAudioManager; field in SystemMediaRouteProvider.LegacyImpl
121 mAudioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); in LegacyImpl()
131 int maxVolume = mAudioManager.getStreamMaxVolume(PLAYBACK_STREAM); in publishRoutes()
132 mLastReportedVolume = mAudioManager.getStreamVolume(PLAYBACK_STREAM); in publishRoutes()
161 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0); in onSetVolume()
167 int volume = mAudioManager.getStreamVolume(PLAYBACK_STREAM); in onUpdateVolume()
168 int maxVolume = mAudioManager.getStreamMaxVolume(PLAYBACK_STREAM); in onUpdateVolume()
171 mAudioManager.setStreamVolume(PLAYBACK_STREAM, volume, 0); in onUpdateVolume()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java88 private final AudioManager mAudioManager; field in TvInputHardwareManager
107 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in TvInputHardwareManager()
598 mAudioManager.registerAudioPortUpdateListener(mAudioListener); in TvInputHardwareImpl()
607 if (mAudioManager.listAudioDevicePorts(devicePorts) == AudioManager.SUCCESS) { in findAudioSinkFromAudioPolicy()
608 int sinkDevice = mAudioManager.getDevicesForStream(AudioManager.STREAM_MUSIC); in findAudioSinkFromAudioPolicy()
624 if (mAudioManager.listAudioDevicePorts(devicePorts) != AudioManager.SUCCESS) { in findAudioDevicePort()
638 mAudioManager.unregisterAudioPortUpdateListener(mAudioListener); in release()
640 mAudioManager.releaseAudioPatch(mAudioPatch); in release()
697 mAudioManager.releaseAudioPatch(mAudioPatch); in updateAudioConfigLocked()
757 mAudioManager.createAudioPatch( in updateAudioConfigLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonView.java71 private AudioManager mAudioManager; field in KeyButtonView
110 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in KeyButtonView()
238 mAudioManager.playSoundEffect(soundConstant, ActivityManager.getCurrentUser()); in playSoundEffect()
/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java81 private final AudioManager mAudioManager; field in WiredAccessoryManager
96 mAudioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); in WiredAccessoryManager()
293 mAudioManager.setWiredDeviceConnectionState(outDevice, state, headsetName); in setDeviceStateLocked()
296 mAudioManager.setWiredDeviceConnectionState(inDevice, state, headsetName); in setDeviceStateLocked()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DLocalRenderer.java191 private AudioManager mAudioManager; field in LocalRenderer
226 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in LocalRenderer()
477 int result = mAudioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC, in requestAudioFocus()
700 mAudioManager.abandonAudioFocus(this); in cleanUpPlayer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java168 private AudioManager mAudioManager; field in KeyguardViewMediator
1198 if (mAudioManager == null) { in playSound()
1199 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in playSound()
1200 if (mAudioManager == null) return; in playSound()
1201 mMasterStreamType = mAudioManager.getMasterStreamType(); in playSound()
1204 if (mAudioManager.isStreamMute(mMasterStreamType)) return; in playSound()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSearchBar.java131 private AudioManager mAudioManager; field in SearchBar
171 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in SearchBar()
511 mAudioManager.abandonAudioFocus(mAudioFocusChangeListener); in stopRecognition()
537 int result = mAudioManager.requestAudioFocus(mAudioFocusChangeListener, in startRecognition()

12