Home
last modified time | relevance | path

Searched refs:mProgramManager (Results 1 – 8 of 8) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/guide/
DProgramTableAdapterTest.java55 private ProgramManager mProgramManager; field in ProgramTableAdapterTest
70 mProgramManager = in setup()
81 Mockito.when(mProgramGuide.getProgramManager()).thenReturn(mProgramManager); in testOnTableEntryChanged()
91 mProgramManager.setChannels(buildChannelForTesting(1, 2, 3)); in testOnTableEntryChanged()
92 assertThat(mProgramManager.getChannelCount()).isEqualTo(3); in testOnTableEntryChanged()
95 mProgramManager.resetChannelListWithGenre(1); in testOnTableEntryChanged()
96 assertThat(mProgramManager.getChannelCount()).isEqualTo(1); in testOnTableEntryChanged()
97 assertThat(mProgramManager.getChannelIndex(2)).isEqualTo(-1); in testOnTableEntryChanged()
/packages/apps/TV/src/com/android/tv/guide/
DProgramRow.java40 private ProgramManager mProgramManager; field in ProgramRow
135 long toMillis = mProgramManager.getToUtcMillis(); in focusSearchAccessibility()
147 long fromMillis = mProgramManager.getFromUtcMillis(); in focusSearch()
148 long toMillis = mProgramManager.getToUtcMillis(); in focusSearch()
210 mProgramManager.shiftTime(timeToScroll); in scrollByTime()
307 mProgramManager = programGuide.getProgramManager(); in setProgramGuide()
313 GuideUtils.convertPixelToMillis(scrollOffset) + mProgramManager.getStartTime(); in resetScroll()
317 : mProgramManager.getProgramIndexAtTime(mChannel.getId(), startTime); in resetScroll()
321 TableEntry entry = mProgramManager.getTableEntry(mChannel.getId(), position); in resetScroll()
324 mProgramManager.getStartTime(), entry.entryStartUtcMillis) in resetScroll()
DProgramListAdapter.java40 private final ProgramManager mProgramManager; field in ProgramListAdapter
50 mProgramManager = programGuide.getProgramManager(); in ProgramListAdapter()
59 Channel channel = mProgramManager.getChannel(mChannelIndex); in onTableEntriesUpdated()
71 return mProgramManager.getTableEntryCount(mChannelId); in getItemCount()
81 return mProgramManager.getTableEntry(mChannelId, position).getId(); in getItemId()
86 TableEntry tableEntry = mProgramManager.getTableEntry(mChannelId, position); in onBindViewHolder()
DProgramGuide.java102 private final ProgramManager mProgramManager; field in ProgramGuide
194 mProgramManager = in ProgramGuide()
235 GenreListAdapter genreListAdapter = new GenreListAdapter(mActivity, mProgramManager, this); in ProgramGuide()
303 mGrid.initialize(mProgramManager); in ProgramGuide()
478 mProgramManager.resetChannelListWithGenre(mLastRequestedGenreId); in ProgramGuide()
539 mProgramManager.programGuideVisibilityChanged(true); in show()
544 mProgramManager.updateInitialTimeRange(mStartUtcTime, mStartUtcTime + mViewPortMillis); in show()
545 mProgramManager.addListener(mProgramManagerListener); in show()
624 mProgramManager.programGuideVisibilityChanged(false); in hide()
625 mProgramManager.removeListener(mProgramManagerListener); in hide()
[all …]
DGenreListAdapter.java37 private final ProgramManager mProgramManager; field in GenreListAdapter
43 mProgramManager = programManager; in GenreListAdapter()
44 mProgramManager.addListener( in GenreListAdapter()
57 List<Integer> filteredGenreIds = mProgramManager.getFilteredGenreIds(); in getItemCount()
72 List<Integer> filteredGenreIds = mProgramManager.getFilteredGenreIds(); in onBindViewHolder()
DProgramTableAdapter.java86 private final ProgramManager mProgramManager; field in ProgramTableAdapter
132 mProgramManager = programGuide.getProgramManager(); in ProgramTableAdapter()
185 mProgramManager.addListener( in ProgramTableAdapter()
193 mProgramManager.addTableEntryChangedListener(this); in ProgramTableAdapter()
197 if (DEBUG) Log.d(TAG, "update " + mProgramManager.getChannelCount() + " channels"); in update()
199 mProgramManager.removeTableEntriesUpdatedListener(listener); in update()
202 for (int i = 0; i < mProgramManager.getChannelCount(); i++) { in update()
205 mProgramManager.addTableEntriesUpdatedListener(listAdapter); in update()
253 int channelIndex = mProgramManager.getChannelIndex(tableEntry.channelId); in onTableEntryChanged()
254 int pos = mProgramManager.getProgramIdIndex(tableEntry.channelId, tableEntry.getId()); in onTableEntryChanged()
[all …]
DProgramGrid.java74 private ProgramManager mProgramManager; field in ProgramGrid
142 mProgramManager.addListener(mProgramManagerListener); in onAttachedToWindow()
149 mProgramManager.removeListener(mProgramManagerListener); in onDetachedFromWindow()
209 mProgramManager = programManager; in initialize()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java157 private final ProgramManager mProgramManager; field in TimeShiftManager
190 mProgramManager = new ProgramManager(programDataManager); in TimeShiftManager()
216 long oldestProgramStartTime = mProgramManager.getOldestProgramStartTime(); in getRecordStartTimeMs()
317 mProgramManager.getProgramAt( in jumpToPrevious()
343 mProgramManager.getProgramAt(mCurrentPositionMediator.mCurrentPositionMs); in jumpToNext()
347 Program nextProgram = mProgramManager.getProgramAt(currentProgram.getEndTimeUtcMillis()); in jumpToNext()
489 Program program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
492 mProgramManager.addPlaceholderProgramsAt(timeMs); in getProgramAt()
493 program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
500 mProgramManager.onAvailabilityChanged( in onAvailabilityChanged()
[all …]