From 727de40c6bc7c6521a0542ea9def5d5c7b1c5e06 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 7 Jul 2010 16:06:39 -0700 Subject: More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync. Change-Id: Ia67cabcc17a73a0f15907ffea683d06bc41b90e5 --- 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 3aba5f6..fd0fc1f 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -58,9 +58,13 @@ public: // Writes the RPC header. status_t writeInterfaceToken(const String16& interface); + // Parses the RPC header, returning true if the interface name // in the header matches the expected interface from the caller. - bool enforceInterface(const String16& interface) const; + // If strict_policy_out is non-NULL, the RPC header's StrictMode policy + // mask is returned. + bool enforceInterface(const String16& interface, + int32_t* strict_policy_out = NULL) const; bool checkInterface(IBinder*) const; void freeData(); -- cgit v1.1