diff options
| author | 2015-11-05 00:15:12 +0000 | |
|---|---|---|
| committer | 2015-11-05 00:15:12 +0000 | |
| commit | 4ed5d8c98ea74c953b767a84ebfedf9d038dba3b (patch) | |
| tree | c496fbe00a47bc86af9dd7d218347545aaadeade /include/binder/Parcel.h | |
| parent | b813f5e2e8b6a799b14720097bb9e1394e2c5262 (diff) | |
| parent | fd6843236fe9094fc8868f1a58e6ba4364a485a7 (diff) | |
Merge "Add support for reading/writing a vector of binders"
am: fd6843236f
* commit 'fd6843236fe9094fc8868f1a58e6ba4364a485a7':
Add support for reading/writing a vector of binders
Diffstat (limited to 'include/binder/Parcel.h')
| -rw-r--r-- | include/binder/Parcel.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h index ae76ffbb38..430c3ff00c 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -125,6 +125,8 @@ public: status_t writeCharVector(const std::vector<char16_t>& val); status_t writeString16Vector(const std::vector<String16>& val); + status_t writeStrongBinderVector(const std::vector<sp<IBinder>>& val); + template<typename T> status_t write(const Flattenable<T>& val); @@ -202,7 +204,9 @@ public: wp<IBinder> readWeakBinder() const; template<typename T> - status_t readStrongBinder(sp<T>* val) const; + status_t readStrongBinder(sp<T>* val) const; + + status_t readStrongBinderVector(std::vector<sp<IBinder>>* val) const; status_t readByteVector(std::vector<int8_t>* val) const; status_t readInt32Vector(std::vector<int32_t>* val) const; |