Home
last modified time | relevance | path

Searched refs:CompositePrimitive (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperAidlTest.cpp36 using android::hardware::vibrator::CompositePrimitive;
73 MOCK_METHOD(Status, getSupportedPrimitives, (std::vector<CompositePrimitive> * ret),
75 MOCK_METHOD(Status, getPrimitiveDuration, (CompositePrimitive p, int32_t* ret), (override));
309 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK}; in TEST_F()
314 constexpr auto primitiveRange = enum_range<CompositePrimitive>(); in TEST_F()
317 primitiveDurations[static_cast<size_t>(CompositePrimitive::CLICK)] = 10ms; in TEST_F()
335 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::CLICK), _)) in TEST_F()
564 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK, in TEST_F()
565 CompositePrimitive::SPIN, in TEST_F()
566 CompositePrimitive::THUD}; in TEST_F()
[all …]
Dtest_utils.h32 using ::android::hardware::vibrator::CompositePrimitive;
51 static CompositeEffect createCompositeEffect(CompositePrimitive primitive, in createCompositeEffect()
DVibratorHalWrapperHidlV1_0Test.cpp36 using android::hardware::vibrator::CompositePrimitive;
322 vibrator::TestFactory::createCompositeEffect(CompositePrimitive::CLICK, 10ms, 0.0f)); in TEST_F()
324 vibrator::TestFactory::createCompositeEffect(CompositePrimitive::SPIN, 100ms, 0.5f)); in TEST_F()
326 vibrator::TestFactory::createCompositeEffect(CompositePrimitive::THUD, 1000ms, 1.0f)); in TEST_F()
DVibratorManagerHalWrapperLegacyTest.cpp27 using android::hardware::vibrator::CompositePrimitive;
DVibratorManagerHalWrapperAidlTest.cpp32 using android::hardware::vibrator::CompositePrimitive;
69 MOCK_METHOD(Status, getSupportedPrimitives, (std::vector<CompositePrimitive> * ret),
71 MOCK_METHOD(Status, getPrimitiveDuration, (CompositePrimitive p, int32_t* ret), (override));
/frameworks/native/cmds/idlcli/vibrator/
DCommandGetSupportedPrimitives.cpp26 using aidl::CompositePrimitive;
48 std::vector<CompositePrimitive> primitives; in doMain()
DCommandGetPrimitiveDuration.cpp28 using aidl::CompositePrimitive;
78 CompositePrimitive mPrimitive;
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp31 using android::hardware::vibrator::CompositePrimitive;
213 HalResult<std::vector<CompositePrimitive>> HalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal()
215 return HalResult<std::vector<CompositePrimitive>>::unsupported(); in getSupportedPrimitivesInternal()
219 const std::vector<CompositePrimitive>&) { in getPrimitiveDurationsInternal() argument
388 HalResult<std::vector<CompositePrimitive>> AidlHalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal()
389 std::vector<CompositePrimitive> supportedPrimitives; in getSupportedPrimitivesInternal()
391 return HalResult<std::vector<CompositePrimitive>>::fromStatus(result, supportedPrimitives); in getSupportedPrimitivesInternal()
395 const std::vector<CompositePrimitive>& supportedPrimitives) { in getPrimitiveDurationsInternal()
397 constexpr auto primitiveRange = enum_range<CompositePrimitive>(); in getPrimitiveDurationsInternal()
DVibratorHalController.cpp31 using android::hardware::vibrator::CompositePrimitive;
/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp24 using ::android::hardware::vibrator::CompositePrimitive;
415 std::vector<CompositePrimitive> supported = primitivesResult.value(); in DefaultArgs()
423 for (const auto& primitive : enum_range<CompositePrimitive>()) { in DefaultArgs()
427 if (primitive == CompositePrimitive::NOOP) { in DefaultArgs()
438 return static_cast<CompositePrimitive>(this->getOtherArg(state, 0)); in getPrimitive()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h183 const HalResult<std::vector<hardware::vibrator::CompositePrimitive>> supportedPrimitives;
239 HalResult<std::vector<hardware::vibrator::CompositePrimitive>> mSupportedPrimitives =
240 HalResult<std::vector<hardware::vibrator::CompositePrimitive>>::failed(MSG);
308 virtual HalResult<std::vector<hardware::vibrator::CompositePrimitive>>
311 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives);
373 HalResult<std::vector<hardware::vibrator::CompositePrimitive>> getSupportedPrimitivesInternal()
376 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives)
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp180 effect.primitive = static_cast<aidl::CompositePrimitive>( in effectFromJavaPrimitive()