/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RoutineWatchEvaluator.java | 49 Program currentProgram = cr.getCurrentProgram(); in evaluateChannel() local 50 if (currentProgram == null) { in evaluateChannel() 60 long startTimeDiffMsWithCurrentProgram = currentProgram.getStartTimeUtcMillis() in evaluateChannel() 74 currentProgram, watchedProgram, watchedDurationMs); in evaluateChannel() 80 startTimeDiffMsWithCurrentProgram = currentProgram.getStartTimeUtcMillis() in evaluateChannel() 88 currentProgram, watchedProgram, watchedDurationMs); in evaluateChannel() 95 private static double calculateRoutineWatchScore(Program currentProgram, Program watchedProgram, in calculateRoutineWatchScore() argument 97 double timeMatchScore = calculateTimeMatchScore(currentProgram, watchedProgram); in calculateRoutineWatchScore() 99 currentProgram.getTitle(), watchedProgram.getTitle()); in calculateRoutineWatchScore() 101 long diffMs = currentProgram.getStartTimeUtcMillis() in calculateRoutineWatchScore()
|
/packages/apps/TV/src/com/android/tv/ |
D | MediaSessionWrapper.java | 98 void update(boolean blocked, Channel currentChannel, Program currentProgram) { in update() argument 116 if (currentProgram != null) { in update() 117 cardTitleText = currentProgram.getTitle(); in update() 118 posterArtUri = currentProgram.getPosterArtUri(); in update() 127 updatePosterArt(currentChannel, currentProgram, cardTitleText, null, posterArtUri); in update() 150 private void updatePosterArt(Channel currentChannel, Program currentProgram, in updatePosterArt() argument 157 currentProgram, cardTitleText)); in updatePosterArt()
|
D | TimeShiftManager.java | 338 Program currentProgram = mProgramManager.getProgramAt( in jumpToNext() local 340 if (currentProgram == null) { in jumpToNext() 343 Program nextProgram = mProgramManager.getProgramAt(currentProgram.getEndTimeUtcMillis()); in jumpToNext() 446 Program currentProgram = getProgramAt(mCurrentPositionMediator.mCurrentPositionMs); in updateCurrentProgram() local 447 if (!Program.isValid(currentProgram)) { in updateCurrentProgram() 448 currentProgram = null; in updateCurrentProgram() 450 if (!Objects.equals(mCurrentProgram, currentProgram)) { in updateCurrentProgram() 451 if (DEBUG) Log.d(TAG, "Current program has been updated. " + currentProgram); in updateCurrentProgram() 452 mCurrentProgram = currentProgram; in updateCurrentProgram()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ProgramDataManager.java | 376 long channelId, Program currentProgram) { in removePreviousProgramsAndUpdateCurrentProgramInCache() argument 378 if (!Program.isValid(currentProgram)) { in removePreviousProgramsAndUpdateCurrentProgramInCache() 394 if (cachedProgram.getEndTimeUtcMillis() <= currentProgram in removePreviousProgramsAndUpdateCurrentProgramInCache() 402 if (cachedProgram.getStartTimeUtcMillis() < currentProgram in removePreviousProgramsAndUpdateCurrentProgramInCache() 406 currentProgram.getStartTimeUtcMillis())); in removePreviousProgramsAndUpdateCurrentProgramInCache() 407 i.add(currentProgram); in removePreviousProgramsAndUpdateCurrentProgramInCache() 409 i.set(currentProgram); in removePreviousProgramsAndUpdateCurrentProgramInCache() 411 if (currentProgram.getEndTimeUtcMillis() < cachedProgram.getEndTimeUtcMillis()) { in removePreviousProgramsAndUpdateCurrentProgramInCache() 413 i.add(createDummyProgram(currentProgram.getEndTimeUtcMillis(), in removePreviousProgramsAndUpdateCurrentProgramInCache() 421 cachedPrograms.add(currentProgram); in removePreviousProgramsAndUpdateCurrentProgramInCache()
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ProgramDataManagerTest.java | 140 Program currentProgram = mProgramDataManager.getCurrentProgram(channelId); 142 assertTrue(currentProgram.getStartTimeUtcMillis() <= mClock.currentTimeMillis() 143 && mClock.currentTimeMillis() <= currentProgram.getEndTimeUtcMillis()); 201 Program currentProgram = mProgramDataManager.getCurrentProgram(testChannelId); 202 assertProgramEquals(nextProgramStartTimeMs, nextProgramInfo, currentProgram); 203 assertEquals(listener.updatedProgram, currentProgram);
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
D | TunerRecordingSessionWorker.java | 430 PsipData.EitItem currentProgram = getCurrentProgram(items); in updateCaptionTracks() local 431 if (currentProgram == null || !currentProgram.hasCaptionTrack() in updateCaptionTracks() 432 || mCurrenProgram != null && mCurrenProgram.compareTo(currentProgram) == 0) { in updateCaptionTracks() 435 mCurrenProgram = currentProgram; in updateCaptionTracks() 436 mCaptionTracks = new ArrayList<>(currentProgram.getCaptionTracks()); in updateCaptionTracks() 439 + currentProgram); in updateCaptionTracks()
|
D | TunerSessionWorker.java | 803 EitItem currentProgram = getCurrentProgram(); in handleMessage() local 804 if (currentProgram == null) { in handleMessage() 810 if (currentProgram != null && currentProgram.compareTo(item) == 0) { in handleMessage() 1682 EitItem currentProgram = getCurrentProgram(); in getContentRatingOfCurrentProgramBlocked() local 1683 if (currentProgram == null) { in getContentRatingOfCurrentProgramBlocked() 1687 .getRatings(currentProgram.getContentRating()); in getContentRatingOfCurrentProgramBlocked()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramRow.java | 115 View currentProgram = getCurrentProgramView(); in focusCurrentProgram() local 116 if (currentProgram == null) { in focusCurrentProgram() 117 currentProgram = getChildAt(0); in focusCurrentProgram() 120 mChildFocusListener.onChildFocus(null, currentProgram); in focusCurrentProgram()
|
D | ProgramManager.java | 528 Program currentProgram = mProgramDataManager.getCurrentProgram(channel.getId()); in buildGenreFilters() local 529 if (currentProgram != null && currentProgram.getCanonicalGenres() != null) { in buildGenreFilters() 530 for (String genre : currentProgram.getCanonicalGenres()) { in buildGenreFilters()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | ChannelCardView.java | 106 Program currentProgram = in updateProgram() local 108 if (!Objects.equals(currentProgram, mProgram)) { in updateProgram() 109 mProgram = currentProgram; in updateProgram()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrUiHelper.java | 450 Program currentProgram) { in startSeriesSettingsActivity() argument 459 showViewScheduleOptionInDialog, currentProgram); in startSeriesSettingsActivity() 470 showViewScheduleOptionInDialog, currentProgram); in startSeriesSettingsActivity() 492 Program currentProgram) { in startSeriesSettingsActivityInternal() argument 504 intent.putExtra(DvrSeriesSettingsActivity.CURRENT_PROGRAM, currentProgram); in startSeriesSettingsActivityInternal()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TunableTvView.java | 1078 Program currentProgram = mProgramDataManager.getCurrentProgram(mCurrentChannel.getId()); in shouldShowImageForTuning() local 1079 if (currentProgram == null) { in shouldShowImageForTuning() 1083 mParentalControlSettings.getBlockedRating(currentProgram.getContentRatings()); in shouldShowImageForTuning() 1092 Program currentProgram = mProgramDataManager.getCurrentProgram(mCurrentChannel.getId()); in showImageForTuningIfNeeded() local 1093 if (currentProgram != null) { in showImageForTuningIfNeeded() 1094 currentProgram.loadPosterArt(getContext(), getWidth(), getHeight(), in showImageForTuningIfNeeded()
|