Searched refs:HalController (Results 1 – 11 of 11) sorted by relevance
/frameworks/native/services/vibratorservice/ |
D | VibratorManagerHalWrapper.cpp | 53 HalResult<std::shared_ptr<HalController>> LegacyManagerHalWrapper::getVibrator(int32_t id) { in getVibrator() 55 return HalResult<std::shared_ptr<HalController>>::ok(mController); in getVibrator() 58 return HalResult<std::shared_ptr<HalController>>::failed( in getVibrator() 137 HalController::Connector connector = [&, id](auto scheduler) { in getVibratorIds() 140 auto controller = std::make_unique<HalController>(mCallbackScheduler, connector); in getVibratorIds() 147 HalResult<std::shared_ptr<HalController>> AidlManagerHalWrapper::getVibrator(int32_t id) { in getVibrator() 153 return HalResult<std::shared_ptr<HalController>>::ok(it->second); in getVibrator() 155 return HalResult<std::shared_ptr<HalController>>::failed( in getVibrator()
|
D | VibratorHalController.cpp | 90 bool HalController::init() { in init() 98 void HalController::tryReconnect() { in tryReconnect()
|
D | VibratorManagerHalController.cpp | 120 HalResult<std::shared_ptr<HalController>> ManagerHalController::getVibrator(int32_t id) { in getVibrator() 121 hal_fn<std::shared_ptr<HalController>> getVibratorFn = in getVibrator()
|
/frameworks/native/services/vibratorservice/include/vibratorservice/ |
D | VibratorManagerHalWrapper.h | 76 virtual HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) = 0; 86 LegacyManagerHalWrapper() : LegacyManagerHalWrapper(std::make_shared<HalController>()) {} in LegacyManagerHalWrapper() 87 explicit LegacyManagerHalWrapper(std::shared_ptr<HalController> controller) in LegacyManagerHalWrapper() 96 HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) override final; 103 const std::shared_ptr<HalController> mController; 119 HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) override final; 132 std::unordered_map<int32_t, std::shared_ptr<HalController>> mVibrators
|
D | VibratorHalController.h | 38 class HalController { 43 HalController() : HalController(std::make_shared<CallbackScheduler>(), &connectHal) {} in HalController() function 44 HalController(std::shared_ptr<CallbackScheduler> callbackScheduler, Connector connector) in HalController() function 48 virtual ~HalController() = default;
|
D | VibratorManagerHalController.h | 60 HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) override final;
|
/frameworks/native/services/vibratorservice/test/ |
D | VibratorManagerHalControllerTest.cpp | 29 using android::vibrator::HalController; 45 MOCK_METHOD(vibrator::HalResult<std::shared_ptr<HalController>>, getVibrator, (int32_t id), 77 vibrator::HalResult<std::shared_ptr<HalController>> vibratorResult) { in setHalExpectations() 123 vibrator::HalResult<std::shared_ptr<HalController>>::ok(nullptr)); in TEST_F() 150 vibrator::HalResult<std::shared_ptr<HalController>>::unsupported()); in TEST_F() 167 vibrator::HalResult<std::shared_ptr<HalController>>::failed("msg")); in TEST_F() 184 vibrator::HalResult<std::shared_ptr<HalController>>::transactionFailed("m")); in TEST_F()
|
D | VibratorHalControllerTest.cpp | 85 vibrator::HalController>(std::move(callbackScheduler), in SetUp() 96 std::unique_ptr<vibrator::HalController> mController; 227 vibrator::HalController>(nullptr, [&](std::shared_ptr<vibrator::CallbackScheduler>) { in TEST_F()
|
D | VibratorManagerHalWrapperLegacyTest.cpp | 38 class MockHalController : public vibrator::HalController {
|
/frameworks/native/services/vibratorservice/benchmarks/ |
D | VibratorHalControllerBenchmarks.cpp | 136 vibrator::HalController mController; 204 vibrator::HalController controller; 357 vibrator::HalController controller; 377 vibrator::HalController controller; in DefaultArgs() 522 vibrator::HalController controller; in DefaultArgs()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 94 static std::shared_ptr<vibrator::HalController> findVibrator(int32_t vibratorId) { in findVibrator() 152 const std::shared_ptr<vibrator::HalController> mHal;
|