134 files changed, 31073 insertions, 30287 deletions
diff --git a/tvapi/android/libtvbinder/ITvService.cpp b/tvapi/android/libtvbinder/ITvService.cpp index 041f660..a60b032 100644 --- a/tvapi/android/libtvbinder/ITvService.cpp +++ b/tvapi/android/libtvbinder/ITvService.cpp @@ -10,20 +10,20 @@ class BpTvService: public BpInterface<ITvService> { public: - BpTvService(const sp<IBinder> &impl) - : BpInterface<ITvService>(impl) - { - } - - // connect to tv service - virtual sp<ITv> connect(const sp<ITvClient> &tvClient) - { - Parcel data, reply; - data.writeInterfaceToken(ITvService::getInterfaceDescriptor()); - data.writeStrongBinder(IInterface::asBinder(tvClient)); - remote()->transact(BnTvService::CONNECT, data, &reply); - return interface_cast<ITv>(reply.readStrongBinder()); - } + BpTvService(const sp<IBinder> &impl) + : BpInterface<ITvService>(impl) + { + } + + // connect to tv service + virtual sp<ITv> connect(const sp<ITvClient> &tvClient) + { + Parcel data, reply; + data.writeInterfaceToken(ITvService::getInterfaceDescriptor()); + data.writeStrongBinder(IInterface::asBinder(tvClient)); + remote()->transact(BnTvService::CONNECT, data, &reply); + return interface_cast<ITv>(reply.readStrongBinder()); + } }; IMPLEMENT_META_INTERFACE(TvService, "android.amlogic.ITvService"); @@ -31,20 +31,20 @@ IMPLEMENT_META_INTERFACE(TvService, "android.amlogic.ITvService"); // ---------------------------------------------------------------------- status_t BnTvService::onTransact( - uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) + uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) { - switch (code) { - case CONNECT: { - CHECK_INTERFACE(ITvService, data, reply); - sp<ITvClient> tvClient = interface_cast<ITvClient>(data.readStrongBinder()); - sp<ITv> tv = connect(tvClient); - ALOGD("BnTvService::onTransact( sp<ITv> tv = connect(tvClient);"); - reply->writeStrongBinder(IInterface::asBinder(tv)); - return NO_ERROR; - } - break; - default: - return BBinder::onTransact(code, data, reply, flags); - } + switch (code) { + case CONNECT: { + CHECK_INTERFACE(ITvService, data, reply); + sp<ITvClient> tvClient = interface_cast<ITvClient>(data.readStrongBinder()); + sp<ITv> tv = connect(tvClient); + ALOGD("BnTvService::onTransact( sp<ITv> tv = connect(tvClient);"); + reply->writeStrongBinder(IInterface::asBinder(tv)); + return NO_ERROR; + } + break; + default: + return BBinder::onTransact(code, data, reply, flags); + } } |