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 33Files can be sent between Binder clients/servers using the
44` ParcelFileDescriptor ` type:
55
6- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl ** :
6+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl _ :
77
88``` java
99interface IBirthdayService {
1010{{#include .. / birthday_service/ aidl/ com/ example/ birthdayservice/ IBirthdayService . aidl: with_file}}
1111}
1212```
1313
14- ** birthday_service /src/client.rs ** :
14+ _ birthday_service /src/client.rs _ :
1515
1616``` rust,ignore
1717fn main() {
@@ -21,7 +21,7 @@ fn main() {
2121}
2222```
2323
24- ** birthday_service /src/lib.rs ** :
24+ _ birthday_service /src/lib.rs _ :
2525
2626``` rust,ignore
2727impl IBirthdayService for BirthdayService {
Original file line number Diff line number Diff line change 33AIDL objects can be sent either as a concrete AIDL type or as the type-erased
44` IBinder ` interface:
55
6- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl ** :
6+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayInfoProvider.aidl _ :
77
88``` java
99{{#include .. / birthday_service/ aidl/ com/ example/ birthdayservice/ IBirthdayInfoProvider . aidl: IBirthdayInfoProvider }}
1010```
1111
12- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl ** :
12+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl _ :
1313
1414``` java
1515import com.example.birthdayservice.IBirthdayInfoProvider ;
@@ -19,7 +19,7 @@ interface IBirthdayService {
1919}
2020```
2121
22- ** birthday_service /src/client.rs ** :
22+ _ birthday_service /src/client.rs _ :
2323
2424``` rust,ignore
2525{{#include ../birthday_service/src/client.rs:InfoProvider}}
Original file line number Diff line number Diff line change 22
33Binder for Rust supports sending parcelables directly:
44
5- ** birthday_service /aidl/com/example/birthdayservice/BirthdayInfo.aidl ** :
5+ _ birthday_service /aidl/com/example/birthdayservice/BirthdayInfo.aidl _ :
66
77``` java
88{{#include .. / birthday_service/ aidl/ com/ example/ birthdayservice/ BirthdayInfo . aidl}}
99```
1010
11- ** birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl ** :
11+ _ birthday_service /aidl/com/example/birthdayservice/IBirthdayService.aidl _ :
1212
1313``` java
1414import com.example.birthdayservice.BirthdayInfo ;
@@ -18,7 +18,7 @@ interface IBirthdayService {
1818}
1919```
2020
21- ** birthday_service /src/client.rs ** :
21+ _ birthday_service /src/client.rs _ :
2222
2323``` rust,ignore
2424fn main() {
You can’t perform that action at this time.
0 commit comments