diff options
| author | 2024-01-18 16:59:54 -0800 | |
|---|---|---|
| committer | 2024-01-18 17:00:01 -0800 | |
| commit | df8c11ab123d5d5911569ece9c9324e9057f5caa (patch) | |
| tree | 14bac2a948de4ce68b24799b9633795133124ba6 | |
| parent | 2412e6cfd2a4ade7d4365578fee7fde4f57c9560 (diff) | |
Add new BroadcastInfoRequest options
Test: mmm
Bug: 309565640
Change-Id: Ibd5b3123279bb0e8dd6ccceca1c566ba99fd0ca6
| -rw-r--r-- | media/java/android/media/tv/BroadcastInfoRequest.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/media/java/android/media/tv/BroadcastInfoRequest.java b/media/java/android/media/tv/BroadcastInfoRequest.java index cbd8c1fd53cd..694756c3f1a3 100644 --- a/media/java/android/media/tv/BroadcastInfoRequest.java +++ b/media/java/android/media/tv/BroadcastInfoRequest.java @@ -32,7 +32,8 @@ import java.lang.annotation.RetentionPolicy; public abstract class BroadcastInfoRequest implements Parcelable { /** @hide */ @Retention(RetentionPolicy.SOURCE) - @IntDef({REQUEST_OPTION_REPEAT, REQUEST_OPTION_AUTO_UPDATE}) + @IntDef({REQUEST_OPTION_REPEAT, REQUEST_OPTION_AUTO_UPDATE, + REQUEST_OPTION_ONEWAY, REQUEST_OPTION_ONESHOT}) public @interface RequestOption {} /** @@ -47,6 +48,18 @@ public abstract class BroadcastInfoRequest implements Parcelable { * first time, new values are detected. */ public static final int REQUEST_OPTION_AUTO_UPDATE = 1; + /** + * Request option: one-way + * <p> With this option, no response is expected after sending the request. + * @hide + */ + public static final int REQUEST_OPTION_ONEWAY = 2; + /** + * Request option: one-shot + * <p> With this option, only one response will be given per request. + * @hide + */ + public static final int REQUEST_OPTION_ONESHOT = 3; public static final @NonNull Parcelable.Creator<BroadcastInfoRequest> CREATOR = new Parcelable.Creator<BroadcastInfoRequest>() { |