Fillout requesting SID.

Bug: 121035042
Test: boot and check for SIDs coming into hwservicemanager instances
    which were retrieved w/ IServiceManager::getService

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