Home
last modified time | relevance | path

Searched refs:testChannelId (Results 1 – 2 of 2) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java191 final long testChannelId = 1; in testCurrentProgramListener() local
193 int index = stub.getIndex(mClock.currentTimeMillis(), testChannelId); in testCurrentProgramListener()
196 long nextProgramStartTimeMs = stub.getStartTimeMs(index + 1, testChannelId); in testCurrentProgramListener()
207 mProgramDataManager.addOnCurrentProgramUpdatedListener(testChannelId, listener); in testCurrentProgramListener()
213 assertThat(listener.updatedChannelId).isEqualTo(testChannelId); in testCurrentProgramListener()
214 Program currentProgram = mProgramDataManager.getCurrentProgram(testChannelId); in testCurrentProgramListener()
222 final long testChannelId = 1; in testContentProviderUpdate() local
228 mProgramDataManager.getPrograms(testChannelId, mClock.currentTimeMillis()); in testContentProviderUpdate()
234 TvContract.buildChannelUri(testChannelId), in testContentProviderUpdate()
241 programList = mProgramDataManager.getPrograms(testChannelId, mClock.currentTimeMillis()); in testContentProviderUpdate()
[all …]
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java324 long testChannelId = Constants.UNIT_TEST_CHANNEL_COUNT + 1; in testChannelListChanged() local
325 ChannelInfo testChannelInfo = ChannelInfo.create(getTargetContext(), (int) testChannelId); in testChannelListChanged()
326 testChannelId = Constants.UNIT_TEST_CHANNEL_COUNT + 1; in testChannelListChanged()
337 mChannelDataManager.addChannelListener(testChannelId, channelListener); in testChannelListChanged()
339 mContentProvider.simulateUpdate(testChannelId, newName); in testChannelListChanged()
349 assertThat(updatedChannel.getId()).isEqualTo(testChannelId); in testChannelListChanged()
358 mContentProvider.simulateDelete(testChannelId); in testChannelListChanged()