|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| build/ | | 03-May-2024 | - | 1,897 | 1,527 |
| c2hal/ | | 03-May-2024 | - | 4,271 | 2,841 |
| hashing/ | | 03-May-2024 | - | 270 | 177 |
| hidl2aidl/ | | 03-May-2024 | - | 4,554 | 3,389 |
| host_utils/ | | 03-May-2024 | - | 977 | 633 |
| lint/ | | 03-May-2024 | - | 3,300 | 2,549 |
| metadata/ | | 03-May-2024 | - | 213 | 134 |
| scripts/ | | 03-May-2024 | - | 188 | 124 |
| test/ | | 03-May-2024 | - | 11,017 | 8,730 |
| utils/ | | 03-May-2024 | - | 1,164 | 704 |
| .clang-format | D | 03-May-2024 | 291 | | |
| AST.cpp | D | 03-May-2024 | 32.7 KiB | 955 | 701 |
| AST.h | D | 03-May-2024 | 13.8 KiB | 378 | 190 |
| Android.bp | D | 03-May-2024 | 4.4 KiB | 182 | 173 |
| Annotation.cpp | D | 03-May-2024 | 3.1 KiB | 128 | 79 |
| Annotation.h | D | 03-May-2024 | 2 KiB | 81 | 40 |
| ArrayType.cpp | D | 03-May-2024 | 14.8 KiB | 549 | 429 |
| ArrayType.h | D | 03-May-2024 | 3.9 KiB | 131 | 78 |
| CleanSpec.mk | D | 03-May-2024 | 2.2 KiB | 49 | 2 |
| CompoundType.cpp | D | 03-May-2024 | 66.8 KiB | 2,055 | 1,650 |
| CompoundType.h | D | 03-May-2024 | 6.5 KiB | 195 | 125 |
| ConstantExpression.cpp | D | 03-May-2024 | 29.2 KiB | 840 | 566 |
| ConstantExpression.h | D | 03-May-2024 | 9 KiB | 247 | 135 |
| Coordinator.cpp | D | 03-May-2024 | 34.6 KiB | 1,064 | 805 |
| Coordinator.h | D | 03-May-2024 | 8.2 KiB | 219 | 104 |
| DeathRecipientType.cpp | D | 03-May-2024 | 2.5 KiB | 87 | 52 |
| DeathRecipientType.h | D | 03-May-2024 | 1.6 KiB | 57 | 26 |
| DocComment.cpp | D | 03-May-2024 | 3.3 KiB | 106 | 64 |
| DocComment.h | D | 03-May-2024 | 2.1 KiB | 81 | 40 |
| EnumType.cpp | D | 03-May-2024 | 29.9 KiB | 972 | 755 |
| EnumType.h | D | 03-May-2024 | 7.5 KiB | 240 | 154 |
| FmqType.cpp | D | 03-May-2024 | 4.7 KiB | 188 | 140 |
| FmqType.h | D | 03-May-2024 | 2.3 KiB | 81 | 47 |
| FormattingConstants.h | D | 03-May-2024 | 717 | 23 | 5 |
| HandleType.cpp | D | 03-May-2024 | 5 KiB | 193 | 144 |
| HandleType.h | D | 03-May-2024 | 2.6 KiB | 91 | 52 |
| HidlTypeAssertion.cpp | D | 03-May-2024 | 1.5 KiB | 60 | 33 |
| HidlTypeAssertion.h | D | 03-May-2024 | 1.3 KiB | 47 | 15 |
| Interface.cpp | D | 03-May-2024 | 32.7 KiB | 990 | 823 |
| Interface.h | D | 03-May-2024 | 6.2 KiB | 185 | 108 |
| Location.cpp | D | 03-May-2024 | 3 KiB | 109 | 70 |
| Location.h | D | 03-May-2024 | 2.3 KiB | 87 | 43 |
| MemoryType.cpp | D | 03-May-2024 | 7 KiB | 250 | 197 |
| MemoryType.h | D | 03-May-2024 | 2.9 KiB | 97 | 57 |
| Method.cpp | D | 03-May-2024 | 10.2 KiB | 345 | 268 |
| Method.h | D | 03-May-2024 | 4.4 KiB | 143 | 89 |
| NOTICE | D | 03-May-2024 | 11.1 KiB | 203 | 169 |
| NamedType.cpp | D | 03-May-2024 | 1.5 KiB | 55 | 28 |
| NamedType.h | D | 03-May-2024 | 1.5 KiB | 61 | 26 |
| OWNERS | D | 03-May-2024 | 72 | 5 | 4 |
| PREUPLOAD.cfg | D | 03-May-2024 | 102 | 8 | 6 |
| PointerType.cpp | D | 03-May-2024 | 2.8 KiB | 103 | 65 |
| PointerType.h | D | 03-May-2024 | 2.1 KiB | 74 | 40 |
| README.md | D | 03-May-2024 | 1.6 KiB | 59 | 40 |
| Reference.h | D | 03-May-2024 | 4.7 KiB | 169 | 101 |
| ScalarType.cpp | D | 03-May-2024 | 8.2 KiB | 340 | 276 |
| ScalarType.h | D | 03-May-2024 | 3.2 KiB | 118 | 74 |
| Scope.cpp | D | 03-May-2024 | 8.5 KiB | 303 | 222 |
| Scope.h | D | 03-May-2024 | 3.6 KiB | 126 | 68 |
| StringType.cpp | D | 03-May-2024 | 5.8 KiB | 227 | 172 |
| StringType.h | D | 03-May-2024 | 2.7 KiB | 92 | 53 |
| TEST_MAPPING | D | 03-May-2024 | 203 | 17 | 16 |
| Type.cpp | D | 03-May-2024 | 21 KiB | 794 | 595 |
| Type.h | D | 03-May-2024 | 13.7 KiB | 391 | 228 |
| TypeDef.cpp | D | 03-May-2024 | 2.2 KiB | 86 | 51 |
| TypeDef.h | D | 03-May-2024 | 1.6 KiB | 61 | 27 |
| VectorType.cpp | D | 03-May-2024 | 16.7 KiB | 662 | 519 |
| VectorType.h | D | 03-May-2024 | 3.9 KiB | 128 | 84 |
| generateCpp.cpp | D | 03-May-2024 | 64 KiB | 1,932 | 1,553 |
| generateCppAdapter.cpp | D | 03-May-2024 | 6.2 KiB | 187 | 136 |
| generateCppImpl.cpp | D | 03-May-2024 | 4.8 KiB | 168 | 110 |
| generateDependencies.cpp | D | 03-May-2024 | 1.2 KiB | 43 | 21 |
| generateFormattedHidl.cpp | D | 03-May-2024 | 1.4 KiB | 45 | 21 |
| generateInheritanceHierarchy.cpp | D | 03-May-2024 | 1.6 KiB | 53 | 30 |
| generateJava.cpp | D | 03-May-2024 | 18.7 KiB | 630 | 483 |
| generateJavaImpl.cpp | D | 03-May-2024 | 3.1 KiB | 94 | 57 |
| generateVts.cpp | D | 03-May-2024 | 2.9 KiB | 96 | 59 |
| hidl-gen_l.h | D | 03-May-2024 | 943 | 32 | 7 |
| hidl-gen_l.ll | D | 03-May-2024 | 7.8 KiB | 215 | 177 |
| hidl-gen_y-helpers.h | D | 03-May-2024 | 1 KiB | 32 | 10 |
| hidl-gen_y.yy | D | 03-May-2024 | 35.6 KiB | 1,156 | 1,022 |
| main.cpp | D | 03-May-2024 | 53.1 KiB | 1,599 | 1,315 |
| update-all-google-makefiles.sh | D | 03-May-2024 | 435 | 11 | 5 |
| update-makefiles-helper.sh | D | 03-May-2024 | 3.1 KiB | 122 | 77 |
README.md
1# hidl-gen
2
3Full documentation can be found here:
4<https://source.android.com/devices/architecture/hidl/>
5
6hidl-gen is a compiler for the HIDL (HAL Interface Design Language) which generates
7C++ and Java endpoints for RPC mechanisms. The main userspace libraries which this
8compiler uses can be found at system/libhidl.
9
10## 1. Build
11
12```
13m hidl-gen
14```
15
16## 2. Run
17
18Note that options for hidl-gen expected to be invoked by the build system
19are marked with 'internal' in the help menu.
20
21```
22hidl-gen -h
23
24hidl-gen -o output -L c++-impl -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
25```
26
27Some defaults for package roots are also provided
28
29```
30hidl-gen -o output -L c++-impl android.hardware.nfc@1.0
31hidl-gen -o output -L vts android.hardware.nfc@1.0
32hidl-gen -L hash android.hardware.nfc@1.0
33```
34
35Example command for vendor project
36
37```
38hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces vendor.foo.nfc@1.0
39```
40
41See update-makefiles-helper.sh and update-all-google-makefiles.sh for examples
42of how to generate HIDL makefiles (using the -Landroidbp option).
43
44> **_NOTE:_** When using the -Landroidbp option, you can force generated
45> modules to be installed in `/system_ext` rather than other partition by putting a
46> marker file `.hidl_for_system_ext` alongside `*.hal` files.
47
48> **_NOTE:_** You can also install the vendor variant of the generated modules
49> to be installed in `/odm` rather than `/vendor` by putting a marker file
50> `.hidl_for_odm` alongside `*.hal` files.
51
52# c2hal
53
54This is a helper tool to convert C headers to valid .hal files.
55
56```
57m c2hal && c2hal -h
58```
59