/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | AudioTestUtils.java | 27 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/ |
D | AlarmVolumePreference.java | 59 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/ |
D | ActivityMusic.java | 189 … 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/ |
D | Ringer.java | 120 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()
|
D | TtyManager.java | 109 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in updateAudioTtyMode() local 110 audioManager.setParameters("tty_mode=" + audioTtyMode); in updateAudioTtyMode()
|
D | CallAudioModeStateMachine.java | 471 public CallAudioModeStateMachine(AudioManager audioManager) { in CallAudioModeStateMachine() argument 473 mAudioManager = audioManager; in CallAudioModeStateMachine()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenModeVoiceActivity.java | 62 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/ |
D | BasicCallTests.java | 541 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/ |
D | NotificationPlayer.java | 85 final AudioManager audioManager = in run() local 97 audioManager.requestAudioFocus(null, mCmd.stream, in run() 110 mAudioManager = audioManager; in run()
|
D | MediaUtilImpl.java | 36 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in playSound() local
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneUtils.java | 1764 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()
|
D | EmergencyDialer.java | 622 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in playTone() local 623 int ringerMode = audioManager.getRingerMode(); in playTone()
|
D | PhoneGlobals.java | 400 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/ |
D | WiredHeadsetManager.java | 38 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/ |
D | SoundSettingsTest.java | 53 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/ |
D | VolumeUtils.java | 159 public VolumeUtils(AudioManager audioManager) { in VolumeUtils() argument 160 mAudioManager = audioManager; in VolumeUtils()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleNotifications.java | 1101 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/ |
D | DialpadFragment.java | 1126 AudioManager audioManager = in playTone() local 1128 int ringerMode = audioManager.getRingerMode(); in playTone()
|