Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DHapticGeneratorTest.java41 HapticGenerator effect = createHapticGenerator(); in test0_0ConstructorAndRelease() local
43 effect.release(); in test0_0ConstructorAndRelease()
52 HapticGenerator effect = createHapticGenerator(); in test0_1ConstructorAndClose() local
54 effect.close(); in test0_1ConstructorAndClose()
67 HapticGenerator effect = createHapticGenerator(); in test1_0SetEnabledGetEnabled() local
69 effect.setEnabled(true); in test1_0SetEnabledGetEnabled()
70 assertTrue("invalid state from getEnabled", effect.getEnabled()); in test1_0SetEnabledGetEnabled()
71 effect.setEnabled(false); in test1_0SetEnabledGetEnabled()
72 assertFalse("invalid state from getEnabled", effect.getEnabled()); in test1_0SetEnabledGetEnabled()
77 effect.release(); in test1_0SetEnabledGetEnabled()
[all …]
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/os/src/android/os/cts/
DVibrationEffectTest.java138 VibrationEffect effect = in testOneShotEqualsWithDefaultAmplitude() local
142 assertEquals(effect, otherEffect); in testOneShotEqualsWithDefaultAmplitude()
143 assertEquals(effect.hashCode(), otherEffect.hashCode()); in testOneShotEqualsWithDefaultAmplitude()
155 VibrationEffect effect = VibrationEffect.get(id, fallback); in testCreatePrebaked() local
156 assertEquals(-1, effect.getDuration()); in testCreatePrebaked()
157 assertPrebakedEffectId(id, effect, 0); in testCreatePrebaked()
158 assertShouldFallback(fallback, effect, 0); in testCreatePrebaked()
182 VibrationEffect effect = VibrationEffect.createWaveform(TEST_TIMINGS, TEST_AMPLITUDES, -1); in testCreateWaveform() local
183 assertArrayEquals(TEST_TIMINGS, getTimings(effect)); in testCreateWaveform()
184 assertEquals(-1, getRepeatIndex(effect)); in testCreateWaveform()
[all …]
DCombinedVibrationTest.java231 CombinedVibration effect = CombinedVibration.createParallel( in testParallelMonoCombinationDuration() local
233 assertEquals(100, effect.getDuration()); in testParallelMonoCombinationDuration()
238 CombinedVibration effect = CombinedVibration.startParallel() in testParallelStereoCombinationDuration() local
243 assertEquals(100, effect.getDuration()); in testParallelStereoCombinationDuration()
248 CombinedVibration effect = CombinedVibration.startParallel() in testParallelCombinationUnknownDuration() local
252 assertEquals(-1, effect.getDuration()); in testParallelCombinationUnknownDuration()
257 CombinedVibration effect = CombinedVibration.startParallel() in testParallelCombinationRepeatingDuration() local
262 assertEquals(Long.MAX_VALUE, effect.getDuration()); in testParallelCombinationRepeatingDuration()
267 CombinedVibration effect = CombinedVibration.startSequential() in testSequentialCombinationDuration() local
272 assertEquals(33, effect.getDuration()); in testSequentialCombinationDuration()
[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_a/
Dtest_effects.py75 for effect in effects:
77 req['android.control.effectMode'] = effect
85 NAME), EFFECTS[effect])
89 if effect == 0:
96 failed.append({'effect': EFFECTS[effect], 'error': e_msg})
106 failed.append({'effect': EFFECTS[effect], 'error': e_msg})
107 elif effect == 1:
116 failed.append({'effect': EFFECTS[effect], 'error': e_msg})
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java160 EdgeEffect effect = new EdgeEffect(getContext()); in testIsFinished() local
161 assertTrue(effect.isFinished()); in testIsFinished()
162 effect.onPull(0.5f); in testIsFinished()
163 assertFalse(effect.isFinished()); in testIsFinished()
168 EdgeEffect effect = new EdgeEffect(getContext()); in testFinish() local
169 effect.onPull(1); in testFinish()
170 effect.finish(); in testFinish()
171 assertTrue(effect.isFinished()); in testFinish()
173 effect.onAbsorb(1000); in testFinish()
174 effect.finish(); in testFinish()
[all …]
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorManagerTest.java165 final VibrationEffect effect; in testInputVibratorManagerEvents() local
169 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorManagerEvents()
177 effect = VibrationEffect.createWaveform( in testInputVibratorManagerEvents()
184 CombinedVibration mono = CombinedVibration.createParallel(effect); in testInputVibratorManagerEvents()
188 comb.addVibrator(ids[i], effect); in testInputVibratorManagerEvents()
DInputDeviceVibratorTest.java139 final VibrationEffect effect; in testInputVibratorEvents() local
143 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorEvents()
149 effect = VibrationEffect.createWaveform( in testInputVibratorEvents()
156 mVibrator.vibrate(effect); in testInputVibratorEvents()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java256 final VibrationEffect effect; in testInputVibratorEvents() local
260 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorEvents()
266 effect = VibrationEffect.createWaveform( in testInputVibratorEvents()
279 vibrator.vibrate(effect); in testInputVibratorEvents()
333 final VibrationEffect effect; in testInputVibratorManagerEvents() local
337 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorManagerEvents()
343 effect = VibrationEffect.createWaveform( in testInputVibratorManagerEvents()
352 vibrator.vibrate(effect); in testInputVibratorManagerEvents()
/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/securitybulletin/securityPatch/CVE-2017-0479/
Dpoc.cpp106 gEffect = response.effect; in main()
/cts/hostsidetests/appsecurity/test-apps/UseEmbeddedDexApp/
DAndroid.bp67 // 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.java1363 final VibrationEffect effect = in testVibratePermission() local
1365 vibrator.vibrate(effect); in testVibratePermission()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java725 String effect = parameters.getColorEffect(); in assertParameters() local
726 assertTrue(effect == null || effect.equals(parameters.EFFECT_NONE)); in assertParameters()

12