Home
last modified time | relevance | path

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

12

/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/
DHdmiCecAudioManager.java58 int minVolume = audioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in onCreate()
59 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in onCreate()
62 audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, in onCreate()
66 audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, in onCreate()
70 int volumeLevel = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in onCreate()
72 if (audioManager.isStreamMute(AudioManager.STREAM_MUSIC)) { in onCreate()
78 audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, in onCreate()
82 audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, in onCreate()
88 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java25 import static android.media.AudioManager.STREAM_MUSIC;
221 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 1, 0); in tearDown()
243 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 1, 0); in tearDown()
838 int[] streams = {STREAM_MUSIC, in test()
857 int maxMusicVolume = mAudioManager.getStreamMaxVolume(STREAM_MUSIC); in test()
880 if (stream == STREAM_MUSIC && mAudioManager.isWiredHeadsetOn()) { in test()
984 int maxMusicVolume = mAudioManager.getStreamMaxVolume(STREAM_MUSIC); in test()
988 mp.setAudioStreamType(STREAM_MUSIC); in test()
1008 assertEquals(maxMusicVolume, mAudioManager.getStreamVolume(STREAM_MUSIC)); in test()
1012 mAudioManager.setStreamVolume(STREAM_MUSIC, 0, 0); in test()
[all …]
DAudioFrequencyActivity.java138 mMaxLevel = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in setMaxLevel()
139 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, (int)(mMaxLevel), 0); in setMaxLevel()
143 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 0, 0); in setMinLevel()
147 int currentLevel = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in testMaxLevel()
DAudioRecordHelper.java21 AudioTrack.getNativeOutputSampleRate(AudioManager.STREAM_MUSIC), 48000, 44100};
DCommon.java26 = AudioTrack.getNativeOutputSampleRate(AudioManager.STREAM_MUSIC);
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioManagerTest.java32 import static android.media.AudioManager.STREAM_MUSIC;
177 STREAM_SYSTEM, STREAM_RING, STREAM_MUSIC,
256 STREAM_MUSIC, in setUp()
436 Integer.MIN_VALUE) == STREAM_MUSIC))); in testVolumeChangedIntent()
438 int mediaVol = mAudioManager.getStreamVolume(STREAM_MUSIC); in testVolumeChangedIntent()
440 final int maxMediaVol = mAudioManager.getStreamMaxVolume(STREAM_MUSIC); in testVolumeChangedIntent()
442 mAudioManager.setStreamVolume(STREAM_MUSIC, in testVolumeChangedIntent()
450 .isEqualTo(STREAM_MUSIC); in testVolumeChangedIntent()
535 mp.setAudioStreamType(STREAM_MUSIC); in testMusicActive()
822 STREAM_MUSIC, new MuteStateTransition(false, false), in testAdjustUnmuteNotificationInVibrate()
[all …]
DSoundDoseHelperTest.java23 import static android.media.AudioManager.STREAM_MUSIC;
176 prevVolume = am.getStreamVolume(STREAM_MUSIC); in testFrameworkMomentaryExposure()
187 am.setStreamVolume(STREAM_MUSIC, prevVolume, /* flags= */0); in testFrameworkMomentaryExposure()
200 int maxVolume = am.getStreamMaxVolume(STREAM_MUSIC); in playLoudSound()
201 am.setStreamVolume(STREAM_MUSIC, maxVolume, /* flags= */0); in playLoudSound()
DAudioTrackTest.java156 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorMono16MusicStream()
168 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorStereo16MusicStream()
180 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorMono16MusicStatic()
192 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorStereo16MusicStatic()
208 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorMono8MusicStream()
220 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorStereo8MusicStream()
232 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorMono8MusicStatic()
244 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, in testConstructorStereo8MusicStatic()
263 final int[] STREAM_TYPES = { AudioManager.STREAM_ALARM, AudioManager.STREAM_MUSIC, in testConstructorStreamType()
312 AudioTrack.getNativeOutputSampleRate(AudioManager.STREAM_MUSIC); in testBuilderDefault()
[all …]
DVolumeInfoTest.java51 exerciseParcelableWriteToParcelCreate(AudioManager.STREAM_MUSIC, null /*AudioVolumeGroup*/, in testStreamTypeParcelableWriteToParcelCreate()
54 exerciseParcelableWriteToParcelCreate(AudioManager.STREAM_MUSIC, null /*AudioVolumeGroup*/, in testStreamTypeParcelableWriteToParcelCreate()
57 exerciseParcelableWriteToParcelCreate(AudioManager.STREAM_MUSIC, null /*AudioVolumeGroup*/, in testStreamTypeParcelableWriteToParcelCreate()
DVisualizerTest.java375 int originalVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); in test4_1MeasurePeakRms()
376 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test4_1MeasurePeakRms()
377 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0); in test4_1MeasurePeakRms()
403 am.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in test4_1MeasurePeakRms()
449 int originalVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); in test4_2MeasurePeakRmsLongMP3()
450 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test4_2MeasurePeakRmsLongMP3()
451 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0); in test4_2MeasurePeakRmsLongMP3()
476 am.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in test4_2MeasurePeakRmsLongMP3()
DLoudnessEnhancerTest.java179 int originalVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); in test3_0MeasureGainChange()
180 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test3_0MeasureGainChange()
181 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0); in test3_0MeasureGainChange()
227 am.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in test3_0MeasureGainChange()
DAudioDeviceVolumeManagerTest.java124 final int minIndex = am.getStreamMinVolume(AudioManager.STREAM_MUSIC); in testSetGetVolume()
125 final int maxIndex = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testSetGetVolume()
127 final VolumeInfo volMedia = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in testSetGetVolume()
DSoundPoolHapticTest.java31 .setLegacyStreamType(AudioManager.STREAM_MUSIC) in getAudioAttributes()
DRingtoneTest.java149 mRingtone.setStreamType(AudioManager.STREAM_MUSIC); in testRingtone()
150 assertEquals(AudioManager.STREAM_MUSIC, mRingtone.getStreamType()); in testRingtone()
DAudioTrackLatencyTest.java180 public int streamType = AudioManager.STREAM_MUSIC;
439 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testGetUnderrunCount()
556 final int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC; in testGetUnderrunCountSleep()
638 private final static int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC;
DAudioAttributesTest.java85 for (int testType : new int[] { AudioManager.STREAM_ALARM, AudioManager.STREAM_MUSIC, in testGetVolumeControlStreamVsLegacyStream()
254 final int stream = AudioManager.STREAM_MUSIC; in testSetLegacyStreamOnBuilder()
DAudioTrack_ListenerTest.java46 private final static int TEST_STREAM_TYPE = AudioManager.STREAM_MUSIC;
DRoutingTest.java98 AudioManager.STREAM_MUSIC, in allocAudioTrack()
460 AudioManager.STREAM_MUSIC, in test_audioTrack_getRoutedDevice()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAudioRestrictionTest.java102 mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); in testDisallowAdjustVolume()
109 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 1, /* flag= */ 0); in testDisallowAdjustVolume()
118 assertEquals(1, mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC)); in testDisallowAdjustVolume()
130 return mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in testDisallowAdjustVolume()
/cts/hostsidetests/media/app/AudioTest/src/android/media/audio/app/
DAudioVolumeBehaviorCompatTest.java89 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in changeEnabled_getDeviceVolumeBehaviorReturnsAbsoluteVolumeAdjustOnlyBehavior()
120 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in changeDisabled_getDeviceVolumeBehaviorReturnsFullVolumeBehavior()
/cts/tests/tests/media/common/src/android/media/cts/
DNonBlockingAudioTrack.java89 AudioManager.STREAM_MUSIC, in NonBlockingAudioTrack()
99 .setLegacyStreamType(AudioManager.STREAM_MUSIC) in NonBlockingAudioTrack()
/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaPlayerTest.java339 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testPlayAudioFromDataURI()
408 mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
467 mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
513 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testPlayAudioLooping()
558 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in runMidiTest()
732 oldVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); in testPlayAudioTwice()
733 am.setStreamVolume(AudioManager.STREAM_MUSIC, 1, 0); in testPlayAudioTwice()
735 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testPlayAudioTwice()
756 am.setStreamVolume(AudioManager.STREAM_MUSIC, oldVolume, 0); in testPlayAudioTwice()
992 mp1.setAudioStreamType(AudioManager.STREAM_MUSIC); in testGapless()
[all …]
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DSystemMediaRouter2Test.java633 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged()
634 final int minVolume = mAudioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged()
635 final int originalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged()
664 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, targetVolume, 0); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged()
668 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged()
680 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_invokesOnControllerUpdated()
681 final int minVolume = mAudioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_invokesOnControllerUpdated()
682 final int originalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_invokesOnControllerUpdated()
715 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, targetVolume, 0); in adjustSelectedRouteVolume_invokesOnControllerUpdated()
719 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in adjustSelectedRouteVolume_invokesOnControllerUpdated()
DMediaRouter2Test.java1476 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testCallbacksAreCalledWhenVolumeChanged()
1477 final int minVolume = mAudioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in testCallbacksAreCalledWhenVolumeChanged()
1478 final int originalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in testCallbacksAreCalledWhenVolumeChanged()
1506 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, targetVolume, 0); in testCallbacksAreCalledWhenVolumeChanged()
1510 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in testCallbacksAreCalledWhenVolumeChanged()
1520 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_callsOnControlledUpdated()
1521 final int minVolume = mAudioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_callsOnControlledUpdated()
1522 final int originalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_callsOnControlledUpdated()
1558 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, targetVolume, 0); in adjustSelectedRouteVolume_callsOnControlledUpdated()
1563 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in adjustSelectedRouteVolume_callsOnControlledUpdated()
DMediaActivityTest.java79 ALL_VOLUME_STREAMS.add(AudioManager.STREAM_MUSIC);

12