commit | a63e0ad0b4fb276e9e00806f3f3934e64e3f1b34 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Wed Dec 07 17:29:00 2016 +0100 |
committer | Martijn Coenen <maco@google.com> | Thu Dec 15 01:02:36 2016 +0100 |
tree | 75330d1c17fb54dfa4cf080599dfa07ed50e2931 | |
parent | 20f08d4aa462692d46ee3c07d0f72934c85ead8b [diff] |
Stop generating IHw classes. The main rationale of the IHw class was to be able to cast binder objects to/from interfaces safely. That functionality is now taking over by interfaceChain() in IBase, together with the toBinder()/fromBinder() functions in libhidl. The remaining binder objects related to IFoo are now just BpFoo and BnFoo, and both still inherit from IInterface. Note that the IHw *header* itself remains, as it contains the declarations for reading/writing datatypes related to the interface into a Parcel. Test: mma, hidl_test, hidl_test_java Bug: 33173166 Change-Id: I6bbe1228830a413058d0e9dbb6345ed1c01aa97d
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