Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
H A DAbsoluteVolumeBehaviorTest.java111 new VolumeInfo.Builder(AudioManager.STREAM_MUSIC).build()); in registerDispatcher_setsVolumeBehaviorToAbsolute()
129 new VolumeInfo.Builder(AudioManager.STREAM_MUSIC).build()); in registerDispatcherAfterSetDeviceVolumeBehavior_setsVolumeBehaviorToAbsolute()
147 new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in registerDispatcher_setsVolume()
158 assertThat(mAudioService.getStreamVolume(AudioManager.STREAM_MUSIC)) in registerDispatcher_setsVolume()
167 new VolumeInfo.Builder(AudioManager.STREAM_MUSIC).build()); in unregisterDispatcher_deviceBecomesVariableVolume_listenerNoLongerTriggered()
182 mAudioService.setStreamVolume(AudioManager.STREAM_MUSIC, in unregisterDispatcher_deviceBecomesVariableVolume_listenerNoLongerTriggered()
194 new VolumeInfo.Builder(AudioManager.STREAM_MUSIC).build()); in setDeviceVolumeBehavior_unregistersDispatcher()
205 mAudioService.setStreamVolume(AudioManager.STREAM_MUSIC, in setDeviceVolumeBehavior_unregistersDispatcher()
229 mAudioService.setStreamVolume(AudioManager.STREAM_MUSIC, in setStreamVolume_noAbsVolFlag_dispatchesVolumeChanged()
255 mAudioService.setStreamVolume(AudioManager.STREAM_MUSIC, in setStreamVolume_absVolFlagSet_doesNotDispatchVolumeChanged()
[all …]
H A DAudioDeviceVolumeManagerTest.java77 final int minIndex = am.getStreamMinVolume(AudioManager.STREAM_MUSIC); in testSetDeviceVolume()
78 final int maxIndex = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testSetDeviceVolume()
80 final VolumeInfo volMedia = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in testSetDeviceVolume()
92 AudioManager.STREAM_MUSIC, minIndex, AudioSystem.DEVICE_OUT_USB_DEVICE); in testSetDeviceVolume()
97 AudioManager.STREAM_MUSIC, midIndex, AudioSystem.DEVICE_OUT_USB_DEVICE); in testSetDeviceVolume()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DTvToAudioSystemAvbTest.java120 eq(new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in savlNotSupported_systemAudioDeviceSendsReportAudioStatus_adjustOnlyAvbEnabled()
143 eq(new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in avbEnabled_savlNotSupported_receiveReportAudioStatus_switchToAdjustOnlyAvb()
168 eq(new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in avbEnabled_savlFeatureAborted_receiveReportAudioStatus_switchToAdjustOnlyAvb()
183 verify(mAudioManager).setStreamVolume(eq(AudioManager.STREAM_MUSIC), eq(5), in adjustOnlyAvbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
185 verify(mAudioManager).adjustStreamVolume(eq(AudioManager.STREAM_MUSIC), in adjustOnlyAvbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
191 verify(mAudioManager).setStreamVolume(eq(AudioManager.STREAM_MUSIC), eq(8), in adjustOnlyAvbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
193 verify(mAudioManager, never()).adjustStreamVolume(eq(AudioManager.STREAM_MUSIC), in adjustOnlyAvbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
201 verify(mAudioManager).adjustStreamVolume(eq(AudioManager.STREAM_MUSIC), in adjustOnlyAvbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
209 verify(mAudioManager, never()).adjustStreamVolume(eq(AudioManager.STREAM_MUSIC), in adjustOnlyAvbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
227 new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in adjustOnlyAvbEnabled_audioDeviceVolumeAdjusted_sendsUcpAndGiveAudioStatus()
[all …]
H A DHdmiCecLocalDeviceAudioSystemTest.java385 AudioManager.STREAM_MUSIC)).isFalse(); in systemAudioModeMuting_enabled()
389 AudioManager.STREAM_MUSIC)).isTrue(); in systemAudioModeMuting_enabled()
400 AudioManager.STREAM_MUSIC)).isFalse(); in systemAudioModeMuting_disabled()
404 AudioManager.STREAM_MUSIC)).isFalse(); in systemAudioModeMuting_disabled()
661 .getStreamVolume(AudioManager.STREAM_MUSIC); in giveAudioStatus_volumeEnabled()
663 .isStreamMute(AudioManager.STREAM_MUSIC); in giveAudioStatus_volumeEnabled()
687 .getStreamVolume(AudioManager.STREAM_MUSIC); in giveAudioStatus_volumeDisabled()
689 .isStreamMute(AudioManager.STREAM_MUSIC); in giveAudioStatus_volumeDisabled()
713 .getStreamVolume(AudioManager.STREAM_MUSIC); in reportAudioStatus_volumeEnabled()
715 .isStreamMute(AudioManager.STREAM_MUSIC); in reportAudioStatus_volumeEnabled()
[all …]
H A DBaseAbsoluteVolumeBehaviorTest.java100 new VolumeInfo.Builder(AudioManager.STREAM_MUSIC)
129 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 1, EMPTY_FLAGS); in setUp()
130 mAudioManager.setStreamMute(AudioManager.STREAM_MUSIC, true); in setUp()
190 mAudioFramework.setStreamMaxVolume(AudioManager.STREAM_MUSIC, 25); in setUp()
413 eq(new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in giveAudioStatusSent_systemAudioDeviceSendsReportAudioStatus_avbEnabled()
487 verify(mAudioManager).setStreamVolume(eq(AudioManager.STREAM_MUSIC), eq(5), in avbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
489 verify(mAudioManager).adjustStreamVolume(eq(AudioManager.STREAM_MUSIC), in avbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
495 verify(mAudioManager).setStreamVolume(eq(AudioManager.STREAM_MUSIC), eq(8), in avbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
505 verify(mAudioManager).adjustStreamVolume(eq(AudioManager.STREAM_MUSIC), in avbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
536 verify(mAudioManager).setStreamVolume(eq(AudioManager.STREAM_MUSIC), eq(8), in avbEnabled_receiveReportAudioStatus_notifiesVolumeOrMuteChanges()
[all …]
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioTrackTest.java309 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testPlaybackHeadPositionAfterInit()
330 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testPlaybackHeadPositionIncrease()
358 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testPlaybackHeadPositionAfterFlush()
388 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testPlaybackHeadPositionAfterStop()
425 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testPlaybackHeadPositionAfterPause()
460 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testSetStereoVolumeMax()
486 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testSetStereoVolumeMin()
512 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testSetStereoVolumeMid()
538 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testSetPlaybackRate()
1233 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testGetMinBufferSizeTooLowSR()
[all …]
H A 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()
332 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_1ListenerCapture()
431 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_1ListenerCapture()
450 am.setStreamVolume(AudioManager.STREAM_MUSIC, volMax, 0); in test2_2PollingCaptureVolumeScaling()
[all …]
H A 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()
H A 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()
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
H A 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()
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/tests/src/com/android/systemui/accessibility/accessibilitymenu/tests/
H A DAccessibilityMenuServiceTest.java292 int resetVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in testAdjustVolume()
301 int min = audioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in testAdjustVolume()
302 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, min, in testAdjustVolume()
306 () -> audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) == min); in testAdjustVolume()
310 () -> audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) > min); in testAdjustVolume()
312 int max = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testAdjustVolume()
313 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, max, in testAdjustVolume()
317 () -> audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) == max); in testAdjustVolume()
321 () -> audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) < max); in testAdjustVolume()
323 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, in testAdjustVolume()
/aosp14/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
H A DAudioProductStrategyTest.java107 assertEquals(AudioSystem.STREAM_MUSIC, in testAudioAttributesFromStreamTypes()
157 assertEquals(AudioSystem.STREAM_MUSIC, in testAudioAttributesFromStreamTypes()
212 streamTypeFromUsage, AudioSystem.STREAM_MUSIC); in testAudioAttributesToStreamTypes()
233 assertEquals(streamTypeFromUsage, AudioSystem.STREAM_MUSIC); in testAudioAttributesToStreamTypes()
/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DSoundDoseHelper.java568 return MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC]; in safeMediaVolumeIndex()
594 AudioSystem.STREAM_MUSIC); in enforceSafeMediaVolume()
625 && (AudioService.mStreamVolumeAlias[streamType] == AudioSystem.STREAM_MUSIC) in checkSafeMediaVolume_l()
677 int device = mAudioService.getDeviceForStream(AudioSystem.STREAM_MUSIC); in onCheckMusicActive()
680 int index = mAudioService.getVssVolumeForDevice(AudioSystem.STREAM_MUSIC, in onCheckMusicActive()
858 if (AudioService.mStreamVolumeAlias[streamType] == AudioSystem.STREAM_MUSIC in updateDoseAttenuation()
861 AudioSystem.getStreamVolumeDB(AudioSystem.STREAM_MUSIC, in updateDoseAttenuation()
1086 int min = MIN_STREAM_VOLUME[AudioSystem.STREAM_MUSIC]; in getSafeDeviceMediaVolumeIndex()
1087 int max = MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC]; in getSafeDeviceMediaVolumeIndex()
1094 float gainDB = AudioSystem.getStreamVolumeDB(AudioSystem.STREAM_MUSIC, index, in getSafeDeviceMediaVolumeIndex()
H A DAudioService.java33 import static android.media.AudioManager.STREAM_MUSIC;
504 AudioSystem.STREAM_MUSIC, // STREAM_TTS
510 AudioSystem.STREAM_MUSIC, // STREAM_SYSTEM
511 AudioSystem.STREAM_MUSIC, // STREAM_RING
512 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC
513 AudioSystem.STREAM_MUSIC, // STREAM_ALARM
517 AudioSystem.STREAM_MUSIC, // STREAM_DTMF
518 AudioSystem.STREAM_MUSIC, // STREAM_TTS
552 AudioSystem.STREAM_MUSIC, // STREAM_TTS
4250 return AudioSystem.STREAM_MUSIC; in getBluetoothContextualVolumeStream()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/
H A DVolumeControlAction.java163 int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in shouldUpdateAudioVolume()
165 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in shouldUpdateAudioVolume()
H A DHdmiCecLocalDeviceAudioSystem.java907 int volume = mService.getAudioManager().getStreamVolume(AudioManager.STREAM_MUSIC); in reportAudioStatus()
908 boolean mute = mService.getAudioManager().isStreamMute(AudioManager.STREAM_MUSIC); in reportAudioStatus()
909 int maxVolume = mService.getAudioManager().getStreamMaxVolume(AudioManager.STREAM_MUSIC); in reportAudioStatus()
910 int minVolume = mService.getAudioManager().getStreamMinVolume(AudioManager.STREAM_MUSIC); in reportAudioStatus()
967 mService.getAudioManager().isStreamMute(AudioManager.STREAM_MUSIC); in setSystemAudioMode()
972 AudioManager.STREAM_MUSIC, in setSystemAudioMode()
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DSystemMediaRoute2Provider.java235 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in setRouteVolume()
418 int devices = mAudioManager.getDevicesForStream(AudioManager.STREAM_MUSIC); in updateVolume()
419 int volume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in updateVolume()
446 if (streamType != AudioManager.STREAM_MUSIC) { in onReceive()
H A DVolumeCtrl.java67 int stream = AudioManager.STREAM_MUSIC; in run()
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/
H A DAccessibilityMenuService.java333 AudioManager.STREAM_MUSIC, direction, in adjustVolume()
335 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in adjustVolume()
336 final int volume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in adjustVolume()
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaPlayerSetAudioStreamTypeStateUnitTest.java57 player.setAudioStreamType(AudioManager.STREAM_MUSIC); in invokeMethodUnderTest()
/aosp14/frameworks/base/media/java/android/media/
H A DAudioAttributes.java1194 case AudioSystem.STREAM_MUSIC: in setInternalLegacyStreamType()
1642 case AudioSystem.STREAM_MUSIC: in usageForStreamType()
1723 AudioSystem.STREAM_MUSIC : AudioSystem.STREAM_TTS; in toVolumeStreamType()
1735 return AudioSystem.STREAM_MUSIC; in toVolumeStreamType()
1761 return AudioSystem.STREAM_MUSIC; in toVolumeStreamType()
1767 return AudioSystem.STREAM_MUSIC; in toVolumeStreamType()
H A DVolumeInfo.java182 return new VolumeInfo.Builder(AudioManager.STREAM_MUSIC).build(); in getDefaultVolumeInfo()
194 private @AudioManager.PublicStreamTypes int mStreamType = AudioManager.STREAM_MUSIC;
/aosp14/frameworks/base/media/tests/SoundPoolTest/src/com/android/
H A DSoundPoolTest.java114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0); in initSoundPool()
418 setVolumeControlStream(AudioManager.STREAM_MUSIC); in onCreate()

123