Home
last modified time | relevance | path

Searched refs:EFFECT_CLICK (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/os/
DVibratorTest.java69 mVibratorSpy.areEffectsSupported(new int[]{VibrationEffect.EFFECT_CLICK}).length); in areEffectsSupported_returnsArrayOfSameSize()
71 mVibratorSpy.areEffectsSupported(new int[]{VibrationEffect.EFFECT_CLICK, in areEffectsSupported_returnsArrayOfSameSize()
80 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in areEffectsSupported_noVibrator_returnsAlwaysNo()
86 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in areEffectsSupported_unsupportedInOneVibrator_returnsNo()
94 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in areEffectsSupported_unsupportedInOneVibrator_returnsNo()
100 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in areEffectsSupported_unknownInOneVibrator_returnsUnknown()
106 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in areEffectsSupported_unknownInOneVibrator_returnsUnknown()
112 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in arePrimitivesSupported_supportedInAllVibrators_returnsYes()
115 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in arePrimitivesSupported_supportedInAllVibrators_returnsYes()
120 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in arePrimitivesSupported_supportedInAllVibrators_returnsYes()
[all …]
DCombinedVibrationTest.java127 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)).getDuration()); in testDurationMono()
142 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationStereo()
148 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationStereo()
164 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationSequential()
170 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationSequential()
180 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in testHasVibratorMono_returnsTrueForAnyVibrator()
188 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testHasVibratorStereo_returnsOnlyTheIdsSet()
198 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testHasVibratorSequential_returnsNestedVibrators()
222 .addVibrator(0, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testSerializationStereo()
238 .addNext(0, VibrationEffect.get(VibrationEffect.EFFECT_CLICK), 100) in testSerializationSequential()
DVibrationEffectTest.java112 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK).validate(); in testValidatePrebaked()
166 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testValidateComposed()
214 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in testResolvePrebaked()
248 VibrationEffect.Composed applied = VibrationEffect.get(VibrationEffect.EFFECT_CLICK) in testApplyEffectStrengthPrebaked()
262 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testApplyEffectStrengthComposed()
289 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in testScalePrebaked()
DVibratorInfoTest.java76 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testIsEffectSupported()
79 noEffects.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported()
81 canClick.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported()
284 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testEquals()
358 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testParceling()
/frameworks/base/core/tests/coretests/src/android/os/vibrator/
DPrebakedSegmentTest.java41 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testCreation()
45 assertEquals(VibrationEffect.EFFECT_CLICK, prebaked.getEffectId()); in testCreation()
53 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testSerialization()
62 new PrebakedSegment(VibrationEffect.EFFECT_CLICK, true, in testValidate()
76 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testResolve_ignoresAndReturnsSameEffect()
105 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testScale_ignoresAndReturnsSameEffect()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java246 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK));
280 vibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK);
292 info.isEffectSupported(VibrationEffect.EFFECT_CLICK));
359 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK))
376 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK));
381 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_STRONG);
397 .addVibrator(1, VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK))
399 .addVibrator(3, VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK))
405 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_STRONG);
424 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK));
[all …]
DVibrationThreadTest.java138 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in vibrate_noVibrator_ignoresVibration()
150 .addNext(2, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in vibrate_missingVibrators_ignoresVibration()
413 VibrationEffect.get(VibrationEffect.EFFECT_CLICK))); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback()
414 vibration.addFallback(VibrationEffect.EFFECT_CLICK, fallback); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback()
433 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in vibrate_singleVibratorPrebakedAndUnsupportedEffect_ignoresVibration()
507 mVibratorProviders.get(VIBRATOR_ID).setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
519 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
520 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK), /* delay= */ 100) in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
535 expectedPrebaked(VibrationEffect.EFFECT_CLICK), in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
536 expectedPrebaked(VibrationEffect.EFFECT_CLICK)), in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
[all …]
DVibratorControllerTest.java166 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in updateAlwaysOn_withCapability_enablesAlwaysOnEffect()
171 eq(1L), eq((long) VibrationEffect.EFFECT_CLICK), in updateAlwaysOn_withCapability_enablesAlwaysOnEffect()
184 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in updateAlwaysOn_withoutCapability_ignoresEffect()
207 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in on_withPrebaked_performsEffect()
212 verify(mNativeWrapperMock).perform(eq((long) VibrationEffect.EFFECT_CLICK), in on_withPrebaked_performsEffect()
DRampToStepAdapterTest.java61 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
DVibrationScalerTest.java139 PrebakedSegment effect = new PrebakedSegment(VibrationEffect.EFFECT_CLICK, in scale_withPrebakedSegment_setsEffectStrengthBasedOnSettings()
167 VibrationEffect effect = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK); in scale_withPrebakedEffect_setsEffectStrengthBasedOnSettings()
DStepToRampAdapterTest.java60 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
DDeviceVibrationEffectAdapterTest.java76 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
DRampDownAdapterTest.java60 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
DVibrationSettingsTest.java435 assertNotNull(mVibrationSettings.getFallbackEffect(VibrationEffect.EFFECT_CLICK)); in getFallbackEffect_returnsEffectsFromSettings()
/frameworks/base/samples/demo/haptic-assessment/src/com/example/android/hapticassessment/
DMainActivity.kt22 import android.os.VibrationEffect.EFFECT_CLICK in <lambda>()
48 vibrator.vibrate(VibrationEffect.createPredefined(EFFECT_CLICK)) in <lambda>()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DVibratorPerfTest.java49 mVibrator.vibrate(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)); in testEffectClick()
86 int[] effects = new int[]{VibrationEffect.EFFECT_CLICK, VibrationEffect.EFFECT_TICK}; in testAreEffectsSupported()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsHapticsSimulator.kt67 VibrationEffect.get(VibrationEffect.EFFECT_CLICK), in execute()
DUdfpsController.java168 public static final VibrationEffect EFFECT_CLICK = field in UdfpsController
169 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
598 EFFECT_CLICK, in playStartHaptic() local
/frameworks/base/core/java/android/os/vibrator/
DPrebakedSegment.java111 case VibrationEffect.EFFECT_CLICK: in validate()
/frameworks/base/core/java/android/os/
DVibrationEffect.java72 public static final int EFFECT_CLICK = Effect.CLICK; field in VibrationEffect
162 EFFECT_CLICK,
517 case EFFECT_CLICK: in effectIdToString()
DVibrationAttributes.java343 case VibrationEffect.EFFECT_CLICK: in applyHapticFeedbackHeuristics()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DAcquisitionClient.java48 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DLockIconViewController.java489 UdfpsController.EFFECT_CLICK,
505 UdfpsController.EFFECT_CLICK,
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java131 mFallbackEffects.put(VibrationEffect.EFFECT_CLICK, clickEffect); in VibrationSettings()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DUdfpsControllerTest.java544 eq(mUdfpsController.EFFECT_CLICK), in playHapticOnTouchUdfpsArea()

12