Home
last modified time | relevance | path

Searched refs:audioManager (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java35 private AudioManager audioManager; field in VoicemailAudioManager
44 audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in VoicemailAudioManager()
56 audioManager.requestAudioFocus( in requestAudioFocus()
66 audioManager.abandonAudioFocus(this); in abandonAudioFocus()
145 audioManager.startBluetoothSco(); in applyBluetoothScoState()
149 audioManager.setBluetoothScoOn(true); in applyBluetoothScoState()
151 audioManager.setBluetoothScoOn(false); in applyBluetoothScoState()
152 audioManager.stopBluetoothSco(); in applyBluetoothScoState()
157 for (AudioDeviceInfo info : audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS)) { in hasMediaAudioCapability()
248 if (audioManager.isSpeakerphoneOn() != on) { in turnOnSpeaker()
[all …]
DWiredHeadsetManager.java38 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in WiredHeadsetManager() local
39 isPluggedIn = audioManager.isWiredHeadsetOn(); in WiredHeadsetManager()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DAlarmVolumePreference.kt50 val audioManager: AudioManager = context.getSystemService(AUDIO_SERVICE) as AudioManager in onBindViewHolder() constant
55 mSeekbar.setMax(audioManager.getStreamMaxVolume(STREAM_ALARM)) in onBindViewHolder()
56 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM)) in onBindViewHolder()
63 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM)) in onBindViewHolder()
81 audioManager.setStreamVolume(STREAM_ALARM, progress, 0) in onBindViewHolder()
DAlarmVolumePreference.java59 final AudioManager audioManager = (AudioManager) context.getSystemService(AUDIO_SERVICE); in onBindViewHolder() local
65 mSeekbar.setMax(audioManager.getStreamMaxVolume(STREAM_ALARM)); in onBindViewHolder()
66 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM)); in onBindViewHolder()
74 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM)); in onBindViewHolder()
95 audioManager.setStreamVolume(STREAM_ALARM, progress, 0); in onBindViewHolder()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallRecordingTonePlayer.java72 public CallRecordingTonePlayer(Context context, AudioManager audioManager, in CallRecordingTonePlayer() argument
75 mAudioManager = audioManager; in CallRecordingTonePlayer()
275 private AudioDeviceInfo getTelephonyDevice(AudioManager audioManager) { in getTelephonyDevice() argument
276 AudioDeviceInfo[] deviceList = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDevice()
DCallAudioModeStateMachine.java681 AudioManager audioManager) { in CallAudioModeStateMachine() argument
683 mAudioManager = audioManager; in CallAudioModeStateMachine()
694 AudioManager audioManager, Looper looper) { in CallAudioModeStateMachine() argument
696 mAudioManager = audioManager; in CallAudioModeStateMachine()
DTtyManager.java109 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in updateAudioTtyMode() local
110 audioManager.setParameters("tty_mode=" + audioTtyMode); in updateAudioTtyMode()
/packages/apps/MusicFX/src/com/android/musicfx/
DActivityMusic.java189 … final AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
192 || audioManager.isBluetoothA2dpOn();
202 mIsHeadsetOn = audioManager.isBluetoothA2dpOn() || audioManager.isWiredHeadsetOn();
209 mIsHeadsetOn = audioManager.isWiredHeadsetOn();
489 … final AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onResume() local
490 mIsHeadsetOn = (audioManager.isWiredHeadsetOn() || audioManager.isBluetoothA2dpOn()); in onResume()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeVoiceActivity.java62 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onVoiceSettingInteraction() local
63 if (audioManager != null) { in onVoiceSettingInteraction()
65 audioManager.adjustStreamVolume(AudioManager.STREAM_NOTIFICATION, in onVoiceSettingInteraction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeVoiceActivity.java62 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onVoiceSettingInteraction() local
63 if (audioManager != null) { in onVoiceSettingInteraction()
65 audioManager.adjustStreamVolume(AudioManager.STREAM_NOTIFICATION, in onVoiceSettingInteraction()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailMediaPlayer.java93 AudioManager audioManager = context.getSystemService(AudioManager.class); in setAudioManagerToNonSpeakerMode() local
94 audioManager.setMode(AudioManager.STREAM_MUSIC); in setAudioManagerToNonSpeakerMode()
95 audioManager.setSpeakerphoneOn(false); in setAudioManagerToNonSpeakerMode()
DNewVoicemailMediaPlayerView.java504 AudioManager audioManager =
506 audioManager.setMode(AudioManager.STREAM_MUSIC);
507 if (audioManager.isSpeakerphoneOn()) {
510 audioManager.setSpeakerphoneOn(false);
514 audioManager.setSpeakerphoneOn(true);
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVisualVoicemailCallLogFragment.java132 AudioManager audioManager = getContext().getSystemService(AudioManager.class); in onPause() local
133 if (audioManager.isSpeakerphoneOn()) { in onPause()
134 audioManager.setSpeakerphoneOn(false); in onPause()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java85 final AudioManager audioManager = in run() local
97 audioManager.requestAudioFocus(null, mCmd.stream, in run()
110 mAudioManager = audioManager; in run()
DMediaUtilImpl.java36 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in playSound() local
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpCodecConfig.java62 AudioManager audioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in A2dpCodecConfig() local
63 if (audioManager == null) { in A2dpCodecConfig()
67 mCodecConfigOffloading = audioManager.getHwOffloadEncodingFormatsSupportedForA2DP() in A2dpCodecConfig()
/packages/apps/Dialer/java/com/android/incallui/audiomode/
DAudioModeProvider.java81 AudioManager audioManager = context.getSystemService(AudioManager.class); in getApproximatedAudioRoute() local
84 for (AudioDeviceInfo info : audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS)) { in getApproximatedAudioRoute()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportService.java553 AudioManager audioManager = getSystemService(AudioManager.class); in playNotificationSound() local
554 if (audioManager != null) { in playNotificationSound()
555 int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION); in playNotificationSound()
556 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_NOTIFICATION); in playNotificationSound()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSoundSettingsTest.java54 AudioManager audioManager = mock(AudioManager.class); in getNonIndexableKeys_existInXmlLayout() local
55 doReturn(audioManager).when(context).getSystemService(Context.AUDIO_SERVICE); in getNonIndexableKeys_existInXmlLayout()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBasicCallTests.java592 AudioManager audioManager = (AudioManager) mComponentContextFixture.getTestDouble() in testAudioManagerOperations() local
598 verify(audioManager, timeout(TEST_TIMEOUT)).requestAudioFocusForCall(anyInt(), anyInt()); in testAudioManagerOperations()
599 verify(audioManager, timeout(TEST_TIMEOUT).atLeastOnce()) in testAudioManagerOperations()
612 verify(audioManager, timeout(TEST_TIMEOUT)) in testAudioManagerOperations()
618 verify(audioManager, timeout(TEST_TIMEOUT).atLeast(1)) in testAudioManagerOperations()
624 verify(audioManager, timeout(TEST_TIMEOUT)) in testAudioManagerOperations()
626 verify(audioManager, timeout(TEST_TIMEOUT).atLeastOnce()) in testAudioManagerOperations()
/packages/services/Car/service/src/com/android/car/audio/
DCarZonesAudioFocus.java49 CarZonesAudioFocus(AudioManager audioManager, in CarZonesAudioFocus() argument
63 CarAudioFocus zoneFocusListener = new CarAudioFocus(audioManager, packageManager); in CarZonesAudioFocus()
DCarAudioFocus.java138 CarAudioFocus(AudioManager audioManager, PackageManager packageManager) { in CarAudioFocus() argument
139 mAudioManager = audioManager; in CarAudioFocus()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java84 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local
85 mPlayer = new TmaPlayer(this, mLibrary, audioManager, mHandler, mSession); in onCreate()
DTmaPlayer.java81 TmaPlayer(Context context, TmaLibrary library, AudioManager audioManager, Handler handler, in TmaPlayer() argument
86 mAudioManager = audioManager; in TmaPlayer()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java93 AvrcpVolumeManager(Context context, AudioManager audioManager, in AvrcpVolumeManager() argument
96 mAudioManager = audioManager; in AvrcpVolumeManager()

12