hidl_test_java: reflect new overread check in art

This was passing before because of some other checks which caught the
mismatch resulting from an overread.

Ignore-AOSP-First: security

Bug: 172655291
Test: atest hidl_test_java
Merged-In: Ie3766d20597ed9714ab3c3beead8af01226f58ba
Change-Id: Ie3766d20597ed9714ab3c3beead8af01226f58ba
(cherry picked from commit aeae74893c6973959fe58b6e8e045fc4be2b8d32)
1 file changed
tree: acff1f7471ecd4b96316a0dad4f00cf329e537b9
  1. AST.cpp
  2. AST.h
  3. Android.bp
  4. Annotation.cpp
  5. Annotation.h
  6. ArrayType.cpp
  7. ArrayType.h
  8. CleanSpec.mk
  9. CompoundType.cpp
  10. CompoundType.h
  11. ConstantExpression.cpp
  12. ConstantExpression.h
  13. Coordinator.cpp
  14. Coordinator.h
  15. DeathRecipientType.cpp
  16. DeathRecipientType.h
  17. DocComment.cpp
  18. DocComment.h
  19. EnumType.cpp
  20. EnumType.h
  21. FmqType.cpp
  22. FmqType.h
  23. FormattingConstants.h
  24. HandleType.cpp
  25. HandleType.h
  26. HidlTypeAssertion.cpp
  27. HidlTypeAssertion.h
  28. Interface.cpp
  29. Interface.h
  30. Location.cpp
  31. Location.h
  32. MODULE_LICENSE_APACHE2
  33. MemoryType.cpp
  34. MemoryType.h
  35. Method.cpp
  36. Method.h
  37. NOTICE
  38. NamedType.cpp
  39. NamedType.h
  40. OWNERS
  41. PREUPLOAD.cfg
  42. PointerType.cpp
  43. PointerType.h
  44. README.md
  45. Reference.h
  46. ScalarType.cpp
  47. ScalarType.h
  48. Scope.cpp
  49. Scope.h
  50. StringType.cpp
  51. StringType.h
  52. TEST_MAPPING
  53. Type.cpp
  54. Type.h
  55. TypeDef.cpp
  56. TypeDef.h
  57. VectorType.cpp
  58. VectorType.h
  59. build/
  60. c2hal/
  61. generateCpp.cpp
  62. generateCppAdapter.cpp
  63. generateCppImpl.cpp
  64. generateDependencies.cpp
  65. generateFormattedHidl.cpp
  66. generateInheritanceHierarchy.cpp
  67. generateJava.cpp
  68. generateJavaImpl.cpp
  69. generateVts.cpp
  70. hashing/
  71. hidl-gen_l.h
  72. hidl-gen_l.ll
  73. hidl-gen_y-helpers.h
  74. hidl-gen_y.yy
  75. hidl2aidl/
  76. host_utils/
  77. lint/
  78. main.cpp
  79. metadata/
  80. scripts/
  81. test/
  82. update-all-google-makefiles.sh
  83. update-makefiles-helper.sh
  84. utils/
README.md

hidl-gen

Full documentation can be found here: https://source.android.com/devices/architecture/hidl/

hidl-gen is a compiler for the HIDL (HAL Interface Design Language) which generates C++ and Java endpoints for RPC mechanisms. The main userspace libraries which this compiler uses can be found at system/libhidl.

1. Build

m hidl-gen

2. Run

Note that options for hidl-gen expected to be invoked by the build system are marked with ‘internal’ in the help menu.

hidl-gen -h

hidl-gen -o output -L c++-impl -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0

Some defaults for package roots are also provided

hidl-gen -o output -L c++-impl android.hardware.nfc@1.0
hidl-gen -o output -L vts android.hardware.nfc@1.0
hidl-gen -L hash android.hardware.nfc@1.0

Example command for vendor project

hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces vendor.foo.nfc@1.0

See update-makefiles-helper.sh and update-all-google-makefiles.sh for examples of how to generate HIDL makefiles (using the -Landroidbp option).

c2hal

This is a helper tool to convert C headers to valid .hal files.

m c2hal && c2hal -h