Searched refs:currentProgram (Results 1 – 7 of 7) sorted by relevance
/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/guide/ |
D | ProgramRow.java | 108 View currentProgram = getCurrentProgramView(); in focusCurrentProgram() local 109 if (currentProgram == null) { in focusCurrentProgram() 110 currentProgram = getChildAt(0); in focusCurrentProgram() 112 updateCurrentFocus(null, currentProgram); in focusCurrentProgram() 261 View currentProgram = getCurrentProgramView(); in onRequestFocusInDescendants() local 262 if (currentProgram != null) { in onRequestFocusInDescendants() 263 return currentProgram.requestFocus(); in onRequestFocusInDescendants()
|
D | ProgramManager.java | 332 Program currentProgram = mProgramDataManager.getCurrentProgram(channel.getId()); in buildGenreFilters() local 333 if (currentProgram != null && currentProgram.getCanonicalGenres() != null) { in buildGenreFilters() 334 for (String genre : currentProgram.getCanonicalGenres()) { in buildGenreFilters()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ProgramDataManager.java | 373 long channelId, Program currentProgram) { in removePreviousProgramsAndUpdateCurrentProgramInCache() argument 375 if (!Program.isValid(currentProgram)) { in removePreviousProgramsAndUpdateCurrentProgramInCache() 391 if (cachedProgram.getEndTimeUtcMillis() <= currentProgram in removePreviousProgramsAndUpdateCurrentProgramInCache() 399 if (cachedProgram.getStartTimeUtcMillis() < currentProgram in removePreviousProgramsAndUpdateCurrentProgramInCache() 403 currentProgram.getStartTimeUtcMillis())); in removePreviousProgramsAndUpdateCurrentProgramInCache() 404 i.add(currentProgram); in removePreviousProgramsAndUpdateCurrentProgramInCache() 406 i.set(currentProgram); in removePreviousProgramsAndUpdateCurrentProgramInCache() 408 if (currentProgram.getEndTimeUtcMillis() < cachedProgram.getEndTimeUtcMillis()) { in removePreviousProgramsAndUpdateCurrentProgramInCache() 410 i.add(createDummyProgram(currentProgram.getEndTimeUtcMillis(), in removePreviousProgramsAndUpdateCurrentProgramInCache() 418 cachedPrograms.add(currentProgram); in removePreviousProgramsAndUpdateCurrentProgramInCache()
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ProgramDataManagerTest.java | 131 Program currentProgram = mProgramDataManager.getCurrentProgram(channelId); 133 assertTrue(currentProgram.getStartTimeUtcMillis() <= mClock.currentTimeMillis() 134 && mClock.currentTimeMillis() <= currentProgram.getEndTimeUtcMillis()); 191 Program currentProgram = mProgramDataManager.getCurrentProgram(testChannelId); 192 assertProgramEquals(nextProgramStartTimeMs, nextProgramInfo, currentProgram); 193 assertEquals(listener.updatedProgram, currentProgram);
|
/packages/apps/TV/src/com/android/tv/ |
D | TimeShiftManager.java | 345 Program currentProgram = mProgramManager.getProgramAt( in jumpToNext() local 347 if (currentProgram == null) { in jumpToNext() 350 Program nextProgram = mProgramManager.getProgramAt(currentProgram.getEndTimeUtcMillis()); in jumpToNext() 451 Program currentProgram = getProgramAt(mCurrentPositionMediator.mCurrentPositionMs); in updateCurrentProgram() local 452 if (!Program.isValid(currentProgram)) { in updateCurrentProgram() 453 currentProgram = null; in updateCurrentProgram() 455 if (!Objects.equals(mCurrentProgram, currentProgram)) { in updateCurrentProgram() 456 if (DEBUG) Log.d(TAG, "Current program has been updated. " + currentProgram); in updateCurrentProgram() 457 mCurrentProgram = currentProgram; in updateCurrentProgram()
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
D | TunerSessionWorker.java | 672 EitItem currentProgram = getCurrentProgram(); in handleMessage() local 673 if (currentProgram == null) { in handleMessage() 679 if (currentProgram != null && currentProgram.compareTo(item) == 0) { in handleMessage() 1408 EitItem currentProgram = getCurrentProgram(); in getContentRatingOfCurrentProgramBlocked() local 1409 if (currentProgram == null) { in getContentRatingOfCurrentProgramBlocked() 1413 .getRatings(currentProgram.getContentRating()); in getContentRatingOfCurrentProgramBlocked()
|