Home
last modified time | relevance | path

Searched refs:VirtualStylus (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/input/
DVirtualInputDevice.cpp407 const std::map<int, int> VirtualStylus::TOOL_TYPE_MAPPING = {
413 const std::map<int, int> VirtualStylus::BUTTON_CODE_MAPPING = {
418 VirtualStylus::VirtualStylus(unique_fd fd) in VirtualStylus() function in android::VirtualStylus
421 VirtualStylus::~VirtualStylus() {} in ~VirtualStylus()
423 bool VirtualStylus::writeMotionEvent(int32_t toolType, int32_t action, int32_t locationX, in writeMotionEvent()
475 bool VirtualStylus::writeButtonEvent(int32_t androidButtonCode, int32_t androidAction, in writeButtonEvent()
481 bool VirtualStylus::handleStylusDown(uint16_t tool, std::chrono::nanoseconds eventTime) { in handleStylusDown()
498 bool VirtualStylus::handleStylusUp(uint16_t tool, std::chrono::nanoseconds eventTime) { in handleStylusUp()
/frameworks/base/core/java/android/hardware/input/
DVirtualStylus.java40 public class VirtualStylus extends VirtualInputDevice { class
42 public VirtualStylus(VirtualStylusConfig config, IVirtualDevice virtualDevice, in VirtualStylus() method in VirtualStylus
/frameworks/native/include/input/
DVirtualInputDevice.h106 class VirtualStylus : public VirtualInputDevice {
108 VirtualStylus(android::base::unique_fd fd);
109 ~VirtualStylus() override;
/frameworks/base/services/core/jni/
Dcom_android_server_companion_virtual_InputController.cpp312 return fd.ok() ? reinterpret_cast<jlong>(new VirtualStylus(std::move(fd))) : INVALID_PTR; in nativeOpenUinputStylus()
372 VirtualStylus* virtualStylus = reinterpret_cast<VirtualStylus*>(ptr); in nativeWriteStylusMotionEvent()
379 VirtualStylus* virtualStylus = reinterpret_cast<VirtualStylus*>(ptr); in nativeWriteStylusButtonEvent()
/frameworks/base/core/java/android/companion/virtual/
DVirtualDeviceInternal.java49 import android.hardware.input.VirtualStylus;
327 VirtualStylus createVirtualStylus(@NonNull VirtualStylusConfig config) { in createVirtualStylus()
332 return new VirtualStylus(config, mVirtualDevice, token); in createVirtualStylus()
DVirtualDeviceManager.java59 import android.hardware.input.VirtualStylus;
944 public VirtualStylus createVirtualStylus( in createVirtualStylus()
/frameworks/base/core/api/
Dsystem-current.txt3478 …ifest.permission.CREATE_VIRTUAL_DEVICE) public android.hardware.input.VirtualStylus createVirtualS…
5764 …@FlaggedApi("android.companion.virtual.flags.virtual_stylus") public class VirtualStylus implement…