Searched refs:CompositePrimitive (Results 1 – 12 of 12) sorted by relevance
/frameworks/native/services/vibratorservice/test/ |
D | VibratorHalWrapperAidlTest.cpp | 36 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 …]
|
D | test_utils.h | 32 using ::android::hardware::vibrator::CompositePrimitive; 51 static CompositeEffect createCompositeEffect(CompositePrimitive primitive, in createCompositeEffect()
|
D | VibratorHalWrapperHidlV1_0Test.cpp | 36 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()
|
D | VibratorManagerHalWrapperLegacyTest.cpp | 27 using android::hardware::vibrator::CompositePrimitive;
|
D | VibratorManagerHalWrapperAidlTest.cpp | 32 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/ |
D | CommandGetSupportedPrimitives.cpp | 26 using aidl::CompositePrimitive; 48 std::vector<CompositePrimitive> primitives; in doMain()
|
D | CommandGetPrimitiveDuration.cpp | 28 using aidl::CompositePrimitive; 78 CompositePrimitive mPrimitive;
|
/frameworks/native/services/vibratorservice/ |
D | VibratorHalWrapper.cpp | 31 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()
|
D | VibratorHalController.cpp | 31 using android::hardware::vibrator::CompositePrimitive;
|
/frameworks/native/services/vibratorservice/benchmarks/ |
D | VibratorHalControllerBenchmarks.cpp | 24 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/ |
D | VibratorHalWrapper.h | 183 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/ |
D | com_android_server_vibrator_VibratorController.cpp | 180 effect.primitive = static_cast<aidl::CompositePrimitive>( in effectFromJavaPrimitive()
|