commit | 259e9fb05dc0b1d97f14962baa1c82c22888dbb1 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Wed May 27 19:40:28 2020 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Wed May 27 19:46:07 2020 -0700 |
tree | 3b0adfd05fbf63bea3690e7f3a20400fb66db94c | |
parent | b6a9837c9fbc0f866a7b2d19870ea81144085406 [diff] |
AudioManager.testVolume: don't assume index 1 is always valid Based on permissions, a stream volume index is not always valid. Remove this assumption from the test by instead using the highest non-zero value a stream can have for testing the volume adjustment behaviors. Bug: 157319908 Test: atest CtsMediaTestCases:android.media.cts.AudioManagerTest#testVolume Change-Id: I2748eaf2076b4fbe64615bdb0a5fc888f9e35087