/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.java | 182 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/ |
D | HeadsetClientStateMachine.java | 145 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/ |
D | EmergencyTonePlayer.java | 53 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/ |
D | CallAudioManager.java | 72 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);
|
D | WiredHeadsetManager.java | 42 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/ |
D | NotificationPlayer.java | 110 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/ |
D | AudioAndHapticFeedbackManager.java | 35 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/ |
D | FmService.java | 178 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/ |
D | AudioPreview.java | 71 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()
|
D | MediaPlaybackService.java | 148 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/ |
D | Avrcp.java | 73 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/ |
D | VoicemailPlaybackPresenter.java | 160 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/ |
D | CellBroadcastAlertAudio.java | 103 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/ |
D | SoundActivity.java | 40 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/ |
D | HeadsetStateMachine.java | 154 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/ |
D | AccessibilityUtils.java | 50 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/ |
D | AccessibilitySettingsFragment.java | 63 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/ |
D | VideoModule.java | 139 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/ |
D | NotificationSettings.java | 108 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/ |
D | CryptKeeper.java | 335 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/ |
D | ComponentContextFixture.java | 143 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/ |
D | GridViewSpecial.java | 306 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/ |
D | A2dpSinkStateMachine.java | 78 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()
|
D | A2dpStateMachine.java | 75 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/ |
D | CallNotifier.java | 116 private AudioManager mAudioManager; field in CallNotifier 151 mAudioManager = (AudioManager) mApplication.getSystemService(Context.AUDIO_SERVICE); in CallNotifier() 809 int ringerMode = mAudioManager.getRingerMode(); in run()
|