Home
last modified time | relevance | path

Searched refs:getPrimitiveDuration (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DVibratorTest.java181 assertEquals(0, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_CLICK)); in getPrimitivesDurations_noVibrator_returnsAlwaysZero()
193 assertEquals(0, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_CLICK)); in getPrimitivesDurations_unsupportedInOneVibrator_returnsZero()
208 assertEquals(20, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_CLICK)); in getPrimitivesDurations_supportedInAllVibrators_returnsMaxDuration()
DVibratorInfoTest.java108 assertEquals(20, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_CLICK)); in testGetPrimitiveDuration()
109 assertEquals(0, info.getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_TICK)); in testGetPrimitiveDuration()
111 .getPrimitiveDuration(VibrationEffect.Composition.PRIMITIVE_TICK)); in testGetPrimitiveDuration()
/frameworks/native/cmds/idlcli/vibrator/
DCommandGetPrimitiveDuration.cpp65 auto status = hal->call(&aidl::IVibrator::getPrimitiveDuration, mPrimitive, &duration); in doMain()
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperAidlTest.cpp75 MOCK_METHOD(Status, getPrimitiveDuration, (CompositePrimitive p, int32_t* ret), (override));
335 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::CLICK), _)) in TEST_F()
580 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::CLICK), _)) in TEST_F()
583 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::SPIN), _)) in TEST_F()
586 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::THUD), _)) in TEST_F()
634 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::SPIN), _)) in TEST_F()
637 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::THUD), _)) in TEST_F()
644 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::SPIN), _)) in TEST_F()
647 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::THUD), _)) in TEST_F()
DVibratorManagerHalWrapperAidlTest.cpp71 MOCK_METHOD(Status, getPrimitiveDuration, (CompositePrimitive p, int32_t* ret), (override));
/frameworks/base/core/java/android/os/
DSystemVibrator.java302 public int getPrimitiveDuration(int primitiveId) { in getPrimitiveDuration() method in SystemVibrator.AllVibratorsInfo
305 int duration = info.getPrimitiveDuration(primitiveId); in getPrimitiveDuration()
DVibrator.java609 durations[i] = info.getPrimitiveDuration(primitiveIds[i]); in getPrimitiveDurations()
DVibratorInfo.java275 public int getPrimitiveDuration( in getPrimitiveDuration() method in VibratorInfo
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp408 auto status = getHal()->getPrimitiveDuration(primitive, &duration); in getPrimitiveDurationsInternal()