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

Commit 798ef8e8 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Declare IAudioTrack methods in binder opcode order

This makes it easier to match up the declarations.

Change-Id: I0996c20b2903b778b356dfe52b07b0ec634855dd
parent a8719ad9
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -35,6 +35,9 @@ class IAudioTrack : public IInterface
public: 
public: 
    DECLARE_META_INTERFACE(AudioTrack);
    DECLARE_META_INTERFACE(AudioTrack);


    /* Get this track's control block */
    virtual sp<IMemory> getCblk() const = 0;

    /* After it's created the track is not active. Call start() to
    /* After it's created the track is not active. Call start() to
     * make it active. If set, the callback will start being called.
     * make it active. If set, the callback will start being called.
     */
     */
@@ -67,8 +70,6 @@ public:
     */
     */
    virtual status_t    attachAuxEffect(int effectId) = 0;
    virtual status_t    attachAuxEffect(int effectId) = 0;


    /* get this track's control block */
    virtual sp<IMemory> getCblk() const = 0;    
};
};


// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
+12 −12
Original line number Original line Diff line number Diff line
@@ -46,6 +46,18 @@ public:
    {
    {
    }
    }
    
    
    virtual sp<IMemory> getCblk() const
    {
        Parcel data, reply;
        sp<IMemory> cblk;
        data.writeInterfaceToken(IAudioTrack::getInterfaceDescriptor());
        status_t status = remote()->transact(GET_CBLK, data, &reply);
        if (status == NO_ERROR) {
            cblk = interface_cast<IMemory>(reply.readStrongBinder());
        }
        return cblk;
    }

    virtual status_t start()
    virtual status_t start()
    {
    {
        Parcel data, reply;
        Parcel data, reply;
@@ -88,18 +100,6 @@ public:
        remote()->transact(PAUSE, data, &reply);
        remote()->transact(PAUSE, data, &reply);
    }
    }
    
    
    virtual sp<IMemory> getCblk() const
    {
        Parcel data, reply;
        sp<IMemory> cblk;
        data.writeInterfaceToken(IAudioTrack::getInterfaceDescriptor());
        status_t status = remote()->transact(GET_CBLK, data, &reply);
        if (status == NO_ERROR) {
            cblk = interface_cast<IMemory>(reply.readStrongBinder());
        }
        return cblk;
    }

    virtual status_t attachAuxEffect(int effectId)
    virtual status_t attachAuxEffect(int effectId)
    {
    {
        Parcel data, reply;
        Parcel data, reply;