memory -> hidl_memory and pointer -> hidl_pointer

Test: hidl_test
Change-Id: Id71c742867be01e80cd48f689c0c619f6b647aac
12 files changed
tree: 4265cf9d4b006c5277416fb5fa308a3a4142cc5b
  1. c2hal/
  2. test/
  3. utils/
  4. Android.bp
  5. Annotation.cpp
  6. Annotation.h
  7. ArrayType.cpp
  8. ArrayType.h
  9. AST.cpp
  10. AST.h
  11. CompoundType.cpp
  12. CompoundType.h
  13. ConstantExpression.cpp
  14. ConstantExpression.h
  15. Coordinator.cpp
  16. Coordinator.h
  17. EnumType.cpp
  18. EnumType.h
  19. FQName.cpp
  20. FQName.h
  21. generateCpp.cpp
  22. generateCppImpl.cpp
  23. generateJava.cpp
  24. generateVts.cpp
  25. GenericBinder.cpp
  26. GenericBinder.h
  27. HandleType.cpp
  28. HandleType.h
  29. hidl-gen_l.ll
  30. hidl-gen_y.yy
  31. Interface.cpp
  32. Interface.h
  33. Location.h
  34. main.cpp
  35. MemoryType.cpp
  36. MemoryType.h
  37. Method.cpp
  38. Method.h
  39. MODULE_LICENSE_APACHE2
  40. NamedType.cpp
  41. NamedType.h
  42. NOTICE
  43. PointerType.cpp
  44. PointerType.h
  45. PredefinedType.cpp
  46. PredefinedType.h
  47. README.md
  48. RefType.cpp
  49. RefType.h
  50. ScalarType.cpp
  51. ScalarType.h
  52. Scope.cpp
  53. Scope.h
  54. StringType.cpp
  55. StringType.h
  56. Type.cpp
  57. Type.h
  58. TypeDef.cpp
  59. TypeDef.h
  60. VectorType.cpp
  61. 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:

hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal
hidl-gen -o output -L vts android.hardware.nfc@1.0
hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0