Lines Matching refs:aidl
1 # Generating C++ Binder Interfaces with `aidl-cpp`
5 “aidl” refers to several related but distinct concepts:
7 - the AIDL interface [definition language](http://developer.android.com/guide/components/aidl.html)
8 - .aidl files (which contain AIDL)
9 - the aidl generator which transforms AIDL into client/server IPC interfaces
12 stubs for Binder interfaces from a specification in a file with the .aidl
13 extension. For Java interfaces, the executable is called `aidl` while for C++
14 the binary is called `aidl-cpp`. In this document, we’ll use AIDL to describe
15 the language of .aidl files and _aidl generator_ to refer to the code generation
16 tool that takes an .aidl file, parses the AIDL, and outputs code.
39 Write AIDL in .aidl files and add them to `LOCAL_SRC_FILES` in your Android.mk.
53 the root of the Android tree. For instance, a file IFoo.aidl defining
55 something/something-else/com/example/IFoo.aidl. Then we would write:
65 Similar to how Java works, the suffix of the path to a .aidl file must match
66 the package. So if IFoo.aidl declares itself to be in package com.example, the
68 `some/prefix/com/example/IFoo.aidl`.
70 To generate code from .aidl files from another build target (e.g. another
71 binary or java), just add a relative path to the .aidl files to
121 `aidl-cpp` will generate a C++ interface:
142 Note that `aidl-cpp` will import headers for types used in the interface. For
145 `import bar.IAnotherInterface` causes aidl-cpp to generate
204 // ExampleParcelable.aidl
207 // Native types must be aliased at their declaration in the appropriate .aidl
217 The aidl generator for both C++ and Java languages has been expanded to
257 C++ methods generated by the aidl generator return `android::binder::Status`