Searched refs:maxVolume (Results 1 – 8 of 8) sorted by relevance
/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/ |
D | HdmiCecAudioManager.java | 59 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in onCreate() local 71 int percentageVolume = 100 * volumeLevel / (maxVolume - minVolume); in onCreate() 79 int volume = minVolume + ((maxVolume - minVolume) * percentVolume / 100); in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | RingerModeActivity.java | 853 int maxVolume = mAudioManager.getStreamMaxVolume(stream); in test() local 859 maxVolume), in test() 860 minVolume < maxVolume); in test() 864 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in test() 883 maxVolume = maxMusicVolume = curvol; in test() 885 mAudioManager.setStreamVolume(stream, maxVolume, 0); in test() 887 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in test() 896 assertEquals(maxVolume - volumeDelta, mAudioManager.getStreamVolume(stream)); in test() 899 mAudioManager.setStreamVolume(stream, maxVolume, 0); in test() 914 while (volume < maxVolume) { in test() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | RingtoneTest.java | 61 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING); in setUp() local 65 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, in setUp() 68 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, in setUp() 75 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, in setUp()
|
D | AudioManagerTest.java | 703 int maxVolume = mAudioManager.getStreamMaxVolume(stream); in testVolume() local 709 maxVolume), in testVolume() 710 minVolume < maxVolume); in testVolume() 715 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in testVolume() 734 maxVolume = maxMusicVolume = curvol; in testVolume() 736 mAudioManager.setStreamVolume(stream, maxVolume, 0); in testVolume() 738 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in testVolume() 742 assertStreamVolumeEquals(stream, maxVolume - volumeDelta, in testVolume() 743 "Vol ADJUST_LOWER suggested stream:" + stream + " maxVol:" + maxVolume); in testVolume() 746 mAudioManager.setStreamVolume(stream, maxVolume, 0); in testVolume() [all …]
|
D | SystemMediaRouter2Test.java | 343 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged() local 350 assertEquals(maxVolume, selectedSystemRoute.getVolumeMax()); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged() 884 int maxVolume = targetController.getVolumeMax(); in testRoutingControllerSetSessionVolume() local 885 int targetVolume = (currentVolume == maxVolume) ? currentVolume - 1 : (currentVolume + 1); in testRoutingControllerSetSessionVolume()
|
D | MediaRouter2Test.java | 495 int maxVolume = targetController.getVolumeMax(); in testSetSessionVolume() local 496 int targetVolume = (currentVolume == maxVolume) ? currentVolume - 1 : (currentVolume + 1); in testSetSessionVolume() 1015 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testCallbacksAreCalledWhenVolumeChanged() local 1022 assertEquals(maxVolume, selectedSystemRoute.getVolumeMax()); in testCallbacksAreCalledWhenVolumeChanged()
|
D | MediaRouterTest.java | 164 int maxVolume = route.getVolumeMax(); in testDefaultRouteInfo() local 165 assertTrue(curVolume <= maxVolume); in testDefaultRouteInfo()
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 277 float maxVolume = mPlayback.getMaxVolume(); in handleStartPlayback() 278 float newVolume = (maxVolume - minVolume) * volume / 100 + minVolume; in handleStartPlayback() 280 Log.d(TAG, "setting volume " + newVolume + " max " + maxVolume + in handleStartPlayback()
|