Home
last modified time | relevance | path

Searched refs:mWatchedHistoryManager (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/data/
DWatchedHistoryManagerTest.java43 private WatchedHistoryManager mWatchedHistoryManager; field in WatchedHistoryManagerTest
52 mWatchedHistoryManager = new WatchedHistoryManager(getContext(), MAX_HISTORY_SIZE); in setUp()
54 mWatchedHistoryManager.setListener(mListener); in setUp()
60 mWatchedHistoryManager.start(); in startAndWaitForComplete()
66 assertFalse(mWatchedHistoryManager.isLoaded()); in testIsLoaded()
68 assertTrue(mWatchedHistoryManager.isLoaded()); in testIsLoaded()
78 mWatchedHistoryManager.logChannelViewStop(channel, time, duration); in testLogChannelViewStop()
80 WatchedRecord record = mWatchedHistoryManager.getRecord(0); in testLogChannelViewStop()
82 mWatchedHistoryManager.getRecordFromSharedPreferences(0); in testLogChannelViewStop()
99 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration); in testCircularHistoryQueue()
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java88 private WatchedHistoryManager mWatchedHistoryManager; field in RecommendationDataManager
285 mWatchedHistoryManager = new WatchedHistoryManager(mContext); in onStart()
286 mWatchedHistoryManager.setListener(this); in onStart()
287 mWatchedHistoryManager.start(); in onStart()
389 : mWatchedHistoryManager.getWatchedHistory()) { in onLoadFinished()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java117 private WatchedHistoryManager mWatchedHistoryManager; field in TunableTvView
446 if (mWatchedHistoryManager != null && !mCurrentChannel.isPassthrough()) { in stop()
447 mWatchedHistoryManager.logChannelViewStop(mCurrentChannel, in stop()
497 mWatchedHistoryManager = watchedHistoryManager; in setWatchedHistoryManager()
533 if (mWatchedHistoryManager != null && !mCurrentChannel.isPassthrough()) { in tuneTo()
534 mWatchedHistoryManager.logChannelViewStop(mCurrentChannel, in tuneTo()