Home
last modified time | relevance | path

Searched refs:PRIMITIVE_CLICK (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DPrimitiveSegmentTest.java42 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 10); in testCreation()
45 assertEquals(VibrationEffect.Composition.PRIMITIVE_CLICK, primitive.getPrimitiveId()); in testCreation()
53 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 10); in testSerialization()
62 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 0).validate(); in testValidate()
77 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 0); in testResolve_ignoresAndReturnsSameEffect()
84 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 0); in testApplyEffectStrength_ignoresAndReturnsSameEffect()
92 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 0); in testScale_fullPrimitiveScaleValue()
107 VibrationEffect.Composition.PRIMITIVE_CLICK, 0.5f, 0); in testScale_halfPrimitiveScaleValue()
122 VibrationEffect.Composition.PRIMITIVE_CLICK, 0, 0); in testScale_zeroPrimitiveScaleValue()
134 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 0); in testScaleLinearly()
[all …]
DMultiVibratorInfoTest.java101 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testIsPrimitiveSupported_unsupportedInOneVibrator_returnsFalse()
108 assertFalse(info.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testIsPrimitiveSupported_unsupportedInOneVibrator_returnsFalse()
115 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 5) in testIsPrimitiveSupported_supportedInAllVibrators_returnsTrue()
119 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 15) in testIsPrimitiveSupported_supportedInAllVibrators_returnsTrue()
125 assertTrue(info.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testIsPrimitiveSupported_supportedInAllVibrators_returnsTrue()
132 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testGetPrimitiveDuration_unsupportedInOneVibrator_returnsZero()
139 assertEquals(0, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testGetPrimitiveDuration_unsupportedInOneVibrator_returnsZero()
146 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testGetPrimitiveDuration_supportedInAllVibrators_returnsMaxDuration()
150 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 20) in testGetPrimitiveDuration_supportedInAllVibrators_returnsMaxDuration()
156 assertEquals(20, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testGetPrimitiveDuration_supportedInAllVibrators_returnsMaxDuration()
DVibratorInfoFactoryTest.java43 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testCreatedInfo_hasTheRequestedId()
67 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 20) in testCreatedInfo_fromSingleVibratorInfo_hasEqualContent()
85 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testCreatedInfo_hasEqualContentRegardlessOfSourceInfoOrder()
103 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testCreatedInfoContents()
/frameworks/base/core/tests/vibrator/src/android/os/
DVibratorInfoTest.java97 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testIsPrimitiveSupported()
99 assertTrue(info.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testIsPrimitiveSupported()
104 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testIsPrimitiveSupported()
106 assertFalse(info.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testIsPrimitiveSupported()
113 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 20) in testGetPrimitiveDuration()
115 assertEquals(20, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testGetPrimitiveDuration()
268 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 20) in testEquals()
309 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testEquals()
360 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 20) in testParceling()
427 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in areVibrationFeaturesSupported_compositionsWithSupportedPrimitivesSupported()
[all …]
DVibrationEffectTest.java558 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testValidateComposed()
560 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f) in testValidateComposed()
562 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 0.5f, 10) in testValidateComposed()
600 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, -1, 10) in testValidateComposed()
605 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1, -10) in testValidateComposed()
610 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f, -1) in testValidateComposed()
624 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testValidateComposed()
660 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f, 1) in testResolveComposed()
704 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 0.5f, 1) in testScaleComposed()
750 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testApplyRepeatingIndefinitely_nonRepeatingOriginal()
[all …]
DVibratorTest.java95 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK}).length); in arePrimitivesSupported_returnsArrayOfSameSize()
97 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK, in arePrimitivesSupported_returnsArrayOfSameSize()
105 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK}).length); in getPrimitivesDurations_returnsArrayOfSameSize()
107 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK, in getPrimitivesDurations_returnsArrayOfSameSize()
DCombinedVibrationTest.java127 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testDurationMono()
188 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testIsHapticFeedbackCandidateMono()
212 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testIsHapticFeedbackCandidateStereo()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DHapticFeedbackVibrationProviderTest.java25 import static android.os.VibrationEffect.Composition.PRIMITIVE_CLICK;
79 VibrationEffect.startComposition().addPrimitive(PRIMITIVE_CLICK, 0.3497f).compose();
122 mockVibratorPrimitiveSupport(PRIMITIVE_CLICK); in testUseValidCustomizedVibration()
159 mockVibratorPrimitiveSupport(PRIMITIVE_CLICK); in testHapticTextDisabled_noVibrationReturnedForTextHandleMove()
177 mockVibratorPrimitiveSupport(PRIMITIVE_CLICK); in testHapticTextEnabled_vibrationReturnedForTextHandleMove()
198 mockVibratorPrimitiveSupport(PRIMITIVE_CLICK); in testValidCustomizationPresentForSafeModeEnabled_usedRegardlessOfVibrationResource()
235 mockVibratorPrimitiveSupport(PRIMITIVE_CLICK, PRIMITIVE_TICK); in testKeyboardHaptic_noFixedAmplitude_defaultVibrationReturned()
260 mockVibratorPrimitiveSupport(PRIMITIVE_CLICK, PRIMITIVE_TICK); in testKeyboardHaptic_fixAmplitude_keyboardCategoryOff_defaultVibrationReturned()
274 mockVibratorPrimitiveSupport(PRIMITIVE_CLICK, PRIMITIVE_TICK); in testKeyboardHaptic_fixAmplitude_keyboardCategoryOn_keyboardVibrationReturned()
281 .addPrimitive(PRIMITIVE_CLICK, KEYBOARD_VIBRATION_FIXED_AMPLITUDE) in testKeyboardHaptic_fixAmplitude_keyboardCategoryOn_keyboardVibrationReturned()
[all …]
DVibrationThreadTest.java460 fakeVibrator.setSupportedPrimitives(VibrationEffect.Composition.PRIMITIVE_CLICK); in vibrate_singleVibratorRepeatingPrimitives_generatesLargestComposition()
465 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f, 100) in vibrate_singleVibratorRepeatingPrimitives_generatesLargestComposition()
546 VibrationEffect.Composition.PRIMITIVE_CLICK);
549 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f, 100)
550 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f, 100)
551 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f, 100)
660 fakeVibrator.setSupportedPrimitives(VibrationEffect.Composition.PRIMITIVE_CLICK, in vibrate_singleVibratorComposed_runsVibration()
664 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f) in vibrate_singleVibratorComposed_runsVibration()
676 expectedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 0), in vibrate_singleVibratorComposed_runsVibration()
684 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f) in vibrate_singleVibratorComposedAndNoCapability_ignoresVibration()
[all …]
DVibratorManagerServiceTest.java441 vibrator.setSupportedPrimitives(VibrationEffect.Composition.PRIMITIVE_CLICK); in getVibratorInfo_vibratorSuccessfulLoadBeforeSystemReady_returnsInfoForVibrator()
455 assertTrue(info.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_CLICK)); in getVibratorInfo_vibratorSuccessfulLoadBeforeSystemReady_returnsInfoForVibrator()
886 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in vibrate_withAttributesUnknownUsage_ignoresEffectIfNotHapticFeedbackCandidate()
1248 VibrationEffect.Composition.PRIMITIVE_CLICK); in vibrate_withriggerCallback_finishesVibration()
1251 VibrationEffect.Composition.PRIMITIVE_CLICK); in vibrate_withriggerCallback_finishesVibration()
1274 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 100) in vibrate_withriggerCallback_finishesVibration()
1285 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 100); in vibrate_withriggerCallback_finishesVibration()
1310 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in vibrate_withMultipleVibratorsAndCapabilities_prepareAndTriggerCalled()
1547 fakeVibrator.setSupportedPrimitives(VibrationEffect.Composition.PRIMITIVE_CLICK, in vibrate_withIntensitySettings_appliesSettingsToScaleVibrations()
1560 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f) in vibrate_withIntensitySettings_appliesSettingsToScaleVibrations()
[all …]
DVibratorControllerTest.java214 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_CLICK, 0.5f, 10) in on_withComposed_performsEffect()
DVibrationScalerTest.java288 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 0.5f).compose();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackProviderTest.kt76 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtLowerBookend_playsClick()
94 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtLowerBookend_twoTimes_playsClickOnlyOnce()
111 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtUpperBookend_playsClick()
129 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtUpperBookend_twoTimes_playsClickOnlyOnce()
235 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtLowerBookend_afterPlayingAtProgress_playsTwice()
273 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtUpperBookend_afterPlayingAtProgress_playsTwice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/
DTransferStatus.kt34 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1.0f, 0)
42 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 0.7f, 70)
/frameworks/base/apct-tests/perftests/core/src/android/os/
DVibratorPerfTest.java77 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testCompose()
95 int[] primitives = new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK, in testArePrimitivesSupported()
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/persistence/
DVibrationEffectXmlSerializationTest.java19 import static android.os.VibrationEffect.Composition.PRIMITIVE_CLICK;
74 .addPrimitive(PRIMITIVE_CLICK) in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag()
128 .addPrimitive(PRIMITIVE_CLICK) in testParseElement_fromVibrationSelectTag_succeedAndParserPointsToEndVibrationSelectTag()
234 .addPrimitive(PRIMITIVE_CLICK) in testPrimitives_allSucceed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/qs/
DLongPressHapticBuilder.kt86 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, CLICK_SCALE, 0) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/
DFakeVibratorHelper.kt68 VibrationEffect.Composition.PRIMITIVE_CLICK to 12,
/frameworks/base/services/core/java/com/android/server/vibrator/
DHapticFeedbackVibrationProvider.java345 primitiveId = VibrationEffect.Composition.PRIMITIVE_CLICK; in getKeyboardVibration()
368 VibrationEffect.Composition.PRIMITIVE_CLICK); in shouldBypassIntensityScale()
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackProvider.kt71 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, powerScale) in vibrateOnEdgeCollision()
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DXmlConstants.java74 CLICK(VibrationEffect.Composition.PRIMITIVE_CLICK),
/frameworks/base/core/java/android/os/
DVibrationEffect.java1040 PRIMITIVE_CLICK,
1075 public static final int PRIMITIVE_CLICK = 1; field in VibrationEffect.Composition
1291 case PRIMITIVE_CLICK: in primitiveToString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DCentralSurfacesCommandQueueCallbacks.java538 VibrationEffect.Composition.PRIMITIVE_CLICK)) { in getCameraGestureVibrationEffect()
541 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 50) in getCameraGestureVibrationEffect()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationChannelTest.java383 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testVibrationGetters_nonPatternBasedVibrationEffect_nonWaveform()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...

12