Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DPrebakedSegmentTest.java41 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testCreation()
44 assertEquals(VibrationEffect.EFFECT_CLICK, prebaked.getEffectId()); in testCreation()
52 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testSerialization()
61 new PrebakedSegment(VibrationEffect.EFFECT_CLICK, true, in testValidate()
75 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testResolve_ignoresAndReturnsSameEffect()
104 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testScale_ignoresAndReturnsSameEffect()
111 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testScaleLinearly_ignoresAndReturnsSameEffect()
118 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM) in testDuration()
134 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM) in testIsHapticFeedbackCandidate_prebakedConstants_areCandidates()
157 VibrationEffect.EFFECT_CLICK, in testVibrationFeaturesSupport_idsWithFallback_fallbackEnabled_vibratorSupport()
[all …]
DMultiVibratorInfoTest.java39 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testGetId()
55 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testIsEffectSupported_supportedInAllVibrators_returnsYes()
58 .setSupportedEffects(VibrationEffect.EFFECT_CLICK, VibrationEffect.EFFECT_TICK) in testIsEffectSupported_supportedInAllVibrators_returnsYes()
65 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported_supportedInAllVibrators_returnsYes()
71 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testIsEffectSupported_unsupportedInOneVibrator_returnsNo()
81 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported_unsupportedInOneVibrator_returnsNo()
87 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testIsEffectSupported_unknownInOneVibrator_returnsUnknown()
94 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported_unknownInOneVibrator_returnsUnknown()
DVibratorInfoFactoryTest.java39 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testCreatedInfo_hasTheRequestedId()
81 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testCreatedInfo_hasEqualContentRegardlessOfSourceInfoOrder()
97 .setSupportedEffects(VibrationEffect.EFFECT_CLICK, VibrationEffect.EFFECT_POP) in testCreatedInfoContents()
/frameworks/base/core/tests/vibrator/src/android/os/
DCombinedVibrationTest.java124 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)).getDuration()); in testDurationMono()
145 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationStereo()
151 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationStereo()
167 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationSequential()
173 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationSequential()
185 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)).isHapticFeedbackCandidate()); in testIsHapticFeedbackCandidateMono()
209 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateStereo()
219 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateStereo()
233 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateSequential()
243 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateSequential()
[all …]
DVibratorTest.java85 mVibratorSpy.areEffectsSupported(new int[]{VibrationEffect.EFFECT_CLICK}).length); in areEffectsSupported_returnsArrayOfSameSize()
87 mVibratorSpy.areEffectsSupported(new int[]{VibrationEffect.EFFECT_CLICK, in areEffectsSupported_returnsArrayOfSameSize()
215 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in vibrate_withVibrationAttributes_usesGivenAttributes()
226 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage()
246 mVibratorSpy.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in vibrate_withoutAudioAttributes_passesOnDefaultAttributes()
DVibratorInfoTest.java83 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testIsEffectSupported()
86 noEffects.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported()
88 canClick.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported()
267 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testEquals()
359 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testParceling()
476 .addEffect(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)) in areVibrationFeaturesSupported_composedEffects_allComponentsSupported()
483 .setSupportedEffects(VibrationEffect.EFFECT_POP, VibrationEffect.EFFECT_CLICK) in areVibrationFeaturesSupported_composedEffects_allComponentsSupported()
495 .addEffect(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)) in areVibrationFeaturesSupported_composedEffects_allComponentsSupported()
DVibrationEffectTest.java288 VibrationEffect effect = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK); in computeLegacyPattern_notPatternPased()
467 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK).validate(); in testValidatePrebaked()
563 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testValidateComposed()
653 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in testResolvePrebaked()
691 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in testScalePrebaked()
746 VibrationEffect predefined = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK); in testApplyRepeatingIndefinitely_nonRepeatingOriginal()
824 assertEquals(-1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK).getDuration()); in testDuration()
853 .addEffect(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)) in testAreVibrationFeaturesSupported_allSegmentsSupported()
950 assertTrue(VibrationEffect.get(VibrationEffect.EFFECT_CLICK).isHapticFeedbackCandidate()); in testIsHapticFeedbackCandidate_prebakedNotRingtoneConstants_areCandidates()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java387 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)); in createService_doNotCrashIfUsedBeforeSystemReady()
440 vibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in getVibratorInfo_vibratorSuccessfulLoadBeforeSystemReady_returnsInfoForVibrator()
452 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in getVibratorInfo_vibratorSuccessfulLoadBeforeSystemReady_returnsInfoForVibrator()
536 mVibratorProviders.get(1).setSupportedEffects(VibrationEffect.EFFECT_CLICK); in registerVibratorStateListener_multipleVibratorsAreTriggered()
546 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in registerVibratorStateListener_multipleVibratorsAreTriggered()
561 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)); in setAlwaysOnEffect_withMono_enablesAlwaysOnEffectToAllVibratorsWithCapability()
566 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in setAlwaysOnEffect_withMono_enablesAlwaysOnEffectToAllVibratorsWithCapability()
582 .addVibrator(1, VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)) in setAlwaysOnEffect_withStereo_enablesAlwaysOnEffectToAllVibratorsWithCapability()
584 .addVibrator(3, VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)) in setAlwaysOnEffect_withStereo_enablesAlwaysOnEffectToAllVibratorsWithCapability()
590 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in setAlwaysOnEffect_withStereo_enablesAlwaysOnEffectToAllVibratorsWithCapability()
[all …]
DVibrationThreadTest.java169 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in vibrate_noVibrator_ignoresVibration()
180 .addNext(2, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in vibrate_missingVibrators_ignoresVibration()
627 VibrationEffect.get(VibrationEffect.EFFECT_CLICK))); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback()
628 vibration.addFallback(VibrationEffect.EFFECT_CLICK, fallback); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback()
645 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in vibrate_singleVibratorPrebakedAndUnsupportedEffect_ignoresVibration()
723 fakeVibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
739 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
745 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
760 expectedPrebaked(VibrationEffect.EFFECT_CLICK), in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
765 expectedPrebaked(VibrationEffect.EFFECT_CLICK)), in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
[all …]
DVibratorControllerTest.java157 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in updateAlwaysOn_withCapability_enablesAlwaysOnEffect()
162 eq(1L), eq((long) VibrationEffect.EFFECT_CLICK), in updateAlwaysOn_withCapability_enablesAlwaysOnEffect()
175 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in updateAlwaysOn_withoutCapability_ignoresEffect()
198 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in on_withPrebaked_performsEffect()
203 verify(mNativeWrapperMock).perform(eq((long) VibrationEffect.EFFECT_CLICK), in on_withPrebaked_performsEffect()
DHapticFeedbackCustomizationTest.java21 import static android.os.VibrationEffect.EFFECT_CLICK;
68 VibrationEffect.createPredefined(EFFECT_CLICK);
DDeviceAdapterTest.java94 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
206 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testMonoCombinedVibration_returnsSameVibrationWhenEffectsUnchanged()
DHapticFeedbackVibrationProviderTest.java27 import static android.os.VibrationEffect.EFFECT_CLICK;
252 .isEqualTo(VibrationEffect.get(EFFECT_CLICK, true /* fallback */)); in testKeyboardHaptic_noFixedAmplitude_defaultVibrationReturned()
266 .isEqualTo(VibrationEffect.get(EFFECT_CLICK, true /* fallback */)); in testKeyboardHaptic_fixAmplitude_keyboardCategoryOff_defaultVibrationReturned()
DRampToStepAdapterTest.java62 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
DSplitSegmentsAdapterTest.java65 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testStepAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
DStepToRampAdapterTest.java62 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationVibrationHelper.java41 VibrationEffect.EFFECT_CLICK);
50 VibrationEffect.EFFECT_CLICK) == Vibrator.VIBRATION_EFFECT_SUPPORT_YES; in FullScreenMagnificationVibrationHelper()
/frameworks/base/core/java/android/os/vibrator/
DPrebakedSegment.java93 case VibrationEffect.EFFECT_CLICK: in areVibrationFeaturesSupported()
108 case VibrationEffect.EFFECT_CLICK: in isHapticFeedbackCandidate()
170 case VibrationEffect.EFFECT_CLICK: in validate()
/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.kt60 VibrationEffect.get(VibrationEffect.EFFECT_CLICK), in execute()
/frameworks/base/services/core/java/com/android/server/vibrator/
DHapticFeedbackVibrationProvider.java139 return getVibration(effectId, VibrationEffect.EFFECT_CLICK); in getVibrationForHapticFeedback()
346 predefinedEffectId = VibrationEffect.EFFECT_CLICK; in getKeyboardVibration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DVibratorHelper.java52 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DXmlConstants.java129 CLICK(VibrationEffect.EFFECT_CLICK, true),
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DShutdownThreadTest.java82 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK);

12