commit | 71a1b58f4357212de1fa8904078bec718988d320 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Fri Dec 25 23:58:41 2020 +0900 |
committer | Jooyung Han <jooyung@google.com> | Tue Dec 29 02:00:43 2020 +0000 |
tree | 90112566f976ef0a167aa47681276936ed056972 | |
parent | 5c2fcae0107c2c842973aaccb015c7c924d10ea3 [diff] |
AidlConstantValue::Cast returns typed value ValueString() squashes constant value into std::string, which is mostly okay when generating code. But for Annotations, it's the AIDL compiler which consumes param's values. Stringified values are difficult to process. For example, there's duplicate logic to unquote stringified string. (@JavaPassthrough, @Backing, @Description, ...) Cast() returns typed value for AidlConstantValues. For example, we can retrieve unquoted std::string from AidlContantValue::String() and std::vector<T> from AidlConstantValue::Array(). Bug: none Test: aidl_unittests Change-Id: I8c350bfd999bcacd2dbbb0d5296b147eb469e216
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview