aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornchalko <nchalko@google.com>2019-01-29 13:00:37 -0800
committerNick Chalko <nchalko@google.com>2019-02-12 22:17:09 -0800
commit225e97d46f89bb000461ac4262483bb80cfc44d0 (patch)
treea05446c3d4591119c79c1170e7357af35c461061
parent9ea6e670ca6305cd86c987d794b19534141eb86b (diff)
downloadandroid_packages_apps_TV-225e97d46f89bb000461ac4262483bb80cfc44d0.tar.gz
android_packages_apps_TV-225e97d46f89bb000461ac4262483bb80cfc44d0.tar.bz2
android_packages_apps_TV-225e97d46f89bb000461ac4262483bb80cfc44d0.zip
Include cloud epg feature flag in aosp version
PiperOrigin-RevId: 231457239 Change-Id: I384566a6665a1f0848fbab0a7db96aa5566c28ad
-rw-r--r--src/com/android/tv/features/TvFeatures.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/com/android/tv/features/TvFeatures.java b/src/com/android/tv/features/TvFeatures.java
index 4f6e8d9f..a61e9faf 100644
--- a/src/com/android/tv/features/TvFeatures.java
+++ b/src/com/android/tv/features/TvFeatures.java
@@ -60,6 +60,27 @@ public final class TvFeatures extends CommonFeatures {
*/
public static final Feature ANALYTICS_V2 = and(ON, ANALYTICS_OPT_IN);
+ private static final Feature TV_PROVIDER_ALLOWS_INSERT_TO_PROGRAM_TABLE =
+ or(Sdk.AT_LEAST_O, PartnerFeatures.TVPROVIDER_ALLOWS_SYSTEM_INSERTS_TO_PROGRAM_TABLE);
+
+ /**
+ * Enable cloud EPG for third parties.
+ *
+ * @see <a href="http://go/cloud-epg-3p-proposal">go/cloud-epg-3p-proposal</a>
+ */
+ // TODO verify customization for N
+ public static final TestableFeature CLOUD_EPG_FOR_3RD_PARTY =
+ TestableFeature.createTestableFeature(
+ and(
+ // TODO(b/66696290): use newer version of robolectric.
+ or(TV_PROVIDER_ALLOWS_INSERT_TO_PROGRAM_TABLE, FeatureUtils.ROBOLECTRIC),
+ or(
+ ENG_ONLY_FEATURE,
+ // Begin_AOSP_Comment_Out
+ ExperimentFeature.from(GoogleExperiments.ENABLE_CLOUD_EPG_FOR_3RD_PARTY),
+ // End_AOSP_Comment_Out
+ PropertyFeature.create("enable_cloud_epg_for_3rd_party", false))));
+
// TODO(b/76149661): Fix EPG search or remove it
public static final Feature EPG_SEARCH = OFF;