Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DAudioTestUtils.java27 AudioManager audioManager, in doRequestFocus() argument
33 return doRequestFocus(audioManager, listener, attributesBuilder.build(), androidFocus); in doRequestFocus()
37 AudioManager audioManager, in doRequestFocus() argument
41 return doRequestFocus(audioManager, listener, attributes, androidFocus, false); in doRequestFocus()
45 AudioManager audioManager, in doRequestFocus() argument
55 return audioManager.requestAudioFocus(focusBuilder.build()); in doRequestFocus()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
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/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/services/Telecomm/src/com/android/server/telecom/
DRinger.java120 AudioManager audioManager = in startRinging() local
122 boolean isVolumeOverZero = audioManager.getStreamVolume(AudioManager.STREAM_RING) > 0; in startRinging()
245 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in shouldVibrate() local
246 int ringerMode = audioManager.getRingerModeInternal(); in shouldVibrate()
DTtyManager.java109 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in updateAudioTtyMode() local
110 audioManager.setParameters("tty_mode=" + audioTtyMode); in updateAudioTtyMode()
DCallAudioModeStateMachine.java471 public CallAudioModeStateMachine(AudioManager audioManager) { in CallAudioModeStateMachine() argument
473 mAudioManager = audioManager; in CallAudioModeStateMachine()
/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/Telecomm/tests/src/com/android/server/telecom/tests/
DBasicCallTests.java541 AudioManager audioManager = (AudioManager) mComponentContextFixture.getTestDouble() in testAudioManagerOperations() local
547 verify(audioManager, timeout(TEST_TIMEOUT)).requestAudioFocusForCall(anyInt(), anyInt()); in testAudioManagerOperations()
548 verify(audioManager, timeout(TEST_TIMEOUT).atLeastOnce()) in testAudioManagerOperations()
559 verify(audioManager, timeout(TEST_TIMEOUT)) in testAudioManagerOperations()
562 verify(audioManager, timeout(TEST_TIMEOUT)) in testAudioManagerOperations()
568 verify(audioManager, timeout(TEST_TIMEOUT)) in testAudioManagerOperations()
570 verify(audioManager, timeout(TEST_TIMEOUT).atLeastOnce()) in testAudioManagerOperations()
/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/services/Telephony/src/com/android/phone/
DPhoneUtils.java1764 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in turnOnSpeaker() local
1765 audioManager.setSpeakerphoneOn(flag); in turnOnSpeaker()
1795 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in isSpeakerOn() local
1796 return audioManager.isSpeakerphoneOn(); in isSpeakerOn()
1802 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in turnOnNoiseSuppression() local
1810 audioManager.setParameters("noise_suppression=auto"); in turnOnNoiseSuppression()
1812 audioManager.setParameters("noise_suppression=off"); in turnOnNoiseSuppression()
1845 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in isNoiseSuppressionOn() local
1846 String noiseSuppression = audioManager.getParameters("noise_suppression"); in isNoiseSuppressionOn()
DEmergencyDialer.java622 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in playTone() local
623 int ringerMode = audioManager.getRingerMode(); in playTone()
DPhoneGlobals.java400 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local
401 audioManager.setParameter(SettingsConstants.HAC_KEY, in onCreate()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DWiredHeadsetManager.java38 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in WiredHeadsetManager() local
39 mIsPluggedIn = audioManager.isWiredHeadsetOn(); in WiredHeadsetManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSoundSettingsTest.java53 AudioManager audioManager = mock(AudioManager.class); in testNonIndexableKeys_existInXmlLayout() local
54 doReturn(audioManager).when(context).getSystemService(Context.AUDIO_SERVICE); in testNonIndexableKeys_existInXmlLayout()
/packages/services/Car/service/src/com/android/car/
DVolumeUtils.java159 public VolumeUtils(AudioManager audioManager) { in VolumeUtils() argument
160 mAudioManager = audioManager; in VolumeUtils()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java1101 final AudioManager audioManager = (AudioManager) context in playObservableConversationNotificationSound() local
1104 audioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL; in playObservableConversationNotificationSound()
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/
DDialpadFragment.java1126 AudioManager audioManager = in playTone() local
1128 int ringerMode = audioManager.getRingerMode(); in playTone()