• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2019 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 package com.android.tv.common.flags;
17 
18 /** Flags for tuning non ui behavior */
19 public interface BackendKnobsFlags {
20 
21     /**
22      * Whether or not this feature is compiled into this build.
23      *
24      * <p>This returns true by default, unless the is_compiled_selector parameter was set during
25      * code generation.
26      */
compiled()27     boolean compiled();
28 
29     /** Enable fetching only part of the program data. */
enablePartialProgramFetch()30     boolean enablePartialProgramFetch();
31 
32     /** EPG fetcher interval in hours */
epgFetcherIntervalHour()33     long epgFetcherIntervalHour();
34 
35     /** Target channel count for EPG. It is used to adjust the EPG length */
epgTargetChannelCount()36     long epgTargetChannelCount();
37 
38     /** Enables fetching a few hours of programs only when the epg is scrolled to that time. */
fetchProgramsAsNeeded()39     boolean fetchProgramsAsNeeded();
40 
41     /** How many hours of programs are loaded in the program guide for during the initial fetch */
programGuideInitialFetchHours()42     long programGuideInitialFetchHours();
43 
44     /** How many hours of programs are loaded in the program guide */
programGuideMaxHours()45     long programGuideMaxHours();
46 }
47