示例#1
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;
  }
示例#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;
  }