Home
last modified time | relevance | path

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

12

/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java182 private AudioManager mAudioManager;
198 if (mAudioManager == null) {
199 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
255 if (mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM) != 0) {
266 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_ALARM,
286 mAudioManager.abandonAudioFocus(null);
299 private AudioManager mAudioManager;
335 if (mAudioManager == null) {
336 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
387 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_ALARM,
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java145 private final AudioManager mAudioManager; field in HeadsetClientStateMachine
305 if (mAudioManager.getMode() != AudioManager.MODE_NORMAL) { in setCallState()
306 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setCallState()
309 mAudioManager.abandonAudioFocusForCall(); in setCallState()
1215 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in HeadsetClientStateMachine()
1510 mAudioManager.getStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO), 0)); in processConnectionEvent()
1512 mAudioManager.isMicrophoneMute() ? 0 : 15, 0)); in processConnectionEvent()
1641 mAudioManager.setParameters("hfp_volume=" + message.arg1); in processMessage()
1856 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in processMessage()
1860 mAudioManager.setMicrophoneMute(event.valueInt2 == 0); in processMessage()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyTonePlayer.java53 private final AudioManager mAudioManager; field in EmergencyTonePlayer
61 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in EmergencyTonePlayer()
71 int ringerMode = mAudioManager.getRingerMode(); in start()
107 mSavedInCallVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL); in startAlert()
108 mAudioManager.setStreamVolume( in startAlert()
110 mAudioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL), in startAlert()
124 mAudioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, mSavedInCallVolume, 0); in stopAlert()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioManager.java72 private AudioManager mAudioManager;
78 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
84 if (mAudioManager.isSpeakerphoneOn() != on) {
86 mAudioManager.setSpeakerphoneOn(on);
91 mAudioManager.abandonAudioFocusForCall();
96 if (mute != mAudioManager.isMicrophoneMute()) {
122 mAudioManager.requestAudioFocusForCall(
129 int oldMode = mAudioManager.getMode();
138 mAudioManager.setMode(AudioManager.MODE_NORMAL);
140 mAudioManager.setMode(newMode);
DWiredHeadsetManager.java42 boolean isPluggedIn = mAudioManager.isWiredHeadsetOn(); in onReceive()
51 private final AudioManager mAudioManager; field in WiredHeadsetManager
64 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in WiredHeadsetManager()
65 mIsPluggedIn = mAudioManager.isWiredHeadsetOn(); in WiredHeadsetManager()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java110 mAudioManager = audioManager; in run()
164 if (cmd.releaseFocus && mAudioManager != null) { in stopSound()
165 mAudioManager.abandonAudioFocus(null); in stopSound()
167 mAudioManager = null; in stopSound()
222 if (mAudioManager != null) { in onCompletion()
223 mAudioManager.abandonAudioFocus(null); in onCompletion()
244 private AudioManager mAudioManager; field in NotificationPlayer
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAudioAndHapticFeedbackManager.java35 private AudioManager mAudioManager; field in AudioAndHapticFeedbackManager
57 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in initInternal()
79 if (mSettingsValues == null || !mSettingsValues.mSoundOn || mAudioManager == null) { in reevaluateIfSoundIsOn()
82 return mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_NORMAL; in reevaluateIfSoundIsOn()
87 if (mAudioManager == null) { in performAudioFeedback()
108 mAudioManager.playSoundEffect(sound, mSettingsValues.mKeypressSoundVolume); in performAudioFeedback()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmService.java178 private AudioManager mAudioManager = null; field in FmService
356 return mAudioManager.isWiredHeadsetOn(); in isAntennaAvailable()
447 mAudioManager.listAudioPatches(patches); in startAudioTrack()
1243 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
1269 mAudioManager.registerAudioPortUpdateListener(mAudioPortUpdateListener); in registerAudioPortUpdateListener()
1275 mAudioManager.unregisterAudioPortUpdateListener(mAudioPortUpdateListener); in unregisterAudioPortUpdateListener()
1302 mAudioManager.listAudioPorts(ports); in createAudioPatch()
1320 status = mAudioManager.createAudioPatch(audioPatchArray, in createAudioPatch()
1359 mAudioManager.listAudioPatches(patches); in onAudioPatchListUpdate()
1376 mAudioManager.listAudioPatches(patches); in onAudioPatchListUpdate()
[all …]
/packages/apps/Music/src/com/android/music/
DAudioPreview.java71 private AudioManager mAudioManager; field in AudioPreview
105 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
235 mAudioManager.abandonAudioFocus(mAudioFocusListener); in stopPlayback()
269 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in showPostPrepareUI()
283 mAudioManager.abandonAudioFocus(this);
310 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in start()
DMediaPlaybackService.java148 private AudioManager mAudioManager; field in MediaPlaybackService
318 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
321 mAudioManager.registerMediaButtonEventReceiver(rec); in onCreate()
328 mAudioManager.registerRemoteControlClient(mRemoteControlClient); in onCreate()
383 mAudioManager.abandonAudioFocus(mAudioFocusListener); in onDestroy()
384 mAudioManager.unregisterRemoteControlClient(mRemoteControlClient); in onDestroy()
1157 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in play()
1159 mAudioManager.registerMediaButtonEventReceiver(new ComponentName(this.getPackageName(), in play()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcp.java73 private final AudioManager mAudioManager; field in Avrcp
188 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in Avrcp()
189 mAudioStreamMax = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in Avrcp()
204 mAudioManager.registerRemoteController(mRemoteController); in start()
221 mAudioManager.unregisterRemoteController(mRemoteController); in doQuit()
315 mAudioManager.avrcpSupportsAbsoluteVolume(address, isAbsoluteVolumeSupported()); in handleMessage()
643 if ( (isPlaying) && !mAudioManager.isMusicActive()) in updateA2dpAudioState()
993 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, in notifyVolumeChanged()
1008 mAudioManager.avrcpSupportsAbsoluteVolume(mAddress, isAbsoluteVolumeSupported()); in blackListCurrentDevice()
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackPresenter.java160 private AudioManager mAudioManager; field in VoicemailPlaybackPresenter
189 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in VoicemailPlaybackPresenter()
611 int result = mAudioManager.requestAudioFocus( in resumePlayback()
656 mAudioManager.abandonAudioFocus(this); in pausePlayback()
711 mAudioManager.setSpeakerphoneOn(on); in setSpeakerphoneOn()
727 return mAudioManager.isSpeakerphoneOn(); in isSpeakerphoneOn()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java103 private AudioManager mAudioManager; field in CellBroadcastAlertAudio
227 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
255 mAudioManager.abandonAudioFocus(null); in onDestroy()
288 switch (mAudioManager.getRingerMode()) { in onStartCommand()
372 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_NOTIFICATION, in play()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/
DSoundActivity.java40 private AudioManager mAudioManager; field in SoundActivity
46 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
78 mAudioManager.loadSoundEffects(); in onActionClicked()
81 mAudioManager.unloadSoundEffects(); in onActionClicked()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java154 private AudioManager mAudioManager; field in HeadsetStateMachine
217 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in HeadsetStateMachine()
1101 mAudioManager.setBluetoothScoOn(true); in processAudioEvent()
1528 mAudioManager.setBluetoothScoOn(false); in processAudioEvent()
1980 mAudioManager.setBluetoothScoOn(true); in processAudioEvent()
1996 mAudioManager.setBluetoothScoOn(false); in processAudioEvent()
2204 mAudioManager.setParameters("A2dpSuspended=false"); in processVrEvent()
2262 mAudioManager.setParameters("A2dpSuspended=true"); in processLocalVrEvent()
2286 mAudioManager.setParameters("A2dpSuspended=false"); in processLocalVrEvent()
2425 mAudioManager.setParameters(HEADSET_NAME + "=" + getCurrentDeviceName(device) + ";" + in configAudioParameters()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DAccessibilityUtils.java50 private AudioManager mAudioManager; field in AccessibilityUtils
84 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in initInternal()
141 if (mAudioManager.isWiredHeadsetOn() || mAudioManager.isBluetoothA2dpOn()) { in shouldObscureInput()
/packages/services/Telephony/src/com/android/phone/settings/
DAccessibilitySettingsFragment.java63 private AudioManager mAudioManager; field in AccessibilitySettingsFragment
73 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in onCreate()
131 mAudioManager.setParameter(SettingsConstants.HAC_KEY, in onPreferenceTreeClick()
/packages/apps/Camera2/src/com/android/camera/
DVideoModule.java139 private AudioManager mAudioManager; field in VideoModule
335 mAudioManager = AndroidServices.instance().provideAudioManager(); in init()
1321 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, in silenceSoundsAndVibrations()
1325 mOriginalRingerMode = mAudioManager.getRingerMode(); in silenceSoundsAndVibrations()
1328 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); in silenceSoundsAndVibrations()
1334 if (mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_SILENT) { in restoreRingerMode()
1335 mAudioManager.setRingerMode(mOriginalRingerMode); in restoreRingerMode()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationSettings.java108 private AudioManager mAudioManager; field in NotificationSettings
139 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in onCreate()
230 && mAudioManager.getLastAudibleStreamVolume(AudioManager.STREAM_RING) == 0; in wasRingerModeVibrate()
234 final int ringerMode = mAudioManager.getRingerModeInternal(); in updateRingerMode()
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java335 private AudioManager mAudioManager; field in CryptKeeper
366 } else if (mAudioManager != null) { in notifyUser()
373 mAudioManager.playSoundEffect(AudioManager.FX_KEYPRESS_STANDARD, 100); in notifyUser()
431 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java143 return mAudioManager; in getSystemService()
313 private final AudioManager mAudioManager = spy(new FakeAudioManager(mContext));
328 when(mAudioManager.isWiredHeadsetOn()).thenReturn(false);
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java306 private AudioManager mAudioManager; field in GridViewSpecial.MyGestureDetector
365 if (mAudioManager == null) { in onSingleTapConfirmed()
366 mAudioManager = (AudioManager) getContext() in onSingleTapConfirmed()
369 mAudioManager.playSoundEffect(AudioManager.FX_KEY_CLICK); in onSingleTapConfirmed()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpSinkStateMachine.java78 private final AudioManager mAudioManager; field in A2dpSinkStateMachine
140 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in A2dpSinkStateMachine()
683 int delay = mAudioManager.setBluetoothA2dpDeviceConnectionState(device, newState, in broadcastConnectionState()
DA2dpStateMachine.java75 private final AudioManager mAudioManager; field in A2dpStateMachine
136 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in A2dpStateMachine()
715 int delay = mAudioManager.setBluetoothA2dpDeviceConnectionState(device, newState, in broadcastConnectionState()
/packages/services/Telephony/src/com/android/phone/
DCallNotifier.java116 private AudioManager mAudioManager; field in CallNotifier
151 mAudioManager = (AudioManager) mApplication.getSystemService(Context.AUDIO_SERVICE); in CallNotifier()
809 int ringerMode = mAudioManager.getRingerMode(); in run()

12