/frameworks/native/services/vr/virtual_touchpad/ |
H A D | VirtualTouchpadEvdev.cpp | 21 static const char* const kDeviceNameFormat = "vr-virtual-touchpad-%d"; 34 std::unique_ptr<VirtualTouchpadEvdev> touchpad(new VirtualTouchpadEvdev()); 35 touchpad->Reset(); 36 return touchpad; 40 for (auto& touchpad : touchpad_) { 41 if (touchpad.injector) { 42 touchpad.injector->Close(); 44 touchpad.injector = nullptr; 45 touchpad.owned_injector.reset(); 46 touchpad 56 Touchpad& touchpad = touchpad_[i]; local 94 Touchpad& touchpad = touchpad_[touchpad_id]; local 140 Touchpad& touchpad = touchpad_[touchpad_id]; local 167 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);
|
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; 33 inline void SetEvdevInjectorForTesting(int touchpad, argument 35 touchpad_[touchpad].injector = injector; 39 // Per-touchpad state.
|
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; 36 // 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(); 64 result.append("[virtual touchpad]\n");
|
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)) {
|
/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; 129 std::unique_ptr<VirtualTouchpadForTesting> touchpad( 133 status_t touch_status = touchpad->Attach(); 138 for (int t = 0; t < touchpad->GetTouchpadCount(); ++t) { 140 uidev = touchpad->injector[t].GetUiDev(); 142 name.appendFormat("vr-virtual-touchpad [all...] |
/frameworks/native/services/vr/virtual_touchpad/include/dvr/ |
H A D | virtual_touchpad_client.h | 15 // Creates a new virtual touchpad client. 17 // @return Pointer to the created virtual touchpad client; nullptr on failure. 21 // Destroys a virtual touchpad client. 23 // @param client Pointer to the virtual touchpad client to be destroyed. 27 // Initialize the virtual touchpad. 30 // the kernel virtual touchpad device(s). A single client may be attached 33 // @param client Pointer to the virtual touchpad client to be attached. 38 // Shut down the virtual touchpad. 40 // @param client Pointer to the virtual touchpad client to be detached. 47 // @param client Pointer to the virtual touchpad clien [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;
|
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;
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
H A D | dvr_api.h | 192 int touchpad, float x, float y, 195 int touchpad, int buttons);
|