diff options
author | Yifan Hong <elsk@google.com> | 2017-01-12 14:22:45 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2017-01-12 14:43:00 -0800 |
commit | dde40f31347a51aa7249cb192f97276c30d984f5 (patch) | |
tree | c9426a38d234742f71580678a59022d4e1aa2bdd /Binder.cpp | |
parent | 6c4a29de72de2f0b629c354c12dfbd86d352ca0d (diff) | |
download | libhwbinder-dde40f31347a51aa7249cb192f97276c30d984f5.tar.gz |
BBinder -> BHwBinder.
Test: mma
Test: croot && make
Bug: 33554989
Change-Id: Ia1356012d0cc1aef56884bfbd1a6af2a2504ab23
Diffstat (limited to 'Binder.cpp')
-rw-r--r-- | Binder.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -45,7 +45,7 @@ sp<IInterface> IBinder::queryLocalInterface(const String16& /*descriptor*/) return NULL; } -BBinder* IBinder::localBinder() +BHwBinder* IBinder::localBinder() { return NULL; } @@ -62,7 +62,7 @@ bool IBinder::checkSubclass(const void* /*subclassID*/) const // --------------------------------------------------------------------------- -class BBinder::Extras +class BHwBinder::Extras { public: Mutex mLock; @@ -71,30 +71,30 @@ public: // --------------------------------------------------------------------------- -BBinder::BBinder() : mExtras(nullptr) +BHwBinder::BHwBinder() : mExtras(nullptr) { } -bool BBinder::isBinderAlive() const +bool BHwBinder::isBinderAlive() const { return true; } -status_t BBinder::pingBinder() +status_t BHwBinder::pingBinder() { return NO_ERROR; } -const String16& BBinder::getInterfaceDescriptor() const +const String16& BHwBinder::getInterfaceDescriptor() const { // This is a local static rather than a global static, // to avoid static initializer ordering issues. static String16 sEmptyDescriptor; - ALOGW("reached BBinder::getInterfaceDescriptor (this=%p)", this); + ALOGW("reached BHwBinder::getInterfaceDescriptor (this=%p)", this); return sEmptyDescriptor; } -status_t BBinder::transact( +status_t BHwBinder::transact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags, TransactCallback callback) { data.setDataPosition(0); @@ -122,26 +122,26 @@ status_t BBinder::transact( return err; } -status_t BBinder::linkToDeath( +status_t BHwBinder::linkToDeath( const sp<DeathRecipient>& /*recipient*/, void* /*cookie*/, uint32_t /*flags*/) { return INVALID_OPERATION; } -status_t BBinder::unlinkToDeath( +status_t BHwBinder::unlinkToDeath( const wp<DeathRecipient>& /*recipient*/, void* /*cookie*/, uint32_t /*flags*/, wp<DeathRecipient>* /*outRecipient*/) { return INVALID_OPERATION; } -status_t BBinder::dump(int /*fd*/, const Vector<String16>& /*args*/) +status_t BHwBinder::dump(int /*fd*/, const Vector<String16>& /*args*/) { return NO_ERROR; } -void BBinder::attachObject( +void BHwBinder::attachObject( const void* objectID, void* object, void* cleanupCookie, object_cleanup_func func) { @@ -163,7 +163,7 @@ void BBinder::attachObject( e->mObjects.attach(objectID, object, cleanupCookie, func); } -void* BBinder::findObject(const void* objectID) const +void* BHwBinder::findObject(const void* objectID) const { Extras* e = mExtras.load(std::memory_order_acquire); if (!e) return NULL; @@ -172,7 +172,7 @@ void* BBinder::findObject(const void* objectID) const return e->mObjects.find(objectID); } -void BBinder::detachObject(const void* objectID) +void BHwBinder::detachObject(const void* objectID) { Extras* e = mExtras.load(std::memory_order_acquire); if (!e) return; @@ -181,19 +181,19 @@ void BBinder::detachObject(const void* objectID) e->mObjects.detach(objectID); } -BBinder* BBinder::localBinder() +BHwBinder* BHwBinder::localBinder() { return this; } -BBinder::~BBinder() +BHwBinder::~BHwBinder() { Extras* e = mExtras.load(std::memory_order_relaxed); if (e) delete e; } -status_t BBinder::onTransact( +status_t BHwBinder::onTransact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t /*flags*/, TransactCallback callback) { switch (code) { |