You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

927 lines
36 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2012-2019. All rights reserved.
* Description:
* Author:
* Create:
*/
#ifndef ISYSTEMSETTING_H
#define ISYSTEMSETTING_H
#include <utils/RefBase.h>
#include "tv_common.h"
/* ****************************** API Declaration **************************** */
/* * \addtogroup TVMW */
/* * @{ */ /* * <!-- [TVMW] */
namespace android {
class ISystemSetting : virtual public RefBase {
public:
/**
\brief get PrintLevel. CNcomment:获取打印等级CNend
\attention this func can be called for user getting LSADCKeyEnable. CNcomment:用户可以调用该接口获取数据库中的打印等级CNend
\param CNcomment:CNend
\retval ATV_LOG_PRIO_E, enum of MWLOG. CNcomment:MW的打印等级
\retval 0: ATV_LOG_UNKNOWN,
\retval 1: ATV_LOG_DEFAULT,
\retval 2: ATV_LOG_VERBOSE,
\retval 3: ATV_LOG_DEBUG,
\retval 4: ATV_LOG_INFO,
\retval 5: ATV_LOG_WARN,
\retval 6: ATV_LOG_ERROR,
\retval 7: ATV_LOG_FATAL,
\retval 8: ATV_LOG_BUTT,
\see \n
CNcomment:CNend
*/
virtual int getPrintLevel() = 0;
/**
\brief Restore Default. CNcomment:恢复出厂设置CNend
\attention this func can be called for user restoring default. CNcomment:用户可以调用该接口恢复出厂设置CNend
\param CNcomment:CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int restoreDefault() = 0;
/**
\brief get ScreenBlueEnable. CNcomment:获取无信号蓝屏开关状态CNend
\attention this func can be called for user getting ScreenBlueEnable. CNcomment:用户可以调用该接口获取无信号蓝屏开关状态CNend
\param CNcomment:CNend
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:无信号蓝屏FALSE:无信号黑屏 CNend
\see \n
CNcomment:CNend
*/
virtual bool isScreenBlueEnable() = 0;
/**
\brief Enable ScreenBlue onOff. CNcomment:使能无信号蓝屏开关CNend
\attention this func can be called for user enabling ScreenBlue on/off. CNcomment:用户可以调用该接口控制无信号蓝屏开关CNend
\param boolean onoff, TRUE:on,FALSE:off. CNcomment:无信号蓝屏开关, TRUE:无信号蓝屏FALSE:无信号黑屏 CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int enableScreenBlue(bool onoff) = 0;
/**
\brief shutdown. CNcomment:进入真待机CNend
\attention this func can be called for user shutdown. CNcomment:用户可以调用该接口进入真待机CNend
\param CNcomment:CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:DDR下电CNend
*/
virtual int shutdown() = 0;
/**
\brief suspend. CNcomment:ATV 系统待机CNend
\attention this func can be called for user suspend. CNcomment:用户可以调用该接口进入ATV 系统待机CNend
\param CNcomment:CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int suspend() = 0;
/**
\brief resume suspend. CNcomment: ATV 系统恢复CNend
\attention this func can be called for user resume suspend. CNcomment:用户可以调用该接口进行ATV 系统恢复CNend
\param CNcomment:传入power类型枚举定时(从ontime中设置的端子和频道号恢复)和非定时(从数据库中保存的端子和频道号恢复) CNend
\param TV_POWERTYPE_TIMER -> 0,定时器
\param TV_POWERTYPE_OTHERS -> 1,非定时器的其他方式
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int resume(int powerType) = 0;
/**
\brief get LSADCKeyEnable. CNcomment:获取童锁开关状态CNend
\attention this func can be called for user getting LSADCKeyEnable. CNcomment:用户可以调用该接口获取童锁开关状态CNend
\param CNcomment:CNend
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:已锁FALSE:未锁 CNend
\see \n
CNcomment:CNend
*/
virtual bool isLSADCKeyEnable() = 0;
/**
\brief Enable LSADCKey onOff. CNcomment:使能童锁开关CNend
\attention this func can be called for user enabling LSADCKey on/off. CNcomment:用户可以调用该接口控制童锁开关CNend
\param boolean onoff, TRUE:on,FALSE:off. CNcomment:童锁开关, TRUE:上锁FALSE:开锁 CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int enableLSADCKey(bool onoff) = 0;
/**
\brief get BootVersion. CNcomment:获取Boot版本号 CNend
\attention this func can be called for user getting BootVersion. CNcomment:用户可以调用该接口获取Boot版本号 CNend
\param CNcomment:CNend
\retval String(Boot Version). CNcomment:字符串(boot版本号)CNend
\see \n
CNcomment:CNend
*/
virtual const char *getBootVersion() = 0;
/**
\brief set DispFixOutRate. CNcomment:设置视频输出帧率幅度CNend
\attention this func can be called for user setting DispFixOutRate. CNcomment:用户可以调用该接口设置视频输出帧率幅度CNend
\param fixFrmRate. CNcomment:帧率幅度CNend
\param TV_PANEL_FIXRATE_NONE -> 0, 不固定输出帧率
\param TV_PANEL_FIXRATE_FHD_50HZ -> 1, 固定FHD50输出
\param TV_PANEL_FIXRATE_FHD_60HZ -> 2, 固定FHD60输出
\param TV_PANEL_FIXRATE_FHD_OTHER -> 3, 固定FHD其它输出
\param TV_PANEL_FIXRATE_UHD_50HZ -> 4, 固定UHD50输出
\param TV_PANEL_FIXRATE_UHD_60HZ -> 5, 固定UHD60输出
\param TV_PANEL_FIXRATE_UHD_OTHER -> 6, 固定UHD其它输出
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setDispFixOutRate(int fixFrmRate) = 0;
/**
\brief set Resume Time. CNcomment:设置待机定时开机时间CNend
\attention this func can be called for user setting resume time. CNcomment:用户可以调用该接口设置待机定时开机时间CNend
\param int second. CNcomment:设定的待机定时开机时间(秒)CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setResumeTimer(int second) = 0;
/**
\brief set Hdmi Edid Type. CNcomment:设置HDMI EDID类型 CNend
\attention this func can be called for user setting hdmi edid type. CNcomment:用户可以调用该接口设置HDMI EDID类型 CNend
\param int edidType. CNcomment:HDMI EDID 类型(0:EDID2.0; 1:EDID1.4; 2:AUTO)CNend
\param TV_HDMI_EDID_TYPE_E
\param TV_HDMI_EDID_TYPE_20 -> 0,
\param TV_HDMI_EDID_TYPE_14 -> 1,
\param TV_HDMI_EDID_TYPE_AUTO -> 2,
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setHdmirxEdidType(int edidType) = 0;
/**
\brief get Hdmi Edid Type. CNcomment:获取HDMI EDID类型 CNend
\attention this func can be called for user getting hdmi edid type. CNcomment:用户可以调用该接口获取HDMI EDID类型 CNend
\param TV_HDMI_EDID_TYPE_E
\param TV_HDMI_EDID_TYPE_20 -> 0,
\param TV_HDMI_EDID_TYPE_14 -> 1,
\param TV_HDMI_EDID_TYPE_AUTO -> 2,
\param CNcomment:CNend
\retval 0 :EDID2.0. CNcomment:HDMI EDID 类型0:EDID2.0 CNend
\retval 1 :EDID1.4. CNcomment:HDMI EDID 类型1:EDID1.4 CNend
\retval 2 :EDID AUTO. CNcomment:HDMI EDID 类型2:EDID AUTO CNend
\see \n
CNcomment:CNend
*/
virtual int getHdmirxEdidType() = 0;
/**
\brief set Country or Region. CNcomment:设置国家地区 CNend
\attention this func can be called for user setting Country. CNcomment:用户可以调用该接口设置国家地区CNend
\param TV_COUNTRY_E, enum of countries and regions. CNcomment:国家地区对应的枚举CNend
\param TV_COUNTRY_CHINA -> 0,
\param TV_COUNTRY_HONGKONG_CHINA -> 1,
\param TV_COUNTRY_TAIWAN_CHINA -> 2,
\param TV_COUNTRY_INDONESIA -> 3,
\param TV_COUNTRY_MALAYSIA -> 4,
\param TV_COUNTRY_SINGAPORE -> 5,
\param TV_COUNTRY_THAILAND -> 6,
\param TV_COUNTRY_VIETNAM -> 7,
\param TV_COUNTRY_INDIA -> 8,
\param TV_COUNTRY_USA -> 9,
\param TV_COUNTRY_BRAZIL -> 10,
\param TV_COUNTRY_AUSTRIA -> 11,
\param TV_COUNTRY_PHILIPPINES -> 12,
\param TV_COUNTRY_CANADA -> 13,
\param TV_COUNTRY_MEXICO -> 14,
\param TV_COUNTRY_CZECH -> 15,
\param TV_COUNTRY_DENMARK -> 16,
\param TV_COUNTRY_FINLAND -> 17,
\param TV_COUNTRY_FRANCE -> 18,
\param TV_COUNTRY_GERMANY -> 19,
\param TV_COUNTRY_GREECE -> 20,
\param TV_COUNTRY_HUNGARY -> 21,
\param TV_COUNTRY_ITALY -> 22,
\param TV_COUNTRY_LUXEMBOURG -> 23,
\param TV_COUNTRY_NETHERLANDS -> 24,
\param TV_COUNTRY_NORWAY -> 25,
\param TV_COUNTRY_POLAND -> 26,
\param TV_COUNTRY_PORTUGAL -> 27,
\param TV_COUNTRY_SPAIN -> 28,
\param TV_COUNTRY_SWEDEN -> 29,
\param TV_COUNTRY_SWITZERLAND -> 30,
\param TV_COUNTRY_SWITZERLAND_FRA -> 31,
\param TV_COUNTRY_SWITZERLAND_ITA -> 32,
\param TV_COUNTRY_JAPAN -> 33,
\param TV_COUNTRY_UNITED_KINGDOM -> 34,
\param TV_COUNTRY_KOREA -> 35,
\param TV_COUNTRY_ARGENTINA -> 36,
\param TV_COUNTRY_CHILE -> 37,
\param TV_COUNTRY_PERU -> 38,
\param TV_COUNTRY_URUGUAY -> 39,
\param TV_COUNTRY_MYANMAR -> 40,
\param TV_COUNTRY_RUSSIA -> 41,
\param TV_COUNTRY_BELGIUM -> 42,
\param TV_COUNTRY_TURKEY -> 43,
\param TV_COUNTRY_SERBIA -> 44,
\param TV_COUNTRY_CROATIA -> 45,
\param TV_COUNTRY_ROMANIA -> 46,
\param TV_COUNTRY_COLOMBIA -> 47,
\param TV_COUNTRY_NEWZEALAND -> 48,
\param TV_COUNTRY_AUSTRALIA -> 49,
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setCountry(int country) = 0;
/**
\brief get Country or Region. CNcomment:获取国家地区CNend
\attention this func can be called for user getting Country. CNcomment:用户可以调用该接口获取国家地区CNend
\param CNcomment:CNend
\retval MW_COUNTRY_E, enum of countries and regions. CNcomment:国家地区对应的枚举CNend
\retval 0: TV_COUNTRY_CHINA,
\retval 1: TV_COUNTRY_HONGKONG_CHINA,
\retval 2: TV_COUNTRY_TAIWAN_CHINA,
\retval 3: TV_COUNTRY_INDONESIA,
\retval 4: TV_COUNTRY_MALAYSIA,
\retval 5: TV_COUNTRY_SINGAPORE,
\retval 6: TV_COUNTRY_THAILAND,
\retval 7: TV_COUNTRY_VIETNAM,
\retval 8: TV_COUNTRY_INDIA,
\retval 9: TV_COUNTRY_USA,
\retval 10:TV_COUNTRY_BRAZIL,
\retval 11:TV_COUNTRY_AUSTRIA,
\retval 12:TV_COUNTRY_PHILIPPINES,
\retval 13:TV_COUNTRY_CANADA,
\retval 14:TV_COUNTRY_MEXICO,
\retval 15:TV_COUNTRY_CZECH,
\retval 16:TV_COUNTRY_DENMARK,
\retval 17:TV_COUNTRY_FINLAND,
\retval 18:TV_COUNTRY_FRANCE,
\retval 19:TV_COUNTRY_GERMANY,
\retval 20:TV_COUNTRY_GREECE,
\retval 21:TV_COUNTRY_HUNGARY,
\retval 22:TV_COUNTRY_ITALY,
\retval 23:TV_COUNTRY_LUXEMBOURG,
\retval 24:TV_COUNTRY_NETHERLANDS,
\retval 25:TV_COUNTRY_NORWAY,
\retval 26:TV_COUNTRY_POLAND,
\retval 27:TV_COUNTRY_PORTUGAL,
\retval 28:TV_COUNTRY_SPAIN,
\retval 29:TV_COUNTRY_SWEDEN,
\retval 30:TV_COUNTRY_SWITZERLAND,
\retval 31:TV_COUNTRY_SWITZERLAND_FRA,
\retval 32:TV_COUNTRY_SWITZERLAND_ITA,
\retval 33:TV_COUNTRY_JAPAN,
\retval 34:TV_COUNTRY_UNITED_KINGDOM,
\retval 35:TV_COUNTRY_KOREA,
\retval 36:TV_COUNTRY_ARGENTINA,
\retval 37:TV_COUNTRY_CHILE,
\retval 38:TV_COUNTRY_PERU,
\retval 39:TV_COUNTRY_URUGUAY,
\retval 40:TV_COUNTRY_MYANMAR,
\retval 41:TV_COUNTRY_RUSSIA,
\retval 42:TV_COUNTRY_BELGIUM,
\retval 43:TV_COUNTRY_TURKEY,
\retval 44:TV_COUNTRY_SERBIA,
\retval 45:TV_COUNTRY_CROATIA,
\retval 46:TV_COUNTRY_ROMANIA,
\retval 47:TV_COUNTRY_COLOMBIA,
\retval 48:TV_COUNTRY_NEWZEALAND,
\retval 49:TV_COUNTRY_AUSTRALIA,
\see \n
CNcomment:CNend
*/
virtual int getCountry() = 0;
/**
\brief set tvSystem. CNcomment:设置tvSystem CNend
\attention this func can be called for user setting tvSystem. CNcomment:用户可以调用该接口设置tvSystem CNend
\param TV_TVSYSTEM_E, enum of tvSystems. CNcomment:tvSystem对应的枚举CNend
\param TV_TVSYSTEM_ATV -> 0,
\param TV_TVSYSTEM_DTMB_DVBC -> 1,
\param TV_TVSYSTEM_ATSC -> 2,
\param TV_TVSYSTEM_ISDBT -> 3,
\param TV_TVSYSTEM_DVBT_T2_C -> 4,
\param TV_TVSYSTEM_DVBT_T2_S_S2_C -> 5,
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setTvSystem(int tvSystem) = 0;
/**
\brief get tvSystem. CNcomment:获取tvSystem CNend
\attention this func can be called for user getting tvSystem. CNcomment:用户可以调用该接口获取tvSystem CNend
\param CNcomment:CNend
\retval TV_TVSYSTEM_E, enum of tvSystems. CNcomment:tvSystem对应的枚举CNend
\retval 0: TV_TVSYSTEM_ATV,
\retval 1: TV_TVSYSTEM_DTMB_DVBC,
\retval 2: TV_TVSYSTEM_ATSC,
\retval 3: TV_TVSYSTEM_ISDBT,
\retval 4: TV_TVSYSTEM_DVBT_T2_C,
\retval 5: TV_TVSYSTEM_DVBT_T2_S_S2_C,
\see \n
CNcomment:CNend
*/
virtual int getTvSystem() = 0;
/**
\brief Enable poweron panel onOff. CNcomment:使能panel开关CNend
\attention this func can be called for user enabling panel on/off. CNcomment:用户可以调用该接口控制panel上电开关CNend
\param boolean onoff, TRUE:on,FALSE:off. CNcomment:panel上电开关, TRUE:开FALSE:关 CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int enablePowerOnPanel(bool onoff) = 0;
/**
\brief get power on panel Enable. CNcomment:获取panel的开关状态CNend
\attention this func can be called for user getting poweron panel Enable. CNcomment:用户可以调用该接口获取panel开关状态CNend
\param CNcomment:CNend
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:开FALSE:关 CNend
\see \n
CNcomment:CNend
*/
virtual bool isPowerOnPanelEnable() = 0;
/**
\brief get source(VGA/HDMI) wakeup Enable. CNcomment:获取VGA/HDMI无信号待机后唤醒的开关状态CNend
\attention this func can be called for user getting source(VGA/HDMI) wakeup Enable.
CNcomment:用户可以调用该接口获取VGA/HDMI无信号待机后唤醒的开关状态CNend
\param int source
\param 6: TV_SRC_VGA;
\param 9: TV_SRC_HDMI1;
\param 10: TV_SRC_HDMI2;
\param 11: TV_SRC_HDMI3;
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:开FALSE:关 CNend
\see \n
CNcomment:CNend
*/
virtual bool getSrcWakeupEnable(int source) = 0;
/**
\brief set source(VGA/HDMI) wakeup Enable. CNcomment:设置VGA/HDMI无信号待机后唤醒的开关状态CNend
\attention this func can be called for user setting source(VGA/HDMI) wakeup Enable.
CNcomment:用户可以调用该接口设置VGA/HDMI无信号待机后唤醒的开关状态CNend
\param int source
\param 6: TV_SRC_VGA;
\param 9: TV_SRC_HDMI1;
\param 10: TV_SRC_HDMI2;
\param 11: TV_SRC_HDMI3;
\param boolean enable: false or true.
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setSrcWakeupEnable(int source, bool bEnable) = 0;
/**
\brief set source(VGA/HDMI) no signal suspend flag. CNcomment:设置VGA/HDMI无信号待机标记位CNend
\attention this func can be called for user setting source(VGA/HDMI) no signal suspend flag.
CNcomment:用户可以调用该接口设置VGA/HDMI无信号待机标记位CNend
\param int source
\param 6: TV_SRC_VGA;
\param 9: TV_SRC_HDMI1;
\param 10: TV_SRC_HDMI2;
\param 11: TV_SRC_HDMI3;
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setNoSignalSuspend(int source) = 0;
/**
\brief get wakeup class. CNcomment:获取wakeup唤醒信息 CNend
\attention this func can be called for user getting wake up class. CNcomment:用户可以调用该接口获取唤醒信息CNend
\param CNcomment:CNend
\retval TV_WAKEUP_INFO_S, include enWakeupMode, enWakeupSrc, s64Value. CNcomment:唤醒信息结构体参数 CNend
\retval[out] 唤醒模式枚举
\retval 0: TV_WAKEUP_IR,
\retval 1: TV_WAKEUP_KEYLED,
\retval 2: TV_WAKEUP_TIMEOUT
\retval 3: TV_WAKEUP_ETH,
\retval 4: TV_WAKEUP_USB,
\retval 5: TV_WAKEUP_GPIO,
\retval 6: TV_WAKEUP_LSADC,
\retval 7: TV_WAKEUP_CEC,
\retval 8: TV_WAKEUP_UART,
\retval 9: TV_WAKEUP_VGA,
\retval 10:TV_WAKEUP_HDMI,
\retval 11:TV_WAKEUP_SCART,
\retval 12:TV_WAKEUP_TIMEOUT_BG,
\retval[out] 唤醒信号源枚举
\retval 0: TV_SRC_ATV;
\retval 1: TV_SRC_DVBC;
\retval 2: TV_SRC_DTMB;
\retval 3: TV_SRC_CVBS1;
\retval 4: TV_SRC_CVBS2;
\retval 5: TV_SRC_CVBS3;
\retval 6: TV_SRC_VGA;
\retval 7: TV_SRC_YPBPR1;
\retval 8: TV_SRC_YPBPR2;
\retval 9: TV_SRC_HDMI1;
\retval 10: TV_SRC_HDMI2;
\retval 11: TV_SRC_HDMI3;
\retval 12: TV_SRC_HDMI4;
\retval 13: TV_SRC_MEDIA;
\retval 14: TV_SRC_MEDIA2;
\retval 15: TV_SRC_SCART1;
\retval 16: TV_SRC_SCART2;
\retval 17: TV_SRC_AUTO;
\retval 18: TV_SRC_DVBT;
\retval 19: TV_SRC_ATSC;
\retval 20: TV_SRC_DVBS;
\retval 21: TV_SRC_ISDBT;
\retval[out] Value
\see \n
CNcomment:CNend
*/
virtual TV_WAKEUP_INFO_S getWakeup() = 0;
/**
\brief get current lock status. CNcomment:获取切源锁、频道锁、父母锁的锁定状态CNend
\attention this func can be called for user getting lock status. CNcomment:用户可以调用该接口获取切源锁、频道锁、父母锁的锁定状态CNend
\param CNcomment:CNend
\retval ArrayList<boolean>, TRUE:locked,FALSE:unlocked. CNcomment:布尔类型,TRUE:上锁FALSE:开锁 CNend
\retval srclocked, TRUE:locked,FALSE:unlocked. CNcomment:布尔类型,TRUE:上锁FALSE:开锁 CNend
\retval channellocked, TRUE:locked,FALSE:unlocked. CNcomment:布尔类型,TRUE:上锁FALSE:开锁 CNend
\retval parentlocked, TRUE:locked,FALSE:unlocked. CNcomment:布尔类型,TRUE:上锁FALSE:开锁 CNend
\see \n
CNcomment:CNend
*/
virtual int isCurrentLocked(IntegerList *list) = 0;
/**
\brief setLockEnable. CNcomment设置切源锁、频道锁、父母锁的开关状态CNend
\attention this func can be called for user setting lock on/off. CNcomment:用户可以调用该接口设置切源锁、频道锁、父母锁的开关状态CNend
\param lockType:setlock type is system total lock 、source lock、channellock、parentlock
\param 0TV_LOCK_SWITCH_TOTAL . 0:总体锁开关
\param 1TV_LOCK_SWITCH_SRC. 1:切源锁开关
\param 2TV_LOCK_SWITCH_CHANNEL.2:频道锁开关
\param 3TV_LOCK_SWITCH_PARENT. 3:父母锁开关
\param boolean bLock :0lock off 1 lock on
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setLockEnable(int lockType, bool bLock) = 0;
/**
\brief getLockEnable. CNcomment获取切源锁、频道锁、父母锁的开关状态CNend
\attention this func can be called for user getting lock on/off. CNcomment:用户可以调用该接口获取切源锁、频道锁、父母锁的开关状态CNend
\param lockType:setlock type is system total lock 、source lock、channellock、parentlock
\param 0TV_LOCK_SWITCH_TOTAL . 0:总体锁开关
\param 1TV_LOCK_SWITCH_SRC. 1:切源锁开关
\param 2TV_LOCK_SWITCH_CHANNEL.2:频道锁开关
\param 3TV_LOCK_SWITCH_PARENT. 3:父母锁开关
\retval boolean :0lock off 1 lock on
\see \n
CNcomment:CNend
*/
virtual bool getLockEnable(int lockType) = 0;
/**
\brief setPwdStatus. CNcomment设置切源锁、频道锁、父母锁的密码输入是否正确CNend
\attention this func can be called for user setting lock on/off. CNcomment:用户可以调用该接口设置切源锁、频道锁、父母锁的密码输入是否正确CNend
\param lockType:setlock type is system total lock 、source lock、channellock、parentlock
\param 0TV_LOCK_SRC . 0:切源锁开关
\param 1TV_LOCK_CHANNEL. 1:频道锁开关
\param 2TV_LOCK_PARENT. 2:父母锁开关
\param boolean bCurrect :0pwd not currect 密码不对 1 pwd currect 密码正确
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setPwdStatus(int lockMode, bool bCurrect) = 0;
/**
\brief getPwdStatus. CNcomment获取切源锁、频道锁、父母锁的密码输入是否正确CNend
\attention this func can be called for user getting lock on/off. CNcomment:用户可以调用该接口获取切源锁、频道锁、父母锁的密码输入是否正确CNend
\param lockType:setlock type is system total lock 、source lock、channellock、parentlock
\param 0TV_LOCK_SRC . 0:切源锁开关
\param 1TV_LOCK_CHANNEL. 1:频道锁开关
\param 2TV_LOCK_PARENT. 2:父母锁开关
\retval boolean bCurrect :0pwd not currect 密码不对 1 pwd currect 密码正确
\see \n
CNcomment:CNend
*/
virtual bool getPwdStatus(int lockMode) = 0;
/**
\brief setSrcLockEnable. CNcomment设置切源锁对应源的开关状态CNend
\attention this func can be called for user setting lock on/off. CNcomment:用户可以调用该接口设置切源锁锁定相对应的source CNend
\param[in] source:setlock type is system total lock 、source lock、channellock、parentlock
\param TV_SRC_ATV -> 0;
\param TV_SRC_DVBC -> 1;
\param TV_SRC_DTMB -> 2;
\param TV_SRC_CVBS1 -> 3;
\param TV_SRC_CVBS2 -> 4;
\param TV_SRC_CVBS3 -> 5;
\param TV_SRC_VGA -> 6;
\param TV_SRC_YPBPR1 -> 7;
\param TV_SRC_YPBPR2 -> 8;
\param TV_SRC_HDMI1 -> 9;
\param TV_SRC_HDMI2 -> 10;
\param TV_SRC_HDMI3 -> 11;
\param TV_SRC_HDMI4 -> 12;
\param TV_SRC_MEDIA -> 13;
\param TV_SRC_MEDIA2 -> 14;
\param TV_SRC_SCART1 -> 15;
\param TV_SRC_SCART2 -> 16;
\param TV_SRC_AUTO -> 17;
\param TV_SRC_DVBT -> 18;
\param TV_SRC_ATSC -> 19;
\param TV_SRC_DVBS -> 20;
\param TV_SRC_ISDBT -> 21;
\param[in] boolean bLock :0unlock 1 lock
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setSrcLockEnable(int source, bool bLock) = 0;
/**
\brief getSrcLockEnable. CNcomment获取切源锁对应源的开关状态CNend
\attention this func can be called for user getting lock on/off. CNcomment:用户可以调用该接口获取切源锁锁定相对应的source CNend
\param source:setlock type is system total lock 、source lock、channellock、parentlock
\param TV_SRC_ATV -> 0;
\param TV_SRC_DVBC -> 1;
\param TV_SRC_DTMB -> 2;
\param TV_SRC_CVBS1 -> 3;
\param TV_SRC_CVBS2 -> 4;
\param TV_SRC_CVBS3 -> 5;
\param TV_SRC_VGA -> 6;
\param TV_SRC_YPBPR1 -> 7;
\param TV_SRC_YPBPR2 -> 8;
\param TV_SRC_HDMI1 -> 9;
\param TV_SRC_HDMI2 -> 10;
\param TV_SRC_HDMI3 -> 11;
\param TV_SRC_HDMI4 -> 12;
\param TV_SRC_MEDIA -> 13;
\param TV_SRC_MEDIA2 -> 14;
\param TV_SRC_SCART1 -> 15;
\param TV_SRC_SCART2 -> 16;
\param TV_SRC_AUTO -> 17;
\param TV_SRC_DVBT -> 18;
\param TV_SRC_ATSC -> 19;
\param TV_SRC_DVBS -> 20;
\param TV_SRC_ISDBT -> 21;
\retval boolean bLock :0unlock 1 lock
\see \n
CNcomment:CNend
*/
virtual bool getSrcLockEnable(int source) = 0;
/**
\brief setParentLock. CNcomment设置父母锁对应系统的等级及锁定内容CNend
\attention this func can be called for user setting lock on/off. CNcomment:用户可以调用该接口设置父母锁对应系统的等级及锁定内容 CNend
\param system:parent lock system type
\param 0: TV_VCHIP_SYSTEM_MPA;
\param 1: TV_VCHIP_SYSTEM_USTV;
\param 2: TV_VCHIP_SYSTEM_CAN_ENG;
\param 3: TV_VCHIP_SYSTEM_CAN_FRE;
\param ArrayList<Integer>
TV_VCHIP_SYSTEM_MPA
TV_VCHIP_SYSTEM_CAN_ENG
TV_VCHIP_SYSTEM_CAN_FRE
list: lock rating
TV_VCHIP_SYSTEM_USTV
list: lock rating and CATEGORY
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setParentLock(int system, IntegerList *list) = 0;
/**
\brief getParentLock. CNcomment获取父母锁对应系统的等级及锁定内容CNend
\attention this func can be called for user getting lock on/off. CNcomment:用户可以调用该接口获取父母锁对应系统的等级及锁定内容 CNend
\param system:parent lock system type
\param 0: TV_VCHIP_SYSTEM_MPA;
\param 1: TV_VCHIP_SYSTEM_USTV;
\param 2: TV_VCHIP_SYSTEM_CAN_ENG;
\param 3: TV_VCHIP_SYSTEM_CAN_FRE;
\retval ArrayList<Integer>
TV_VCHIP_SYSTEM_MPA
TV_VCHIP_SYSTEM_CAN_ENG
TV_VCHIP_SYSTEM_CAN_FRE
list: lock rating
TV_VCHIP_SYSTEM_USTV
list: lock rating and CATEGORY
\see \n
CNcomment:CNend
*/
virtual int getParentLock(int system, IntegerList *list) = 0;
/**
\brief setDtvLockEnable. CNcomment设置DTV下信源锁、频道锁、父母锁的开关状态CNend
\attention this func can be called for user to set dtv lock on/off. CNcomment:用户可以调用该接口设置DTV下信源锁、频道锁、父母锁的开关状态CNend
\param lockType:setlock type is source lock、channellock、parentlock
\param 0MW_LOCK_SRC. 0:信源锁开关
\param 1MW_LOCK_CHANNEL. 1:频道锁开关
\param 2MW_LOCK_PARENT. 2:父母锁开关
\param boolean bLock :0lock off 1 lock on
\retval -1:failure. CNcomment:-1 失败CNend
CNcomment:CNend
*/
virtual int setDTVLockEnable(int lockType, bool bEnable) = 0;
/**
\brief setDtvLockEnable. CNcomment获取DTV锁状态CNend
\attention this func can be called for user to get dtv lock on/off.
CNcomment:用户可以调用该接口获取DTV锁是否生效CNend
\retval :true:Enable, false: Disable
CNcomment:CNend
*/
virtual bool getDTVLockEnable() = 0;
/**
\brief setDTVLockDefaultStatus. CNcomment设置DTV下锁的默认状态CNend
\attention this func can be called for user to set default status of dtv lock .
CNcomment:用户可以调用该接口设置DTV下锁的默认状态CNend
\param lockStatus:lockStatus is disable、enable、null
\param 0MW_LOCK_STATUS_DISABLE. 0:当前未有锁使能
\param 1MW_LOCK_STATUS_ENABLE. 1:当前有锁使能
\param 2MW_LOCK_STATUS_NULL. 2:默认状态,等待置位
\retval -1:failure. CNcomment:-1 失败CNend
CNcomment:CNend
*/
virtual int setDTVLockDefaultStatus(int lockStatus) = 0;
/**
\brief setCIShowEnable. CNcomment设置CI规格下码流显示的使能状态CNend
\attention this func can be called for user to set the enable status of
the stream display under the CI specification.
CNcomment:用户可以调用该接口设置CI规格下码流显示的使能状态CNend
\param boolean: ture: enable, false: disable.
\retval -1:failure. CNcomment:-1 失败CNend
CNcomment:CNend
*/
virtual int setCIShowEnable(bool enable) = 0;
/**
\brief setParentUnRating. CNcomment设置父母锁 unrating 内容为锁定/不锁定CNend
\attention this func can be called for user setting unrating lock on/off.
CNcomment:用户可以调用该接口设置父母锁 unrating 内容为锁定/不锁定 CNend
\param boolean bLimit 0 unrating not lock 1 unrating lock
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setParentUnRating(bool bLimit) = 0;
/**
\brief getParentUnRating. CNcomment获取父母锁 unrating 内容为锁定/不锁定CNend
\attention this func can be called for user getting unrating lock on/off.
CNcomment:用户可以调用该接口获取父母锁 unrating 内容为锁定/不锁定 CNend
\retval boolean bLimit 0 unrating not lock 1 unrating lock
\see \n
CNcomment:CNend
*/
virtual bool getParentUnRating() = 0;
/**
\brief Restore picture Default. CNcomment:恢复图像出厂设置CNend
\attention this func can be called for user restoring picture default.
CNcomment:用户可以调用该接口恢复图像出厂设置CNend
\param CNcomment:CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int restorePic() = 0;
/**
\brief Restore Audio. CNcomment:恢复声音出厂设置CNend
\attention this func can be called for user restoring audio default.
CNcomment:用户可以调用该接口恢复声音出厂设置CNend
\param CNcomment:CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int restoreAud() = 0;
/**
\brief Restore system Default. CNcomment:恢复系统出厂设置CNend
\attention this func can be called for user restoring system default.
CNcomment:用户可以调用该接口恢复系统出厂设置CNend
\param CNcomment:CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int restoreSys() = 0;
/**
\brief getEepromData. CNcomment在EEPROM中指定地址写入一个字节 CNend
\attention this func can be called for user wirte one byte to Eeprom.
CNcomment:用户可以调用该接口指定地址写入一个字节 CNend
\param int address 地址
\param int Data 一字节数据
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setEepromData(int addr, int data) = 0;
/**
\brief getEepromData. CNcomment获取EEPROM中指定地址的一个字节数据 CNend
\attention this func can be called for user read one byte on Eeprom.
CNcomment:用户可以调用该接口获取EEPROM中指定地址的一个字节数据 CNend
\param int address 地址
\retval int Data 一字节数据
\see \n
CNcomment:CNend
*/
virtual int getEepromData(int addr) = 0;
/**
\brief Enable AP Standby onOff. CNcomment:使能AP待机开关CNend
\attention this func can be called for user enabling APStandby on/off.
CNcomment:用户可以调用该接口控制AP待机开关CNend
\param boolean onoff, TRUE:on,FALSE:off. CNcomment:AP待机开关, TRUE:开FALSE:关 CNend
\retval 0 :success. CNcomment:0 成功CNend
\retval -1:failure. CNcomment:-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int enableAPStandby(bool onoff) = 0;
/**
\brief get AP Standby Enable. CNcomment:获取AP待机状态CNend
\attention this func can be called for user getting AP Standby Enable.
CNcomment:用户可以调用该接口获取AP待机状态CNend
\param CNcomment:CNend
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:开FALSE:关 CNend
\see \n
CNcomment:CNend
*/
virtual bool isAPStandbyEnable() = 0;
/**
\brief isCapabilitySupport. CNcomment:获取芯片对某种功能的支持CNend
\attention this func can be called for user getting if chip support the capability.
CNcomment:用户可以调用该接口获芯片是否支持某种功能 CNcomment
\param TV_CHIP_CAPABILITY_E capability, enum of chip capability
\param 0 : TV_CHIP_CAP_DOLBY
\param 1 : TV_CHIP_CAP_DTS // support SRS.
\param 2 : TV_CHIP_CAP_ADVCA
\param 3 : TV_CHIP_CAP_MACROVISION
\param 4 : TV_CHIP_CAP_DD
\param 5 : TV_CHIP_CAP_DBX
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:开FALSE:关 CNend
\see \n
CNcomment:CNend
*/
virtual bool isCapabilitySupport(TV_CHIP_CAPABILITY_E capability) = 0;
/**
\brief setPowerSaveMode. CNcomment:注册/注销低功耗轻待机模式CNend
\attention this func can be set Power Save Mode. CNcomment:用户可以调用该接口注册/注销低功耗轻待机模式CNcomment
\param TV_POWER_SAVE_MODE_E enMode, enum of Power Save Mode
\param 0 : TV_POWER_SAVE_MODE_NORMAL
\param 1 : TV_POWER_SAVE_MODE_POWERSAVE
\retval int, 0:success ,-1:failed. CNcomment:整型,0:设置成功,-1:设置失败 CNend
\see \n
CNcomment:CNend
*/
virtual int setPowerSaveMode(TV_POWER_SAVE_MODE_E enMode) = 0;
/**
\brief getPowerSaveMode. CNcomment:获取低功耗轻待机模式CNend
\attention this func can be get Power Save Mode. CNcomment:用户可以调用该接口获取低功耗轻待机模式CNcomment
\param CNcomment:CNend
\retval 0: TV_POWER_SAVE_MODE_NORMAL
\retval 1: TV_POWER_SAVE_MODE_POWERSAVE
\see \n
CNcomment:CNend
*/
virtual int getPowerSaveMode() = 0;
/**
\brief setEPGEnable. CNcomment设置EPG开关状态CNend
\attention this func can be called for user setting EPG on/off. CNcomment:用户可以调用该接口设置EPG开关状态CNend
\param bool bEnable :0recording (PVR) off 1 recording (PVR) on
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setEPGEnable(bool bEnable) = 0;
/**
\brief getEPGEnable. CNcomment获取EPG开关状态CNend
\attention this func can be called for user getting EPG on/off. CNcomment:用户可以调用该接口获取EPG开关状态CNend
\param CNcomment:CNend
\retval 0:off ,1:on
\see \n
CNcomment:CNend
*/
virtual bool getEPGEnable() = 0;
/**
\brief setAutoUpdateProgEnable. CNcomment设置自动更新节目开关状态CNend
\attention this func can be called for user setting auto update prog on/off. CNcomment:用户可以调用该接口设置自动更新节目开关状态CNend
\param bool bEnable :0auto update prog off 1 auto update prog on
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setAutoUpdateProgEnable(bool bEnable) = 0;
/**
\brief getAutoUpdateProgEnable. CNcomment获取自动更新节目开关状态CNend
\attention this func can be called for user getting recording (PVR) on/off. CNcomment:用户可以调用该接口获取自动更新节目开关状态CNend
\param CNcomment:CNend
\retval 0:off ,1:on
\see \n
CNcomment:CNend
*/
virtual bool getAutoUpdateProgEnable() = 0;
/**
\brief setPvrLedEnable. CNcomment设置PVR指示灯开关状态CNend
\attention this func can be called for user getting recording (PVR) on/off. CNcomment:用户可以调用该接口设置PVR指示灯开关状态CNend
\param 0:off ,1:onCNcomment:CNend
\retval
\see \n
CNcomment:CNend
*/
virtual int setPVRLedEnable(bool enable)= 0;
/**
\brief SetWakeupTimeOutBG. CNcomment设置定时唤醒
\attention this func can be called for user setting wakeup timeout. CNcomment:用户可以调用该接口设置定时唤醒模式
\param CNcomment:CNend
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int SetWakeupTimeOutBG() = 0;
/**
\brief setWakeupTimeOutVolume. CNcomment设置定时唤醒音量
\attention this func can be called for user setting wakeup timeout volume. CNcomment:用户可以调用该接口设置定时唤醒音量
\param volume:Wakeup timeout volume value, range [0-100]. CNcomment:定时唤醒音量的大小, 范围[0-100]CNend
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int setWakeupTimeOutVolume(int volume) = 0;
/**
\brief getWakeupTimeOutVolume. CNcomment获取定时唤醒音量
\attention this func can be called for user getting wakeup timeout Volume. CNcomment:用户可以调用该接口获取定时唤醒音量的大小CNend
\param CNcomment:CNend
\retval Wakeup timeout volume value, range [0-100]. CNcomment:定时唤醒音量的大小, 范围[0-100]CNend
\see \n
CNcomment:CNend
*/
virtual int getWakeupTimeOutVolume() = 0;
/**
\brief UpdateBootLogo. CNcomment更新boot logo
\attention this func can be called for user update boot logo. CNcomment:用户可以调用该接口更新boot logoCNend
\param string :filepath CNcomment:CNend
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
\see \n
CNcomment:CNend
*/
virtual int UpdateBootLogo(const char *file) = 0;
};
}; // namespace android
/* * @} */ /* * <!-- ==== API declaration end ==== */
#endif