summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Zhao <qingxun@google.com> 2024-01-22 22:24:22 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-01-22 22:24:22 +0000
commitca045f28b70d6ea5975408cdb6d41d226b55d86f (patch)
tree23760d1b4458f560be0ee11ba01a3a30ecba933d
parentd6c1282c2d58239cdda5a6c7f62b05b25cfa2d21 (diff)
parentdf8c11ab123d5d5911569ece9c9324e9057f5caa (diff)
Merge "Add new BroadcastInfoRequest options" into main
-rw-r--r--media/java/android/media/tv/BroadcastInfoRequest.java15
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>() {