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

Commit e5cce250 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: I4ce008a7c0fdbfa12959329efdd4c97cc394f2ed
parents afcbd69c cc0b494b
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;
    }

    /**