Add new filter status NO_DATA

Bug: 260651195
Test: test on cf_x86_tv-userdebug
Change-Id: I7860c58c6f11f65740d1462ab6e0c6fbc1f70ad7
This commit is contained in:
Ray Chin
2022-12-13 17:49:41 +08:00
parent 60d7db2290
commit c738cd15d2
2 changed files with 7 additions and 1 deletions

View File

@@ -7730,6 +7730,7 @@ package android.media.tv.tuner.filter {
field public static final int STATUS_DATA_READY = 1; // 0x1
field public static final int STATUS_HIGH_WATER = 4; // 0x4
field public static final int STATUS_LOW_WATER = 2; // 0x2
field public static final int STATUS_NO_DATA = 16; // 0x10
field public static final int STATUS_OVERFLOW = 8; // 0x8
field public static final int SUBTYPE_AUDIO = 3; // 0x3
field public static final int SUBTYPE_DOWNLOAD = 5; // 0x5

View File

@@ -154,7 +154,8 @@ public class Filter implements AutoCloseable {
/** @hide */
@IntDef(prefix = "STATUS_",
value = {STATUS_DATA_READY, STATUS_LOW_WATER, STATUS_HIGH_WATER, STATUS_OVERFLOW})
value = {STATUS_DATA_READY, STATUS_LOW_WATER, STATUS_HIGH_WATER, STATUS_OVERFLOW,
STATUS_NO_DATA})
@Retention(RetentionPolicy.SOURCE)
public @interface Status {}
@@ -183,6 +184,10 @@ public class Filter implements AutoCloseable {
* discarded.
*/
public static final int STATUS_OVERFLOW = DemuxFilterStatus.OVERFLOW;
/**
* The status of a filter that the filter buffer is empty and no filtered data is coming.
*/
public static final int STATUS_NO_DATA = DemuxFilterStatus.NO_DATA;
/** @hide */
@IntDef(prefix = "SCRAMBLING_STATUS_",