summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-07-27 14:04:14 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-07-27 14:04:14 -0700
commitb8f4015c0aeb006d5028b5e3a6d5e522b184e008 (patch)
tree7b84d84a9d2b56a07f17e822fd4f78faeebd839a /include/binder
parent93cbdf5b9454c707d6644d73b85b3a33fa72f5d3 (diff)
parent53456e51ceff4f7f506611264a28ed70fc4bf310 (diff)
downloadframeworks_native-b8f4015c0aeb006d5028b5e3a6d5e522b184e008.zip
frameworks_native-b8f4015c0aeb006d5028b5e3a6d5e522b184e008.tar.gz
frameworks_native-b8f4015c0aeb006d5028b5e3a6d5e522b184e008.tar.bz2
am 245cb784: am 84c924a6: Merge "Replace several IPCThreadState::get() lookups with one." into gingerbread
Merge commit '245cb7846c82f7c0840e13f0b994d356846b1678' * commit '245cb7846c82f7c0840e13f0b994d356846b1678': Replace several IPCThreadState::get() lookups with one.
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/Parcel.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h
index fd0fc1f..32c9a1d 100644
--- a/include/binder/Parcel.h
+++ b/include/binder/Parcel.h
@@ -26,11 +26,12 @@
// ---------------------------------------------------------------------------
namespace android {
+class Flattenable;
class IBinder;
+class IPCThreadState;
class ProcessState;
class String8;
class TextOutput;
-class Flattenable;
struct flat_binder_object; // defined in support_p/binder_module.h
@@ -61,10 +62,13 @@ public:
// Parses the RPC header, returning true if the interface name
// in the header matches the expected interface from the caller.
- // If strict_policy_out is non-NULL, the RPC header's StrictMode policy
- // mask is returned.
+ //
+ // Additionally, enforceInterface does part of the work of
+ // propagating the StrictMode policy mask, populating the current
+ // IPCThreadState, which as an optimization may optionally be
+ // passed in.
bool enforceInterface(const String16& interface,
- int32_t* strict_policy_out = NULL) const;
+ IPCThreadState* threadState = NULL) const;
bool checkInterface(IBinder*) const;
void freeData();