public List<TimerInfo> getScheduleEvents(int timerType) { List<TimerInfo> list = new ArrayList<TimerInfo>(); list = mTimerManager.getTimerList(timerType); if (null != list) { Log.i(TAG, "LL getScheduleEvents>>schNum = " + list.size()); } return list; }
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"); }
// 0:本地EPG预约 1:主场景预约 2:欢网预约 public List<TimerInfo> getEPGScheduleEventsByOriginal(int original) { // 2015-3-23 // YangLiu List<TimerInfo> timerInfos = new ArrayList<TimerInfo>(); List<TimerInfo> tempTimerInfos = new ArrayList<TimerInfo>(); tempTimerInfos = mTimerManager.getTimerList(TimerType.EPG_TIMER); // 取得所有EPG预约 if (null != tempTimerInfos) { Log.i(TAG, "LL_Huan getScheduleEvents>>schNum = " + tempTimerInfos.size()); for (TimerInfo timerInfo : tempTimerInfos) { if (timerInfo.mOriginal == original) { // 取得对应mOriginal的预约列表 timerInfos.add(timerInfo); } } } if (timerInfos != null && timerInfos.size() > 0) { Log.i( TAG, "LL getScheduleEvents mOriginal=" + original + ">>schNum = " + tempTimerInfos.size()); } return timerInfos; }
public void delAllScheduleEvents() { mTimerManager.deleteAllTimer(); }
public void delScheduleEvent(TimerInfo timerInfo) { if (null != timerInfo) { Log.i(TAG, "LL delScheduleEvent()>>timerInfo = " + timerInfo); mTimerManager.deleteTimer(timerInfo); } }
public void addScheduleEvent(TimerInfo timerInfo) { if (null != timerInfo) { Log.i(TAG, "LL addScheduleEvent()>>timerInfo = " + timerInfo); mTimerManager.addTimer(timerInfo); } }