Home
last modified time | relevance | path

Searched refs:STREAM_MUSIC (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioTrackTest.java142 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorMono16MusicStream()
155 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorStereo16MusicStream()
168 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorMono16MusicStatic()
181 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorStereo16MusicStatic()
198 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorMono8MusicStream()
210 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorStereo8MusicStream()
222 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorMono8MusicStatic()
234 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorStereo8MusicStatic()
255 AudioManager.STREAM_MUSIC, AudioManager.STREAM_NOTIFICATION, in testConstructorStreamType()
309 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testPlaybackHeadPositionAfterInit()
[all …]
DMediaPresetReverbTest.java203 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification()
204 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0AuxiliarySoundModification()
205 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0AuxiliarySoundModification()
221 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification()
258 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0AuxiliarySoundModification()
276 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_1InsertSoundModification()
277 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_1InsertSoundModification()
278 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_1InsertSoundModification()
292 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_1InsertSoundModification()
343 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_1InsertSoundModification()
DMediaVisualizerTest.java236 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0PollingCapture()
237 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0PollingCapture()
238 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0PollingCapture()
253 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0PollingCapture()
299 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0PollingCapture()
315 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_1ListenerCapture()
316 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_1ListenerCapture()
317 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_1ListenerCapture()
332 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_1ListenerCapture()
431 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_1ListenerCapture()
[all …]
DMediaAudioManagerTest.java146 AudioManager.STREAM_MUSIC, in verifyAudioFocusLoss()
151 result = mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, in verifyAudioFocusLoss()
217 AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); in testAudioFocusStressListenerRequestAbandon()
231 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in testAudioFocusStressNoListenerRequestAbandon()
235 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, in testAudioFocusStressNoListenerRequestAbandon()
DMediaEnvReverbTest.java358 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification()
359 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0AuxiliarySoundModification()
360 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0AuxiliarySoundModification()
376 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification()
415 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0AuxiliarySoundModification()
433 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_1InsertSoundModification()
434 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_1InsertSoundModification()
435 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_1InsertSoundModification()
449 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_1InsertSoundModification()
502 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_1InsertSoundModification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DEventsTest.java137 new Object[]{AudioSystem.STREAM_MUSIC, Events.ICON_STATE_MUTE}, in data()
142 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 0}, in data()
147 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 1}, in data()
152 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 0}, in data()
156 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 0}, in data()
160 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 0}, in data()
164 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 0}, in data()
169 new Object[]{AudioSystem.STREAM_MUSIC, /* volume */ 1}, in data()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DTonesAutoTest.java40 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesDtmfTest()
64 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesSupervisoryTest()
101 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesProprietaryTest()
126 toneGen1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesSimultaneousTest()
127 toneGen2 = new ToneGenerator(AudioManager.STREAM_MUSIC, 50); in tonesSimultaneousTest()
156 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in tonesStressTest()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecLocalDeviceAudioSystemTest.java106 case STREAM_MUSIC: in setUp()
116 case STREAM_MUSIC: in setUp()
126 case STREAM_MUSIC: in setUp()
137 case STREAM_MUSIC: in setUp()
438 AudioManager.STREAM_MUSIC)).isFalse(); in systemAudioModeMuting_enabled()
442 AudioManager.STREAM_MUSIC)).isTrue(); in systemAudioModeMuting_enabled()
453 AudioManager.STREAM_MUSIC)).isFalse(); in systemAudioModeMuting_disabled()
457 AudioManager.STREAM_MUSIC)).isFalse(); in systemAudioModeMuting_disabled()
697 .getStreamVolume(AudioManager.STREAM_MUSIC); in giveAudioStatus_volumeEnabled()
699 .isStreamMute(AudioManager.STREAM_MUSIC); in giveAudioStatus_volumeEnabled()
[all …]
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioProductStrategyTest.java84 assertEquals(AudioSystem.STREAM_MUSIC, in testAudioAttributesFromStreamTypes()
134 assertEquals(AudioSystem.STREAM_MUSIC, in testAudioAttributesFromStreamTypes()
188 streamTypeFromUsage, AudioSystem.STREAM_MUSIC); in testAudioAttributesToStreamTypes()
209 assertEquals(streamTypeFromUsage, AudioSystem.STREAM_MUSIC); in testAudioAttributesToStreamTypes()
DAudioVolumesTestBase.java45 AudioManager.STREAM_SYSTEM, AudioManager.STREAM_RING, AudioManager.STREAM_MUSIC,
/frameworks/base/services/core/java/com/android/server/media/
DSystemMediaRoute2Provider.java219 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in setRouteVolume()
269 .setVolumeMax(mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)) in updateDeviceRoute()
394 int devices = mAudioManager.getDevicesForStream(AudioManager.STREAM_MUSIC); in updateVolume()
395 int volume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in updateVolume()
425 if (streamType != AudioManager.STREAM_MUSIC) { in onReceive()
DVolumeCtrl.java67 int stream = AudioManager.STREAM_MUSIC; in run()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java389 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC
395 AudioSystem.STREAM_MUSIC, // STREAM_TTS
396 AudioSystem.STREAM_MUSIC, // STREAM_ACCESSIBILITY
397 AudioSystem.STREAM_MUSIC // STREAM_ASSISTANT
400 AudioSystem.STREAM_MUSIC, // STREAM_VOICE_CALL
401 AudioSystem.STREAM_MUSIC, // STREAM_SYSTEM
402 AudioSystem.STREAM_MUSIC, // STREAM_RING
403 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC
404 AudioSystem.STREAM_MUSIC, // STREAM_ALARM
405 AudioSystem.STREAM_MUSIC, // STREAM_NOTIFICATION
[all …]
DAudioDeviceInventory.java343 mDeviceBroker.postSetVolumeIndexOnDevice(AudioSystem.STREAM_MUSIC, in onSetA2dpSinkConnectionState()
477 mDeviceBroker.postSetVolumeIndexOnDevice(AudioSystem.STREAM_MUSIC, in onBluetoothA2dpActiveDeviceChange()
499 int musicDevice = mDeviceBroker.getDeviceForStream(AudioSystem.STREAM_MUSIC); in onBluetoothA2dpActiveDeviceChange()
1187 musicDevice = mDeviceBroker.getDeviceForStream(AudioSystem.STREAM_MUSIC); in checkSendBecomingNoisyIntentInt()
1197 if (!mAudioSystem.isStreamActive(AudioSystem.STREAM_MUSIC, 0 /*not looking in past*/) in checkSendBecomingNoisyIntentInt()
/frameworks/base/services/core/java/com/android/server/hdmi/
DVolumeControlAction.java163 int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in shouldUpdateAudioVolume()
165 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in shouldUpdateAudioVolume()
DHdmiCecLocalDeviceAudioSystem.java746 int volume = mService.getAudioManager().getStreamVolume(AudioManager.STREAM_MUSIC); in reportAudioStatus()
747 boolean mute = mService.getAudioManager().isStreamMute(AudioManager.STREAM_MUSIC); in reportAudioStatus()
748 int maxVolume = mService.getAudioManager().getStreamMaxVolume(AudioManager.STREAM_MUSIC); in reportAudioStatus()
749 int minVolume = mService.getAudioManager().getStreamMinVolume(AudioManager.STREAM_MUSIC); in reportAudioStatus()
806 mService.getAudioManager().isStreamMute(AudioManager.STREAM_MUSIC); in setSystemAudioMode()
811 AudioManager.STREAM_MUSIC, in setSystemAudioMode()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerSetAudioStreamTypeStateUnitTest.java57 player.setAudioStreamType(AudioManager.STREAM_MUSIC); in invokeMethodUnderTest()
/frameworks/base/media/java/android/media/
DAudioAttributes.java1012 case AudioSystem.STREAM_MUSIC: in setInternalLegacyStreamType()
1437 case AudioSystem.STREAM_MUSIC: in usageForStreamType()
1516 AudioSystem.STREAM_MUSIC : AudioSystem.STREAM_TTS; in toVolumeStreamType()
1528 return AudioSystem.STREAM_MUSIC; in toVolumeStreamType()
1554 return AudioSystem.STREAM_MUSIC; in toVolumeStreamType()
1560 return AudioSystem.STREAM_MUSIC; in toVolumeStreamType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogControllerImpl.java112 STREAMS.put(AudioSystem.STREAM_MUSIC, R.string.stream_music); in STREAMS.put() argument
464 if (stream == AudioManager.STREAM_MUSIC) { in checkRoutedToBluetoothW()
466 (mAudio.getDevicesForStream(AudioManager.STREAM_MUSIC) & in checkRoutedToBluetoothW()
494 changed |= checkRoutedToBluetoothW(showUI ? AudioManager.STREAM_MUSIC : stream); in onVolumeChangedW()
575 case AudioSystem.STREAM_MUSIC:
1210 changed |= checkRoutedToBluetoothW(AudioManager.STREAM_MUSIC);
/frameworks/base/media/java/android/media/audiopolicy/
DAudioProductStrategy.java154 return AudioSystem.STREAM_MUSIC; in getLegacyStreamTypeForStrategyWithAudioAttributes()
161 return AudioSystem.STREAM_MUSIC; in getLegacyStreamTypeForStrategyWithAudioAttributes()
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0); in initSoundPool()
418 setVolumeControlStream(AudioManager.STREAM_MUSIC); in onCreate()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java534 mCurrentMaxIndex = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in updateVolume()
535 mCurrentIndex = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in updateVolume()
543 if (streamType != AudioManager.STREAM_MUSIC) { in handleVolumeChange()
555 if (streamType != AudioManager.STREAM_MUSIC) { in handleVolumeChange()
848 int sinkDevice = mAudioManager.getDevicesForStream(AudioManager.STREAM_MUSIC); in findAudioSinkFromAudioPolicy()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceBrokerTest.java204 when(mMockAudioService.getDeviceForStream(AudioManager.STREAM_MUSIC)) in doTestConnectionDisconnectionReconnection()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEnvReverbTest.java82 R.raw.mp3_sample, AudioManager.STREAM_MUSIC, 0); in onCreate()
86 AudioManager.STREAM_MUSIC, 0); in onCreate()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestActivity.java98 setVolumeControlStream(AudioManager.STREAM_MUSIC); in onCreate()

12