/packages/apps/TV/src/com/android/tv/data/ |
H A D | OnCurrentProgramUpdatedListener.java | 20 /** Called when the current program is updated. */ 21 void onCurrentProgramUpdated(long channelId, Program program); argument
|
H A D | InternalDataUtils.java | 72 * @param program the program which contains the objects to be serialized 76 public static byte[] serializeInternalProviderData(Program program) { argument 79 if (!TextUtils.isEmpty(program.getSeriesId()) || program.getCriticScores() != null) { 80 out.writeObject(program.getSeriesId()); 81 out.writeObject(program.getCriticScores()); 87 "Could not serialize internal provider contents for program: " 88 + program.getTitle()); 122 public static byte[] serializeInternalProviderData(RecordedProgram program) { argument [all...] |
H A D | PreviewProgramContent.java | 44 /** Create preview program content from {@link Program} */ 46 Context context, long previewChannelId, Program program) { 50 .getChannel(program.getChannelId()); 51 return channel == null ? null : createFromProgram(previewChannelId, program, channel); 54 /** Create preview program content from {@link RecordedProgram} */ 66 long previewChannelId, Program program, Channel channel) { 69 .setId(program.getId()) 73 .setTitle(program.getTitle()) 78 .setPosterArtUri(Uri.parse(program.getPosterArtUri())) 132 /** Returns the preview channel id which the preview program belong 45 createFromProgram( Context context, long previewChannelId, Program program) argument 65 createFromProgram( long previewChannelId, Program program, Channel channel) argument [all...] |
/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
H A D | Favorite.java | 46 "Can't set different primary ID than program selector's"); 54 Favorite(@NonNull Program program) { argument 55 this(new IdentifierEntity(program.getSelector().getPrimaryId()), 56 program.getSelector(), program.getName());
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
H A D | WatchedProgram.java | 26 public WatchedProgram(Program program, long watchStartTimeMs, long watchEndTimeMs) { argument 27 mProgram = program;
|
H A D | RoutineWatchEvaluator.java | 199 private static double calculateWatchDurationScore(Program program, long durationMs) { argument 201 / (program.getEndTimeUtcMillis() - program.getStartTimeUtcMillis()); 244 // Set maximum program duration time to 12 hours.
|
/packages/services/Car/evs/app/ |
H A D | shader.cpp | 58 // Create a program object given vertex and pixels shader source 60 GLuint program = glCreateProgram(); local 61 if (program == 0) { 62 printf("Failed to allocate program object\n"); 66 // Compile the shaders and bind them to this program 70 glDeleteProgram(program); 76 glDeleteProgram(program); 80 glAttachShader(program, vertexShader); 81 glAttachShader(program, pixelShader); 83 // Link the program [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
H A D | EpisodicProgramRow.java | 25 /** A class for the episodic program. */ 32 Program program, 37 mProgram = program; 40 /** Returns the program. */ 83 return super.toString() + "(inputId=" + mInputId + ",program=" + mProgram + ")"; 30 EpisodicProgramRow( String inputId, Program program, ScheduledRecording recording, SchedulesHeaderRow headerRow) argument
|
H A D | DvrHistoryRowAdapter.java | 145 RecordedProgram program, int maxDays) { 149 program.getStartTimeUtcMillis(), 153 ScheduledRecording scheduledRecording = ScheduledRecording.builder(program).build(); 154 mRecordedProgramScheduleMap.put(program.getId(), scheduledRecording); 170 public void onScheduledRecordingAdded(RecordedProgram program) { argument 172 Log.d(TAG, "onScheduledRecordingAdded: " + program); 174 if (mRecordedProgramScheduleMap.get(program.getId()) != null) { 178 recordedProgramsToScheduledRecordings(program, MAX_HISTORY_DAYS); 196 public void onScheduledRecordingRemoved(RecordedProgram program) { argument 198 Log.d(TAG, "onScheduledRecordingRemoved: " + program); 144 recordedProgramsToScheduledRecordings( RecordedProgram program, int maxDays) argument 226 onScheduledRecordingUpdated(RecordedProgram program) argument 307 findRowByRecordedProgram(RecordedProgram program) argument [all...] |
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
H A D | ChannelCheckItem.java | 50 public void onCurrentProgramUpdated(long channelId, Program program) { 51 updateProgramTitle(program); 121 private void updateProgramTitle(Program program) { argument 123 if (program != null) { 124 title = program.getTitle();
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/ |
H A D | ProgramUtils.java | 39 /** Populate program data for a week */ 45 * Populate programs by repeating given program information. This method will populate programs 49 Context context, Uri channelUri, ProgramInfo program, Clock clock) { 50 populatePrograms(context, channelUri, program, clock, PROGRAM_INSERT_DURATION_MS); 56 ProgramInfo program, 61 populatePrograms(context, channelUri, program, currentTimeMs, targetEndTimeMs); 67 ProgramInfo program, 74 values.put(Programs.COLUMN_SHORT_DESCRIPTION, program.description); 77 TvContentRatingCache.contentRatingsToString(program.contentRatings)); 83 int index = program 48 populatePrograms( Context context, Uri channelUri, ProgramInfo program, Clock clock) argument 53 populatePrograms( Context context, Uri channelUri, ProgramInfo program, Clock clock, long programInsertDurationMs) argument 64 populatePrograms( Context context, Uri channelUri, ProgramInfo program, long currentTimeMs, long targetEndTimeMs) argument [all...] |
/packages/apps/Car/Radio/src/com/android/car/radio/ |
H A D | PresetsAdapter.java | 72 * @param program The {@link Program} corresponding to the clicked preset. 73 * @param saveAsFavorite Whether the program should be saved or removed as a favorite. 75 void onPresetItemFavoriteChanged(Program program, boolean saveAsFavorite); argument 105 public void setActiveProgram(Program program) { argument 106 mActiveProgram = program;
|
H A D | PresetsViewHolder.java | 117 public void bindPreset(Program program, boolean isActiveStation, int itemCount, argument 120 if (program == null) { 127 ProgramSelector sel = program.getSelector(); 142 String programName = program.getName();
|
H A D | RadioPresetsFragment.java | 251 private void handlePresetItemFavoriteChanged(Program program, boolean saveAsFavorite) { argument 253 mRadioStorage.storePreset(program); 255 mRadioStorage.removePreset(program.getSelector());
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/ |
H A D | Renderer.cpp | 78 GLuint program = glCreateProgram(); local 79 if (program) 81 glAttachShader(program, vertexShader); 83 glAttachShader(program, pixelShader); 86 glLinkProgram(program); 88 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); 95 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); 101 glGetProgramInfoLog(program, bufLength, NULL, buf); 102 LOGE("Could not link program:\n%s\n", buf); 106 glDeleteProgram(program); [all...] |
/packages/apps/TV/src/com/android/tv/ |
H A D | MediaSessionWrapper.java | 108 * current program's content ratings. 110 * @param currentProgram The currently playing program. 235 Program program, 239 mProgram = program; 232 ProgramPosterArtCallback( MediaSessionWrapper sessionWrapper, Channel channel, Program program, String cardTitleText) argument
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
H A D | DvrDbSync.java | 59 * program is queried at a time and others are queued and will be executed on the other 243 // Note that the SeriesRecordingScheduler should be paused even though the program to 244 // check is not episodic because it can be changed to the episodic program after the 264 void handleUpdateProgram(Program program, long programId) { argument 270 if (program == null) { 283 .setEndTimeMs(program.getEndTimeUtcMillis()) 284 .setSeasonNumber(program.getSeasonNumber()) 285 .setEpisodeNumber(program.getEpisodeNumber()) 286 .setEpisodeTitle(program.getEpisodeTitle()) 287 .setProgramDescription(program 369 onCancelled(Program program) argument 377 onPostExecute(Program program) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
H A D | RecordedProgramPresenter.java | 73 protected void onBound(RecordedProgram program) { argument 74 mProgram = program; 76 mDvrWatchedPositionManager.addListener(this, program.getId()); 77 setProgressBar(mDvrWatchedPositionManager.getWatchedPosition(program.getId())); 116 public void onBindDvrItemViewHolder(DvrItemViewHolder baseHolder, RecordedProgram program) { argument 119 DetailsContent details = DetailsContent.createFromRecordedProgram(mContext, program); 121 mShowEpisodeTitle ? program.getEpisodeDisplayTitle(mContext) : details.getTitle()); 123 cardView.setContent(generateMajorContent(program), generateMinorContent(program)); 127 private String generateMajorContent(RecordedProgram program) { argument 147 generateMinorContent(RecordedProgram program) argument [all...] |
H A D | SeriesRecordingDetailsFragment.java | 185 for (RecordedProgram program : mRecordedPrograms) { 186 addProgram(program); 220 RecordedProgram program = programs.get(i); 221 int watchedStatus = mDvrWatchedPositionManager.getWatchedStatus(program); 226 return program; 229 return program; 299 private void addProgram(RecordedProgram program) { argument 301 TextUtils.isEmpty(program.getSeasonNumber()) ? "" : program.getSeasonNumber(); 302 getOrCreateSeasonRowAdapter(programSeasonNumber).add(program); 366 getId(RecordedProgram program) argument [all...] |
/packages/apps/TV/src/com/android/tv/menu/ |
H A D | ChannelCardView.java | 146 ChannelCardView cardView, final Program program) { 152 || program.getChannelId() != cardView.mProgram.getChannelId() 153 || program.getChannelId() != cardView.mChannel.getId()) { 145 createProgramPosterArtCallback( ChannelCardView cardView, final Program program) argument
|
/packages/apps/TV/src/com/android/tv/search/ |
H A D | DataManagerSearch.java | 169 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); 170 if (program == null) { 173 if (contains(program.getTitle(), query) 174 && !isRatingBlocked(program.getContentRatings())) { 175 addResult(results, channelsFound, channel, program); 195 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); 196 if (program == null) { 199 if (contains(program.getDescription(), query) 200 && !isRatingBlocked(program.getContentRatings())) { 201 addResult(results, channelsFound, channel, program); 236 addResult( List<SearchResult> results, Set<Long> channelsFound, Channel channel, Program program) argument [all...] |
/packages/services/Car/evs/sampleDriver/ |
H A D | GlWrapper.cpp | 138 // Create a program object given vertex and pixels shader source 140 GLuint program = glCreateProgram(); local 141 if (program == 0) { 142 ALOGE("Failed to allocate program object\n"); 146 // Compile the shaders and bind them to this program 150 glDeleteProgram(program); 156 glDeleteProgram(program); 160 glAttachShader(program, vertexShader); 161 glAttachShader(program, pixelShader); 163 // Link the program [all...] |
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
H A D | SeriesRecordingScheduler.java | 392 * Pick one program per an episode. 398 * <p>If there are no existing schedules for an episode, one program which starts earlier is 420 for (Program program : programs) { 421 long seriesRecordingId = seriesRecordingIds.get(program.getSeriesId()); 422 if (TextUtils.isEmpty(program.getSeasonNumber()) 423 || TextUtils.isEmpty(program.getEpisodeNumber())) { 425 result.get(seriesRecordingId).add(program); 431 program.getSeasonNumber(), 432 program.getEpisodeNumber()); 438 programsForEpisode.add(program); 477 isProgramScheduled(DvrDataManager dataManager, Program program) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
H A D | DvrPlaybackMediaSessionHelper.java | 124 * Sets the recorded program for playback. 126 * @param program The recorded program to play. {@code null} to reset the DVR player. 128 public void setupPlayback(RecordedProgram program, long seekPositionMs) { argument 129 if (program != null) { 130 mDvrPlayer.setProgram(program, seekPositionMs); 131 setupMediaSession(program); 138 /** Returns the recorded program now playing. */ 143 /** Checks if the recorded program is the same as now playing one. */ 144 public boolean isCurrentProgram(RecordedProgram program) { argument 173 setupMediaSession(RecordedProgram program) argument 197 updatePosterArt( RecordedProgram program, MediaMetadata currentMetadata, @Nullable Bitmap posterArt, @Nullable String posterArtUri) argument 220 ProgramPosterArtCallback( Activity activity, RecordedProgram program, MediaMetadata metadata) argument 249 updateMetadataImageInfo( final RecordedProgram program, final MediaMetadata currentMetadata, final Bitmap posterArt, final int imageResId) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ |
H A D | DvrManager.java | 161 /** Schedules a recording for {@code program}. */ 162 public ScheduledRecording addSchedule(Program program) { argument 166 SeriesRecording seriesRecording = getSeriesRecording(program); 168 program, 175 * Schedules a recording for {@code program} with the highest priority so that the schedule can 178 public ScheduledRecording addScheduleWithHighestPriority(Program program) { argument 182 SeriesRecording seriesRecording = getSeriesRecording(program); 184 program, 190 program.getStartTimeUtcMillis(), 191 program 195 addSchedule(Program program, long priority) argument 585 getConflictingSchedules(Program program) argument 684 isProgramRecordable(Program program) argument 739 getSeriesRecording(Program program) argument 780 createScheduledRecordingBuilder( String inputId, Program program) argument [all...] |