Merge "Tuner API: make DvrPlayback.attach/detachFilter no-ops" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc0b494bb0
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user