示例#1
0
 public int getBootChannelNum(int channelIndex) {
   int channelNum = 0;
   DTVChannelDetailInfo channelDetailInfo = null;
   channelDetailInfo = mChannelInfoMagager.getChanneDetailInfo(channelIndex);
   if (null != channelDetailInfo) {
     channelNum = channelDetailInfo.miChannelnumber;
   }
   return channelNum;
 }
示例#2
0
 public DtvAudioTrack getAudioTrack(int programIndex) {
   DtvAudioTrack audioTrack = null;
   AudioTrack audio = null;
   DTVChannelDetailInfo channelDetailInfo = null;
   channelDetailInfo = mChannelInfoMagager.getChanneDetailInfo(programIndex);
   if (null != channelDetailInfo) {
     audio = channelDetailInfo.mAudioTrackInfo;
     if (audio != null) {
       audioTrack = new DtvAudioTrack(audio);
     }
   }
   return audioTrack;
 }
示例#3
0
 /**
  * @param channelIndex
  * @return channeltype TV<1> radio<2>
  */
 public int getBootChannelType(int channelIndex) {
   int channelType = ConstServiceType.SERVICE_TYPE_TV;
   DTVChannelDetailInfo channelDetailInfo = null;
   channelDetailInfo = mChannelInfoMagager.getChanneDetailInfo(channelIndex);
   if (null != channelDetailInfo) {
     channelType =
         (channelDetailInfo.miServiceType == ConstServiceType.SERVICE_TYPE_RADIO)
             ? ConstServiceType.SERVICE_TYPE_RADIO
             : ConstServiceType.SERVICE_TYPE_TV;
   }
   Log.i(TAG, "LL getBootChannelType()>>channelType = " + channelType);
   return channelType;
 }
示例#4
0
  /**
   * @param type TV(1) radio(2)
   * @return
   */
  public List<DtvProgram> getDtvChannels(int type) {
    ArrayList<DtvProgram> list;
    int channeltype = DTVConstant.ConstServiceType.SERVICE_TYPE_TV;
    if (type == DTVConstant.ConstServiceType.SERVICE_TYPE_RADIO) {

      channeltype = DTVConstant.ConstServiceType.SERVICE_TYPE_RADIO;
    }
    list = new ArrayList<DtvProgram>();
    DTVChannelBaseInfo[] channels = mChannelInfoMagager.getChannelListByTpye(channeltype);
    if (channels != null) {
      Log.e(TAG, "LL length of channelList is " + channels.length);

      for (DTVChannelBaseInfo chChannel : channels) {
        list.add(new DtvProgram(chChannel));
        Log.i(TAG, "LL chChannel.mstrServiceName = " + chChannel.mstrServiceName);
      }
    }
    return list;
  }
示例#5
0
  /**
   * @param type TV(1) radio(2)
   * @return
   */
  public List<DtvProgram> getWatchedChannelList(int type) {
    ArrayList<DtvProgram> list = new ArrayList<DtvProgram>();
    DTVChannelBaseInfo[] channels =
        mChannelInfoMagager.getChannelListByTpye(CHANNEL_LIST_TYPE_WATCHED);
    if (channels != null) {
      Log.e(
          TAG, "LL getWatchedChannelList()>>length of watched channel list is " + channels.length);

      for (DTVChannelBaseInfo chChannel : channels) {
        // Log.i("YangLiu",
        // chChannel.mstrServiceName+"的miServiceType为:"+chChannel.miServiceType);
        if (chChannel.miServiceType == type) {
          Log.i(
              TAG,
              "LL getWatchedChannelList()>>chChannel.mstrServiceName = "
                  + chChannel.mstrServiceName);
          list.add(new DtvProgram(chChannel));
        }
      }
    }
    return list;
  }
示例#6
0
 public void dtvReset() {
   // TODO Auto-generated method stub
   mChannelInfoMagager.clearChannelDB();
 }
示例#7
0
 /* added by zhangWei set favorite */
 public void channelFav(int Index, Boolean isFav) {
   mChannelInfoMagager.setFav(Index, isFav);
 }
示例#8
0
 public synchronized void channelSkip(int Index, Boolean isSkip) {
   mChannelInfoMagager.skipChannel(Index, isSkip);
 }
示例#9
0
  public void channelSwap(int iSrcIndex, int iDestIndex) {

    mChannelInfoMagager.swapChannel(iSrcIndex, iDestIndex);
  }
示例#10
0
 public DTVChannelDetailInfo getDtvChannelDetailInfo(int channelIndex) {
   DTVChannelDetailInfo channelDetailInfo = null;
   channelDetailInfo = mChannelInfoMagager.getChanneDetailInfo(channelIndex);
   return channelDetailInfo;
 }
示例#11
0
 public void deleteChannel(int ri_ChannelIndex) {
   mChannelInfoMagager.delChannel(ri_ChannelIndex);
 }