public DtvOpFeature getOperatorFeature() { DtvOpFeature mDtvOpFeature = null; OPFeatureInfo opFeature = mDTVSetting.getOPFeature(); if (opFeature != null) { mDtvOpFeature = new DtvOpFeature(opFeature); Log.i( TAG, "LL opFeature.miStartProgramIndex = " + opFeature.miStartProgramIndex + ",mDtvOpFeature.mStartChannelIndex = " + mDtvOpFeature.getStartChannelIndex() + ", opFeature.mMainFreqList.length = " + opFeature.mMainFreqList.length + ", opFeature.mbEpgOnlyOneFreq = " + opFeature.mbEpgOnlyOneFreq + ",opFeature.mEpgFreq = " + opFeature.mbEpgOnlyOneFreq + opFeature.mEpgFreq + ",opFeature.hidden = " + opFeature.mbHideListScan); int i = 0; for (i = 0; i < opFeature.mMainFreqList.length; i++) { Log.i(TAG, "LL mMainFreqList[" + i + "]=" + opFeature.mMainFreqList[i]); } } return mDtvOpFeature; }
public DtvTunerInfo getOPMainTunerInfo(int iOperatorCode) { DtvTunerInfo chOpTunerInfo = null; DVBCCarrier[] opMainCarrierInfo = null; opMainCarrierInfo = mDTVSetting.getDVBCOPMainFreqList(); if (null != opMainCarrierInfo && opMainCarrierInfo.length > 0) { Log.i( TAG, "LL getOPMainTunerInfo>>" + ", miFrequencyK:" + opMainCarrierInfo[0].miFrequencyK + ", miSymbolRateK:" + opMainCarrierInfo[0].miSymbolRateK + ", miQamMode:" + opMainCarrierInfo[0].miQamMode); chOpTunerInfo = new DtvTunerInfo( opMainCarrierInfo[0].miFrequencyK, opMainCarrierInfo[0].miSymbolRateK, opMainCarrierInfo[0].miQamMode); } else { Log.e( TAG, "LL getOPMainTunerInfo>>( null == opMainCarrierInfo||opMainCarrierInfo.length<=0)"); chOpTunerInfo = new DtvTunerInfo(235000, 6875, 5); } return chOpTunerInfo; }
public List<DtvTunerInfo> getOPMainTunerList(int iOperatorCode) { List<DtvTunerInfo> chOpTunerList = new ArrayList<DtvTunerInfo>(); DVBCCarrier[] opMainCarrierInfo = null; opMainCarrierInfo = mDTVSetting.getDVBCOPMainFreqList(); if (opMainCarrierInfo != null) { Log.i(TAG, "LL getOPMainTunerList>>opMainCarrierInfo.length: " + opMainCarrierInfo.length); for (int i = 0; i < opMainCarrierInfo.length; i++) { if (opMainCarrierInfo[i] != null) { Log.i( TAG, "LL getOPMainTunerList>>[" + i + "], miFrequencyK:" + opMainCarrierInfo[i].miFrequencyK + ", miSymbolRateK:" + opMainCarrierInfo[i].miSymbolRateK + ", miQamMode:" + opMainCarrierInfo[i].miQamMode); chOpTunerList.add( new DtvTunerInfo( opMainCarrierInfo[i].miFrequencyK, opMainCarrierInfo[i].miSymbolRateK, opMainCarrierInfo[i].miQamMode)); } } } else { Log.e(TAG, "LL getOPMainTunerList>>(opMainCarrierInfo == null) "); } return chOpTunerList; }
/** @return */ public String getTVOSversion() { InterTVOSVersion tvos = mDTVSetting.getTVOSVersion(); if (null != tvos) { return tvos.toString(); } else { Log.i(TAG, "getTVOSversion() is null"); } return ""; }
public List<DtvOperator> getOperatorListBySourceID(int sourceID) { // TODO Auto-generated method stub List<DtvOperator> listDtvOperator = new ArrayList<DtvOperator>(); Operator[] operator = mDTVSetting.getOPListBySourceID(sourceID); Log.i(TAG, "LL getOperatorListBySourceID()>> operator = " + operator); if (operator != null) { for (int i = 0; i < operator.length; i++) { Log.i( TAG, "LL getOperatorListBySourceID()>>operatorName = " + operator[i].mstrOperatorName + operator[i].province + operator[i].city); DtvOperator dtvOperator = new DtvOperator(operator[i]); listDtvOperator.add(dtvOperator); } } return listDtvOperator; }
public void init() { mDTVPlayer = new DTVPlayer(null); Log.i( TAG, "LL DtvInterface>>init()Call Function mDTVPlayer.prepare() begin in Thread" + Thread.currentThread()); // mDTVPlayer.prepare(); //2015-4-8 Log.i(TAG, "LL DtvInterface>>init()Call Function mDTVPlayer.prepare() end"); mPlay = mDTVPlayer.play; mEpg = mDTVPlayer.epg; mScan = mDTVPlayer.scan; mCicam = mDTVPlayer.cicam; startControl = mDTVPlayer.startControl; mChannelManager = new ChannelManager(null); mChannelInfoMagager = mChannelManager.channelMananger; mCarrierInfoManager = mChannelManager.carrierMananger; mDTVSetting = DTVSettings.getInstance(null); mTimerManager = TimerManager.getInstance(null); Log.i(TAG, "LL DtvInterface>>init()Call Function end"); }
public DtvOperator loadCurOperator() { // int i; DtvOperator dtvOperator = null; Operator operator = null; // for(i = 0;i < 10000; i++) { operator = mDTVSetting.getOP(); // Log.e(TAG,"LL >>loadCurOperator>>(pang == dtvOperator==)" + i); } if (null != operator) { Log.i(TAG, "LL loadCurOperator()>>operator = " + operator.mstrOperatorName); dtvOperator = new DtvOperator(operator); if (dtvOperator == null) { Log.e(TAG, "LL >>loadCurOperator>>(null == dtvOperator)"); } operator = null; } else { Log.e(TAG, "LL >>loadCurOperator>>(null == operator)"); } return dtvOperator; }
public void updateKeyboardConvertFlag(boolean flag) { Log.i(TAG, "LL updateKeyboardConvertFlag()>>flag = " + flag); mDTVSetting.updateKeyboardConvertFlag(flag); }
public boolean enterScreenSaver() { boolean isEnter = false; isEnter = mDTVSetting.enterScreenSaver(); return isEnter; }
public void setAudioMode(int index) { mDTVSetting.setSoundMode(index); }
// ////////////////////fengy 2014-10-29 ///////// public void SimulateKey(final int KeyCode) { mDTVSetting.SimulateKey(KeyCode); }
public boolean startInputSource(int channelNum) { boolean succes = false; succes = mDTVSetting.startInputSource(channelNum); return succes; }
public boolean getSystem3D() { return mDTVSetting.getSystem3D(); }
public String getSWVersion() { String version = null; version = mDTVSetting.getSWVersion(); return version; }
public boolean returnLastInputSource() { boolean success = false; success = mDTVSetting.returnLastInputSource(); return success; }
public void saveCurOperator(int opCode) { Log.i(TAG, "LL saveCurOperator(int)>>opCode = " + opCode); mDTVSetting.setOP(opCode); }
public DtvVersion getDTVVersionInfo() { VersionInfo dtvVsersionl = null; dtvVsersionl = mDTVSetting.getVersion(); return new DtvVersion(dtvVsersionl); }
public void setDtvLanguage(String uiLanguage) { mDTVSetting.setAudioLanguage(uiLanguage); }
public void enterCommonSetting() { mDTVSetting.enterCommonSetting(); }
public boolean isKeyboardKey(int keyCode, KeyEvent event) { boolean isKeyboardKey = false; isKeyboardKey = mDTVSetting.isKeyboardKey(keyCode, event); return isKeyboardKey; }