commit | bff4bd2c4fcb038d1ace19a085f9b3c3c8117c3a | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Oct 02 14:46:06 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue Oct 03 20:18:42 2017 +0000 |
tree | cd4ce220ff77178fb28c7bdb28cc3f6dcef1a9df | |
parent | b8361a2a675455b238b58d49963504da3b05c5a4 [diff] |
Use wrapPassthrough in getService. Also added tests for this in hidl_test. This way in HIDL_FETCH_IParent, you can return an IChild object and castFrom will work appropriately. Test: ./test/run_all_device_tests.sh Bug: 67104214 Change-Id: Ic317d610e733e1ead061a1090c121be30c3c4a9b
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0