From eb8e15f9bb29f8794f8be819530631c358fd6a15 Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Tue, 3 Nov 2015 13:50:37 -0800 Subject: Add support for reading/writing a vector of binders Change-Id: Iaa8da704b2ae3c1ca5456177441a335991b40e8a Test: unit tests pass Bug: 24470786 Signed-off-by: Casey Dahlin --- include/binder/Parcel.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h index 637a1e9b64..695d5f1a0a 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -125,6 +125,8 @@ public: status_t writeCharVector(const std::vector& val); status_t writeString16Vector(const std::vector& val); + status_t writeStrongBinderVector(const std::vector>& val); + template status_t write(const Flattenable& val); @@ -202,7 +204,9 @@ public: wp readWeakBinder() const; template - status_t readStrongBinder(sp* val) const; + status_t readStrongBinder(sp* val) const; + + status_t readStrongBinderVector(std::vector>* val) const; status_t readByteVector(std::vector* val) const; status_t readInt32Vector(std::vector* val) const; -- cgit v1.2.3-59-g8ed1b