Home
last modified time | relevance | path

Searched refs:CallbackScheduler (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/services/vibratorservice/
DVibratorCallbackScheduler.cpp50 CallbackScheduler::~CallbackScheduler() { in ~CallbackScheduler()
61 void CallbackScheduler::schedule(std::function<void()> callback, std::chrono::milliseconds delay) { in schedule()
65 mCallbackThread = std::make_unique<std::thread>(&CallbackScheduler::loop, this); in schedule()
72 void CallbackScheduler::loop() { in loop()
DVibratorHalController.cpp49 std::shared_ptr<HalWrapper> connectHal(std::shared_ptr<CallbackScheduler> scheduler) { in connectHal()
DVibratorManagerHalController.cpp29 std::shared_ptr<ManagerHalWrapper> connectManagerHal(std::shared_ptr<CallbackScheduler> scheduler) { in connectManagerHal()
DVibratorManagerHalWrapper.cpp77 int32_t vibratorId, std::shared_ptr<CallbackScheduler> callbackScheduler) { in connectToVibrator()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorManagerHalController.h29 std::shared_ptr<ManagerHalWrapper> connectManagerHal(std::shared_ptr<CallbackScheduler> scheduler);
35 std::function<std::shared_ptr<ManagerHalWrapper>(std::shared_ptr<CallbackScheduler>)>;
38 : ManagerHalController(std::make_shared<CallbackScheduler>(), &connectManagerHal) {} in ManagerHalController()
39 ManagerHalController(std::shared_ptr<CallbackScheduler> callbackScheduler, Connector connector) in ManagerHalController()
68 std::shared_ptr<CallbackScheduler> mCallbackScheduler;
DVibratorHalController.h30 std::shared_ptr<HalWrapper> connectHal(std::shared_ptr<CallbackScheduler> scheduler);
41 std::function<std::shared_ptr<HalWrapper>(std::shared_ptr<CallbackScheduler>)>;
43 HalController() : HalController(std::make_shared<CallbackScheduler>(), &connectHal) {} in HalController()
44 HalController(std::shared_ptr<CallbackScheduler> callbackScheduler, Connector connector) in HalController()
86 std::shared_ptr<CallbackScheduler> mCallbackScheduler;
DVibratorCallbackScheduler.h53 class CallbackScheduler {
55 CallbackScheduler() : mCallbackThread(nullptr), mFinished(false) {} in CallbackScheduler() function
56 virtual ~CallbackScheduler();
DVibratorManagerHalWrapper.h109 explicit AidlManagerHalWrapper(std::shared_ptr<CallbackScheduler> callbackScheduler, in AidlManagerHalWrapper()
134 std::shared_ptr<CallbackScheduler> mCallbackScheduler;
138 std::shared_ptr<CallbackScheduler> scheduler);
DVibratorHalWrapper.h261 explicit HalWrapper(std::shared_ptr<CallbackScheduler> scheduler) in HalWrapper()
298 const std::shared_ptr<CallbackScheduler> mCallbackScheduler;
331 std::shared_ptr<CallbackScheduler> scheduler, sp<hardware::vibrator::IVibrator> handle,
400 HidlHalWrapper(std::shared_ptr<CallbackScheduler> scheduler, sp<I> handle) in HidlHalWrapper()
441 HidlHalWrapperV1_0(std::shared_ptr<CallbackScheduler> scheduler, in HidlHalWrapperV1_0()
455 HidlHalWrapperV1_1(std::shared_ptr<CallbackScheduler> scheduler, in HidlHalWrapperV1_1()
469 HidlHalWrapperV1_2(std::shared_ptr<CallbackScheduler> scheduler, in HidlHalWrapperV1_2()
483 HidlHalWrapperV1_3(std::shared_ptr<CallbackScheduler> scheduler, in HidlHalWrapperV1_3()
/frameworks/native/services/vibratorservice/test/
DVibratorHalControllerTest.cpp51 MockHalWrapper(std::shared_ptr<vibrator::CallbackScheduler> scheduler) in MockHalWrapper()
73 vibrator::CallbackScheduler* getCallbackScheduler() { return mCallbackScheduler.get(); } in getCallbackScheduler()
82 auto callbackScheduler = std::make_shared<vibrator::CallbackScheduler>(); in SetUp()
86 [&](std::shared_ptr<vibrator::CallbackScheduler>) { in SetUp() argument
200 vibrator::HalController>(nullptr, [&](std::shared_ptr<vibrator::CallbackScheduler>) { in TEST_F() argument
DVibratorCallbackSchedulerTest.cpp44 mScheduler = std::make_unique<vibrator::CallbackScheduler>(); in SetUp()
52 std::unique_ptr<vibrator::CallbackScheduler> mScheduler = nullptr;
Dtest_utils.h37 class MockCallbackScheduler : public vibrator::CallbackScheduler {
DVibratorManagerHalControllerTest.cpp58 auto callbackScheduler = std::make_shared<vibrator::CallbackScheduler>(); in SetUp()
60 auto connector = [this](std::shared_ptr<vibrator::CallbackScheduler>) { in SetUp() argument