Home
last modified time | relevance | path

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

/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/
DHdmiCecAudioManager.java56 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local
60 audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, in onCreate()
64 audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, in onCreate()
68 if (audioManager.isStreamMute(AudioManager.STREAM_MUSIC)) { in onCreate()
71 int minVolume = audioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in onCreate()
72 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in onCreate()
73 int volume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in onCreate()
80 int minVolume = audioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in onCreate()
81 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in onCreate()
83 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in onCreate()
/cts/tests/tests/telecom/src/android/telecom/cts/
DBackgroundCallAudioTest.java46 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in setUp() local
47 audioManager.adjustStreamVolume(AudioManager.STREAM_RING, in setUp()
86 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningAllow() local
88 assertAudioMode(audioManager, MODE_CALL_SCREENING); in testAudioProcessingFromCallScreeningAllow()
112 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningDisallow() local
114 assertAudioMode(audioManager, MODE_CALL_SCREENING); in testAudioProcessingFromCallScreeningDisallow()
140 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningMissed() local
142 assertAudioMode(audioManager, MODE_CALL_SCREENING); in testAudioProcessingFromCallScreeningMissed()
166 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() local
168 assertAudioMode(audioManager, MODE_CALL_SCREENING); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
[all …]
DIncomingCallTest.java146 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testRingOnIncomingCall() local
159 audioManager.registerAudioPlaybackCallback(callback, new Handler(Looper.getMainLooper())); in testRingOnIncomingCall()
169 audioManager.unregisterAudioPlaybackCallback(callback); in testRingOnIncomingCall()
DConnectionServiceTest.java139 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in testVoipAudioModePropagation() local
149 return audioManager.getMode(); in testVoipAudioModePropagation()
166 return audioManager.getMode(); in testVoipAudioModePropagation()
DCallDetailsTest.java826 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in testSetVoipAudioMode() local
827 assertAudioMode(audioManager, AudioManager.MODE_IN_COMMUNICATION); in testSetVoipAudioMode()
831 assertAudioMode(audioManager, AudioManager.MODE_IN_CALL); in testSetVoipAudioMode()
DBaseTelecomTestWithMockServices.java1699 public void assertAudioMode(final AudioManager audioManager, final int expectedMode) { in assertAudioMode() argument
1709 return audioManager.getMode() == expectedMode; in assertAudioMode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioInputDeviceNotificationsActivity.java89 AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); in onCreate() local
90 audioManager.registerAudioDeviceCallback(new TestAudioDeviceCallback(), null); in onCreate()
DAudioOutputDeviceNotificationsActivity.java89 AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); in onCreate() local
90 audioManager.registerAudioDeviceCallback(new TestAudioDeviceCallback(), null); in onCreate()
DHifiUltrasoundTestActivity.java90 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local
91 String micSupportString = audioManager.getProperty( in onCreate()
93 String spkrSupportString = audioManager.getProperty( in onCreate()
DHifiUltrasoundSpeakerTestActivity.java108 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local
109 String micSupportString = audioManager.getProperty( in onCreate()
111 String spkrSupportString = audioManager.getProperty( in onCreate()
/cts/tests/tests/media/src/android/media/cts/
DAudioNativeTest.java246 AudioManager audioManager = in testInputChannelMasks() local
248 AudioDeviceInfo[] inputDevices = audioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in testInputChannelMasks()
DAudioTrackSurroundTest.java109 AudioManager audioManager = (AudioManager) getContext() in scanDevicesForEncodings() local
111 AudioDeviceInfo[] infos = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in scanDevicesForEncodings()