/cts/tests/tests/media/src/android/media/cts/ |
D | HapticGeneratorTest.java | 41 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 …]
|
D | AudioEffectTest.java | 136 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 …]
|
D | PresetReverbTest.java | 332 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()
|
D | BassBoostTest.java | 370 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()
|
D | EnvReverbTest.java | 491 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()
|
D | VirtualizerTest.java | 629 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/ |
D | VibrationEffectTest.java | 138 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 …]
|
D | CombinedVibrationTest.java | 231 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/ |
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 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/ |
D | EdgeEffectTests.java | 160 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/ |
D | InputDeviceVibratorTest.java | 139 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()
|
D | InputDeviceVibratorManagerTest.java | 165 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()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputHidTestCase.java | 261 final VibrationEffect effect; in testInputVibratorEvents() local 265 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorEvents() 271 effect = VibrationEffect.createWaveform( in testInputVibratorEvents() 284 vibrator.vibrate(effect); in testInputVibratorEvents() 338 final VibrationEffect effect; in testInputVibratorManagerEvents() local 342 effect = VibrationEffect.createOneShot(duration, amplitude); in testInputVibratorManagerEvents() 348 effect = VibrationEffect.createWaveform( in testInputVibratorManagerEvents() 357 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 | CornerPathEffectTest.java | 56 PathEffect effect = new CornerPathEffect(RADIUS); in testCornerPathEffect() local 62 pathPaint.setPathEffect(effect); in testCornerPathEffect()
|
D | DiscretePathEffectTest.java | 52 DiscretePathEffect effect = new DiscretePathEffect(SEGMENT_LENGTH, DEVIATION); in testDiscretePathEffect() local 58 paint.setPathEffect(effect); in testDiscretePathEffect()
|
/cts/tests/tests/security/testeffect/ |
D | Android.bp | 15 // Test effect library
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0479/ |
D | poc.cpp | 110 gEffect = response.effect; in main()
|
/cts/hostsidetests/appsecurity/test-apps/UseEmbeddedDexApp/ |
D | Android.bp | 67 // 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/ |
D | ClientTest.java | 1363 final VibrationEffect effect = in testVibratePermission() local 1365 vibrator.vibrate(effect); in testVibratePermission()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraTest.java | 725 String effect = parameters.getColorEffect(); in assertParameters() local 726 assertTrue(effect == null || effect.equals(parameters.EFFECT_NONE)); in assertParameters()
|