/frameworks/base/core/tests/coretests/src/android/os/ |
D | VibratorTest.java | 69 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 …]
|
D | CombinedVibrationTest.java | 127 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()
|
D | VibrationEffectTest.java | 112 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()
|
D | VibratorInfoTest.java | 76 .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/ |
D | PrebakedSegmentTest.java | 41 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/ |
D | VibratorManagerServiceTest.java | 246 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 …]
|
D | VibrationThreadTest.java | 138 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 …]
|
D | VibratorControllerTest.java | 166 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()
|
D | RampToStepAdapterTest.java | 61 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
|
D | VibrationScalerTest.java | 139 PrebakedSegment effect = new PrebakedSegment(VibrationEffect.EFFECT_CLICK, in scale_withPrebakedSegment_setsEffectStrengthBasedOnSettings() 167 VibrationEffect effect = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK); in scale_withPrebakedEffect_setsEffectStrengthBasedOnSettings()
|
D | StepToRampAdapterTest.java | 60 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
|
D | DeviceVibrationEffectAdapterTest.java | 76 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
|
D | RampDownAdapterTest.java | 60 VibrationEffect.EFFECT_CLICK, false, VibrationEffect.EFFECT_STRENGTH_LIGHT), in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
|
D | VibrationSettingsTest.java | 435 assertNotNull(mVibrationSettings.getFallbackEffect(VibrationEffect.EFFECT_CLICK)); in getFallbackEffect_returnsEffectsFromSettings()
|
/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 | 67 VibrationEffect.get(VibrationEffect.EFFECT_CLICK), in execute()
|
D | UdfpsController.java | 168 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/ |
D | PrebakedSegment.java | 111 case VibrationEffect.EFFECT_CLICK: in validate()
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 72 public static final int EFFECT_CLICK = Effect.CLICK; field in VibrationEffect 162 EFFECT_CLICK, 517 case EFFECT_CLICK: in effectIdToString()
|
D | VibrationAttributes.java | 343 case VibrationEffect.EFFECT_CLICK: in applyHapticFeedbackHeuristics()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | AcquisitionClient.java | 48 VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | LockIconViewController.java | 489 UdfpsController.EFFECT_CLICK, 505 UdfpsController.EFFECT_CLICK,
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationSettings.java | 131 mFallbackEffects.put(VibrationEffect.EFFECT_CLICK, clickEffect); in VibrationSettings()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | UdfpsControllerTest.java | 544 eq(mUdfpsController.EFFECT_CLICK), in playHapticOnTouchUdfpsArea()
|