/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailAudioManager.java | 35 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 …]
|
D | WiredHeadsetManager.java | 38 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/ |
D | AlarmVolumePreference.kt | 50 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()
|
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/services/Telecomm/src/com/android/server/telecom/ |
D | CallRecordingTonePlayer.java | 72 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()
|
D | CallAudioModeStateMachine.java | 681 AudioManager audioManager) { in CallAudioModeStateMachine() argument 683 mAudioManager = audioManager; in CallAudioModeStateMachine() 694 AudioManager audioManager, Looper looper) { in CallAudioModeStateMachine() argument 696 mAudioManager = audioManager; in CallAudioModeStateMachine()
|
D | TtyManager.java | 109 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/ |
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/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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | NewVoicemailMediaPlayer.java | 93 AudioManager audioManager = context.getSystemService(AudioManager.class); in setAudioManagerToNonSpeakerMode() local 94 audioManager.setMode(AudioManager.STREAM_MUSIC); in setAudioManagerToNonSpeakerMode() 95 audioManager.setSpeakerphoneOn(false); in setAudioManagerToNonSpeakerMode()
|
D | NewVoicemailMediaPlayerView.java | 504 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/ |
D | VisualVoicemailCallLogFragment.java | 132 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/ |
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/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpCodecConfig.java | 62 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/ |
D | AudioModeProvider.java | 81 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/ |
D | BugReportService.java | 553 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/ |
D | SoundSettingsTest.java | 54 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/ |
D | BasicCallTests.java | 592 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/ |
D | CarZonesAudioFocus.java | 49 CarZonesAudioFocus(AudioManager audioManager, in CarZonesAudioFocus() argument 63 CarAudioFocus zoneFocusListener = new CarAudioFocus(audioManager, packageManager); in CarZonesAudioFocus()
|
D | CarAudioFocus.java | 138 CarAudioFocus(AudioManager audioManager, PackageManager packageManager) { in CarAudioFocus() argument 139 mAudioManager = audioManager; in CarAudioFocus()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaBrowser.java | 84 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local 85 mPlayer = new TmaPlayer(this, mLibrary, audioManager, mHandler, mSession); in onCreate()
|
D | TmaPlayer.java | 81 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/ |
D | AvrcpVolumeManager.java | 93 AvrcpVolumeManager(Context context, AudioManager audioManager, in AvrcpVolumeManager() argument 96 mAudioManager = audioManager; in AvrcpVolumeManager()
|