Loading services/inputflinger/reader/InputReader.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -413,8 +413,7 @@ void InputReader::getExternalStylusDevicesLocked(std::vector<InputDeviceInfo>& o } } void InputReader::dispatchExternalStylusState(const StylusState& state) { std::scoped_lock _l(mLock); void InputReader::dispatchExternalStylusStateLocked(const StylusState& state) { for (auto& devicePair : mDevices) { std::shared_ptr<InputDevice>& device = devicePair.second; device->updateExternalStylusState(state); Loading Loading @@ -945,7 +944,7 @@ void InputReader::ContextImpl::getExternalStylusDevices(std::vector<InputDeviceI } void InputReader::ContextImpl::dispatchExternalStylusState(const StylusState& state) { mReader->dispatchExternalStylusState(state); mReader->dispatchExternalStylusStateLocked(state); } InputReaderPolicyInterface* InputReader::ContextImpl::getPolicy() { Loading services/inputflinger/reader/include/InputReader.h +1 −1 Original line number Diff line number Diff line Loading @@ -203,7 +203,7 @@ private: void notifyExternalStylusPresenceChangedLocked() REQUIRES(mLock); void getExternalStylusDevicesLocked(std::vector<InputDeviceInfo>& outDevices) REQUIRES(mLock); void dispatchExternalStylusState(const StylusState& state); void dispatchExternalStylusStateLocked(const StylusState& state) REQUIRES(mLock); // The PointerController that is shared among all the input devices that need it. std::weak_ptr<PointerControllerInterface> mPointerController; Loading Loading
services/inputflinger/reader/InputReader.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -413,8 +413,7 @@ void InputReader::getExternalStylusDevicesLocked(std::vector<InputDeviceInfo>& o } } void InputReader::dispatchExternalStylusState(const StylusState& state) { std::scoped_lock _l(mLock); void InputReader::dispatchExternalStylusStateLocked(const StylusState& state) { for (auto& devicePair : mDevices) { std::shared_ptr<InputDevice>& device = devicePair.second; device->updateExternalStylusState(state); Loading Loading @@ -945,7 +944,7 @@ void InputReader::ContextImpl::getExternalStylusDevices(std::vector<InputDeviceI } void InputReader::ContextImpl::dispatchExternalStylusState(const StylusState& state) { mReader->dispatchExternalStylusState(state); mReader->dispatchExternalStylusStateLocked(state); } InputReaderPolicyInterface* InputReader::ContextImpl::getPolicy() { Loading
services/inputflinger/reader/include/InputReader.h +1 −1 Original line number Diff line number Diff line Loading @@ -203,7 +203,7 @@ private: void notifyExternalStylusPresenceChangedLocked() REQUIRES(mLock); void getExternalStylusDevicesLocked(std::vector<InputDeviceInfo>& outDevices) REQUIRES(mLock); void dispatchExternalStylusState(const StylusState& state); void dispatchExternalStylusStateLocked(const StylusState& state) REQUIRES(mLock); // The PointerController that is shared among all the input devices that need it. std::weak_ptr<PointerControllerInterface> mPointerController; Loading