Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
  }
Ejemplo n.º 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;
  }
Ejemplo n.º 6
0
 public void dtvReset() {
   // TODO Auto-generated method stub
   mChannelInfoMagager.clearChannelDB();
 }
Ejemplo n.º 7
0
 /* added by zhangWei set favorite */
 public void channelFav(int Index, Boolean isFav) {
   mChannelInfoMagager.setFav(Index, isFav);
 }
Ejemplo n.º 8
0
 public synchronized void channelSkip(int Index, Boolean isSkip) {
   mChannelInfoMagager.skipChannel(Index, isSkip);
 }
Ejemplo n.º 9
0
  public void channelSwap(int iSrcIndex, int iDestIndex) {

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