commit | f3861913670cf791487294188b5aee47ecd1f6c3 | [log] [tgz] |
---|---|---|
author | Antonio Kantek <kanant@google.com> | Thu May 13 18:01:34 2021 -0700 |
committer | Antonio Kantek <kanant@google.com> | Tue May 18 15:55:14 2021 -0700 |
tree | a94820aea7459710e795025f28688bb4d56eb1d2 | |
parent | 289980ef8e5edddb50442bf32adad7d666c706d1 [diff] |
Making INJECT_EVENTS the most representative permission for injectKeyEvent android.Manifest.permission.INJECT_EVENTS is the most representative permission for CarInputService#injectKeyEvent. Clients with this permission should be able to invoke this method, disregarding if they don't have other like android.car.permission.ACCESS_PRIVATE_DISPLAY_ID. Test: atest AtsCarTests:com.google.android.car.ats.CarInputManagerSystemTest#testCarInputService_injectKeyEvent Bug: 185406974 Change-Id: Ie9aba4f40dbbc4fc6fb7cc59b191e8df93250d99
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.