File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3
3
Files can be sent between Binder clients/servers using the
4
4
` ParcelFileDescriptor ` type:
5
5
6
- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl ** :
6
+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl _ :
7
7
8
8
``` java
9
9
interface IBirthdayService {
10
10
{{#include .. / birthday_service/ aidl/ com/ example/ birthdayservice/ IBirthdayService . aidl: with_file}}
11
11
}
12
12
```
13
13
14
- ** birthday_service /src/client.rs ** :
14
+ _ birthday_service /src/client.rs _ :
15
15
16
16
``` rust,ignore
17
17
fn main() {
@@ -21,7 +21,7 @@ fn main() {
21
21
}
22
22
```
23
23
24
- ** birthday_service /src/lib.rs ** :
24
+ _ birthday_service /src/lib.rs _ :
25
25
26
26
``` rust,ignore
27
27
impl IBirthdayService for BirthdayService {
Original file line number Diff line number Diff line change 3
3
AIDL objects can be sent either as a concrete AIDL type or as the type-erased
4
4
` IBinder ` interface:
5
5
6
- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl ** :
6
+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl _ :
7
7
8
8
``` java
9
9
{{#include .. / birthday_service/ aidl/ com/ example/ birthdayservice/ IBirthdayInfoProvider . aidl: IBirthdayInfoProvider }}
10
10
```
11
11
12
- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl ** :
12
+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl _ :
13
13
14
14
``` java
15
15
import com.example.birthdayservice.IBirthdayInfoProvider ;
@@ -19,7 +19,7 @@ interface IBirthdayService {
19
19
}
20
20
```
21
21
22
- ** birthday_service /src/client.rs ** :
22
+ _ birthday_service /src/client.rs _ :
23
23
24
24
``` rust,ignore
25
25
{{#include ../birthday_service/src/client.rs:InfoProvider}}
Original file line number Diff line number Diff line change 2
2
3
3
Binder for Rust supports sending parcelables directly:
4
4
5
- ** birthday_service /aidl/com/example/birthdayservice/BirthdayInfo.aidl ** :
5
+ _ birthday_service /aidl/com/example/birthdayservice/BirthdayInfo.aidl _ :
6
6
7
7
``` java
8
8
{{#include .. / birthday_service/ aidl/ com/ example/ birthdayservice/ BirthdayInfo . aidl}}
9
9
```
10
10
11
- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl ** :
11
+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl _ :
12
12
13
13
``` java
14
14
import com.example.birthdayservice.BirthdayInfo ;
@@ -18,7 +18,7 @@ interface IBirthdayService {
18
18
}
19
19
```
20
20
21
- ** birthday_service /src/client.rs ** :
21
+ _ birthday_service /src/client.rs _ :
22
22
23
23
``` rust,ignore
24
24
fn main() {
You can’t perform that action at this time.
0 commit comments