Lines Matching refs:effect2
1018 AudioEffect effect2 = null;
1024 effect2 = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER,
1030 assertNotNull(msg + ": could not create AudioEffect", effect2);
1032 assertTrue(msg + ": Effect2 does not have control", effect2.hasControl());
1036 assertFalse(msg + ": Effect1 has enabled", effect2.getEnabled());
1048 if (effect2 != null) {
1049 effect2.release();
1061 AudioEffect effect2 = null;
1067 effect2 = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER,
1073 assertNotNull(msg + ": could not create AudioEffect", effect2);
1075 int status = effect2.setParameter(Equalizer.PARAM_CURRENT_PRESET, (short)0);
1076 assertEquals(msg + ": Effect2 setParameter failed",
1084 status = effect2.getParameter(Equalizer.PARAM_CURRENT_PRESET, value);
1085 assertEquals(msg + ": Effect2 getParameter failed",
1101 if (effect2 != null) {
1102 effect2.release();
1114 AudioEffect effect2 = null;
1128 effect2 = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER,
1132 assertNotNull(msg + ": could not create AudioEffect", effect2);
1150 if (effect2 != null) {
1151 effect2.release();
1163 AudioEffect effect2 = null;
1176 effect2 = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER,
1180 assertNotNull(msg + ": could not create AudioEffect", effect2);
1181 assertTrue(msg + ": effect not enabled", effect2.getEnabled());
1184 effect2.setEnabled(false);
1202 if (effect2 != null) {
1203 effect2.release();
1215 AudioEffect effect2 = null;
1226 effect2 = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER,
1230 assertNotNull(msg + ": could not create AudioEffect", effect2);
1234 effect2.setParameter(Equalizer.PARAM_CURRENT_PRESET, (short)0);
1253 if (effect2 != null) {
1254 effect2.release();