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