summaryrefslogtreecommitdiff
path: root/libs/input/KeyLayoutMap.cpp
AgeCommit message (Collapse)Author
2021-06-29Renamed and moved InputWindow and related fileschaviw
In preparation for the hierarchy listener interface, moved the InputWindow structs into libgui and have libinput dependant on libgui. Also renamed InputWindow to exclude Input since it will be used for more generic purposes. Test: Builds and flashes Bug: 188792659 Change-Id: I24262cbc14d409c00273de0024a672394a959e5f Merged-In: I24262cbc14d409c00273de0024a672394a959e5f
2020-12-21Add explicit Result::ok() checks where neededBernie Innocenti
Test: m checkbuild continuous_instrumentation_tests continuous_instrumentation_tests_api_coverage continuous_native_tests device-tests platform_tests Exempt-From-Owner-Approval: mechanical mass refactoring Change-Id: I9b893af3c9981f8cdf5c142297398f68133bd075
2020-12-16Add SensorManager support in inputflinger.Chris Ye
Add sensor device, sensor input mapper, sens event dispatcher support into inputflinger. Bug: 161634265 Test: atest inputflinger_tests Change-Id: I2dcb2c35d9dccefc4cd8d939b79cf340931a9410
2020-08-28Move KeyLayoutMap from RefBase to shared_ptr.Chris Ye
Move KeyLayoutMap from inheriting RefBase and use shared_ptr to store in owner class like KeyMap. Bug: 160010896 Test: atest inputflinger, atest libinput_tests Change-Id: I565e07bdc501af644df5ebb8388fce10af185bce
2020-08-21Optimize memory usage of InputEvent lookup.Chris Ye
Move the declaration of look up map to cpp file from header file to avoid duplicate copies. Bug: 165527068 Bug: 165398580 Bug: 165035349 Test: atest libinput_tests, atest inputflinger_tests adb shell showmap <system_server pid> | grep input Check libinput.so and libinput_reader.so size to be 300 and 372KB. Change-Id: Ia80200b7889f16ce576637d746e64641f3f2a094
2019-03-21Use std::vector over Vector for InputFlinger (1/3)Arthur Hung
Replace Vector<T> with std::vector<T>. Bug: 112399697 Test: atest inputflinger_tests Change-Id: I8baec68f7a684d97210077f3e387ca1096586a25
2018-09-05Prefer std::string over String8Siarhei Vishniakou
String8 is deprecated, so use proper C++ std::string instead. Change DisplayViewport.uniqueId to std::string. The current usage of String8 in DisplayViewport hinders refactoring of the code to use viewport types inside the viewports themselves. Most of the dependency on String8 is now removed. Once the xml for properties patch is added, almost all String8 should be gone from the input system. Test: atest libinput_tests inputflinger_tests Bug: 111108021 Change-Id: I580dc27b0449e664a7c9db2cdec1a0c18bf71a09
2018-07-17[input] Modernize codebase by replacing NULL with nullptrYi Kong
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I8882234efd2a0b3ef27472d3f5d4e9c69c6e7b37
2014-04-22Move key attribute information out of native.Michael Wright
Native doesn't ever actually care about the attributes of keys, so move all of it up into the managed layer and move all of the key names down so they're defined once. Change-Id: Ic8ded13ce050b2b98744735ff50d11e8d882d7d5
2013-10-18Parse LED mappings in keylayout filesMichael Wright
Change-Id: I6bc3760341868015f054d9866e2616a312da94e0
2013-07-01Move input library code from frameworks/base.Jeff Brown
Change-Id: I4983db61b53e28479fc90d9211fafff68f7f49a6