Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
  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;
  }
Exemplo n.º 3
0
  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;
  }
Exemplo n.º 4
0
 /** @return */
 public String getTVOSversion() {
   InterTVOSVersion tvos = mDTVSetting.getTVOSVersion();
   if (null != tvos) {
     return tvos.toString();
   } else {
     Log.i(TAG, "getTVOSversion() is null");
   }
   return "";
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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");
 }
Exemplo n.º 7
0
  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;
  }
Exemplo n.º 8
0
 public void updateKeyboardConvertFlag(boolean flag) {
   Log.i(TAG, "LL updateKeyboardConvertFlag()>>flag = " + flag);
   mDTVSetting.updateKeyboardConvertFlag(flag);
 }
Exemplo n.º 9
0
 public boolean enterScreenSaver() {
   boolean isEnter = false;
   isEnter = mDTVSetting.enterScreenSaver();
   return isEnter;
 }
Exemplo n.º 10
0
 public void setAudioMode(int index) {
   mDTVSetting.setSoundMode(index);
 }
Exemplo n.º 11
0
 // ////////////////////fengy 2014-10-29 /////////
 public void SimulateKey(final int KeyCode) {
   mDTVSetting.SimulateKey(KeyCode);
 }
Exemplo n.º 12
0
 public boolean startInputSource(int channelNum) {
   boolean succes = false;
   succes = mDTVSetting.startInputSource(channelNum);
   return succes;
 }
Exemplo n.º 13
0
 public boolean getSystem3D() {
   return mDTVSetting.getSystem3D();
 }
Exemplo n.º 14
0
 public String getSWVersion() {
   String version = null;
   version = mDTVSetting.getSWVersion();
   return version;
 }
Exemplo n.º 15
0
 public boolean returnLastInputSource() {
   boolean success = false;
   success = mDTVSetting.returnLastInputSource();
   return success;
 }
Exemplo n.º 16
0
 public void saveCurOperator(int opCode) {
   Log.i(TAG, "LL saveCurOperator(int)>>opCode = " + opCode);
   mDTVSetting.setOP(opCode);
 }
Exemplo n.º 17
0
 public DtvVersion getDTVVersionInfo() {
   VersionInfo dtvVsersionl = null;
   dtvVsersionl = mDTVSetting.getVersion();
   return new DtvVersion(dtvVsersionl);
 }
Exemplo n.º 18
0
 public void setDtvLanguage(String uiLanguage) {
   mDTVSetting.setAudioLanguage(uiLanguage);
 }
Exemplo n.º 19
0
 public void enterCommonSetting() {
   mDTVSetting.enterCommonSetting();
 }
Exemplo n.º 20
0
 public boolean isKeyboardKey(int keyCode, KeyEvent event) {
   boolean isKeyboardKey = false;
   isKeyboardKey = mDTVSetting.isKeyboardKey(keyCode, event);
   return isKeyboardKey;
 }