Loading libs/binder/IInterface.cpp +21 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ * limitations under the License. */ #define LOG_TAG "IInterface" #include <utils/Log.h> #include <binder/IInterface.h> namespace android { Loading Loading @@ -41,6 +43,25 @@ sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) return iface->onAsBinder(); } // --------------------------------------------------------------------------- }; // namespace android extern "C" { void _ZN7android10IInterface8asBinderEv(void *retval, void* self) { ALOGW("deprecated asBinder call, please update your code"); //ALOGI("self: %p, retval: %p", self, retval); android::sp<android::IBinder> *ret = new(retval) android::sp<android::IBinder>; *ret = android::IInterface::asBinder((android::IInterface*)self); } void _ZNK7android10IInterface8asBinderEv(void *retval, void *self) { ALOGW("deprecated asBinder call, please update your code"); //ALOGI("self: %p, retval: %p", self, retval); android::sp<android::IBinder> *ret = new(retval) android::sp<android::IBinder>; *ret = android::IInterface::asBinder((android::IInterface*)self); } } // extern "C" Loading
libs/binder/IInterface.cpp +21 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ * limitations under the License. */ #define LOG_TAG "IInterface" #include <utils/Log.h> #include <binder/IInterface.h> namespace android { Loading Loading @@ -41,6 +43,25 @@ sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) return iface->onAsBinder(); } // --------------------------------------------------------------------------- }; // namespace android extern "C" { void _ZN7android10IInterface8asBinderEv(void *retval, void* self) { ALOGW("deprecated asBinder call, please update your code"); //ALOGI("self: %p, retval: %p", self, retval); android::sp<android::IBinder> *ret = new(retval) android::sp<android::IBinder>; *ret = android::IInterface::asBinder((android::IInterface*)self); } void _ZNK7android10IInterface8asBinderEv(void *retval, void *self) { ALOGW("deprecated asBinder call, please update your code"); //ALOGI("self: %p, retval: %p", self, retval); android::sp<android::IBinder> *ret = new(retval) android::sp<android::IBinder>; *ret = android::IInterface::asBinder((android::IInterface*)self); } } // extern "C"