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

Commit 75741d6d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Tuner API: make DvrPlayback.attach/detachFilter no-ops" into rvc-dev am: cc0b494b

Change-Id: I13c5052ae1c5461507a4ffacaffccabef0143a16
parents 29649515 cc0b494b
Loading
Loading
Loading
Loading
+10 −5
Original line number Original line Diff line number Diff line
@@ -105,28 +105,33 @@ public class DvrPlayback implements AutoCloseable {




    /**
    /**
     * Attaches a filter to DVR interface for recording.
     * Attaches a filter to DVR interface for playback.
     *
     *
     * <p>There can be multiple filters attached. Attached filters are independent, so the order
     * <p>This method will be deprecated. Now it's a no-op.
     * doesn't matter.
     * <p>Filters opened by {@link Tuner#openFilter} are used for DVR playback.
     *
     *
     * @param filter the filter to be attached.
     * @param filter the filter to be attached.
     * @return result status of the operation.
     * @return result status of the operation.
     */
     */
    @Result
    @Result
    public int attachFilter(@NonNull Filter filter) {
    public int attachFilter(@NonNull Filter filter) {
        return nativeAttachFilter(filter);
        // no-op
        return Tuner.RESULT_UNAVAILABLE;
    }
    }


    /**
    /**
     * Detaches a filter from DVR interface.
     * Detaches a filter from DVR interface.
     *
     *
     * <p>This method will be deprecated. Now it's a no-op.
     * <p>Filters opened by {@link Tuner#openFilter} are used for DVR playback.
     *
     * @param filter the filter to be detached.
     * @param filter the filter to be detached.
     * @return result status of the operation.
     * @return result status of the operation.
     */
     */
    @Result
    @Result
    public int detachFilter(@NonNull Filter filter) {
    public int detachFilter(@NonNull Filter filter) {
        return nativeDetachFilter(filter);
        // no-op
        return Tuner.RESULT_UNAVAILABLE;
    }
    }


    /**
    /**