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

Commit 86f50786 authored by Hangyu Kuang's avatar Hangyu Kuang Committed by Android (Google) Code Review
Browse files

Merge "transcoding: Add forClientUid in TranscodingRequest."

parents 9cef5082 37a586d7
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;