• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..12-Dec-2023-

build/H12-Dec-2023-1,8971,527

c2hal/H12-Dec-2023-4,2712,841

hashing/H12-Dec-2023-270177

hidl2aidl/H12-Dec-2023-4,5543,389

host_utils/H12-Dec-2023-977633

lint/H12-Dec-2023-3,3002,549

metadata/H12-Dec-2023-213134

scripts/H12-Dec-2023-188124

test/H12-Dec-2023-11,0178,730

utils/H12-Dec-2023-1,164704

.clang-formatH A D12-Dec-2023291 1413

AST.cppH A D12-Dec-202332.7 KiB955701

AST.hH A D12-Dec-202313.8 KiB378190

Android.bpH A D12-Dec-20234.4 KiB182173

Annotation.cppH A D12-Dec-20233.1 KiB12879

Annotation.hH A D12-Dec-20232 KiB8140

ArrayType.cppH A D12-Dec-202314.8 KiB549429

ArrayType.hH A D12-Dec-20233.9 KiB13178

CleanSpec.mkH A D12-Dec-20232.2 KiB492

CompoundType.cppH A D12-Dec-202366.8 KiB2,0551,650

CompoundType.hH A D12-Dec-20236.5 KiB195125

ConstantExpression.cppH A D12-Dec-202329.2 KiB840566

ConstantExpression.hH A D12-Dec-20239 KiB247135

Coordinator.cppH A D12-Dec-202334.6 KiB1,064805

Coordinator.hH A D12-Dec-20238.2 KiB219104

DeathRecipientType.cppH A D12-Dec-20232.5 KiB8752

DeathRecipientType.hH A D12-Dec-20231.6 KiB5726

DocComment.cppH A D12-Dec-20233.3 KiB10664

DocComment.hH A D12-Dec-20232.1 KiB8140

EnumType.cppH A D12-Dec-202329.9 KiB972755

EnumType.hH A D12-Dec-20237.5 KiB240154

FmqType.cppH A D12-Dec-20234.7 KiB188140

FmqType.hH A D12-Dec-20232.3 KiB8147

FormattingConstants.hH A D12-Dec-2023717 235

HandleType.cppH A D12-Dec-20235 KiB193144

HandleType.hH A D12-Dec-20232.6 KiB9152

HidlTypeAssertion.cppH A D12-Dec-20231.5 KiB6033

HidlTypeAssertion.hH A D12-Dec-20231.3 KiB4715

Interface.cppH A D12-Dec-202332.7 KiB990823

Interface.hH A D12-Dec-20236.2 KiB185108

Location.cppH A D12-Dec-20233 KiB10970

Location.hH A D12-Dec-20232.3 KiB8743

MemoryType.cppH A D12-Dec-20237 KiB250197

MemoryType.hH A D12-Dec-20232.9 KiB9757

Method.cppH A D12-Dec-202310.2 KiB345268

Method.hH A D12-Dec-20234.4 KiB14389

NOTICEH A D12-Dec-202311.1 KiB203169

NamedType.cppH A D12-Dec-20231.5 KiB5528

NamedType.hH A D12-Dec-20231.5 KiB6126

OWNERSH A D12-Dec-202372 54

PREUPLOAD.cfgH A D12-Dec-2023102 86

PointerType.cppH A D12-Dec-20232.8 KiB10365

PointerType.hH A D12-Dec-20232.1 KiB7440

README.mdH A D12-Dec-20231.6 KiB5940

Reference.hH A D12-Dec-20234.7 KiB169101

ScalarType.cppH A D12-Dec-20238.2 KiB340276

ScalarType.hH A D12-Dec-20233.2 KiB11874

Scope.cppH A D12-Dec-20238.5 KiB303222

Scope.hH A D12-Dec-20233.6 KiB12668

StringType.cppH A D12-Dec-20235.8 KiB227172

StringType.hH A D12-Dec-20232.7 KiB9253

TEST_MAPPINGH A D12-Dec-2023203 1716

Type.cppH A D12-Dec-202321 KiB794595

Type.hH A D12-Dec-202313.7 KiB391228

TypeDef.cppH A D12-Dec-20232.2 KiB8651

TypeDef.hH A D12-Dec-20231.6 KiB6127

VectorType.cppH A D12-Dec-202316.7 KiB662519

VectorType.hH A D12-Dec-20233.9 KiB12884

generateCpp.cppH A D12-Dec-202364 KiB1,9321,553

generateCppAdapter.cppH A D12-Dec-20236.2 KiB187136

generateCppImpl.cppH A D12-Dec-20234.8 KiB168110

generateDependencies.cppH A D12-Dec-20231.2 KiB4321

generateFormattedHidl.cppH A D12-Dec-20231.4 KiB4521

generateInheritanceHierarchy.cppH A D12-Dec-20231.6 KiB5330

generateJava.cppH A D12-Dec-202318.7 KiB630483

generateJavaImpl.cppH A D12-Dec-20233.1 KiB9457

generateVts.cppH A D12-Dec-20232.9 KiB9659

hidl-gen_l.hH A D12-Dec-2023943 327

hidl-gen_l.llH A D12-Dec-20237.8 KiB215177

hidl-gen_y-helpers.hH A D12-Dec-20231 KiB3210

hidl-gen_y.yyH A D12-Dec-202335.6 KiB1,1561,022

main.cppH A D12-Dec-202353.1 KiB1,5991,315

update-all-google-makefiles.shH A D12-Dec-2023435 115

update-makefiles-helper.shH A D12-Dec-20233.1 KiB12277

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