Home | History | Annotate | Download | only in cts

Lines Matching defs:effect

17 package android.effect.cts;
20 import android.media.effect.Effect;
21 import android.media.effect.EffectContext;
22 import android.media.effect.EffectFactory;
35 /** This is the effect context we will run the tests in */
58 /** Assert an effect context can be created and attached to GL context. */
74 "Effect '" + effectName + "' supported",
82 assertFalse("Empty effect name unsupported", factory.isEffectSupported(""));
83 assertFalse("Bogus effect name unsupported", factory.isEffectSupported("!BOGUS!"));
84 //assertFalse("Non-effect name unsupported", factory.isEffectSupported("java.lang.String"));
87 /** Assert that we can instantiate an effect */
91 Effect effect = factory.createEffect(effectName);
92 assertNotNull("Effect '" + effectName + "' instantiation", effect);
93 effect.release();
97 /** Assert that we can apply an effect */
100 Effect effect = factory.createEffect(EffectFactory.EFFECT_SEPIA);
105 effect.apply(inputTexture, bitmap.getWidth(), bitmap.getHeight(), outputTexture);