Move disabled test out.

hidl_test must be static so we can't test preloadPassthroughService
here. Instead, the test has been moved to libhidl_test.

Test: libhidl_test, hidl_test
Change-Id: Ib2c85288c3805449101c7ea6f15370eadb13836f
1 file changed
tree: bd64608f333511512ab3978cfd5aa606c60dfb37
  1. c2hal/
  2. docs/
  3. include_hash/
  4. test/
  5. utils/
  6. .clang-format
  7. Android.bp
  8. Annotation.cpp
  9. Annotation.h
  10. ArrayType.cpp
  11. ArrayType.h
  12. AST.cpp
  13. AST.h
  14. CleanSpec.mk
  15. CompoundType.cpp
  16. CompoundType.h
  17. ConstantExpression.cpp
  18. ConstantExpression.h
  19. Coordinator.cpp
  20. Coordinator.h
  21. DeathRecipientType.cpp
  22. DeathRecipientType.h
  23. EnumType.cpp
  24. EnumType.h
  25. FmqType.cpp
  26. FmqType.h
  27. generateCpp.cpp
  28. generateCppAdapter.cpp
  29. generateCppImpl.cpp
  30. generateJava.cpp
  31. generateVts.cpp
  32. HandleType.cpp
  33. HandleType.h
  34. Hash.cpp
  35. hidl-gen_l.ll
  36. hidl-gen_y.yy
  37. HidlTypeAssertion.cpp
  38. HidlTypeAssertion.h
  39. Interface.cpp
  40. Interface.h
  41. Location.cpp
  42. Location.h
  43. main.cpp
  44. MemoryType.cpp
  45. MemoryType.h
  46. Method.cpp
  47. Method.h
  48. MODULE_LICENSE_APACHE2
  49. NamedType.cpp
  50. NamedType.h
  51. NOTICE
  52. OWNERS
  53. PointerType.cpp
  54. PointerType.h
  55. PREUPLOAD.cfg
  56. README.md
  57. Reference.h
  58. RefType.cpp
  59. RefType.h
  60. ScalarType.cpp
  61. ScalarType.h
  62. Scope.cpp
  63. Scope.h
  64. StringType.cpp
  65. StringType.h
  66. Type.cpp
  67. Type.h
  68. TypeDef.cpp
  69. TypeDef.h
  70. update-all-google-makefiles.sh
  71. update-makefiles-helper.sh
  72. VectorType.cpp
  73. VectorType.h
README.md

hidl-gen user guide

1. Build

croot
make hidl-gen

2. Run

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