Home
last modified time | relevance | path

Searched refs:ManagerCapabilities (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorManagerHalWrapper.h29 enum class ManagerCapabilities : int32_t { enum
41 inline ManagerCapabilities operator|(ManagerCapabilities lhs, ManagerCapabilities rhs) {
42 using underlying = typename std::underlying_type<ManagerCapabilities>::type;
43 return static_cast<ManagerCapabilities>(static_cast<underlying>(lhs) |
47 inline ManagerCapabilities& operator|=(ManagerCapabilities& lhs, ManagerCapabilities rhs) {
51 inline ManagerCapabilities operator&(ManagerCapabilities lhs, ManagerCapabilities rhs) {
52 using underlying = typename std::underlying_type<ManagerCapabilities>::type;
53 return static_cast<ManagerCapabilities>(static_cast<underlying>(lhs) &
57 inline ManagerCapabilities& operator&=(ManagerCapabilities& lhs, ManagerCapabilities rhs) {
74 virtual HalResult<ManagerCapabilities> getCapabilities() = 0;
[all …]
DVibratorManagerHalController.h58 HalResult<ManagerCapabilities> getCapabilities() override final;
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp41 HalResult<ManagerCapabilities> LegacyManagerHalWrapper::getCapabilities() { in getCapabilities()
42 return HalResult<ManagerCapabilities>::ok(ManagerCapabilities::NONE); in getCapabilities()
107 HalResult<ManagerCapabilities> AidlManagerHalWrapper::getCapabilities() { in getCapabilities()
111 return HalResult<ManagerCapabilities>::ok(*mCapabilities); in getCapabilities()
115 auto ret = HalResult<ManagerCapabilities>::fromStatus(result, in getCapabilities()
116 static_cast<ManagerCapabilities>(cap)); in getCapabilities()
178 HalResult<ManagerCapabilities> capabilities = getCapabilities(); in triggerSynced()
180 static_cast<int32_t>(capabilities.value() & ManagerCapabilities::TRIGGER_CALLBACK); in triggerSynced()
DVibratorManagerHalController.cpp104 HalResult<ManagerCapabilities> ManagerHalController::getCapabilities() { in getCapabilities()
105 hal_fn<ManagerCapabilities> getCapabilitiesFn = [](std::shared_ptr<ManagerHalWrapper> hal) { in getCapabilities()
/frameworks/native/services/vibratorservice/test/
DVibratorManagerHalControllerTest.cpp42 MOCK_METHOD(vibrator::HalResult<vibrator::ManagerCapabilities>, getCapabilities, (),
75 vibrator::HalResult<vibrator::ManagerCapabilities> capabilitiesResult, in setHalExpectations()
118 vibrator::HalResult<vibrator::ManagerCapabilities>::ok( in TEST_F()
119 vibrator::ManagerCapabilities::SYNC), in TEST_F()
127 ASSERT_EQ(vibrator::ManagerCapabilities::SYNC, getCapabilitiesResult.value()); in TEST_F()
146 vibrator::HalResult<vibrator::ManagerCapabilities>::unsupported(), in TEST_F()
165 vibrator::HalResult<vibrator::ManagerCapabilities>::failed("message"), in TEST_F()
DVibratorManagerHalWrapperLegacyTest.cpp79 ASSERT_EQ(vibrator::ManagerCapabilities::NONE, result.value()); in TEST_F()
DVibratorManagerHalWrapperAidlTest.cpp164 ASSERT_EQ(vibrator::ManagerCapabilities::SYNC, result.value()); in TEST_F()
177 ASSERT_EQ(vibrator::ManagerCapabilities::SYNC, result.value()); in TEST_F()
184 ASSERT_EQ(vibrator::ManagerCapabilities::SYNC, result.value()); in TEST_F()