Home
last modified time | relevance | path

Searched refs:mAudioManager (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioManagerTest.java55 private AudioManager mAudioManager; field in AudioManagerTest
67 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
80 mAudioManager.setMicrophoneMute(true); in testMicrophoneMute()
81 assertTrue(mAudioManager.isMicrophoneMute()); in testMicrophoneMute()
82 mAudioManager.setMicrophoneMute(false); in testMicrophoneMute()
83 assertFalse(mAudioManager.isMicrophoneMute()); in testMicrophoneMute()
91 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in testSoundEffects()
99 mAudioManager.loadSoundEffects(); in testSoundEffects()
102 mAudioManager.playSoundEffect(SoundEffectConstants.CLICK); in testSoundEffects()
103 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP); in testSoundEffects()
[all …]
DEnumDevicesTest.java35 private AudioManager mAudioManager; field in EnumDevicesTest
45 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
46 assertNotNull(mAudioManager); in setUp()
53 deviceList = mAudioManager.getDevices(0); in test_getDevices()
60 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_getDevices()
74 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_getDevices()
88 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL); in test_getDevices()
95 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL); in test_devicesInfoFields()
175 mAudioManager.registerAudioDeviceCallback(null,null); in test_deviceCallback()
180 mAudioManager.registerAudioDeviceCallback(callback, null); in test_deviceCallback()
[all …]
DRingtoneTest.java35 private AudioManager mAudioManager; field in RingtoneTest
46 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
49 mOriginalRingerMode = mAudioManager.getRingerMode(); in setUp()
50 mOriginalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING); in setUp()
53 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING); in setUp()
59 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, in setUp()
62 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in setUp()
91 if (mAudioManager != null) { in tearDown()
95 mAudioManager.setRingerMode(mOriginalRingerMode); in tearDown()
96 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume, in tearDown()
DAudioManagerStub.java33 private AudioManager mAudioManager; field in AudioManagerStub
43 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate()
55 mAudioManager.setStreamMute(i, false); in onPause()
56 mAudioManager.setStreamSolo(i, false); in onPause()
69 mAudioManager.setStreamMute(i, true); in onResume()
70 mAudioManager.setStreamSolo(i, true); in onResume()
DRingtoneManagerTest.java44 private AudioManager mAudioManager; field in RingtoneManagerTest
60 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
62 mOriginalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING); in setUp()
69 mAudioManager.adjustStreamVolume(AudioManager.STREAM_RING, AudioManager.ADJUST_RAISE, in setUp()
84 if (mAudioManager != null) { in tearDown()
85 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume, in tearDown()
DAudioPlayRoutingNative.java37 private AudioManager mAudioManager; field in AudioPlayRoutingNative
48 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
49 assertNotNull(mAudioManager); in setUp()
109 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in testRouting()
DAudioRecordRoutingNative.java37 private AudioManager mAudioManager; field in AudioRecordRoutingNative
48 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
49 assertNotNull(mAudioManager); in setUp()
119 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in testRouting()
DRoutingTest.java50 private AudioManager mAudioManager; field in RoutingTest
57 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
58 assertNotNull(mAudioManager); in setUp()
94 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_audioTrack_preferredDevice()
310 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_audioRecord_preferredDevice()
DMediaSessionTest.java55 private AudioManager mAudioManager; field in MediaSessionTest
64 mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in setUp()
339 assertEquals(mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC), in verifyNewSession()
/cts/tests/tests/permission/src/android/permission/cts/
DNoAudioPermissionTest.java28 private AudioManager mAudioManager; field in NoAudioPermissionTest
34 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
35 assertNotNull(mAudioManager); in setUp()
45 boolean muteState = mAudioManager.isMicrophoneMute(); in testSetMicrophoneMute()
46 int originalMode = mAudioManager.getMode(); in testSetMicrophoneMute()
48 mAudioManager.setMicrophoneMute(!muteState); in testSetMicrophoneMute()
49 assertEquals(muteState, mAudioManager.isMicrophoneMute()); in testSetMicrophoneMute()
54 mAudioManager.setMode(AudioManager.MODE_NORMAL); in testSetMicrophoneMute()
55 assertEquals(originalMode, mAudioManager.getMode()); in testSetMicrophoneMute()
57 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in testSetMicrophoneMute()
[all …]
DTelephonyManagerPermissionTest.java34 private AudioManager mAudioManager; field in TelephonyManagerPermissionTest
43 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
44 assertNotNull(mAudioManager); in setUp()
165 int audioMode = mAudioManager.getMode(); in testSetMode()
166 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in testSetMode()
167 assertEquals(audioMode, mAudioManager.getMode()); in testSetMode()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAudioRestrictionTest.java29 private AudioManager mAudioManager; field in AudioRestrictionTest
40 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
76 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, 1, /* flag= */ 0); in testDisallowAdjustVolume()
84 mAudioManager.adjustVolume(AudioManager.ADJUST_RAISE, /* flag= */ 0); in testDisallowAdjustVolume()
85 assertEquals(1, mAudioManager.getStreamVolume(AudioManager.STREAM_RING)); in testDisallowAdjustVolume()
93 mAudioManager.adjustVolume(AudioManager.ADJUST_RAISE, /* flag= */ 0); in testDisallowAdjustVolume()
97 return mAudioManager.getStreamVolume(AudioManager.STREAM_RING); in testDisallowAdjustVolume()
110 mAudioManager.setMicrophoneMute(false); in testDisallowUnmuteMicrophone()
111 assertFalse(mAudioManager.isMicrophoneMute()); in testDisallowUnmuteMicrophone()
119 return mAudioManager.isMicrophoneMute(); in testDisallowUnmuteMicrophone()
[all …]
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioGroupTest.java35 private AudioManager mAudioManager; field in AudioGroupTest
45 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
46 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setUp()
74 mAudioManager.setMode(AudioManager.MODE_NORMAL); in tearDown()
/cts/tools/dex-tools/dex/
Dclasses.out.dex10606 private android.media.AudioManager mAudioManager
88388 private android.media.AudioManager mAudioManager