/frameworks/base/core/tests/vibrator/src/android/os/vibrator/ |
D | PrebakedSegmentTest.java | 41 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 …]
|
D | MultiVibratorInfoTest.java | 39 .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()
|
D | VibratorInfoFactoryTest.java | 39 .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/ |
D | CombinedVibrationTest.java | 124 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 …]
|
D | VibratorTest.java | 85 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()
|
D | VibratorInfoTest.java | 83 .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()
|
D | VibrationEffectTest.java | 288 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/ |
D | VibratorManagerServiceTest.java | 387 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 …]
|
D | VibrationThreadTest.java | 169 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 …]
|
D | VibratorControllerTest.java | 157 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()
|
D | HapticFeedbackCustomizationTest.java | 21 import static android.os.VibrationEffect.EFFECT_CLICK; 68 VibrationEffect.createPredefined(EFFECT_CLICK);
|
D | DeviceAdapterTest.java | 94 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment() 206 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testMonoCombinedVibration_returnsSameVibrationWhenEffectsUnchanged()
|
D | HapticFeedbackVibrationProviderTest.java | 27 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()
|
D | RampToStepAdapterTest.java | 62 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
|
D | SplitSegmentsAdapterTest.java | 65 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testStepAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
|
D | StepToRampAdapterTest.java | 62 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationVibrationHelper.java | 41 VibrationEffect.EFFECT_CLICK); 50 VibrationEffect.EFFECT_CLICK) == Vibrator.VIBRATION_EFFECT_SUPPORT_YES; in FullScreenMagnificationVibrationHelper()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | PrebakedSegment.java | 93 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/ |
D | MainActivity.kt | 22 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/ |
D | VibratorPerfTest.java | 49 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/ |
D | UdfpsHapticsSimulator.kt | 60 VibrationEffect.get(VibrationEffect.EFFECT_CLICK), in execute()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | HapticFeedbackVibrationProvider.java | 139 return getVibration(effectId, VibrationEffect.EFFECT_CLICK); in getVibrationForHapticFeedback() 346 predefinedEffectId = VibrationEffect.EFFECT_CLICK; in getKeyboardVibration()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | VibratorHelper.java | 52 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
|
/frameworks/base/core/java/com/android/internal/vibrator/persistence/ |
D | XmlConstants.java | 129 CLICK(VibrationEffect.EFFECT_CLICK, true),
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | ShutdownThreadTest.java | 82 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK);
|