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

Commit c3b5c6fa 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...

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

Change-Id: Ic950c9ed0bc08fa20285c133276412c015af5cb2
parents 5c1c90d5 c6827e53
Loading
Loading
Loading
Loading
+10 −5
Original line number 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
     * doesn't matter.
     * <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 attached.
     * @return result status of the operation.
     */
    @Result
    public int attachFilter(@NonNull Filter filter) {
        return nativeAttachFilter(filter);
        // no-op
        return Tuner.RESULT_UNAVAILABLE;
    }

    /**
     * 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.
     * @return result status of the operation.
     */
    @Result
    public int detachFilter(@NonNull Filter filter) {
        return nativeDetachFilter(filter);
        // no-op
        return Tuner.RESULT_UNAVAILABLE;
    }

    /**