am 3efbc555: Merge "Fix more audio effects auto tests" into gingerbread
Merge commit '3efbc55545673f3988cb1b2934b903d78f8873cd' into gingerbread-plus-aosp * commit '3efbc55545673f3988cb1b2934b903d78f8873cd': Fix more audio effects auto tests
This commit is contained in:
@@ -45,6 +45,7 @@ public class MediaBassBoostTest extends ActivityInstrumentationTestCase2<MediaFr
|
||||
private String TAG = "MediaBassBoostTest";
|
||||
private final static int MIN_ENERGY_RATIO_2 = 3;
|
||||
private final static short TEST_STRENGTH = 500;
|
||||
private final static int TEST_VOLUME = 4;
|
||||
|
||||
private BassBoost mBassBoost = null;
|
||||
private int mSession = -1;
|
||||
@@ -192,7 +193,7 @@ public class MediaBassBoostTest extends ActivityInstrumentationTestCase2<MediaFr
|
||||
AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
|
||||
int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
|
||||
am.setStreamVolume(AudioManager.STREAM_MUSIC,
|
||||
am.getStreamMaxVolume(AudioManager.STREAM_MUSIC),
|
||||
TEST_VOLUME,
|
||||
0);
|
||||
|
||||
try {
|
||||
|
||||
@@ -48,6 +48,7 @@ public class MediaEqualizerTest extends ActivityInstrumentationTestCase2<MediaFr
|
||||
private final static int MAX_BAND_LEVEL = 1500;
|
||||
private final static int TEST_FREQUENCY_MILLIHERTZ = 1000000;
|
||||
private final static int MIN_NUMBER_OF_PRESETS = 4;
|
||||
private final static int TEST_VOLUME = 4;
|
||||
private Equalizer mEqualizer = null;
|
||||
private int mSession = -1;
|
||||
|
||||
@@ -259,7 +260,7 @@ public class MediaEqualizerTest extends ActivityInstrumentationTestCase2<MediaFr
|
||||
AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
|
||||
int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
|
||||
am.setStreamVolume(AudioManager.STREAM_MUSIC,
|
||||
am.getStreamMaxVolume(AudioManager.STREAM_MUSIC),
|
||||
TEST_VOLUME,
|
||||
0);
|
||||
try {
|
||||
probe = new EnergyProbe(0);
|
||||
|
||||
@@ -45,6 +45,7 @@ public class MediaVirtualizerTest extends ActivityInstrumentationTestCase2<Media
|
||||
private String TAG = "MediaVirtualizerTest";
|
||||
private final static int MIN_ENERGY_RATIO_2 = 3;
|
||||
private final static short TEST_STRENGTH = 500;
|
||||
private final static int TEST_VOLUME = 4;
|
||||
|
||||
private Virtualizer mVirtualizer = null;
|
||||
private int mSession = -1;
|
||||
@@ -193,7 +194,7 @@ public class MediaVirtualizerTest extends ActivityInstrumentationTestCase2<Media
|
||||
AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
|
||||
int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
|
||||
am.setStreamVolume(AudioManager.STREAM_MUSIC,
|
||||
am.getStreamMaxVolume(AudioManager.STREAM_MUSIC),
|
||||
TEST_VOLUME,
|
||||
0);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user