| Issue 945: | AudioManagerTest #testVolume test case need modify | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Affected Version: Android 2.1 (Eclair) CTS_R5 What steps will reproduce the problem? CTS Test Case: android.media.cts.AudioManagerTest #testVolume Root Cause: Test is failed for CTS code is not compatible with Motorola’s requirement. Detailed Analysis: The failure happened on CTS code (File Name AudioManagerTest.java) as below ( marked as red for the root cause): mAudioManager.setStreamVolume(streams[i], 1, FLAG_SHOW_UI); mAudioManager.adjustStreamVolume(streams[i], ADJUST_LOWER, FLAG_ALLOW_RINGER_MODES); // lowering the volume should have changed the ringer mode assertEquals(RINGER_MODE_VIBRATE, mAudioManager.getRingerMode()); mAudioManager.adjustStreamVolume(streams[i], ADJUST_LOWER, FLAG_ALLOW_RINGER_MODES); assertEquals(RINGER_MODE_SILENT, mAudioManager.getRingerMode()); The test case requires that when volume index changes to less than 5, the ringtone mode should be RINGER_MODE_VIBRATE; then decreasing volume again, the mode shall be RINGER_MODE_SILENT. While the requirement of ISGcq00621889 should change the mode to RINGER_MODE_SILENT first, and then RINGER_MODE_VIBRATE. User would like to accept the behavior of change ringer to VIBRATE at last, so I submit this request to change the test case as mAudioManager.setStreamVolume(streams[i], 1, FLAG_SHOW_UI); mAudioManager.adjustStreamVolume(streams[i], ADJUST_LOWER, FLAG_ALLOW_RINGER_MODES); // lowering the volume should have changed the ringer mode assertEquals(RINGER_MODE_SILENT, mAudioManager.getRingerMode()); mAudioManager.adjustStreamVolume(streams[i], ADJUST_LOWER, FLAG_ALLOW_RINGER_MODES); assertEquals(RINGER_MODE_VIBRATE, mAudioManager.getRingerMode());
May 17, 2011
#1
sop@google.com
Status:
Invalid
|
|
| ► Sign in to add a comment |