/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/ |
D | HdmiCecAudioManager.java | 56 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/ |
D | BackgroundCallAudioTest.java | 46 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 …]
|
D | IncomingCallTest.java | 146 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()
|
D | ConnectionServiceTest.java | 139 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in testVoipAudioModePropagation() local 149 return audioManager.getMode(); in testVoipAudioModePropagation() 166 return audioManager.getMode(); in testVoipAudioModePropagation()
|
D | CallDetailsTest.java | 826 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()
|
D | BaseTelecomTestWithMockServices.java | 1699 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/ |
D | AudioInputDeviceNotificationsActivity.java | 89 AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); in onCreate() local 90 audioManager.registerAudioDeviceCallback(new TestAudioDeviceCallback(), null); in onCreate()
|
D | AudioOutputDeviceNotificationsActivity.java | 89 AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); in onCreate() local 90 audioManager.registerAudioDeviceCallback(new TestAudioDeviceCallback(), null); in onCreate()
|
D | HifiUltrasoundTestActivity.java | 90 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local 91 String micSupportString = audioManager.getProperty( in onCreate() 93 String spkrSupportString = audioManager.getProperty( in onCreate()
|
D | HifiUltrasoundSpeakerTestActivity.java | 108 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/ |
D | AudioNativeTest.java | 246 AudioManager audioManager = in testInputChannelMasks() local 248 AudioDeviceInfo[] inputDevices = audioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in testInputChannelMasks()
|
D | AudioTrackSurroundTest.java | 109 AudioManager audioManager = (AudioManager) getContext() in scanDevicesForEncodings() local 111 AudioDeviceInfo[] infos = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in scanDevicesForEncodings()
|