commit | 5c2fcae0107c2c842973aaccb015c7c924d10ea3 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Sat Dec 26 00:04:39 2020 +0900 |
committer | Jooyung Han <jooyung@google.com> | Tue Dec 29 02:00:43 2020 +0000 |
tree | ba0c342173b732719497aa4fbddbb4898138ec9b | |
parent | 3557e48f1d2af73210278a2e59f0bacfd09f7b63 [diff] |
define annotation schemas using AidlTypeSpecifier AidlAnnotatoin::CheckValid() creates an AidlTypeSpecifier object to test the param's value. In the schema, types for parameters are specified in string literals. It makes it hard to support other than primitive types, like String[], because we have to parse a string literal to create a proper AidlTypeSepcifier object. For example, @JavaDerive/@RustDerive could have been defined with String[] to list up values. @JavaDerive(methods={"toString", "equals"}) Because we know which types are used in annotation schemas, we can pre-create AidlTypeSpecifier objects and use them to define types of parameter values instead of string literals. Bug: none Test: aidl_unittests Change-Id: I7a903a14d1017b6baca480ad8326c7b9e7540b4a
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview