Searched refs:VirtualDpad (Results 1 – 7 of 7) sorted by relevance
42 public class VirtualDpad extends VirtualInputDevice { class56 public VirtualDpad(VirtualDpadConfig config, IVirtualDevice virtualDevice, IBinder token) { in VirtualDpad() method in VirtualDpad
56 class VirtualDpad : public VirtualInputDevice {59 VirtualDpad(android::base::unique_fd fd);60 virtual ~VirtualDpad() override;
218 const std::map<int, int> VirtualDpad::DPAD_KEY_CODE_MAPPING = {229 VirtualDpad::VirtualDpad(unique_fd fd) : VirtualInputDevice(std::move(fd)) {} in VirtualDpad() function in android::VirtualDpad231 VirtualDpad::~VirtualDpad() {} in ~VirtualDpad()233 bool VirtualDpad::writeDpadKeyEvent(int32_t androidKeyCode, int32_t androidAction, in writeDpadKeyEvent()
70 for (const auto& [_, keyCode] : VirtualDpad::DPAD_KEY_CODE_MAPPING) { in openUinput()284 return fd.ok() ? reinterpret_cast<jlong>(new VirtualDpad(std::move(fd))) : INVALID_PTR; in nativeOpenUinputDpad()323 VirtualDpad* virtualDpad = reinterpret_cast<VirtualDpad*>(ptr); in nativeWriteDpadKeyEvent()
41 import android.hardware.input.VirtualDpad;277 VirtualDpad createVirtualDpad(@NonNull VirtualDpadConfig config) { in createVirtualDpad()282 return new VirtualDpad(config, mVirtualDevice, token); in createVirtualDpad()
51 import android.hardware.input.VirtualDpad;798 public VirtualDpad createVirtualDpad(@NonNull VirtualDpadConfig config) { in createVirtualDpad()
3472 …nifest.permission.CREATE_VIRTUAL_DEVICE) public android.hardware.input.VirtualDpad createVirtualDp…5595 public class VirtualDpad implements java.io.Closeable {