Home
last modified time | relevance | path

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

12

/cts/tests/vibrator/src/android/os/cts/
DVibrationEffectXmlSerializationTest.java113 public void testSerializeValidVibrationEffect(VibrationEffect effect, String expectedXml) in testSerializeValidVibrationEffect() argument
116 VibrationXmlSerializer.serialize(effect, writer); in testSerializeValidVibrationEffect()
123 public void testParseSerializeRoundTrip(VibrationEffect effect, String unusedXml) in testParseSerializeRoundTrip() argument
127 VibrationXmlSerializer.serialize(effect, writer); in testParseSerializeRoundTrip()
131 assertThat(parsedEffect).isEqualTo(effect); in testParseSerializeRoundTrip()
579 </predefined-effect>" in testParseAnyTagInsidePredefinedEffectIsNull()
645 </vibration-effect>
654 <vibration-effect>
655 <primitive-effect name="click">
656 <predefined-effect name="click"/>
[all …]
DVibrationEffectTest.java146 VibrationEffect effect = in testOneShotEqualsWithDefaultAmplitude() local
150 assertEquals(effect, otherEffect); in testOneShotEqualsWithDefaultAmplitude()
151 assertEquals(effect.hashCode(), otherEffect.hashCode()); in testOneShotEqualsWithDefaultAmplitude()
163 VibrationEffect effect = VibrationEffect.get(id, fallback); in testCreatePrebaked() local
164 assertEquals(-1, effect.getDuration()); in testCreatePrebaked()
165 assertPrebakedEffectId(id, effect, 0); in testCreatePrebaked()
166 assertShouldFallback(fallback, effect, 0); in testCreatePrebaked()
190 VibrationEffect effect = VibrationEffect.createWaveform(TEST_TIMINGS, TEST_AMPLITUDES, -1); in testCreateWaveform() local
191 assertArrayEquals(TEST_TIMINGS, getTimings(effect)); in testCreateWaveform()
192 assertEquals(-1, getRepeatIndex(effect)); in testCreateWaveform()
[all …]
DCombinedVibrationTest.java232 CombinedVibration effect = CombinedVibration.createParallel( in testParallelMonoCombinationDuration() local
234 assertEquals(100, effect.getDuration()); in testParallelMonoCombinationDuration()
239 CombinedVibration effect = CombinedVibration.startParallel() in testParallelStereoCombinationDuration() local
244 assertEquals(100, effect.getDuration()); in testParallelStereoCombinationDuration()
249 CombinedVibration effect = CombinedVibration.startParallel() in testParallelCombinationUnknownDuration() local
253 assertEquals(-1, effect.getDuration()); in testParallelCombinationUnknownDuration()
258 CombinedVibration effect = CombinedVibration.startParallel() in testParallelCombinationRepeatingDuration() local
263 assertEquals(Long.MAX_VALUE, effect.getDuration()); in testParallelCombinationRepeatingDuration()
268 CombinedVibration effect = CombinedVibration.startSequential() in testSequentialCombinationDuration() local
273 assertEquals(33, effect.getDuration()); in testSequentialCombinationDuration()
[all …]
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DHapticGeneratorTest.java55 HapticGenerator effect = createHapticGenerator(); in test0_0ConstructorAndRelease() local
57 effect.release(); in test0_0ConstructorAndRelease()
67 HapticGenerator effect = createHapticGenerator(); in test0_1ConstructorAndClose() local
69 effect.close(); in test0_1ConstructorAndClose()
83 HapticGenerator effect = createHapticGenerator(); in test1_0SetEnabledGetEnabled() local
85 effect.setEnabled(true); in test1_0SetEnabledGetEnabled()
86 assertTrue("invalid state from getEnabled", effect.getEnabled()); in test1_0SetEnabledGetEnabled()
87 effect.setEnabled(false); in test1_0SetEnabledGetEnabled()
88 assertFalse("invalid state from getEnabled", effect.getEnabled()); in test1_0SetEnabledGetEnabled()
93 effect.release(); in test1_0SetEnabledGetEnabled()
[all …]
DEffectBeforeAfterRule.java61 AudioEffect effect = new AudioEffect(effectType, in before() local
65 assertTrue("effect does not have control", effect.hasControl()); in before()
66 mOriginalEffectState.put(effectType, effect.getEnabled()); in before()
68 effect.setEnabled(false); in before()
69 assertFalse("Could not disable effect", effect.getEnabled()); in before()
70 effect.release(); in before()
87 AudioEffect effect = new AudioEffect(entry.getKey(), in after() local
91 assertTrue("effect does not have control", effect.hasControl()); in after()
92 effect.setEnabled(entry.getValue()); in after()
93 effect.release(); in after()
DAudioEffectTest.java149 AudioEffect effect = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, in test1_3GetEnabledAfterRelease() local
153 assertNotNull("could not create AudioEffect", effect); in test1_3GetEnabledAfterRelease()
154 effect.release(); in test1_3GetEnabledAfterRelease()
156 effect.getEnabled(); in test1_3GetEnabledAfterRelease()
314 AudioEffect effect = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, in test2_0SetEnabledGetEnabled() local
318 assertNotNull("could not create AudioEffect", effect); in test2_0SetEnabledGetEnabled()
320 effect.setEnabled(true); in test2_0SetEnabledGetEnabled()
321 assertTrue("invalid state from getEnabled", effect.getEnabled()); in test2_0SetEnabledGetEnabled()
322 effect.setEnabled(false); in test2_0SetEnabledGetEnabled()
323 assertFalse("invalid state to getEnabled", effect.getEnabled()); in test2_0SetEnabledGetEnabled()
[all …]
DPresetReverbTest.java352 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
354 if (effect == mReverb2) { in createListenerLooper()
365 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
367 if (effect == mReverb2) { in createListenerLooper()
377 public void onParameterChange(PresetReverb effect, in createListenerLooper()
381 if (effect == mReverb2) { in createListenerLooper()
DBassBoostTest.java392 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
394 if (effect == mBassBoost2) { in createListenerLooper()
405 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
407 if (effect == mBassBoost2) { in createListenerLooper()
417 public void onParameterChange(BassBoost effect, int status, in createListenerLooper()
421 if (effect == mBassBoost2) { in createListenerLooper()
DEqualizerTest.java414 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
416 if (effect == mEqualizer2) { in createListenerLooper()
427 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
429 if (effect == mEqualizer2) { in createListenerLooper()
439 public void onParameterChange(Equalizer effect, in createListenerLooper()
443 if (effect == mEqualizer2) { in createListenerLooper()
DEnvReverbTest.java515 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
517 if (effect == mReverb2) { in createListenerLooper()
528 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
530 if (effect == mReverb2) { in createListenerLooper()
540 public void onParameterChange(EnvironmentalReverb effect, in createListenerLooper()
544 if (effect == mReverb2) { in createListenerLooper()
DVirtualizerTest.java654 AudioEffect effect, boolean controlGranted) { in createListenerLooper()
656 if (effect == mVirtualizer2) { in createListenerLooper()
667 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
669 if (effect == mVirtualizer2) { in createListenerLooper()
679 public void onParameterChange(Virtualizer effect, int status, in createListenerLooper()
683 if (effect == mVirtualizer2) { in createListenerLooper()
/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
89 if effect == 0:
97 failed.append({'effect': _EFFECTS[effect], 'error': e_msg})
107 failed.append({'effect': _EFFECTS[effect], 'error': e_msg})
108 elif effect == 1:
119 failed.append({'effect': _EFFECTS[effect], 'error': e_msg})
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java155 EdgeEffect effect = new EdgeEffect(getContext()); in testIsFinished() local
156 assertTrue(effect.isFinished()); in testIsFinished()
157 effect.onPull(0.5f); in testIsFinished()
158 assertFalse(effect.isFinished()); in testIsFinished()
163 EdgeEffect effect = new EdgeEffect(getContext()); in testFinish() local
164 effect.onPull(1); in testFinish()
165 effect.finish(); in testFinish()
166 assertTrue(effect.isFinished()); in testFinish()
168 effect.onAbsorb(1000); in testFinish()
169 effect.finish(); in testFinish()
[all …]
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorManagerTest.java171 final VibrationEffect effect; in testInputVibratorManagerEvents() local
175 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorManagerEvents()
183 effect = VibrationEffect.createWaveform( in testInputVibratorManagerEvents()
190 CombinedVibration mono = CombinedVibration.createParallel(effect); in testInputVibratorManagerEvents()
194 comb.addVibrator(ids[i], effect); in testInputVibratorManagerEvents()
DInputDeviceVibratorTest.java140 final VibrationEffect effect; in testInputVibratorEvents() local
144 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorEvents()
150 effect = VibrationEffect.createWaveform( in testInputVibratorEvents()
157 mVibrator.vibrate(effect); in testInputVibratorEvents()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java252 final VibrationEffect effect; in testInputVibratorEvents() local
256 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorEvents()
262 effect = VibrationEffect.createWaveform( in testInputVibratorEvents()
275 vibrator.vibrate(effect); in testInputVibratorEvents()
329 final VibrationEffect effect; in testInputVibratorManagerEvents() local
333 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorManagerEvents()
339 effect = VibrationEffect.createWaveform( in testInputVibratorManagerEvents()
348 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()
DDiscretePathEffectTest.java52 DiscretePathEffect effect = new DiscretePathEffect(SEGMENT_LENGTH, DEVIATION); in testDiscretePathEffect() local
58 paint.setPathEffect(effect); in testDiscretePathEffect()
DCornerPathEffectTest.java56 PathEffect effect = new CornerPathEffect(RADIUS); in testCornerPathEffect() local
62 pathPaint.setPathEffect(effect); in testCornerPathEffect()
/cts/tests/tests/security/testeffect/
DAndroid.bp15 // Test effect library
/cts/tests/tests/mediaediting/
DAndroid.bp29 "androidx.media3.media3-effect",
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DTransformReverseTransformIdentityTest.java30 import androidx.media3.effect.Presentation;
31 import androidx.media3.effect.ScaleAndRotateTransformation;

12