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

Commit 37a586d7 authored by hkuang's avatar hkuang
Browse files

transcoding: Add forClientUid in TranscodingRequest.

This is used to let MediaProvider could specify the request is
on behalf of which client.

Bug: 154733526
Test: Unit test.
Change-Id: Icb47a7b659c94eb1ae9be571f5c258283e8e8b4c
parent c7f2011c
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -38,6 +38,20 @@ parcelable TranscodingRequestParcel {
     */
    @utf8InCpp String destinationFilePath;

    /**
     * The UID of the client that this transcoding request is for. Only privileged caller could
     * set this Uid as only they could do the transcoding on behalf of the client.
     * -1 means not available.
     */
    int clientUid = -1;

    /**
     * The PID of the client that this transcoding request is for. Only privileged caller could
     * set this Uid as only they could do the transcoding on behalf of the client.
     * -1 means not available.
     */
    int clientPid = -1;

    /**
     * Type of the transcoding.
     */
+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ private:
    void setTo(const TranscodingRequestParcel& parcel) {
        sourceFilePath = parcel.sourceFilePath;
        destinationFilePath = parcel.destinationFilePath;
        clientUid = parcel.clientUid;
        clientPid = parcel.clientPid;
        transcodingType = parcel.transcodingType;
        requestedVideoTrackFormat = parcel.requestedVideoTrackFormat;
        priority = parcel.priority;