commit | f3857ea78ccf7dc77fa285974b8d499225450bf0 | [log] [tgz] |
---|---|---|
author | Max Dashouk <mdashouk@google.com> | Wed Jul 14 18:46:52 2021 -0700 |
committer | Max Dashouk <mdashouk@google.com> | Fri Jul 16 09:56:24 2021 -0700 |
tree | 3823d48598147a2b87f8edc1f19ce79426c68ed5 | |
parent | 07d8b4cd644946825f582e3ce2e99fc05b875108 [diff] |
Introduce ability for the script to send the results back. Implements OnSuccess API method of ScriptExecutorListener. Adds routines to convert Lua table to Java Bundle. Adds test cases to verify that the script can process inputs and return the expected results back. Additionally, changes naming of methods in native code for ScriptExecutor to be lower-case. Bug: 187517415 Test: atest CarServiceUnitTest:ScriptExecutorTest Change-Id: I23efe323f520e9ab17e27c8f4117068839d4a10e
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.