commit | 74214204ebc00cdbb7f7f91b1f6be554dd52a84a | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Sep 19 14:11:43 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Mon Sep 25 10:07:58 2017 -0700 |
tree | cce146f40ebedc29c6bb1fe62e0401d214ba5f5d | |
parent | fd856283201c175bd9a72159242709d1d89b7901 [diff] |
Add tests for conflicting interfaces. For IBar extends IFoo if 1.0::IFoo/default is being registered, remove IFoo/default. This makes sure the following two things are equivalent 1). IBar::castFrom(IFoo::getService(X)) 2). IBar::getService(X) Test: hidl_test Bug: 62303973 Change-Id: I3bb106f597b694d20d96fb3aaeed8abe04e0c229
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