commit | 01720ed508044261ff672dac8466f65d023912cd | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Fri Aug 13 07:46:07 2021 +0900 |
committer | Jooyung Han <jooyung@google.com> | Fri Aug 13 08:47:58 2021 +0900 |
tree | bc1991bfa5cb1af0aaafe5c68159ef2955d8caed | |
parent | f9b398b33346dc8c5caf2e091d92696066cb3c00 [diff] |
Support @nullable(heap) for recursive types @nullable(heap=true) marks a parcelable field to be held in a heap allocated wrapper like unique_ptr<T> in C++ and Box<T> in Rust. This enables recursive parcelable types like following: parcelable Recursive { @nullable(heap=true) Recursive r; } Note `r` is represented in Option<Box<Recursive>> in Rust because Box<T> should hold a value always. Bug: 188690695 Test: aidl_integration_test Change-Id: Ic9b209da73c1395785c078aeecd34fda74e42e7d
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview