commit | d10a6a2bc03ed6b4270a3bc9772a76d3acca0ba6 | [log] [tgz] |
---|---|---|
author | kanant <kanant@google.com> | Tue Sep 29 16:30:11 2020 -0700 |
committer | kanant <kanant@google.com> | Wed Sep 30 10:50:50 2020 -0700 |
tree | 18a939bc3b0a87e478868a9d5c1d7b3a424fa02a | |
parent | a1c630dad9094aa7d2aeec2f1b57f7d322e85660 [diff] |
Renaming CustomInputTestService to SampleCustomInputService This is a reference implementation service to be used as a guideline for OEMs, not a Car test suite. Test script: 1. Start emulator (with Google Maps app installed) 2. Run `make SampleCustomInputService` 3. Run `adb install $OUT/target/product/emulator_car_x86/system/app/SampleCustomInputService/SampleCustomInputService.apk` 4. Run `adb shell am start-foreground-service com.android.car.custominput.sample/.SampleCustomInputService` 5. Run `adb shell cmd car_service inject-custom-input -d 0 f1` and expect Maps app to show up Bug: 12219669 Test: manual testing (see script above) Test: atest SampleCustomInputServiceTest Test: atest CarServiceUnitTest Change-Id: I0ce8b7932da08c683a20b4b0f4906cec9db3c4e0
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.