Home
last modified time | relevance | path

Searched refs:EvdevInjector (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/vr/virtual_touchpad/
DEvdevInjector.cpp14 int EvdevInjector::UInput::Open() { in Open()
23 int EvdevInjector::UInput::Close() { in Close()
29 int EvdevInjector::UInput::Write(const void* buf, size_t count) { in Write()
39 int EvdevInjector::UInput::IoctlSetInt(int request, int value) { in IoctlSetInt()
49 int EvdevInjector::UInput::IoctlVoid(int request) { in IoctlVoid()
59 void EvdevInjector::Close() { in Close()
64 int EvdevInjector::ConfigureBegin(const char* device_name, int16_t bustype, in ConfigureBegin()
77 owned_uinput_.reset(new EvdevInjector::UInput()); in ConfigureBegin()
96 int EvdevInjector::ConfigureInputProperty(int property) { in ConfigureInputProperty()
112 int EvdevInjector::ConfigureKey(uint16_t key) { in ConfigureKey()
[all …]
DEvdevInjector.h17 class EvdevInjector {
56 EvdevInjector() {} in EvdevInjector() function
57 ~EvdevInjector() { Close(); } in ~EvdevInjector()
141 EvdevInjector(const EvdevInjector&) = delete;
142 void operator=(const EvdevInjector&) = delete;
DVirtualTouchpadEvdev.h10 class EvdevInjector; variable
35 EvdevInjector* injector) { in SetEvdevInjectorForTesting()
43 std::unique_ptr<EvdevInjector> owned_injector;
46 EvdevInjector* injector = nullptr;
DVirtualTouchpadEvdev.cpp64 touchpad.owned_injector.reset(new EvdevInjector()); in Attach()
105 return EvdevInjector::ERROR_SEQUENCING; in Touch()
119 touchpad.injector->SendKey(BTN_TOUCH, EvdevInjector::KEY_PRESS); in Touch()
123 touchpad.injector->SendKey(BTN_TOUCH, EvdevInjector::KEY_RELEASE); in Touch()
157 return EvdevInjector::ERROR_SEQUENCING; in ButtonState()
162 ? EvdevInjector::KEY_PRESS in ButtonState()
163 : EvdevInjector::KEY_RELEASE); in ButtonState()
179 return EvdevInjector::ERROR_SEQUENCING; in Scroll()
DAndroid.bp6 "EvdevInjector.cpp",
/frameworks/native/services/vr/virtual_touchpad/tests/
DVirtualTouchpad_test.cpp16 class UInputForTesting : public EvdevInjector::UInput {
89 class EvdevInjectorForTesting : public EvdevInjector {
193 expect.WriteInputEvent(EV_KEY, BTN_TOUCH, EvdevInjector::KEY_PRESS); in TEST_F()
226 expect.WriteInputEvent(EV_KEY, BTN_TOUCH, EvdevInjector::KEY_RELEASE); in TEST_F()
238 expect.WriteInputEvent(EV_KEY, BTN_BACK, EvdevInjector::KEY_PRESS); in TEST_F()
258 expect.WriteInputEvent(EV_KEY, BTN_BACK, EvdevInjector::KEY_RELEASE); in TEST_F()