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;
 }
Example #10
0
 public void setAudioMode(int index) {
   mDTVSetting.setSoundMode(index);
 }
Example #11
0
 // ////////////////////fengy 2014-10-29 /////////
 public void SimulateKey(final int KeyCode) {
   mDTVSetting.SimulateKey(KeyCode);
 }
Example #12
0
 public boolean startInputSource(int channelNum) {
   boolean succes = false;
   succes = mDTVSetting.startInputSource(channelNum);
   return succes;
 }
Example #13
0
 public boolean getSystem3D() {
   return mDTVSetting.getSystem3D();
 }
Example #14
0
 public String getSWVersion() {
   String version = null;
   version = mDTVSetting.getSWVersion();
   return version;
 }
Example #15
0
 public boolean returnLastInputSource() {
   boolean success = false;
   success = mDTVSetting.returnLastInputSource();
   return success;
 }
Example #16
0
 public void saveCurOperator(int opCode) {
   Log.i(TAG, "LL saveCurOperator(int)>>opCode = " + opCode);
   mDTVSetting.setOP(opCode);
 }
Example #17
0
 public DtvVersion getDTVVersionInfo() {
   VersionInfo dtvVsersionl = null;
   dtvVsersionl = mDTVSetting.getVersion();
   return new DtvVersion(dtvVsersionl);
 }
Example #18
0
 public void setDtvLanguage(String uiLanguage) {
   mDTVSetting.setAudioLanguage(uiLanguage);
 }
Example #19
0
 public void enterCommonSetting() {
   mDTVSetting.enterCommonSetting();
 }
Example #20
0
 public boolean isKeyboardKey(int keyCode, KeyEvent event) {
   boolean isKeyboardKey = false;
   isKeyboardKey = mDTVSetting.isKeyboardKey(keyCode, event);
   return isKeyboardKey;
 }