Android security 8.0.0 release 54
Zero hidl-generated structs

Bug: 131356202
Test: boot, lshal
Change-Id: I8fb10532b6fdf9afa419f19fc634981e7cbd3c10
Merged-In: I8fb10532b6fdf9afa419f19fc634981e7cbd3c10
(cherry picked from commit c8b4c6d9dd41ab3435e05ddf62e63d56139538e5)
1 file changed
tree: 3500ab2a2b409427abaf832a063217d19b6c886d
  1. AST.cpp
  2. AST.h
  3. Android.bp
  4. Annotation.cpp
  5. Annotation.h
  6. ArrayType.cpp
  7. ArrayType.h
  8. CompoundType.cpp
  9. CompoundType.h
  10. ConstantExpression.cpp
  11. ConstantExpression.h
  12. Coordinator.cpp
  13. Coordinator.h
  14. DeathRecipientType.cpp
  15. DeathRecipientType.h
  16. EnumType.cpp
  17. EnumType.h
  18. FmqType.cpp
  19. FmqType.h
  20. HandleType.cpp
  21. HandleType.h
  22. Hash.cpp
  23. HidlTypeAssertion.cpp
  24. HidlTypeAssertion.h
  25. Interface.cpp
  26. Interface.h
  27. Location.h
  28. MODULE_LICENSE_APACHE2
  29. MemoryType.cpp
  30. MemoryType.h
  31. Method.cpp
  32. Method.h
  33. NOTICE
  34. NamedType.cpp
  35. NamedType.h
  36. PointerType.cpp
  37. PointerType.h
  38. README.md
  39. RefType.cpp
  40. RefType.h
  41. ScalarType.cpp
  42. ScalarType.h
  43. Scope.cpp
  44. Scope.h
  45. StringType.cpp
  46. StringType.h
  47. Type.cpp
  48. Type.h
  49. TypeDef.cpp
  50. TypeDef.h
  51. VectorType.cpp
  52. VectorType.h
  53. c2hal/
  54. generateCpp.cpp
  55. generateCppImpl.cpp
  56. generateJava.cpp
  57. generateVts.cpp
  58. hidl-gen_l.ll
  59. hidl-gen_y.yy
  60. include_hash/
  61. main.cpp
  62. test/
  63. update-makefiles-helper.sh
  64. utils/
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