Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85180c00 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: BpBinder: hide layout

Currently the layout of mHandle in BpBinder is exposed. This restricts
possible changes that can be made in the future, so removing it while we
can.

Bug: 136027762
Test: N/A
Change-Id: Ie7bb8998c604eccbbd357ea2e276b2fd5ae54523
parent a152e0f7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -148,6 +148,10 @@ BpBinder::BpBinder(int32_t handle, int32_t trackedUid)
    IPCThreadState::self()->incWeakHandle(handle, this);
}

int32_t BpBinder::handle() const {
    return mHandle;
}

bool BpBinder::isDescriptorCached() const {
    Mutex::Autolock _l(mLock);
    return mDescriptorCache.size() ? true : false;
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class BpBinder : public IBinder
public:
    static BpBinder*    create(int32_t handle);

    inline  int32_t     handle() const { return mHandle; }
    int32_t             handle() const;

    virtual const String16&    getInterfaceDescriptor() const;
    virtual bool        isBinderAlive() const;