summaryrefslogtreecommitdiff
path: root/modules/input/evdev
Commit message (Collapse)AuthorAgeFilesLines
* Fix performance-for-range-copy warningsChih-Hung Hsieh2018-12-121-3/+3
| | | | | | Bug: 30413223 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance* Change-Id: I800b659c039c54fd52a927a88904d642604722f7
* Convert to Android.bpDan Willemsen2017-12-272-61/+60
| | | | | | | See build/soong/README.md for more information Test: mmma hardware/libhardware Change-Id: Ibb7e2af9d55f581e951d8996cea5e52cd0766b04
* Fix compiler warnings.Chih-Hung Hsieh2017-12-193-19/+0
| | | | | | | | * Remove unused local variables, functions, and private fields. Bug: 66996870 Test: normal build Change-Id: I3a5d6035a61be1b846dc8df3807088d2ca5dc4a3
* Merge "Use -Werror in hardware/libhardware/modules"Chih-Hung Hsieh2017-12-062-14/+1
|\ | | | | | | | | | | am: 298fc4f6f5 Change-Id: I3c23dc4ce4609ec27402cae52b71ef79067c8e73
| * Use -Werror in hardware/libhardware/modulesChih-Hung Hsieh2017-12-012-14/+1
| | | | | | | | | | | | | | | | | | | | * Remove unused local variables. * Remove or comment out unused static functions. * Fix trivial bugs found by unused value warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I99389b883c89551850180d25241a35a40bb77b26
* | Merge "C++14 is the default now." am: c85724298e am: d53231a511Elliott Hughes2017-08-241-2/+2
|\| | | | | | | | | | | am: 9e2569e26a Change-Id: I48ddbdbefd272e37e05c3fe577fe62aae2cc9bc7
| * C++14 is the default now.Elliott Hughes2017-08-231-2/+2
| | | | | | | | | | | | Bug: http://b/32019064 Test: builds Change-Id: Iacc91f1150cdab2df40db3e33f5b57933ff79824
* | Unmark input.evdev.default from vendor libJiyong Park2017-07-171-1/+0
|/ | | | | | | | | | | | This HAL is using android/input.h which is not available to vendors. Unmark this HAL back to platform lib so that the header is accessible. Note that this does not block our effort of splitting system/vendor builds since this HAL is not used in any Treble-enabled device. Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j input.evdev.default Change-Id: I4f900cb58802bccf8d06f995a4e52c3b450f4799
* Move default HAL libraries to vendorPo-Chien Hsueh2017-03-071-0/+1
| | | | | | | | | | | | | | | Libraries under /hardware/libhardware/modules should go to /vendor/. These are conventionl HALs for default implementations, most of them are not used. Camera and thermal are already moved in other CLs. Bug: 35907904 Test: Compiled and checked install path. Verified on Sailfish with $ lsof | grep default. Change-Id: Ibde574001c01cbfea014a20a0fbbb3265e6cdc8a
* InputHub: Fix compiler warningsGreg Kaiser2016-06-301-3/+3
| | | | Change-Id: I3508b2d0c97baf167894917f2980d761e6169441
* Only log when actually receiving actual switch events.Michael Wright2015-11-254-8/+8
| | | | | | | | Also, turn off debug logging in a couple other classes and fix an incorrect format specifier. Bug: 25497538 Change-Id: I72af9492415fa6910af90caf03a7884c6cb1a0b1
* MouseInputMapperTim Kilbourn2015-07-285-5/+243
| | | | | | | | Maps relative movements of a mouse or scroll wheel and mouse button presses. All other logic from CursorInputMapper will be handled in the host. Change-Id: I00a966a6194d4810b7b6ac5cc815287ecf7dfb84
* Code layout cleanupTim Kilbourn2015-06-0910-72/+115
| | | | | | | | - Fwd declare where possible - List .h first in the .cpp to verify proper includes - Remove hacky -internal.h file and move testBitInRange to a new component Change-Id: I442248c4b32738c6c2af250f45d4c8822c862e08
* Initial InputMappers for evdev input HAL.Tim Kilbourn2015-06-0912-185/+531
| | | | | | | | | | | The previous design of the InputHost wrapper classes made it very painful to do testing, so this change also reverts to a more classical C++ pattern for non-copyable objects. The InputHost classes still simply call through to the input_host_t and callbacks as before. Updated unittests to use gmock for mocking the InputHost interactions. Change-Id: I4b70df2c89ed48af77446b8f5b87a4bde94510bf
* Configure device classes for evdev devices.Tim Kilbourn2015-06-0110-27/+397
| | | | Change-Id: Ia75b71253771d9d558c59411e27f8a51e352fb8b
* Clarify usage of smart pointersTim Kilbourn2015-04-297-34/+31
| | | | | | | | | | - Members should be smart (shared or unique) - Prefer function args to be bare, unless the arg is intended to be stored by the callee - Function args that are smart should be const refs to avoid an extra copy Change-Id: I8052fa432bcffbabff9d67a8d568640cac64d4ad
* Add input HAL methods for getting device properties.Tim Kilbourn2015-04-162-0/+85
| | | | | | | | | | A property map holds the collection of the properties for a given device identifier. HAL modules allocate and release these property maps to control the lifetime of the data. The host will typically open and read the corresponding idc file on allocation, and release these resources when it is freed. Change-Id: Ia13ec7b7abf1a79eeed87dc744c174a37f1fb8a9
* Input event hub for evdev input HAL module.Tim Kilbourn2015-03-3010-7/+1585
| | | | | | | | | InputHub monitors paths for device changes and input events. InputDeviceManager creates InputDevices and routes input events to them. InputDevices currently just log these events during development. InputHost represents a wrapper around the HAL interface. Change-Id: Ic47d574498eb07bcdcd17812a648539fdf1c69d6
* Add input HAL header.Michael Wright2015-02-232-0/+95
Change-Id: Ia959dd1d1adf024459d2423fc9d59a811466e53c