• Home
Name Date Size #Lines LOC

..--

build/03-May-2024-1,5421,201

c2hal/03-May-2024-4,2532,825

hashing/03-May-2024-261169

hidl2aidl/03-May-2024-1,4561,055

host_utils/03-May-2024-968625

lint/03-May-2024-3,2772,528

metadata/03-May-2024-13279

scripts/03-May-2024-256192

test/03-May-2024-10,7318,515

utils/03-May-2024-1,155696

.clang-formatD03-May-2024291

AST.cppD03-May-202431.4 KiB932681

AST.hD03-May-202413.8 KiB378190

Android.bpD03-May-20244 KiB167160

Annotation.cppD03-May-20243.1 KiB12879

Annotation.hD03-May-20242 KiB8140

ArrayType.cppD03-May-202414.8 KiB549429

ArrayType.hD03-May-20243.9 KiB13178

CleanSpec.mkD03-May-20242.2 KiB492

CompoundType.cppD03-May-202467.6 KiB2,0801,673

CompoundType.hD03-May-20246.7 KiB197127

ConstantExpression.cppD03-May-202429.1 KiB834563

ConstantExpression.hD03-May-20249 KiB247135

Coordinator.cppD03-May-202433.9 KiB1,044790

Coordinator.hD03-May-20248.1 KiB216102

DeathRecipientType.cppD03-May-20242.5 KiB8752

DeathRecipientType.hD03-May-20241.6 KiB5726

DocComment.cppD03-May-20243.3 KiB10664

DocComment.hD03-May-20242.1 KiB8140

EnumType.cppD03-May-202429.4 KiB956744

EnumType.hD03-May-20247.5 KiB238153

FmqType.cppD03-May-20244.7 KiB188140

FmqType.hD03-May-20242.3 KiB8147

FormattingConstants.hD03-May-2024717 235

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.9 KiB990818

Interface.hD03-May-20246.1 KiB182106

Location.cppD03-May-20243 KiB10970

Location.hD03-May-20242.3 KiB8743

MODULE_LICENSE_APACHE2D03-May-20240

MemoryType.cppD03-May-20247 KiB250197

MemoryType.hD03-May-20242.9 KiB9757

Method.cppD03-May-202410.2 KiB345268

Method.hD03-May-20244.4 KiB14389

NOTICED03-May-202411.1 KiB203169

NamedType.cppD03-May-20241.5 KiB5528

NamedType.hD03-May-20241.5 KiB6126

OWNERSD03-May-202472 54

PREUPLOAD.cfgD03-May-2024138 118

PointerType.cppD03-May-20242.8 KiB10365

PointerType.hD03-May-20242.1 KiB7440

README.mdD03-May-20241.2 KiB5134

Reference.hD03-May-20244.7 KiB169101

ScalarType.cppD03-May-20248.2 KiB340276

ScalarType.hD03-May-20243.2 KiB11874

Scope.cppD03-May-20248 KiB287210

Scope.hD03-May-20243.5 KiB12366

StringType.cppD03-May-20245.8 KiB227172

StringType.hD03-May-20242.7 KiB9253

TEST_MAPPINGD03-May-2024337 2322

Type.cppD03-May-202421 KiB794595

Type.hD03-May-202413.7 KiB391228

TypeDef.cppD03-May-20242.2 KiB8651

TypeDef.hD03-May-20241.6 KiB6127

VectorType.cppD03-May-202416.7 KiB662519

VectorType.hD03-May-20243.9 KiB12884

generateCpp.cppD03-May-202463.8 KiB1,9301,551

generateCppAdapter.cppD03-May-20246.2 KiB187136

generateCppImpl.cppD03-May-20244.8 KiB168110

generateDependencies.cppD03-May-20241.2 KiB4321

generateFormattedHidl.cppD03-May-20241.4 KiB4521

generateInheritanceHierarchy.cppD03-May-20241.5 KiB4825

generateJava.cppD03-May-202418.4 KiB626479

generateJavaImpl.cppD03-May-20243.1 KiB9457

generateVts.cppD03-May-20242.9 KiB9659

hidl-gen_l.hD03-May-2024943 327

hidl-gen_l.llD03-May-20247.8 KiB215177

hidl-gen_y-helpers.hD03-May-20241 KiB3210

hidl-gen_y.yyD03-May-202435.6 KiB1,1561,022

main.cppD03-May-202449.9 KiB1,5131,241

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