NameDateSize

..11-Jun-20184 KiB

.clang-format11-Jun-2018781

Android.bp11-Jun-20182.9 KiB

Annotation.cpp11-Jun-20183.3 KiB

Annotation.h11-Jun-20181.9 KiB

ArrayType.cpp11-Jun-201813.9 KiB

ArrayType.h11-Jun-20184.2 KiB

AST.cpp11-Jun-201816.7 KiB

AST.h11-Jun-201810 KiB

c2hal/11-Jun-20184 KiB

CompoundType.cpp11-Jun-201830.8 KiB

CompoundType.h11-Jun-20184.8 KiB

ConstantExpression.cpp11-Jun-201818.3 KiB

ConstantExpression.h11-Jun-20183.9 KiB

Coordinator.cpp11-Jun-201818.5 KiB

Coordinator.h11-Jun-20185.4 KiB

DeathRecipientType.cpp11-Jun-20182.6 KiB

DeathRecipientType.h11-Jun-20181.6 KiB

EnumType.cpp11-Jun-201823.7 KiB

EnumType.h11-Jun-20186 KiB

FmqType.cpp11-Jun-20184.6 KiB

FmqType.h11-Jun-20182.1 KiB

generateCpp.cpp11-Jun-201873.4 KiB

generateCppImpl.cpp11-Jun-20185.7 KiB

generateJava.cpp11-Jun-201819.2 KiB

generateVts.cpp11-Jun-20183.6 KiB

HandleType.cpp11-Jun-20184.3 KiB

HandleType.h11-Jun-20182 KiB

Hash.cpp11-Jun-20184.4 KiB

hidl-gen_l.ll11-Jun-20185.9 KiB

hidl-gen_y.yy11-Jun-201832.5 KiB

HidlTypeAssertion.cpp11-Jun-20181.5 KiB

HidlTypeAssertion.h11-Jun-20181.3 KiB

include_hash/11-Jun-20184 KiB

Interface.cpp11-Jun-201829.2 KiB

Interface.h11-Jun-20184.9 KiB

Location.h11-Jun-20182.5 KiB

main.cpp11-Jun-201845.7 KiB

MemoryType.cpp11-Jun-20184.1 KiB

MemoryType.h11-Jun-20182 KiB

Method.cpp11-Jun-20187 KiB

Method.h11-Jun-20184 KiB

MODULE_LICENSE_APACHE211-Jun-20180

NamedType.cpp11-Jun-20181.7 KiB

NamedType.h11-Jun-20181.7 KiB

NOTICE11-Jun-201811.1 KiB

OWNERS11-Jun-201889

PointerType.cpp11-Jun-20181.9 KiB

PointerType.h11-Jun-20181.6 KiB

PREUPLOAD.cfg11-Jun-201876

README.md11-Jun-20181.1 KiB

RefType.cpp11-Jun-20186.8 KiB

RefType.h11-Jun-20182.3 KiB

ScalarType.cpp11-Jun-20187 KiB

ScalarType.h11-Jun-20182.9 KiB

Scope.cpp11-Jun-20185.1 KiB

Scope.h11-Jun-20182.6 KiB

StringType.cpp11-Jun-20185.5 KiB

StringType.h11-Jun-20182.5 KiB

test/11-Jun-20184 KiB

Type.cpp11-Jun-201811.1 KiB

Type.h11-Jun-20188.7 KiB

TypeDef.cpp11-Jun-20181.7 KiB

TypeDef.h11-Jun-20181.3 KiB

update-all-google-makefiles.sh11-Jun-2018439

update-makefiles-helper.sh11-Jun-20183.5 KiB

utils/11-Jun-20184 KiB

VectorType.cpp11-Jun-201819.2 KiB

VectorType.h11-Jun-20185.2 KiB

README.md

1# hidl-gen user guide
2
3## 1. Build
4
5```
6croot
7make hidl-gen
8```
9
10## 2. Run
11
12```
13hidl-gen -o output-path -L language (-r interface-root) fqname
14
15output-path: directory to store the output files.
16language: output file for given language. e.g.c++, vts..
17
18fqname: fully qualified name of the input files.
19For singe file input, follow the format: package@version::fileName
20For directory input, follow the format: package@version
21
22interface-root(optional): prefix and root path for fqname.
23If not set, use the default prefix: android.hardware and default root path
24defined in $TOP.
25
26examples:
27
28croot
29hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal
30hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
31hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
32hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
33```
34