Searched refs:CallbackScheduler (Results 1 – 13 of 13) sorted by relevance
/frameworks/native/services/vibratorservice/ |
D | VibratorCallbackScheduler.cpp | 50 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()
|
D | VibratorHalController.cpp | 49 std::shared_ptr<HalWrapper> connectHal(std::shared_ptr<CallbackScheduler> scheduler) { in connectHal()
|
D | VibratorManagerHalController.cpp | 29 std::shared_ptr<ManagerHalWrapper> connectManagerHal(std::shared_ptr<CallbackScheduler> scheduler) { in connectManagerHal()
|
D | VibratorManagerHalWrapper.cpp | 77 int32_t vibratorId, std::shared_ptr<CallbackScheduler> callbackScheduler) { in connectToVibrator()
|
/frameworks/native/services/vibratorservice/include/vibratorservice/ |
D | VibratorManagerHalController.h | 29 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;
|
D | VibratorHalController.h | 30 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;
|
D | VibratorCallbackScheduler.h | 53 class CallbackScheduler { 55 CallbackScheduler() : mCallbackThread(nullptr), mFinished(false) {} in CallbackScheduler() function 56 virtual ~CallbackScheduler();
|
D | VibratorManagerHalWrapper.h | 109 explicit AidlManagerHalWrapper(std::shared_ptr<CallbackScheduler> callbackScheduler, in AidlManagerHalWrapper() 134 std::shared_ptr<CallbackScheduler> mCallbackScheduler; 138 std::shared_ptr<CallbackScheduler> scheduler);
|
D | VibratorHalWrapper.h | 261 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/ |
D | VibratorHalControllerTest.cpp | 51 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
|
D | VibratorCallbackSchedulerTest.cpp | 44 mScheduler = std::make_unique<vibrator::CallbackScheduler>(); in SetUp() 52 std::unique_ptr<vibrator::CallbackScheduler> mScheduler = nullptr;
|
D | test_utils.h | 37 class MockCallbackScheduler : public vibrator::CallbackScheduler {
|
D | VibratorManagerHalControllerTest.cpp | 58 auto callbackScheduler = std::make_shared<vibrator::CallbackScheduler>(); in SetUp() 60 auto connector = [this](std::shared_ptr<vibrator::CallbackScheduler>) { in SetUp() argument
|