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

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

Merge "Transcoding: Add source and destination fd in TranscodingRequest"

parents 6543fc18 82179f22
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -33,11 +33,25 @@ parcelable TranscodingRequestParcel {
     */
    @utf8InCpp String sourceFilePath;

    /*
     * The filedescrptor of the sourceFilePath. If the source Fd is provided, transcoding service
     * will use this fd instead of calling back to client side to open the sourceFilePath.
     * -1 means not available.
     */
     int sourceFd = -1;

    /**
     * The absolute file path of the destination file.
     */
    @utf8InCpp String destinationFilePath;

    /*
     * The filedescrptor of the destinationFilePath. If the destination Fd is provided, transcoding
     * service will use this fd instead of calling back to client side to open the sourceFilePath.
     * -1 means not available.
     */
     int destinationFd = -1;

    /**
     * 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.
+2 −0
Original line number Diff line number Diff line
@@ -36,7 +36,9 @@ public:
private:
    void setTo(const TranscodingRequestParcel& parcel) {
        sourceFilePath = parcel.sourceFilePath;
        sourceFd = parcel.sourceFd;
        destinationFilePath = parcel.destinationFilePath;
        destinationFd = parcel.destinationFd;
        clientUid = parcel.clientUid;
        clientPid = parcel.clientPid;
        clientPackageName = parcel.clientPackageName;