/cts/tests/vibrator/src/android/os/cts/ |
D | VibrationEffectXmlSerializationTest.java | 113 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 …]
|
D | VibrationEffectTest.java | 146 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 …]
|
D | CombinedVibrationTest.java | 232 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/ |
D | HapticGeneratorTest.java | 55 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 …]
|
D | EffectBeforeAfterRule.java | 61 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()
|
D | AudioEffectTest.java | 149 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 …]
|
D | PresetReverbTest.java | 352 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()
|
D | BassBoostTest.java | 392 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()
|
D | EqualizerTest.java | 414 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()
|
D | EnvReverbTest.java | 515 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()
|
D | VirtualizerTest.java | 654 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/ |
D | EffectTest.java | 17 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()
|
D | GLEnv.java | 17 package android.effect.cts;
|
/cts/apps/CameraITS/tests/scene2_a/ |
D | test_effects.py | 75 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/ |
D | EdgeEffectTests.java | 155 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/ |
D | InputDeviceVibratorManagerTest.java | 171 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()
|
D | InputDeviceVibratorTest.java | 140 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/ |
D | InputHidTestCase.java | 252 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/ |
D | PathDashPathEffectTest.java | 49 PathDashPathEffect effect = new PathDashPathEffect(shape(), ADVANCE, 0, in testPathDashPathEffect() local 53 p.setPathEffect(effect); in testPathDashPathEffect()
|
D | DashPathEffectTest.java | 52 PathEffect effect = new DashPathEffect(PATTERN, OFFSET); in testDashPathEffect() local 64 paint.setPathEffect(effect); in testDashPathEffect()
|
D | DiscretePathEffectTest.java | 52 DiscretePathEffect effect = new DiscretePathEffect(SEGMENT_LENGTH, DEVIATION); in testDiscretePathEffect() local 58 paint.setPathEffect(effect); in testDiscretePathEffect()
|
D | CornerPathEffectTest.java | 56 PathEffect effect = new CornerPathEffect(RADIUS); in testCornerPathEffect() local 62 pathPaint.setPathEffect(effect); in testCornerPathEffect()
|
/cts/tests/tests/security/testeffect/ |
D | Android.bp | 15 // Test effect library
|
/cts/tests/tests/mediaediting/ |
D | Android.bp | 29 "androidx.media3.media3-effect",
|
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/ |
D | TransformReverseTransformIdentityTest.java | 30 import androidx.media3.effect.Presentation; 31 import androidx.media3.effect.ScaleAndRotateTransformation;
|