Loading include/input/InputDevice.h +3 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ #include <unordered_map> #include <vector> #include <android/os/IInputConstants.h> #include "android/hardware/input/InputDeviceCountryCode.h" namespace android { Loading Loading @@ -346,6 +347,8 @@ extern std::string getInputDeviceConfigurationFilePathByName( const std::string& name, InputDeviceConfigurationFileType type); enum ReservedInputDeviceId : int32_t { // Device id representing an invalid device INVALID_INPUT_DEVICE_ID = android::os::IInputConstants::INVALID_INPUT_DEVICE_ID, // Device id of a special "virtual" keyboard that is always present. VIRTUAL_KEYBOARD_ID = -1, // Device id of the "built-in" keyboard if there is one. Loading libs/input/android/os/IInputConstants.aidl +8 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,14 @@ interface IInputConstants */ const int INVALID_INPUT_EVENT_ID = 0; /** * Every input device has an id. This constant value is used when a valid input device id is not * available. * The virtual keyboard uses -1 as the input device id. Therefore, we use -2 as the value for * an invalid input device. */ const int INVALID_INPUT_DEVICE_ID = -2; /** * The input event was injected from accessibility. Used in policyFlags for input event * injection. Loading Loading
include/input/InputDevice.h +3 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ #include <unordered_map> #include <vector> #include <android/os/IInputConstants.h> #include "android/hardware/input/InputDeviceCountryCode.h" namespace android { Loading Loading @@ -346,6 +347,8 @@ extern std::string getInputDeviceConfigurationFilePathByName( const std::string& name, InputDeviceConfigurationFileType type); enum ReservedInputDeviceId : int32_t { // Device id representing an invalid device INVALID_INPUT_DEVICE_ID = android::os::IInputConstants::INVALID_INPUT_DEVICE_ID, // Device id of a special "virtual" keyboard that is always present. VIRTUAL_KEYBOARD_ID = -1, // Device id of the "built-in" keyboard if there is one. Loading
libs/input/android/os/IInputConstants.aidl +8 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,14 @@ interface IInputConstants */ const int INVALID_INPUT_EVENT_ID = 0; /** * Every input device has an id. This constant value is used when a valid input device id is not * available. * The virtual keyboard uses -1 as the input device id. Therefore, we use -2 as the value for * an invalid input device. */ const int INVALID_INPUT_DEVICE_ID = -2; /** * The input event was injected from accessibility. Used in policyFlags for input event * injection. Loading