summaryrefslogtreecommitdiff
path: root/libs/input/VirtualKeyMap.cpp
AgeCommit message (Collapse)Author
2023-08-24Migrate from android::String isEmpty to empty Tomasz Wasilczyk
This empty method is different from the old one - it aligns with std::string definition. Bug: 295394788 Test: make checkbuild Change-Id: Id74502de0e51182aa9629db8dc70739be4483d12
2023-08-16Use String8/16 c_str [input] Tomasz Wasilczyk
Bug: 295394788 Test: make checkbuild Change-Id: Iffbcff6f58e30c0bd40e699ba6e1f917addc5ade
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
2019-02-20Refactor VirtualKeyMap Siarhei Vishniakou
Currently, there's a lot of new and delete going on in VirtualKeyMap. Simplify this by using unique_ptr instead. Bug: 113575658 Test: atest libinput_tests inputflinger_tests Change-Id: Ib2a68ae23a4300b0e2cf72902371f4b9604cfee5
2018-09-05Prefer std::string over String8 Siarhei 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 nullptr Yi Kong
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I8882234efd2a0b3ef27472d3f5d4e9c69c6e7b37
2013-07-01Move input library code from frameworks/base. Jeff Brown
Change-Id: I4983db61b53e28479fc90d9211fafff68f7f49a6