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

Commit 9c6cc875 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge changes I30c813d3,Ie3eb90ad

* changes:
  libbinder: avoid BpBinder subclasses
  libbinder: BpBinder. move handle
parents d9d4ed6c 0b9c9a81
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -137,8 +137,8 @@ BpBinder* BpBinder::create(int32_t handle) {
}

BpBinder::BpBinder(int32_t handle, int32_t trackedUid)
    : mHandle(handle)
    , mStability(0)
    : mStability(0)
    , mHandle(handle)
    , mAlive(1)
    , mObitsSent(0)
    , mObituaries(nullptr)
+3 −4
Original line number Diff line number Diff line
@@ -109,19 +109,18 @@ public:
        KeyedVector<const void*, entry_t> mObjects;
    };

protected:
private:
                        BpBinder(int32_t handle,int32_t trackedUid);
    virtual             ~BpBinder();
    virtual void        onFirstRef();
    virtual void        onLastStrongRef(const void* id);
    virtual bool        onIncStrongAttempted(uint32_t flags, const void* id);

private:
    const   int32_t             mHandle;

    friend ::android::internal::Stability;
            int32_t             mStability;

    const   int32_t             mHandle;

    struct Obituary {
        wp<DeathRecipient> recipient;
        void* cookie;