Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DCombinedVibrationTest.java127 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)).getDuration()); in testDurationMono()
148 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationStereo()
154 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationStereo()
170 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationSequential()
176 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testDurationSequential()
212 .addVibrator(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateStereo()
236 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateSequential()
246 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateSequential()
252 .addNext(1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testIsHapticFeedbackCandidateSequential()
263 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in testHasVibratorMono_returnsTrueForAnyVibrator()
[all …]
H A DVibratorTest.java109 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in areEffectsSupported_noVibrator_returnsAlwaysNo()
115 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in areEffectsSupported_unsupportedInOneVibrator_returnsNo()
123 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in areEffectsSupported_unsupportedInOneVibrator_returnsNo()
129 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in areEffectsSupported_unknownInOneVibrator_returnsUnknown()
135 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in areEffectsSupported_unknownInOneVibrator_returnsUnknown()
141 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in arePrimitivesSupported_supportedInAllVibrators_returnsYes()
144 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in arePrimitivesSupported_supportedInAllVibrators_returnsYes()
149 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in arePrimitivesSupported_supportedInAllVibrators_returnsYes()
548 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in vibrate_withVibrationAttributes_usesGivenAttributes()
559 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage()
[all …]
H A DVibratorInfoTest.java74 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testIsEffectSupported()
77 noEffects.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported()
79 canClick.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in testIsEffectSupported()
253 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testEquals()
327 .setSupportedEffects(VibrationEffect.EFFECT_CLICK) in testParceling()
H A DVibrationEffectTest.java295 VibrationEffect effect = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK); in computeLegacyPattern_notPatternPased()
474 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK).validate(); in testValidatePrebaked()
570 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testValidateComposed()
660 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in testResolvePrebaked()
694 VibrationEffect.Composed applied = VibrationEffect.get(VibrationEffect.EFFECT_CLICK) in testApplyEffectStrengthPrebaked()
708 .addEffect(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in testApplyEffectStrengthComposed()
735 VibrationEffect effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in testScalePrebaked()
765 assertEquals(-1, VibrationEffect.get(VibrationEffect.EFFECT_CLICK).getDuration()); in testDuration()
795 .addEffect(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)) in testAreVibrationFeaturesSupported_allSegmentsSupported()
893 assertTrue(VibrationEffect.get(VibrationEffect.EFFECT_CLICK).isHapticFeedbackCandidate()); in testIsHapticFeedbackCandidate_prebakedNotRingtoneConstants_areCandidates()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/vibrator/
H A DPrebakedSegmentTest.java47 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testCreation()
51 assertEquals(VibrationEffect.EFFECT_CLICK, prebaked.getEffectId()); in testCreation()
59 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testSerialization()
68 new PrebakedSegment(VibrationEffect.EFFECT_CLICK, true, in testValidate()
82 VibrationEffect.EFFECT_CLICK, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in testResolve_ignoresAndReturnsSameEffect()
157 VibrationEffect.EFFECT_CLICK, in testVibrationFeaturesSupport_idsWithFallback_fallbackEnabled_vibratorSupport()
163 assertTrue(createSegmentWithFallback(VibrationEffect.EFFECT_CLICK) in testVibrationFeaturesSupport_idsWithFallback_fallbackEnabled_vibratorSupport()
178 assertTrue(createSegmentWithFallback(VibrationEffect.EFFECT_CLICK) in testVibrationFeaturesSupport_idsWithFallback_fallbackEnabled_noVibratorSupport()
190 VibrationEffect.EFFECT_CLICK, in testVibrationFeaturesSupport_idsWithFallback_fallbackDisabled_vibratorSupport()
196 assertTrue(createSegmentWithoutFallback(VibrationEffect.EFFECT_CLICK) in testVibrationFeaturesSupport_idsWithFallback_fallbackDisabled_vibratorSupport()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibratorManagerServiceTest.java406 vibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in getVibratorInfo_vibratorSuccessfulLoadBeforeSystemReady_returnsInfoForVibrator()
418 info.isEffectSupported(VibrationEffect.EFFECT_CLICK)); in getVibratorInfo_vibratorSuccessfulLoadBeforeSystemReady_returnsInfoForVibrator()
606 .addNext(0, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in setAlwaysOnEffect_withNonSyncedEffect_ignoresEffect()
634 fakeVibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK, in vibrate_withRingtone_usesRingerModeSettings()
679 Arrays.asList(expectedPrebaked(VibrationEffect.EFFECT_CLICK), in vibrate_withPowerMode_usesPowerModeState()
709 vibrate(service, VibrationEffect.get(VibrationEffect.EFFECT_CLICK), in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
756 expectedPrebaked(VibrationEffect.EFFECT_CLICK, in vibrate_withVibrationAttributesEnforceFreshSettings_refreshesVibrationSettings()
854 fakeVibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_withOngoingRepeatingVibrationBeingCancelled_playsAfterPreviousIsCancelled()
1208 fakeVibrator1.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_withMultipleVibratorsAndCapabilities_prepareAndTriggerCalled()
1233 fakeVibrator1.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_withMultipleVibratorsWithoutCapabilities_skipPrepareAndTrigger()
[all …]
H A DVibrationThreadTest.java158 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in vibrate_noVibrator_ignoresVibration()
170 .addNext(2, VibrationEffect.get(VibrationEffect.EFFECT_CLICK)) in vibrate_missingVibrators_ignoresVibration()
520 VibrationEffect.get(VibrationEffect.EFFECT_CLICK))); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback()
521 vibration.addFallback(VibrationEffect.EFFECT_CLICK, fallback); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback()
622 fakeVibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
660 expectedPrebaked(VibrationEffect.EFFECT_CLICK), in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
665 expectedPrebaked(VibrationEffect.EFFECT_CLICK)), in vibrate_singleVibratorComposedEffects_runsDifferentVibrations()
673 fakeVibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_singleVibratorComposedWithFallback_replacedInTheMiddleOfComposition()
851 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in vibrate_multipleMono_runsSameEffectInAllVibrators()
1191 fakeVibrator.setSupportedEffects(VibrationEffect.EFFECT_CLICK); in vibrate_cancelSlowVibrator_cancelIsNotBlockedByVibrationThread()
[all …]
H A DVibratorControllerTest.java165 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in updateAlwaysOn_withCapability_enablesAlwaysOnEffect()
170 eq(1L), eq((long) VibrationEffect.EFFECT_CLICK), in updateAlwaysOn_withCapability_enablesAlwaysOnEffect()
183 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in updateAlwaysOn_withoutCapability_ignoresEffect()
206 PrebakedSegment prebaked = createPrebaked(VibrationEffect.EFFECT_CLICK, in on_withPrebaked_performsEffect()
211 verify(mNativeWrapperMock).perform(eq((long) VibrationEffect.EFFECT_CLICK), in on_withPrebaked_performsEffect()
H A DRampToStepAdapterTest.java67 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
H A DVibrationScalerTest.java152 PrebakedSegment effect = new PrebakedSegment(VibrationEffect.EFFECT_CLICK, in scale_withPrebakedSegment_setsEffectStrengthBasedOnSettings()
177 VibrationEffect effect = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK); in scale_withPrebakedEffect_setsEffectStrengthBasedOnSettings()
H A DStepToRampAdapterTest.java67 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
H A DDeviceVibrationEffectAdapterTest.java93 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
H A DRampDownAdapterTest.java60 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
/aosp14/frameworks/base/core/java/android/os/vibrator/
H A DPrebakedSegment.java85 case VibrationEffect.EFFECT_CLICK: in areVibrationFeaturesSupported()
100 case VibrationEffect.EFFECT_CLICK: in isHapticFeedbackCandidate()
160 case VibrationEffect.EFFECT_CLICK: in validate()
/aosp14/frameworks/base/samples/demo/haptic-assessment/src/com/example/android/hapticassessment/
H A DMainActivity.kt22 import android.os.VibrationEffect.EFFECT_CLICK
48 vibrator.vibrate(VibrationEffect.createPredefined(EFFECT_CLICK))
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DVibratorPerfTest.java49 mVibrator.vibrate(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)); in testEffectClick()
86 int[] effects = new int[]{VibrationEffect.EFFECT_CLICK, VibrationEffect.EFFECT_TICK}; in testAreEffectsSupported()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DUdfpsHapticsSimulator.kt60 VibrationEffect.get(VibrationEffect.EFFECT_CLICK),
H A DUdfpsController.java236 public static final VibrationEffect EFFECT_CLICK = field in UdfpsController
237 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
952 EFFECT_CLICK, in playStartHaptic() local
1062 UdfpsController.EFFECT_CLICK, in onAodInterrupt()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DLockIconViewControllerTest.java358 eq(UdfpsController.EFFECT_CLICK), in playHaptic_onTouchExploration_NoOneWayHaptics_usesVibrate()
385 eq(UdfpsController.EFFECT_CLICK), in playHaptic_onLongPress_NoOneWayHaptics_usesVibrate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DVibratorHelper.java52 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DVibratorHelperTest.kt50 vibratorHelper.vibrate(VibrationEffect.EFFECT_CLICK)
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DAcquisitionClient.java49 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
/aosp14/frameworks/base/core/java/android/os/
H A DVibrationEffect.java76 public static final int EFFECT_CLICK = Effect.CLICK; field in VibrationEffect
166 EFFECT_CLICK,
618 case EFFECT_CLICK: in effectIdToString()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DLockIconViewController.java759 UdfpsController.EFFECT_CLICK, in vibrateOnTouchExploration()
773 UdfpsController.EFFECT_CLICK, in vibrateOnLongPress()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibrationSettings.java216 mFallbackEffects.put(VibrationEffect.EFFECT_CLICK, clickEffect); in VibrationSettings()

12