commit | 2c08af6b67831b4d58200370b6f44c13cc541983 | [log] [tgz] |
---|---|---|
author | qingxun <qingxun@google.com> | Wed Aug 10 01:08:58 2022 +0000 |
committer | qingxun <qingxun@google.com> | Thu Aug 11 22:12:01 2022 +0000 |
tree | b400e0a608a3d8730e8f82a3052eb59ca772da4e | |
parent | 06f26aaedf9a6b179ae68614522d734e0d1b7198 [diff] |
Add TIAF Feature Flag Bug: 241110408 Test: Manually on cuttlefish Change-Id: I4dd736cb17142db728e36b0a837a8adaf8044bd5
diff --git a/common/src/com/android/tv/common/feature/Sdk.java b/common/src/com/android/tv/common/feature/Sdk.java index e59bcd6..bf76c9c 100644 --- a/common/src/com/android/tv/common/feature/Sdk.java +++ b/common/src/com/android/tv/common/feature/Sdk.java
@@ -27,6 +27,8 @@ public static final Feature AT_LEAST_O = new AtLeast(VERSION_CODES.O); + public static final Feature AT_LEAST_T = new AtLeast(VERSION_CODES.TIRAMISU); + private static final class AtLeast implements Feature { private final int versionCode;
diff --git a/src/com/android/tv/features/TvFeatures.java b/src/com/android/tv/features/TvFeatures.java index 5282c28..ebd7cb9 100644 --- a/src/com/android/tv/features/TvFeatures.java +++ b/src/com/android/tv/features/TvFeatures.java
@@ -101,5 +101,8 @@ /** Use input blocklist to disable partner's tuner input. */ public static final Feature USE_PARTNER_INPUT_BLOCKLIST = ON; + /** Support for interactive applications using the TIAF **/ + public static final Feature HAS_TIAF = Sdk.AT_LEAST_T; + private TvFeatures() {} }