/frameworks/native/services/vr/virtual_touchpad/ |
H A D | VirtualTouchpadEvdev.cpp | 21 static const char* const kDeviceNameFormat = "vr-virtual-touchpad-%d"; 40 std::unique_ptr<VirtualTouchpadEvdev> touchpad(new VirtualTouchpadEvdev()); 41 touchpad->Reset(); 42 return touchpad; 46 for (auto& touchpad : touchpad_) { 47 if (touchpad.injector) { 48 touchpad.injector->Close(); 50 touchpad.injector = nullptr; 51 touchpad.owned_injector.reset(); 52 touchpad 62 Touchpad& touchpad = touchpad_[i]; local 99 Touchpad& touchpad = touchpad_[touchpad_id]; local 145 Touchpad& touchpad = touchpad_[touchpad_id]; local 177 Touchpad& touchpad = touchpad_[touchpad_id]; local 199 const auto& touchpad = touchpad_[i]; local [all...] |
H A D | DvrVirtualTouchpadClient.cpp | 33 int dvrVirtualTouchpadTouch(DvrVirtualTouchpad* client, int touchpad, float x, argument 35 return FromC(client)->Touch(touchpad, x, y, pressure); 38 int dvrVirtualTouchpadButtonState(DvrVirtualTouchpad* client, int touchpad, argument 40 return FromC(client)->ButtonState(touchpad, buttons); 43 int dvrVirtualTouchpadScroll(DvrVirtualTouchpad* client, int touchpad, float x, argument 45 return FromC(client)->Scroll(touchpad, x, y);
|
H A D | VirtualTouchpadService.h | 16 VirtualTouchpadService(std::unique_ptr<VirtualTouchpad> touchpad) argument 17 : touchpad_(std::move(touchpad)), client_pid_(0) {} 24 binder::Status touch(int touchpad, float x, float y, float pressure) override; 25 binder::Status buttonState(int touchpad, int buttons) override; 26 binder::Status scroll(int touchpad, float x, float y) override; 37 // Only one client at a time can use the virtual touchpad.
|
H A D | VirtualTouchpadClient.cpp | 49 status_t Touch(int touchpad, float x, float y, float pressure) override { 53 return service_->touch(touchpad, x, y, pressure).transactionError(); 56 status_t ButtonState(int touchpad, int buttons) override { 60 return service_->buttonState(touchpad, buttons).transactionError(); 63 status_t Scroll(int touchpad, float x, float y) override { 67 return service_->scroll(touchpad, x, y).transactionError(); 71 result.append("[virtual touchpad]\n");
|
H A D | VirtualTouchpadEvdev.h | 22 status_t Touch(int touchpad, float x, float y, float pressure) override; 23 status_t ButtonState(int touchpad, int buttons) override; 24 status_t Scroll(int touchpad, float x, float y) override; 34 inline void SetEvdevInjectorForTesting(int touchpad, argument 36 touchpad_[touchpad].injector = injector; 40 // Per-touchpad state.
|
H A D | VirtualTouchpadService.cpp | 36 // However, since the client is already attached, any touchpad actions 45 // reported when the previous client performs any touchpad action. 69 binder::Status VirtualTouchpadService::touch(int touchpad, float x, float y, argument 74 if (const status_t error = touchpad_->Touch(touchpad, x, y, pressure)) { 80 binder::Status VirtualTouchpadService::buttonState(int touchpad, int buttons) { argument 84 if (const status_t error = touchpad_->ButtonState(touchpad, buttons)) { 90 binder::Status VirtualTouchpadService::scroll(int touchpad, float x, float y) { argument 94 if (const status_t error = touchpad_->Scroll(touchpad, x, y)) {
|
/frameworks/native/services/vr/virtual_touchpad/include/dvr/ |
H A D | virtual_touchpad_client.h | 12 // Creates a new virtual touchpad client. 14 // @return Pointer to the created virtual touchpad client; nullptr on failure. 18 // Destroys a virtual touchpad client. 20 // @param client Pointer to the virtual touchpad client to be destroyed. 24 // Initialize the virtual touchpad. 27 // the kernel virtual touchpad device(s). A single client may be attached 30 // @param client Pointer to the virtual touchpad client to be attached. 35 // Shut down the virtual touchpad. 37 // @param client Pointer to the virtual touchpad client to be detached. 44 // @param client Pointer to the virtual touchpad clien [all...] |
/frameworks/native/services/vr/virtual_touchpad/tests/ |
H A D | VirtualTouchpad_test.cpp | 102 VirtualTouchpadForTesting* const touchpad = new VirtualTouchpadForTesting(); local 103 touchpad->Reset(); 105 touchpad->SetEvdevInjectorForTesting(t, &touchpad->injector[t]); 107 return touchpad; 118 std::unique_ptr<VirtualTouchpadForTesting> touchpad( 122 status_t touch_status = touchpad->Attach(); 127 for (int t = 0; t < touchpad->GetTouchpadCount(); ++t) { 129 uidev = touchpad->injector[t].GetUiDev(); 131 name.appendFormat("vr-virtual-touchpad [all...] |
/frameworks/native/services/vr/virtual_touchpad/include/ |
H A D | VirtualTouchpadClient.h | 18 status_t Touch(int touchpad, float x, float y, float pressure) override; 19 status_t ButtonState(int touchpad, int buttons) override; 20 status_t Scroll(int touchpad, float x, float y) override;
|
H A D | VirtualTouchpad.h | 13 // Provides a virtual touchpad for injecting events into the input system. 24 // Create a virtual touchpad. 34 // Initialize a virtual touchpad. 37 // Shut down a virtual touchpad. 42 // @param touchpad Touchpad selector index. 51 virtual status_t Touch(int touchpad, float x, float y, float pressure) = 0; 53 // Generate a simulated touchpad button state. 55 // @param touchpad Touchpad selector index. 62 virtual status_t ButtonState(int touchpad, int buttons) = 0; 66 // @param touchpad Touchpa [all...] |
/frameworks/native/libs/vr/libdvr/include/dvr/ |
H A D | dvr_api.h | 293 int touchpad, float x, float y, 296 int touchpad, int buttons); 298 int touchpad, float x, float y);
|