Home
last modified time | relevance | path

Searched refs:effect (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DVibrationEffectTest.java118 VibrationEffect effect = in testOneShotEqualsWithDefaultAmplitude() local
122 assertEquals(effect, otherEffect); in testOneShotEqualsWithDefaultAmplitude()
123 assertEquals(effect.hashCode(), otherEffect.hashCode()); in testOneShotEqualsWithDefaultAmplitude()
135 VibrationEffect.Prebaked effect = (VibrationEffect.Prebaked) in testCreatePrebaked() local
137 assertEquals(id, effect.getId()); in testCreatePrebaked()
138 assertEquals(fallback, effect.shouldFallback()); in testCreatePrebaked()
139 assertEquals(-1, effect.getDuration()); in testCreatePrebaked()
146 VibrationEffect.Waveform effect = (VibrationEffect.Waveform) in testCreateWaveform() local
148 assertArrayEquals(TEST_TIMINGS, effect.getTimings()); in testCreateWaveform()
149 assertArrayEquals(TEST_AMPLITUDES, effect.getAmplitudes()); in testCreateWaveform()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DAudioEffectTest.java136 AudioEffect effect = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, in test1_3GetEnabledAfterRelease() local
140 assertNotNull("could not create AudioEffect", effect); in test1_3GetEnabledAfterRelease()
141 effect.release(); in test1_3GetEnabledAfterRelease()
143 effect.getEnabled(); in test1_3GetEnabledAfterRelease()
290 AudioEffect effect = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, in test2_0SetEnabledGetEnabled() local
294 assertNotNull("could not create AudioEffect", effect); in test2_0SetEnabledGetEnabled()
296 effect.setEnabled(true); in test2_0SetEnabledGetEnabled()
297 assertTrue("invalid state from getEnabled", effect.getEnabled()); in test2_0SetEnabledGetEnabled()
298 effect.setEnabled(false); in test2_0SetEnabledGetEnabled()
299 assertFalse("invalid state to getEnabled", effect.getEnabled()); in test2_0SetEnabledGetEnabled()
[all …]
DPresetReverbTest.java332 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
334 if (effect == mReverb2) { in createListenerLooper()
345 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
347 if (effect == mReverb2) { in createListenerLooper()
357 public void onParameterChange(PresetReverb effect, in createListenerLooper()
361 if (effect == mReverb2) { in createListenerLooper()
DBassBoostTest.java370 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
372 if (effect == mBassBoost2) { in createListenerLooper()
383 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
385 if (effect == mBassBoost2) { in createListenerLooper()
395 public void onParameterChange(BassBoost effect, int status, in createListenerLooper()
399 if (effect == mBassBoost2) { in createListenerLooper()
DEqualizerTest.java390 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
392 if (effect == mEqualizer2) { in createListenerLooper()
403 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
405 if (effect == mEqualizer2) { in createListenerLooper()
415 public void onParameterChange(Equalizer effect, in createListenerLooper()
419 if (effect == mEqualizer2) { in createListenerLooper()
DEnvReverbTest.java491 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
493 if (effect == mReverb2) { in createListenerLooper()
504 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
506 if (effect == mReverb2) { in createListenerLooper()
516 public void onParameterChange(EnvironmentalReverb effect, in createListenerLooper()
520 if (effect == mReverb2) { in createListenerLooper()
DVirtualizerTest.java629 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
631 if (effect == mVirtualizer2) { in createListenerLooper()
642 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
644 if (effect == mVirtualizer2) { in createListenerLooper()
654 public void onParameterChange(Virtualizer effect, int status, in createListenerLooper()
658 if (effect == mVirtualizer2) { in createListenerLooper()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java166 EdgeEffect effect = new EdgeEffect(getContext()); in testIsFinished() local
167 assertTrue(effect.isFinished()); in testIsFinished()
168 effect.onPull(0.5f); in testIsFinished()
169 assertFalse(effect.isFinished()); in testIsFinished()
174 EdgeEffect effect = new EdgeEffect(getContext()); in testFinish() local
175 effect.onPull(1); in testFinish()
176 effect.finish(); in testFinish()
177 assertTrue(effect.isFinished()); in testFinish()
179 effect.onAbsorb(1000); in testFinish()
180 effect.finish(); in testFinish()
[all …]
/cts/tests/tests/effect/src/android/effect/cts/
DEffectTest.java17 package android.effect.cts;
20 import android.media.effect.Effect;
21 import android.media.effect.EffectContext;
22 import android.media.effect.EffectFactory;
91 Effect effect = factory.createEffect(effectName); in test5_effectCreate() local
92 assertNotNull("Effect '" + effectName + "' instantiation", effect); in test5_effectCreate()
93 effect.release(); in test5_effectCreate()
100 Effect effect = factory.createEffect(EffectFactory.EFFECT_SEPIA); in test6_effectApply() local
105 effect.apply(inputTexture, bitmap.getWidth(), bitmap.getHeight(), outputTexture); in test6_effectApply()
DGLEnv.java17 package android.effect.cts;
/cts/apps/CameraITS/tests/scene2/
Dtest_effects.py57 for effect in effects:
59 req['android.control.effectMode'] = effect
65 its.image.write_image(img, '%s_%s.jpg' % (NAME, EFFECTS[effect]))
68 if effect is 0:
75 failed.append({'effect': EFFECTS[effect], 'error': msg})
85 failed.append({'effect': EFFECTS[effect], 'error': msg})
86 if effect is 1:
96 failed.append({'effect': EFFECTS[effect], 'error': msg})
/cts/tests/tests/graphics/src/android/graphics/cts/
DPathDashPathEffectTest.java49 PathDashPathEffect effect = new PathDashPathEffect(shape(), ADVANCE, 0, in testPathDashPathEffect() local
53 p.setPathEffect(effect); in testPathDashPathEffect()
DDashPathEffectTest.java52 PathEffect effect = new DashPathEffect(PATTERN, OFFSET); in testDashPathEffect() local
64 paint.setPathEffect(effect); in testDashPathEffect()
DCornerPathEffectTest.java56 PathEffect effect = new CornerPathEffect(RADIUS); in testCornerPathEffect() local
62 pathPaint.setPathEffect(effect); in testCornerPathEffect()
DDiscretePathEffectTest.java52 DiscretePathEffect effect = new DiscretePathEffect(SEGMENT_LENGTH, DEVIATION); in testDiscretePathEffect() local
58 paint.setPathEffect(effect); in testDiscretePathEffect()
/cts/tests/tests/security/testeffect/
DAndroid.bp15 // Test effect library
/cts/hostsidetests/appsecurity/test-apps/UseEmbeddedDexApp/
DAndroid.bp63 // We want the dex to be uncompressed, but there is a side effect of extra
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1310 final VibrationEffect effect = in testVibratePermission() local
1312 vibrator.vibrate(effect); in testVibratePermission()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java692 String effect = parameters.getColorEffect(); in assertParameters() local
693 assertTrue(effect == null || effect.equals(parameters.EFFECT_NONE)); in assertParameters()