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; }
// 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; }