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() 87 int volume = minVolume + ((maxVolume - minVolume) * percentVolume / 100); in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | RingerModeActivity.java | 863 int maxVolume = mAudioManager.getStreamMaxVolume(stream); in test() local 869 maxVolume), in test() 870 minVolume < maxVolume); in test() 874 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in test() 893 maxVolume = maxMusicVolume = curvol; in test() 895 mAudioManager.setStreamVolume(stream, maxVolume, 0); in test() 897 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in test() 906 assertEquals(maxVolume - volumeDelta, mAudioManager.getStreamVolume(stream)); in test() 909 mAudioManager.setStreamVolume(stream, maxVolume, 0); in test() 929 while (volume < maxVolume) { in test() [all …]
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | RingtoneTest.java | 63 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING); in setUp() local 67 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, in setUp() 70 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, in setUp() 77 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, in setUp()
|
D | SoundDoseHelperTest.java | 200 int maxVolume = am.getStreamMaxVolume(STREAM_MUSIC); in playLoudSound() local 201 am.setStreamVolume(STREAM_MUSIC, maxVolume, /* flags= */0); in playLoudSound()
|
D | AudioManagerTest.java | 1069 int maxVolume = mAudioManager.getStreamMaxVolume(stream); in testVolume() local 1075 maxVolume), in testVolume() 1076 minVolume < maxVolume); in testVolume() 1081 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in testVolume() 1100 maxVolume = maxMusicVolume = curvol; in testVolume() 1102 waitForStreamVolumeSet(stream, maxVolume); in testVolume() 1111 stream, maxVolume - volumeDelta, in testVolume() 1112 "Vol ADJUST_LOWER suggested stream:" + stream + " maxVol:" + maxVolume); in testVolume() local 1115 mAudioManager.setStreamVolume(stream, maxVolume, 0); in testVolume() 1132 while (volume < maxVolume) { in testVolume() [all …]
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | SystemMediaRouter2Test.java | 633 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged() local 640 assertThat(selectedSystemRoute.getVolumeMax()).isEqualTo(maxVolume); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged() 680 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_invokesOnControllerUpdated() local 687 assertThat(selectedSystemRoute.getVolumeMax()).isEqualTo(maxVolume); in adjustSelectedRouteVolume_invokesOnControllerUpdated() 1364 int maxVolume = targetController.getVolumeMax(); in testRoutingControllerSetSessionVolume() local 1365 int targetVolume = (currentVolume == maxVolume) ? currentVolume - 1 : (currentVolume + 1); in testRoutingControllerSetSessionVolume()
|
D | MediaRouter2Test.java | 597 int maxVolume = targetController.getVolumeMax(); in testSetSessionVolume() local 598 int targetVolume = (currentVolume == maxVolume) ? currentVolume - 1 : (currentVolume + 1); in testSetSessionVolume() 1476 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in testCallbacksAreCalledWhenVolumeChanged() local 1483 assertThat(selectedSystemRoute.getVolumeMax()).isEqualTo(maxVolume); in testCallbacksAreCalledWhenVolumeChanged() 1520 final int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in adjustSelectedRouteVolume_callsOnControlledUpdated() local 1527 assertThat(selectedSystemRoute.getVolumeMax()).isEqualTo(maxVolume); in adjustSelectedRouteVolume_callsOnControlledUpdated()
|
D | MediaRouterTest.java | 183 int maxVolume = route.getVolumeMax(); in testDefaultRouteInfo() local 184 assertThat(curVolume <= maxVolume).isTrue(); in testDefaultRouteInfo()
|