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