Home | History | Annotate | Download | only in feature
      1 /*
      2  * Copyright (C) 2016 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License
     15  */
     16 
     17 package com.android.tv.common.feature;
     18 
     19 import static com.android.tv.common.feature.FeatureUtils.AND;
     20 import static com.android.tv.common.feature.TestableFeature.createTestableFeature;
     21 
     22 /**
     23  * List of {@link Feature} that affect more than just the Live TV app.
     24  *
     25  * <p>Remove the {@code Feature} once it is launched.
     26  */
     27 public class CommonFeatures {
     28     /**
     29      * DVR
     30      *
     31      * <p>See <a href="https://goto.google.com/atv-dvr-onepager">go/atv-dvr-onepager</a>
     32      *
     33      * DVR API is introduced in N, it only works when app runs as a system app.
     34      */
     35     public static final TestableFeature DVR = createTestableFeature(
     36             AND(Sdk.AT_LEAST_N, SystemAppFeature.SYSTEM_APP_FEATURE));
     37 
     38     /**
     39      * ENABLE_RECORDING_REGARDLESS_OF_STORAGE_STATUS
     40      *
     41      * Enables dvr recording regardless of storage status.
     42      */
     43     public static final Feature FORCE_RECORDING_UNTIL_NO_SPACE =
     44             new PropertyFeature("force_recording_until_no_space", false);
     45 
     46     /**
     47      * USE_SW_CODEC_FOR_SD
     48      *
     49      * Prefer software based codec for SD channels.
     50      */
     51     public static final Feature USE_SW_CODEC_FOR_SD =
     52             new PropertyFeature("use_sw_codec_for_sd", false
     53             );
     54 }
     55