package com.tcl.factory.def;


/*
 * some constant define here
 */
public class DEFS {
    public static boolean Enable = true;
    public static boolean Disable = false;
    public static int DebugLevel = 1;


    //	public static  boolean dataComing=false; //UART data flag
    public static short[] receiveData;  //UART data
    //	public static short[] tmpreceiveData={0};
//	public final static short ANIMATION_DEFAULT=0;
    public final static short STATUS_OK = 1; //HDCP Status
    public final static short STATUS_ERROR = 0;
    //public static boolean warmupStatus = false;  //WarmUP Flag
    public static boolean uartOpenStatus = false;


    public static String SDCardPath = "/mnt/sdcard";
    public static String USBPath = null;


//	public static boolean pModeStatus = false;


    //	public static String currentSourceType = "";
    public static boolean serialDebugStatus = false;//default is false
//	public static boolean FleshToneStatus = false; // default is false

//	public final static int HDCP_LENGTH= 330;//order + data + crc=327

    public final static int TMP_USER = 0;
    public final static int TMP_STANDARD = 1;
    public final static int TMP_COOL = 2;
    public final static int TMP_WARM = 3;
    public final static int TMP_WARM2 = 4;

    public final static int SOURCE_NONE = 0;
    public final static int SOURCE_ATV = 1;
    public final static int SOURCE_DTV = 2;
    public final static int SOURCE_AV = 3;
    public final static int SOURCE_YPBPR = 4;
    public final static int SOURCE_HDMI = 5;
    public final static int SOURCE_VGA = 6;
    public final static int SOURCE_DV = 7;
    public final static int SOURCE_STORAGE = 8;
    public final static int SOURCE_KTV = 9;

    public final static int HOTEL_SOURCE_ATV = 0;
    public final static int HOTEL_SOURCE_DTV = 1;
    public final static int HOTEL_SOURCE_AV1 = 2;
    public final static int HOTEL_SOURCE_AV2 = 3;
    public final static int HOTEL_SOURCE_YPBPR = 4;
    public final static int HOTEL_SOURCE_VGA = 5;
    public final static int HOTEL_SOURCE_HDMI1 = 6;
    public final static int HOTEL_SOURCE_HDMI2 = 7;
    public final static int HOTEL_SOURCE_HDMI3 = 8;
    public final static int HOTEL_SOURCE_KTV = 9;
    public final static int HOTEL_SOURCE_STORAGE = 10;
    public final static int HOTEL_SOURCE_SCART = 11;
    public final static int HOTEL_SOURCE_HDMI4 = 12;


    public final static int TYPE_DTMB = 0;
    public final static int TYPE_DVBC = 1;

    public final static String ATV = "ATV";

    public static boolean KeyCodeTestStatus = false;
    public static boolean TestPatternStatus = false;//Jane add
    public static int RATTLE_ON_OFF = 0;

    public static short keyCodeRecord = 0;
    public static short[] WarmUPTime = {0, 0};


    public static int CMD_CurrentSourceStatus = 0;

    public static int asyncCommand = 0;
    public static int asyncCommandArg1 = 0;
    public static int asyncCommandArg2 = 0;
    public final static int CMD_ChannelPreSet = 1;
    public final static int CMD_setDTVChannel = 2;
    public final static int CMD_setATVChannel = 3;
    public final static int CMD_EnableKaraoke = 4;
    public final static int CMD_EnableKaraokePre = 5;


//	public final static int ATV_START_INDEX= 899;

    public final static int EXIT_APP = 3;
    public final static int D_MODE = 1;
    public final static int P_MODE = 2;
    public final static int W_MODE = 3;
    public final static int S_MODE = 4;
    public final static int HOTEL_MODE = 5;
    public final static int AFTER_SALE_MODE = 6;
    public final static int RECORD_MODE = 7;
    public final static int OSD_SHOW = 1;
    public final static int OSD_HIDE = 0;

    /* pic mode */
    public final static int PM_STANDARD = 1;
    public final static int PM_MILD = 2;//Jane add
    public final static int PM_VIVID = 3;//Jane add
    public final static int PM_USER = 4;
    public final static int PM_DYNAMIC = 5;

    /* hotel pic mode */
    public final static int HOTEL_PM_STANDARD = 0;
    public final static int HOTEL_PM_VIVID = 1;//Jane add
    public final static int HOTEL_PM_MILD = 2;//Jane add
    public final static int HOTEL_PM_STUDIO = 3;
    public final static int HOTEL_PM_USER = 4;
    public final static int HOTEL_PM_DYNAMIC = 5;
    public final static int HOTEL_PM_STADIUM = 6;
    public final static int HOTEL_PM_CINEMA = 7;

    /* sound mode */
    public final static int SM_STANDARD = 1;
    public final static int SM_MOVIE = 2;
    public final static int SM_MUSIC = 3;
    public final static int SM_PERSONAL = 4;
    public final static int SM_NEWS = 5;

    /* hotel sound mode */
    public final static int HOTEL_SM_MUSIC = 0;
    public final static int HOTEL_SM_MOVIE = 1;
    public final static int HOTEL_SM_NEWS = 2;
    public final static int HOTEL_SM_STANDARD = 3;
    public final static int HOTEL_SM_PERSONAL = 4;
    public final static int HOTEL_SM_SUBWOFOFER = 5;
    public final static int HOTEL_SM_STADIUM = 6;
    public final static int HOTEL_SM_GAME = 7;
    public final static int HOTEL_SM_SPORT = 8;

    /* sound */

    /* soundscene */
    public final static int VOL_WALL = 0;
    public final static int VOL_DESKTOP = 1;

    /*sound format*/
    public final static int PATT_BG = 0;
    public final static int PATT_DK = 1;
    public final static int PATT_I = 2;
    public final static int PATT_M = 3;
    public final static int PATT_L = 4;

    public final static int POWER_MODE_ON = 0;
    public final static int POWER_MODE_STANDY = 1;
    public final static int POWER_MODE_LAST = 2;

    /*usb clone status*/
    public final static int NVM_TO_USB_FAIL = 0;
    public final static int NVM_TO_USB_OK = 1;
    public final static int USB_TO_NVM_FAIL = 2;
    public final static int USB_TO_NVM_OK = 3;
    public final static int USB_TO_NVM = 1;
    public final static int NVM_TO_USB = 0;

    public static int clone_result = 0;
//	public static int indexProjectID = 0;

    /*source num*/
    public final static int HDMI_NUM = 2;
    public final static int AV_NUM = 2;
    public final static int VGA_NUM = 1;
    public final static int YPBPR_NUM = 1;
    public final static int TV_NUM = 1;

    /*nonstandard*///NON_STANDARD_ON
//	public final static int NON_STANDARD_EEP_ADDR=0xD40;
//	public final static int AREA_EEP_ADDR=0xD42;
//	public final static int CITY_AREA_EEP_ADDR=0xD48;

    //MAC DEVICED HDCP if add 2012 1 14
//	public final static int MAC_FLAGE=0xD30;
//	public final static int DEVICED_FLAGE=0xD31;
//	public final static int HDCP_FLAGE=0xD32;

    public final static int NON_STANDARD_ON = 0x55;
    public final static int NON_STANDARD_OFF = 0xFF;
    //	public final static  short  macDevicedHdcpOk= 0x1f;
//	public static short  flageSourceDisplay =0;
    public static final int DESKTOP_HEIGHT = 1080;
    public static final int DESKTOP_WIDTH = 1920;
    public static ProjectInfo projectInfo = new ProjectInfo();

    // settings for hotel menu
//		public static boolean Hotel_Flag = false;
    public static int Hotel_MaxVolume = 100;
    //		public static int presetChannel = 1;
    public static int keyLockStatus = 0;
//		public static int channelLockStatus = 0;


//    Package and Activity definition

    public final static String Package_TCL_FileExplorer = "com.tcl.mediabrowser";
    public final static String Activity_TCL_FileExplorer = "com.tcl.mediabrowser.activity.DeviceListActivity";

    public final static String Package_TCL_TV = "com.tcl.tv";
    public final static String Activity_TCL_TVActivity = "com.tcl.tv.TVActivity";

    //		public final static String Package_TCL_TV_MENU = "com.tcl.tv.menu";
    public final static String Package_TCL_TV_MENU = "com.tcl.tv";
    public final static String Activity_TCL_TVMenuActivity = "com.tcl.tv.menu.TVMenuActivity";

    public final static String Package_TCL_Factory = "com.tcl.factory.view";
    public final static String Activity_TCL_FactoryMenuActivity = "com.tcl.factory.view.MainMenu";

    //		public final static String Package_Android_Setting = "com.tcl.mstar.settings";//"com.android.settings";
//		public final static String Activity_Android_Setting_WIFI = "com.tcl.mstar.settings.wifi.WifiSettings";//"com.android.settings.wifi.WifiSettings";
    public final static String Package_Android_Setting = "com.tcl.settings";//"com.android.settings";
    public final static String Activity_Android_Setting_WIFI = "com.tcl.settings.network.wifi.WifiSettings";

    public final static String Package_TCL_upgrade = "com.tcl.mtk.mtkVersionUpdate";
    public final static String Activity_Package_TCL_upgrade = "com.tcl.mtk.mtkVersionUpdate.UI.SystemUpdateActivity";

//		public final static String Package_MTK_PKGDownload = "MTKAndroidPKGDownload";
//		public final static String Activity_TCL_CICard = "com.tcl.dtv.manage.CiPublicInterface";

    public static long CRC_TABLE[] =
            {
                    0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7,
                    0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF
            };
    public static short ComnodOK[] =
            {
                    0xAB, 0x05, 0x0A, 0xDF, 0x4E
            };
    public static short ComnodOrDateWrong[] =
            {
                    0xAB, 0x05, 0x0E, 0x9F, 0xCA
            };
    public static short CRCWrong[] =
            {
                    0xAB, 0x05, 0x0F, 0x8F, 0xEB
            };


    public final static short MAC_DEVICE_HDCP_OK = 0x1F;
    public static final int COMMON_ON = 1;
    public static final int COMMON_OFF = 0;

    /*hotel boot logo mode*/
    public final static int HOTEL_BOOT_LOGO = 0;
    public final static int HOTEL_BOOT_ANIM = 1;
    public final static int HOTEL_BOOT_VIDEO = 2;

    public final static int HOTEL_DEFAULT_LOGO = 0;
    public final static int HOTEL_NO_LOGO = 1;
    public final static int HOTEL_USER_LOGO = 2;
    public final static int HOTEL_NO_BOOT_VIDEO = 0;
    public final static int HOTEL_USER_BOOT_VIDEO = 1;
    public static String UserLogoPath = "/data/system/ad/hotel/";
//    public static String BlackLogoPath = "/system/media/no_logo/";
    public static String BlackLogoPath = "/tclconfig/logo/logo_tcl/";
    public static String JPG_LogoName = "boot0.jpg";
    public static String BMP_LogoName = "boot0.bmp";
    public static String BMP_Logo_LogoName = "logo.bmp";
    public static String JPS_Logo_LogoName = "logo.jpg";
    public static String Define_usbLogoPath = "/hotel/logo/";
    public static String PowerAnimaionName = "customized_bootanimation.zip";
    public static String PowerVideoName = "bootvideo.ts";
    public static String PowerVideoIniName = "ts.ini";
    public static String HotelMD5FileName = "hotelMd5.txt";
    //hotel boot logo/animation/video check status
    public final static int HOTEL_BOOT_LOGO_CHECK_STATUS_NULL = 0;
    public final static int HOTEL_BOOT_LOGO_CHECK_STATUS_LOGO = 1;
    public final static int HOTEL_BOOT_LOGO_CHECK_STATUS_ANIMATION = 2;
    public final static int HOTEL_BOOT_LOGO_CHECK_STATUS_VIDEO = 3;

    public final static int MAX_HOTEL_BOOT_LOGO_FILE_SIZE = 1 * 1024 * 1024;
    public final static int FLG_JEPG_PROGRESSIVE_TYPE = -62;    //-62 = 0xC2
    public final static int FLG_BMP_PROGRESSIVE_TYPE = 66;    //-62 = 0xC2
    public final static int DATA_PARTION_REMAIN_SIZE = 50 * 1024 * 1024;
    public final static int MAX_HOTEL_BOOT_ANMI_FILE_SIZE = 30 * 1024 * 1024;
    public final static int MAX_HOTEL_BOOT_VIDEO_FILE_SIZE = 50 * 1024 * 1024;

    public final static String SITA_PROPERTY_KEY_BOOTUP_LED_STANDBY = "sita.bootup.led.standby";
    public final static String SITA_PROPERTY_VALUE_BOOTUP_LED_ON = "on";
    public final static String SITA_PROPERTY_VALUE_BOOTUP_LED_OFF = "off";
    public final static String SITA_PROPERTY_VALUE_BOOTUP_LED_BREATHING = "breathing";
    public final static String HOTEL_PROPERTY_TEST_ANIM_STATUS = "hotel.test.anim.status";
    public final static String HOTEL_PROPERTY_TEST_ANIM_FINISH_FLG = "service.offanim.finish";
    public final static String HOTEL_PROPERTY_BOOT_ANIM = "persist.odm.tcl.hotel.bootanim";
    public final static String HOTEL_PROPERTY_BOOT_VIDEO = "persist.odm.tcl.hotel.bootvideo";
    public final static String HOTEL_PROPERTY_SLIENT_INSTALL = "persist.silentinstallapk";
    public final static String HOTEL_PROPERTY_SCREEN_HV = "persist.hotel.screenhv";
    public final static String HOTEL_PROPERTY_HOTEL_HOTKEY = "persist.hotel.flag";
    public final static String HOTEL_PROPERTY_DEFAULT_BOOT_ANIM = "persist.default.animation";
    public final static String HOTEL_PROPERTY_HOTEL_USER_APP = "persist.hotel.userapp";
    public final static String HOTEL_PROPERTY_HOTEL_USER_ACTIVITY = "persist.hotel.useractivity";
    public final static String SITA_PROPERTY_BLUETOOTH_CACHE_DEVICES = "memory.factory.bt.devlist";
    public final static String USB_PERMIT = "persist.sys.usbpermit";

    public final static String DTV = "DTV";
    public static final int PROJECT_FLAG = 10000;
    public static final String PROJECT_FILE_NAME = "/tclconfig/json_sys.ini";
    public final static String GPIO_FUNCTION = "persist.sys.rs232ir.switch";
    public final static String CLIENTTYPE_T9653 = "TCL-CN-MT9653";
}
