public int getBootChannelNum(int channelIndex) { int channelNum = 0; DTVChannelDetailInfo channelDetailInfo = null; channelDetailInfo = mChannelInfoMagager.getChanneDetailInfo(channelIndex); if (null != channelDetailInfo) { channelNum = channelDetailInfo.miChannelnumber; } return channelNum; }
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; }
/** * @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; }
/** * @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; }
/** * @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; }
public void dtvReset() { // TODO Auto-generated method stub mChannelInfoMagager.clearChannelDB(); }
/* added by zhangWei set favorite */ public void channelFav(int Index, Boolean isFav) { mChannelInfoMagager.setFav(Index, isFav); }
public synchronized void channelSkip(int Index, Boolean isSkip) { mChannelInfoMagager.skipChannel(Index, isSkip); }
public void channelSwap(int iSrcIndex, int iDestIndex) { mChannelInfoMagager.swapChannel(iSrcIndex, iDestIndex); }
public DTVChannelDetailInfo getDtvChannelDetailInfo(int channelIndex) { DTVChannelDetailInfo channelDetailInfo = null; channelDetailInfo = mChannelInfoMagager.getChanneDetailInfo(channelIndex); return channelDetailInfo; }
public void deleteChannel(int ri_ChannelIndex) { mChannelInfoMagager.delChannel(ri_ChannelIndex); }