Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b53aae9 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Add a column to TV channel metadata to enable a newly requested use case

conditional_access :
    Used to let user know this channel is scrambled by a conditional access
    system and need to contact the service provider to watch it.

Bug: 14073703
Change-Id: I62d744b92e31fbbb95ba10b2595686114f6fbb6f
parent a61e5074
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15912,6 +15912,7 @@ package android.media.tv {
  public static final class TvContract.Channels implements android.media.tv.TvContract.BaseTvColumns {
    method public static final java.lang.String getVideoResolution(java.lang.String);
    field public static final java.lang.String COLUMN_BROWSABLE = "browsable";
    field public static final java.lang.String COLUMN_CONDITIONAL_ACCESS = "conditional_access";
    field public static final java.lang.String COLUMN_DESCRIPTION = "description";
    field public static final java.lang.String COLUMN_DISPLAY_NAME = "display_name";
    field public static final java.lang.String COLUMN_DISPLAY_NUMBER = "display_number";
+13 −0
Original line number Diff line number Diff line
@@ -634,6 +634,19 @@ public final class TvContract {
         */
        public static final String COLUMN_SEARCHABLE = "searchable";

        /**
         * The flag indicating whether this TV channel is scrambled by conditional access or not.
         * <p>
         * This is used for indicating that this channel is protected by a conditional access
         * system. A value of 1 indicates the channel is scrambled and the user is required
         * to contact the service provider to watch this channel. A value of 0 indicates the channel
         * is not scrambled. If not specified, this value is set to 0 (not scrambled) by default.
         * </p><p>
         * Type: INTEGER (boolean)
         * </p>
         */
        public static final String COLUMN_CONDITIONAL_ACCESS = "conditional_access";

        /**
         * The flag indicating whether this TV channel is locked or not.
         * <p>