/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.tv.common.dev; /** A class about the constants for TV Developer preferences. */ public final class DeveloperPreferences { /** * Allow Google Analytics for eng builds. * *

Defaults to {@code false}. */ public static final DeveloperPreference ALLOW_ANALYTICS_IN_ENG = DeveloperPreference.create("tv_allow_analytics_in_eng", false); /** * Allow Strict mode for debug builds. * *

Defaults to {@code true}. */ public static final DeveloperPreference ALLOW_STRICT_MODE = DeveloperPreference.create("tv_allow_strict_mode", true); /** * When true {@link android.view.KeyEvent}s are logged. * *

Defaults to {@code false}. */ public static final DeveloperPreference LOG_KEYEVENT = DeveloperPreference.create("tv_log_keyevent", false); /** * When true debug keys are used. * *

Defaults to {@code false}. */ public static final DeveloperPreference USE_DEBUG_KEYS = DeveloperPreference.create("tv_use_debug_keys", false); /** * Send {@link com.android.tv.analytics.Tracker} information. * *

Defaults to {@code true}. */ public static final DeveloperPreference USE_TRACKER = DeveloperPreference.create("tv_use_tracker", true); /** * Maximum buffer size in MegaBytes. * *

Defaults to 2MB. */ public static final DeveloperPreference MAX_BUFFER_SIZE_MBYTES = DeveloperPreference.create("tv.tuner.buffersize_mbytes", 2 * 1024); private DeveloperPreferences() {} }