• Home
Name Date Size #Lines LOC

..--

build/03-May-2024-1,197937

c2hal/03-May-2024-4,2482,822

docs/03-May-2024-3,3562,142

hashing/03-May-2024-261169

host_utils/03-May-2024-748470

scripts/03-May-2024-200152

test/03-May-2024-9,7657,822

utils/03-May-2024-1,085641

.clang-formatD03-May-2024251

AST.cppD03-May-202428.9 KiB845617

AST.hD03-May-202412.8 KiB344172

Android.bpD03-May-20243.5 KiB145138

Annotation.cppD03-May-20245.1 KiB180123

Annotation.hD03-May-20242.8 KiB10254

ArrayType.cppD03-May-202416.8 KiB627497

ArrayType.hD03-May-20244.7 KiB15499

CleanSpec.mkD03-May-20242.1 KiB481

CompoundType.cppD03-May-202472.4 KiB2,2871,853

CompoundType.hD03-May-20247.3 KiB220149

ConstantExpression.cppD03-May-202428.9 KiB831560

ConstantExpression.hD03-May-20248.9 KiB244133

Coordinator.cppD03-May-202430.7 KiB948704

Coordinator.hD03-May-20247.3 KiB19895

DeathRecipientType.cppD03-May-20242.5 KiB8752

DeathRecipientType.hD03-May-20241.6 KiB5726

DocComment.cppD03-May-20241.8 KiB6936

DocComment.hD03-May-20241.3 KiB5626

EnumType.cppD03-May-202427.7 KiB917718

EnumType.hD03-May-20247.2 KiB232149

FmqType.cppD03-May-20244.6 KiB182135

FmqType.hD03-May-20242.2 KiB7744

HandleType.cppD03-May-20245 KiB193144

HandleType.hD03-May-20242.6 KiB9152

HidlTypeAssertion.cppD03-May-20241.5 KiB6033

HidlTypeAssertion.hD03-May-20241.3 KiB4715

Interface.cppD03-May-202432.8 KiB998826

Interface.hD03-May-20246 KiB180104

Location.cppD03-May-20243.2 KiB11475

Location.hD03-May-20242.2 KiB8439

MODULE_LICENSE_APACHE2D03-May-20240

MemoryType.cppD03-May-20244.2 KiB164122

MemoryType.hD03-May-20242 KiB7339

Method.cppD03-May-20249 KiB302235

Method.hD03-May-20244.5 KiB14590

NOTICED03-May-202411.1 KiB203169

NamedType.cppD03-May-20241.5 KiB5830

NamedType.hD03-May-20241.5 KiB6327

OWNERSD03-May-202489 65

PREUPLOAD.cfgD03-May-202476 64

PointerType.cppD03-May-20242.7 KiB10064

PointerType.hD03-May-20242.1 KiB7440

README.mdD03-May-20241.3 KiB5839

RefType.cppD03-May-20247 KiB255189

RefType.hD03-May-20242.6 KiB8852

Reference.hD03-May-20243.9 KiB14078

ScalarType.cppD03-May-20247 KiB309250

ScalarType.hD03-May-20243 KiB11472

Scope.cppD03-May-20247.5 KiB274203

Scope.hD03-May-20243.4 KiB12063

StringType.cppD03-May-20245.8 KiB227172

StringType.hD03-May-20242.7 KiB9253

Type.cppD03-May-202421.6 KiB822619

Type.hD03-May-202414.5 KiB413248

TypeDef.cppD03-May-20242.1 KiB8652

TypeDef.hD03-May-20241.5 KiB5825

VectorType.cppD03-May-202420.2 KiB777619

VectorType.hD03-May-20245.7 KiB174118

generateCpp.cppD03-May-202465.9 KiB2,0281,641

generateCppAdapter.cppD03-May-20246.2 KiB187136

generateCppImpl.cppD03-May-20244.7 KiB169112

generateDependencies.cppD03-May-20241.2 KiB4321

generateJava.cppD03-May-202419.8 KiB676519

generateVts.cppD03-May-20242.9 KiB9861

hidl-gen_l.hD03-May-2024943 327

hidl-gen_l.llD03-May-20247.6 KiB214176

hidl-gen_y.yyD03-May-202434.2 KiB1,1441,011

main.cppD03-May-202448.6 KiB1,4581,198

update-all-google-makefiles.shD03-May-2024435 115

update-makefiles-helper.shD03-May-20243.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# c2hal
45
46This is a helper tool to convert C headers to valid .hal files.
47
48```
49m c2hal && c2hal -h
50```
51
52# docs
53
54This tool generates html documentation for hal interfaces.
55
56```
57m hidl-doc && hidl-doc -h
58```