summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Richardson <mcr@credil.org>2009-11-03 17:01:28 -0500
committerJean-Baptiste Queru <jbq@google.com>2010-04-20 14:14:30 -0700
commit5a870fee53ca94c7575503c72574ca0f068d52c7 (patch)
tree7c9746028570b87eb4f12a1e3f5c64f5004da89f /include
parent2aba0ec873e269b3ce5d044fe5f1f12b6b28228d (diff)
downloadframeworks_base-5a870fee53ca94c7575503c72574ca0f068d52c7.zip
frameworks_base-5a870fee53ca94c7575503c72574ca0f068d52c7.tar.gz
frameworks_base-5a870fee53ca94c7575503c72574ca0f068d52c7.tar.bz2
Allow META* macros outside of the framework
The META* macros are useful outside of the framework for other systems implementing Binder interfaces, but they depend upon the android namespace. This includes the appropriate namespace operations, which should be sane even in that android namespace. Change-Id: If600156c65191f51f487d0ee301d9f9f532b263d
Diffstat (limited to 'include')
-rw-r--r--include/binder/IInterface.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/binder/IInterface.h b/include/binder/IInterface.h
index 273d922..5f9f69c 100644
--- a/include/binder/IInterface.h
+++ b/include/binder/IInterface.h
@@ -72,21 +72,24 @@ protected:
// ----------------------------------------------------------------------
#define DECLARE_META_INTERFACE(INTERFACE) \
- static const String16 descriptor; \
- static sp<I##INTERFACE> asInterface(const sp<IBinder>& obj); \
- virtual const String16& getInterfaceDescriptor() const; \
+ static const android::String16 descriptor; \
+ static android::sp<I##INTERFACE> asInterface( \
+ const android::sp<android::IBinder>& obj); \
+ virtual const android::String16& getInterfaceDescriptor() const; \
I##INTERFACE(); \
virtual ~I##INTERFACE(); \
#define IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \
- const String16 I##INTERFACE::descriptor(NAME); \
- const String16& I##INTERFACE::getInterfaceDescriptor() const { \
+ const android::String16 I##INTERFACE::descriptor(NAME); \
+ const android::String16& \
+ I##INTERFACE::getInterfaceDescriptor() const { \
return I##INTERFACE::descriptor; \
} \
- sp<I##INTERFACE> I##INTERFACE::asInterface(const sp<IBinder>& obj) \
+ android::sp<I##INTERFACE> I##INTERFACE::asInterface( \
+ const android::sp<android::IBinder>& obj) \
{ \
- sp<I##INTERFACE> intr; \
+ android::sp<I##INTERFACE> intr; \
if (obj != NULL) { \
intr = static_cast<I##INTERFACE*>( \
obj->queryLocalInterface( \