/frameworks/base/core/tests/vibrator/src/android/os/vibrator/ |
D | PrimitiveSegmentTest.java | 42 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() 67 () -> new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_NOOP, -1, 0) in testValidate() 70 () -> new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_NOOP, 1, -1) 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() [all …]
|
D | VibratorInfoFactoryTest.java | 43 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testCreatedInfo_hasTheRequestedId() 67 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 20) in testCreatedInfo_fromSingleVibratorInfo_hasEqualContent() 68 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 30) in testCreatedInfo_fromSingleVibratorInfo_hasEqualContent() 85 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testCreatedInfo_hasEqualContentRegardlessOfSourceInfoOrder() 98 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_THUD, 5) in testCreatedInfoContents() 103 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testCreatedInfoContents() 104 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_THUD, 20) in testCreatedInfoContents() 114 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_THUD, 20) in testCreatedInfoContents()
|
D | MultiVibratorInfoTest.java | 101 .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()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/ |
D | FakeVibratorHelper.kt | 67 VibrationEffect.Composition.PRIMITIVE_NOOP to 0, 68 VibrationEffect.Composition.PRIMITIVE_CLICK to 12, 69 VibrationEffect.Composition.PRIMITIVE_THUD to 300, 70 VibrationEffect.Composition.PRIMITIVE_SPIN to 133, 71 VibrationEffect.Composition.PRIMITIVE_QUICK_RISE to 150, 72 VibrationEffect.Composition.PRIMITIVE_SLOW_RISE to 500, 73 VibrationEffect.Composition.PRIMITIVE_QUICK_FALL to 100, 74 VibrationEffect.Composition.PRIMITIVE_TICK to 5, 75 VibrationEffect.Composition.PRIMITIVE_LOW_TICK to 12,
|
/frameworks/base/core/tests/vibrator/src/android/os/ |
D | VibratorInfoTest.java | 97 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 10) in testIsPrimitiveSupported() 99 assertTrue(info.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testIsPrimitiveSupported() 100 assertFalse(info.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_TICK)); 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() 116 assertEquals(0, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_TICK)); in testGetPrimitiveDuration() 118 .getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_TICK)); in testGetPrimitiveDuration() 268 .setSupportedPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 20) in testEquals() [all …]
|
D | VibrationEffectTest.java | 40 import android.os.VibrationEffect.Composition.UnreachableAfterRepeatingIndefinitelyException; 366 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK) in computeLegacyPattern_composition_withPrimitives() 519 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK) in testValidateWaveformBuilder() 558 .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() 575 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_SLOW_RISE, 0.5f) in testValidateComposed() 576 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_QUICK_FALL, 0.5f) in testValidateComposed() 577 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 1.0f, 100) in testValidateComposed() 581 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_LOW_TICK) in testValidateComposed() [all …]
|
D | CombinedVibrationTest.java | 127 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testDurationMono() 128 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 100) in testDurationMono() 188 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testIsHapticFeedbackCandidateMono() 189 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 100) in testIsHapticFeedbackCandidateMono() 212 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testIsHapticFeedbackCandidateStereo() 213 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 100) in testIsHapticFeedbackCandidateStereo() 236 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_SLOW_RISE) in testIsHapticFeedbackCandidateSequential() 237 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_QUICK_FALL) in testIsHapticFeedbackCandidateSequential()
|
D | VibratorTest.java | 95 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK}).length); in arePrimitivesSupported_returnsArrayOfSameSize() 97 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK, in arePrimitivesSupported_returnsArrayOfSameSize() 98 VibrationEffect.Composition.PRIMITIVE_QUICK_RISE}).length); in arePrimitivesSupported_returnsArrayOfSameSize() 105 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK}).length); in getPrimitivesDurations_returnsArrayOfSameSize() 107 new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK, in getPrimitivesDurations_returnsArrayOfSameSize() 108 VibrationEffect.Composition.PRIMITIVE_QUICK_RISE}).length); in getPrimitivesDurations_returnsArrayOfSameSize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardBottomAreaVibrations.kt | 40 VibrationEffect.Composition.PRIMITIVE_TICK, in <lambda>() 51 VibrationEffect.Composition.PRIMITIVE_TICK, 56 VibrationEffect.Composition.PRIMITIVE_QUICK_RISE, 65 VibrationEffect.Composition.PRIMITIVE_TICK, 70 VibrationEffect.Composition.PRIMITIVE_QUICK_FALL,
|
/frameworks/base/core/java/com/android/internal/vibrator/persistence/ |
D | XmlConstants.java | 23 import android.os.VibrationEffect.Composition.PrimitiveType; 72 LOW_TICK(VibrationEffect.Composition.PRIMITIVE_LOW_TICK), 73 TICK(VibrationEffect.Composition.PRIMITIVE_TICK), 74 CLICK(VibrationEffect.Composition.PRIMITIVE_CLICK), 75 SLOW_RISE(VibrationEffect.Composition.PRIMITIVE_SLOW_RISE), 76 QUICK_RISE(VibrationEffect.Composition.PRIMITIVE_QUICK_RISE), 77 QUICK_FALL(VibrationEffect.Composition.PRIMITIVE_QUICK_FALL), 78 SPIN(VibrationEffect.Composition.PRIMITIVE_SPIN), 79 THUD(VibrationEffect.Composition.PRIMITIVE_THUD);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/ |
D | SliderHapticFeedbackProviderTest.kt | 59 kosmos.vibratorHelper.primitiveDurations[VibrationEffect.Composition.PRIMITIVE_LOW_TICK] = in setup() 76 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() 154 ticks.addPrimitive(VibrationEffect.Composition.PRIMITIVE_LOW_TICK, expectedScale) in playHapticAtProgress_onQuickSuccession_playsLowTicksOnce() 230 ticks.addPrimitive(VibrationEffect.Composition.PRIMITIVE_LOW_TICK, expectedScale) in playHapticAtLowerBookend_afterPlayingAtProgress_playsTwice() 235 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtLowerBookend_afterPlayingAtProgress_playsTwice() 268 ticks.addPrimitive(VibrationEffect.Composition.PRIMITIVE_LOW_TICK, expectedScale) in playHapticAtUpperBookend_afterPlayingAtProgress_playsTwice() 273 VibrationEffect.Composition.PRIMITIVE_CLICK, in playHapticAtUpperBookend_afterPlayingAtProgress_playsTwice() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 39 using aidl::android::hardware::graphics::composer3::Composition; 396 if (requestedCompositionType == Composition::SOLID_COLOR && state.overrideInfo.buffer) { in writeStateToHWC() 397 requestedCompositionType = Composition::DEVICE; in writeStateToHWC() 418 if (requestedCompositionType == Composition::SOLID_COLOR) { in writeStateToHWC() 427 Composition requestedCompositionType, in writeOutputDependentGeometryStateToHWC() 466 const auto bufferTransform = (requestedCompositionType != Composition::SOLID_COLOR && in writeOutputDependentGeometryStateToHWC() 563 Composition compositionType, bool skipLayer) { in writeOutputIndependentPerFrameStateToHWC() 588 case Composition::SOLID_COLOR: in writeOutputIndependentPerFrameStateToHWC() 591 case Composition::SIDEBAND: in writeOutputIndependentPerFrameStateToHWC() 594 case Composition::CURSOR: in writeOutputIndependentPerFrameStateToHWC() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/qs/ |
D | LongPressHapticBuilder.kt | 62 VibrationEffect.Composition.PRIMITIVE_LOW_TICK, in <lambda>() 69 composition.addPrimitive(VibrationEffect.Composition.PRIMITIVE_SPIN, SPIN_SCALE, 0) in <lambda>() 74 VibrationEffect.Composition.PRIMITIVE_LOW_TICK, in <lambda>() 86 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, CLICK_SCALE, 0) in <lambda>() 111 composition.addPrimitive(VibrationEffect.Composition.PRIMITIVE_LOW_TICK, scale, 0) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | HapticFeedbackVibrationProvider.java | 160 VibrationEffect.Composition.PRIMITIVE_TICK, in getVibrationForHapticFeedback() 167 VibrationEffect.Composition.PRIMITIVE_TICK, in getVibrationForHapticFeedback() 174 VibrationEffect.Composition.PRIMITIVE_LOW_TICK, in getVibrationForHapticFeedback() 312 if (mVibratorInfo.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_QUICK_RISE) in getAssistantButtonVibration() 313 && mVibratorInfo.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_TICK)) { in getAssistantButtonVibration() 316 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_QUICK_RISE, 0.25f) in getAssistantButtonVibration() 317 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 1f, 50) in getAssistantButtonVibration() 339 primitiveId = VibrationEffect.Composition.PRIMITIVE_TICK; in getKeyboardVibration() 345 primitiveId = VibrationEffect.Composition.PRIMITIVE_CLICK; in getKeyboardVibration() 368 VibrationEffect.Composition.PRIMITIVE_CLICK); in shouldBypassIntensityScale() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputLayerTest.cpp | 36 using aidl::android::hardware::graphics::composer3::Composition; 904 void expectSetCompositionTypeCall(Composition compositionType) { in expectSetCompositionTypeCall() 1030 mLayerFEState.compositionType = Composition::SOLID_COLOR; in TEST_F() 1038 expectSetCompositionTypeCall(Composition::SOLID_COLOR); in TEST_F() 1046 mLayerFEState.compositionType = Composition::SIDEBAND; in TEST_F() 1050 expectSetCompositionTypeCall(Composition::SIDEBAND); in TEST_F() 1057 mLayerFEState.compositionType = Composition::CURSOR; in TEST_F() 1061 expectSetCompositionTypeCall(Composition::CURSOR); in TEST_F() 1068 mLayerFEState.compositionType = Composition::DEVICE; in TEST_F() 1072 expectSetCompositionTypeCall(Composition::DEVICE); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | Predictor.cpp | 43 aidl::android::hardware::graphics::composer3::Composition::CLIENT && in getApproximateMatch() 45 aidl::android::hardware::graphics::composer3::Composition::CLIENT) { in getApproximateMatch() 95 aidl::android::hardware::graphics::composer3::Composition::CLIENT); in fromString() 99 aidl::android::hardware::graphics::composer3::Composition::CURSOR); in fromString() 103 aidl::android::hardware::graphics::composer3::Composition::DEVICE); in fromString() 107 aidl::android::hardware::graphics::composer3::Composition::INVALID); in fromString() 111 aidl::android::hardware::graphics::composer3::Composition::SIDEBAND); in fromString() 115 aidl::android::hardware::graphics::composer3::Composition::SOLID_COLOR); in fromString() 118 plan.addLayerType(aidl::android::hardware::graphics::composer3::Composition:: in fromString() 132 case aidl::android::hardware::graphics::composer3::Composition::CLIENT: in to_string() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/ |
D | TransferStatus.kt | 34 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1.0f, 0) 41 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_QUICK_RISE, 1.0f, 0) 42 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 0.7f, 70)
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputLayer.h | 60 aidl::android::hardware::graphics::composer3::Composition) override; 79 HWC2::Layer*, aidl::android::hardware::graphics::composer3::Composition, uint32_t z); 85 aidl::android::hardware::graphics::composer3::Composition compositionType, 91 aidl::android::hardware::graphics::composer3::Composition, 94 aidl::android::hardware::graphics::composer3::Composition from, 95 aidl::android::hardware::graphics::composer3::Composition to) const;
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | VibratorPerfTest.java | 77 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK) in testCompose() 78 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 0.5f, 100) in testCompose() 95 int[] primitives = new int[]{VibrationEffect.Composition.PRIMITIVE_CLICK, in testArePrimitivesSupported() 96 VibrationEffect.Composition.PRIMITIVE_TICK}; in testArePrimitivesSupported()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | CompositionTest.cpp | 971 template <aidl::android::hardware::graphics::composer3::Composition CompositionType> 973 static constexpr aidl::android::hardware::graphics::composer3::Composition TYPE = 989 template <aidl::android::hardware::graphics::composer3::Composition InitialCompositionType, 990 aidl::android::hardware::graphics::composer3::Composition FinalCompositionType> 992 static constexpr aidl::android::hardware::graphics::composer3::Composition TYPE = 1009 Composition>{FinalCompositionType}), in setupHwcGetCallExpectations() 1206 aidl::android::hardware::graphics::composer3::Composition::DEVICE>, in TEST_F() 1214 aidl::android::hardware::graphics::composer3::Composition::DEVICE>, in TEST_F() 1222 aidl::android::hardware::graphics::composer3::Composition::DEVICE, in TEST_F() 1223 aidl::android::hardware::graphics::composer3::Composition::CLIENT>, in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | Hal.h | 107 aidl::android::hardware::graphics::composer3::Composition composition) { in to_string() 109 case aidl::android::hardware::graphics::composer3::Composition::INVALID: in to_string() 111 case aidl::android::hardware::graphics::composer3::Composition::CLIENT: in to_string() 113 case aidl::android::hardware::graphics::composer3::Composition::DEVICE: in to_string() 115 case aidl::android::hardware::graphics::composer3::Composition::SOLID_COLOR: in to_string() 117 case aidl::android::hardware::graphics::composer3::Composition::CURSOR: in to_string() 119 case aidl::android::hardware::graphics::composer3::Composition::SIDEBAND: in to_string() 121 case aidl::android::hardware::graphics::composer3::Composition::DISPLAY_DECORATION: in to_string() 123 case aidl::android::hardware::graphics::composer3::Composition::REFRESH_RATE_INDICATOR: in to_string()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationThreadTest.java | 460 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() 661 VibrationEffect.Composition.PRIMITIVE_TICK); in vibrate_singleVibratorComposed_runsVibration() 664 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_CLICK, 1f) in vibrate_singleVibratorComposed_runsVibration() 665 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 0.5f) in vibrate_singleVibratorComposed_runsVibration() [all …]
|
D | DeviceAdapterTest.java | 95 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment() 98 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_SPIN, 0.5f, 100)), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment() 178 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testStepAndRampSegments_withValidFreqMapping_returnsClippedValuesOnlyInRamps() 191 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testStepAndRampSegments_withValidFreqMapping_returnsClippedValuesOnlyInRamps() 207 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testMonoCombinedVibration_returnsSameVibrationWhenEffectsUnchanged() 210 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_SPIN, 0.5f, 100)), in testMonoCombinedVibration_returnsSameVibrationWhenEffectsUnchanged()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | PrimitiveSegment.java | 131 Preconditions.checkArgumentInRange(mPrimitiveId, VibrationEffect.Composition.PRIMITIVE_NOOP, in validate() 132 VibrationEffect.Composition.PRIMITIVE_LOW_TICK, "primitiveId"); in validate() 153 + "primitive=" + VibrationEffect.Composition.primitiveToString(mPrimitiveId) in toString() 163 VibrationEffect.Composition.primitiveToString(mPrimitiveId), mScale, mDelay); in toDebugString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/ |
D | UnfoldHapticsPlayer.kt | 98 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, 0F, 0) in <lambda>() 102 VibrationEffect.Composition.PRIMITIVE_LOW_TICK, in <lambda>() 109 .addPrimitive(VibrationEffect.Composition.PRIMITIVE_TICK, hapticsScaleTick) in <lambda>()
|