• 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 
17 package com.android.tv.common.dev;
18 
19 /** A class about the constants for TV Developer preferences. */
20 public final class DeveloperPreferences {
21 
22     /**
23      * Allow Google Analytics for eng builds.
24      *
25      * <p>Defaults to {@code false}.
26      */
27     public static final DeveloperPreference<Boolean> ALLOW_ANALYTICS_IN_ENG =
28             DeveloperPreference.create("tv_allow_analytics_in_eng", false);
29 
30     /**
31      * Allow Strict mode for debug builds.
32      *
33      * <p>Defaults to {@code true}.
34      */
35     public static final DeveloperPreference<Boolean> ALLOW_STRICT_MODE =
36             DeveloperPreference.create("tv_allow_strict_mode", true);
37 
38     /**
39      * When true {@link android.view.KeyEvent}s are logged.
40      *
41      * <p>Defaults to {@code false}.
42      */
43     public static final DeveloperPreference<Boolean> LOG_KEYEVENT =
44             DeveloperPreference.create("tv_log_keyevent", false);
45 
46     /**
47      * When true debug keys are used.
48      *
49      * <p>Defaults to {@code false}.
50      */
51     public static final DeveloperPreference<Boolean> USE_DEBUG_KEYS =
52             DeveloperPreference.create("tv_use_debug_keys", false);
53 
54     /**
55      * Send {@link com.android.tv.analytics.Tracker} information.
56      *
57      * <p>Defaults to {@code true}.
58      */
59     public static final DeveloperPreference<Boolean> USE_TRACKER =
60             DeveloperPreference.create("tv_use_tracker", true);
61 
62     /**
63      * Maximum buffer size in MegaBytes.
64      *
65      * <p>Defaults to 2MB.
66      */
67     public static final DeveloperPreference<Integer> MAX_BUFFER_SIZE_MBYTES =
68             DeveloperPreference.create("tv.tuner.buffersize_mbytes", 2 * 1024);
69 
DeveloperPreferences()70     private DeveloperPreferences() {}
71 }
72