• Home
  • Raw
  • Download

Lines Matching refs:INTERFACE

41 template<typename INTERFACE>
42 inline sp<INTERFACE> interface_cast(const sp<IBinder>& obj) in interface_cast()
44 return INTERFACE::asInterface(obj); in interface_cast()
49 template<typename INTERFACE>
50 class BnInterface : public INTERFACE, public BBinder
62 template<typename INTERFACE>
63 class BpInterface : public INTERFACE, public BpRefBase
74 #define DECLARE_META_INTERFACE(INTERFACE) \ argument
76 static android::sp<I##INTERFACE> asInterface( \
79 I##INTERFACE(); \
80 virtual ~I##INTERFACE(); \
83 #define IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \ argument
84 const android::String16 I##INTERFACE::descriptor(NAME); \
86 I##INTERFACE::getInterfaceDescriptor() const { \
87 return I##INTERFACE::descriptor; \
89 android::sp<I##INTERFACE> I##INTERFACE::asInterface( \
92 android::sp<I##INTERFACE> intr; \
94 intr = static_cast<I##INTERFACE*>( \
96 I##INTERFACE::descriptor).get()); \
98 intr = new Bp##INTERFACE(obj); \
103 I##INTERFACE::I##INTERFACE() { } \
104 I##INTERFACE::~I##INTERFACE() { } \
114 template<typename INTERFACE>
115 inline sp<IInterface> BnInterface<INTERFACE>::queryLocalInterface( in queryLocalInterface()
118 if (_descriptor == INTERFACE::descriptor) return this; in queryLocalInterface()
122 template<typename INTERFACE>
123 inline const String16& BnInterface<INTERFACE>::getInterfaceDescriptor() const in getInterfaceDescriptor()
125 return INTERFACE::getInterfaceDescriptor(); in getInterfaceDescriptor()
128 template<typename INTERFACE>
129 IBinder* BnInterface<INTERFACE>::onAsBinder() in onAsBinder()
134 template<typename INTERFACE>
135 inline BpInterface<INTERFACE>::BpInterface(const sp<IBinder>& remote) in BpInterface()
140 template<typename INTERFACE>
141 inline IBinder* BpInterface<INTERFACE>::onAsBinder() in onAsBinder()