Searched refs:program (Results 26 - 50 of 59) sorted by relevance

123

/packages/apps/TV/src/com/android/tv/dvr/ui/list/
H A DEpisodicProgramRow.java27 * A class for the episodic program.
33 public EpisodicProgramRow(String inputId, Program program, ScheduledRecording recording, argument
37 mProgram = program;
41 * Returns the program.
87 + ",program=" + mProgram
/packages/apps/TV/src/com/android/tv/dvr/
H A DDvrManager.java157 * Schedules a recording for {@code program}.
159 public ScheduledRecording addSchedule(Program program) { argument
163 SeriesRecording seriesRecording = getSeriesRecording(program);
164 return addSchedule(program, seriesRecording == null
170 * Schedules a recording for {@code program} with the highest priority so that the schedule
173 public ScheduledRecording addScheduleWithHighestPriority(Program program) { argument
177 SeriesRecording seriesRecording = getSeriesRecording(program);
178 return addSchedule(program, seriesRecording == null
181 new Range(program.getStartTimeUtcMillis(), program
185 addSchedule(Program program, long priority) argument
574 getConflictingSchedules(Program program) argument
675 isProgramRecordable(Program program) argument
730 getSeriesRecording(Program program) argument
771 createScheduledRecordingBuilder(String inputId, Program program) argument
[all...]
H A DDvrScheduleManager.java436 * Returns the priority for the program if it is recorded.
531 * this program is going to be recorded, with their priorities in decending order.
535 * program to guarantee the program would be completely recorded.
537 public List<ScheduledRecording> getConflictingSchedules(Program program) { argument
539 SoftPreconditions.checkState(Program.isValid(program), TAG,
540 "Program is invalid: " + program);
542 program.getStartTimeUtcMillis() < program.getEndTimeUtcMillis(), TAG,
543 "Program duration is empty: " + program);
[all...]
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramTableAdapter.java76 * Adapts the {@link ProgramListAdapter} list to the body of the program guide table.
443 // detail view, besides program items.
464 if (Program.isValid(mSelectedEntry.program)) {
465 Program program = mSelectedEntry.program;
466 if (getProgramBlock(program) == null) {
467 program.prefetchPosterArt(itemView.getContext(), mImageWidth, mImageHeight);
532 if (Program.isValid(mSelectedEntry.program)) {
535 Program program = mSelectedEntry.program;
644 getProgramBlock(Program program) argument
783 createProgramPosterArtCallback( ProgramRowViewHolder holder, final Program program) argument
[all...]
H A DProgramItemView.java62 // State indicating the focused program is the current program
110 } else if (entry.program != null && CommonFeatures.DVR.isEnabled(view.getContext())) {
113 && dvrManager.isProgramRecordable(entry.program)) {
120 entry.program, false);
126 R.string.dvr_schedules_deletion_info, entry.program.getTitle());
164 // If program guide is not active or is during showing/hiding,
266 String title = entry.program != null ? entry.program.getTitle() : null;
267 String episode = entry.program !
[all...]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DChannelInfo.java59 public final ProgramInfo program; field in class:ChannelInfo
114 int audioLanguageCount, boolean hasClosedCaption, ProgramInfo program,
127 this.program = program;
177 Objects.equals(program, that.program) &&
224 mProgram = other.program;
277 public Builder setProgram(ProgramInfo program) { argument
278 mProgram = program;
112 ChannelInfo(String number, String name, String logoUrl, int originalNetworkId, int videoWidth, int videoHeight, float videoPixelAspectRatio, int audioChannel, int audioLanguageCount, boolean hasClosedCaption, ProgramInfo program, String appLinkText, int appLinkColor, String appLinkIconUri, String appLinkPosterArtUri, String appLinkIntentUri) argument
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
H A DSeriesRecordingDetailsFragment.java178 for (RecordedProgram program : mRecordedPrograms) {
179 addProgram(program);
215 RecordedProgram program = programs.get(i);
216 int watchedStatus = mDvrWatchedPositionManager.getWatchedStatus(program);
221 return program;
224 return program;
294 private void addProgram(RecordedProgram program) { argument
296 TextUtils.isEmpty(program.getSeasonNumber()) ? "" : program.getSeasonNumber();
297 getOrCreateSeasonRowAdapter(programSeasonNumber).add(program);
350 getId(RecordedProgram program) argument
[all...]
/packages/apps/TV/src/com/android/tv/menu/
H A DChannelsPosterPrefetcher.java37 * A poster image prefetcher to show the program poster art in the Channels row faster.
69 * Start prefetching of program poster art of recommendation.
112 Program program = mProgramDataManager.getCurrentProgram(channel.getId());
113 if (program != null) {
114 program.prefetchPosterArt(mContext, mPosterArtWidth, mPosterArtHeight);
H A DChannelCardView.java145 ChannelCardView cardView, final Program program) {
150 || program.getChannelId() != cardView.mProgram.getChannelId()
151 || program.getChannelId() != cardView.mChannel.getId()) {
144 createProgramPosterArtCallback( ChannelCardView cardView, final Program program) argument
/packages/apps/TV/src/com/android/tv/recommendation/
H A DNotificationService.java368 final Program program = Utils.getCurrentProgram(this, channel.getId());
369 if (program == null) {
372 final long programDurationMs = program.getEndTimeUtcMillis()
373 - program.getStartTimeUtcMillis();
374 long programLeftTimsMs = program.getEndTimeUtcMillis() - System.currentTimeMillis();
386 program.getPosterArtUri(), (int) mNotificationCardMaxWidth,
389 Log.e(TAG, "Failed to decode poster image for " + program.getPosterArtUri());
396 createChannelLogoCallback(this, notificationId, inputDisplayName, channel, program,
410 final Channel channel, final Program program, final Bitmap posterArtBitmap) {
415 program, inputDisplayNam
408 createChannelLogoCallback( NotificationService service, final int notificationId, final String inputDisplayName, final Channel channel, final Program program, final Bitmap posterArtBitmap) argument
420 sendNotification(int notificationId, Bitmap channelLogo, Channel channel, Bitmap posterArtBitmap, Program program, String inputDisplayName) argument
[all...]
H A DChannelRecord.java92 WatchedProgram program = mWatchHistory.poll();
93 mTotalWatchDurationMs -= program.getWatchedDurationMs();
H A DRecommendationDataManager.java377 Program program = new Program.Builder()
383 return new WatchedProgram(program, watchedRecord.watchedStartTime, endTime);
429 Program program = new Program.Builder()
436 return new WatchedProgram(program,
488 private ChannelRecord updateChannelRecordFromWatchedProgram(WatchedProgram program) { argument
490 if (program != null && program.getWatchEndTimeMs() != 0L) {
491 channelRecord = mChannelRecordMap.get(program.getProgram().getChannelId());
493 && channelRecord.getLastWatchEndTimeMs() < program.getWatchEndTimeMs()) {
494 channelRecord.logWatchHistory(program);
[all...]
H A DRoutineWatchEvaluator.java191 private static double calculateWatchDurationScore(Program program, long durationMs) { argument
193 / (program.getEndTimeUtcMillis() - program.getStartTimeUtcMillis());
235 // Set maximum program duration time to 12 hours.
/packages/apps/TV/src/com/android/tv/
H A DTimeShiftManager.java117 * this threshold from the program start time, the play position moves to the start of the
118 * previous program.
119 * Otherwise, the play position moves to the start of the current program.
301 * Jumps to the start of the current program.
303 * (={@link #PROGRAM_START_TIME_THRESHOLD})from the start time of the program, it goes to
304 * the start of the previous program if exists.
313 Program program = mProgramManager.getProgramAt(
315 if (program == null) {
319 Math.max(program.getStartTimeUtcMillis(), mPlayController.mRecordStartTimeMs);
328 * Jumps to the start of the next program i
[all...]
H A DMediaSessionWrapper.java94 * the current program's content ratings.
96 * @param currentProgram The currently playing program.
202 Program program, String cardTitleText) {
205 mProgram = program;
201 ProgramPosterArtCallback(MediaSessionWrapper sessionWrapper, Channel channel, Program program, String cardTitleText) argument
/packages/screensavers/Basic/src/com/android/dreams/basic/
H A DColorsGLRenderer.java237 int program = glCreateProgram();
238 glAttachShader(program, vertexShader);
241 glAttachShader(program, fragmentShader);
244 glLinkProgram(program);
248 glGetProgramiv(program, GL_LINK_STATUS, status, 0);
250 String error = glGetProgramInfoLog(program);
251 Log.d(TAG, "Error while linking program:\n" + error);
254 glDeleteProgram(program);
258 return program;
384 // Add program t
[all...]
/packages/apps/TV/src/com/android/tv/data/
H A DPreviewDataManager.java72 * Type of recorded program channel
437 for (PreviewProgramContent program : mPrograms) {
441 Long existingPreviewProgramId = uncheckedPrograms.remove(program.getId());
443 if (DEBUG) Log.d(TAG, "Preview program " + existingPreviewProgramId + " " +
444 "already exists for program " + program.getId());
449 PreviewDataUtils.createPreviewProgramFromContent(program)
453 mCurrentProgramId2PreviewProgramId.put(program.getId(), previewProgramId);
454 if (DEBUG) Log.d(TAG, "Add new preview program " + previewProgramId);
456 Log.e(TAG, "Fail to insert preview program");
614 createPreviewProgramFromContent( PreviewProgramContent program) argument
[all...]
H A DPreviewProgramContent.java47 * Create preview program content from {@link Program}
50 long previewChannelId, Program program) {
52 .getChannel(program.getChannelId());
58 .setId(program.getId())
62 .setTitle(program.getTitle())
65 .setPosterArtUri(Uri.parse(program.getPosterArtUri()))
73 * Create preview program content from {@link RecordedProgram}
123 * Returns the preview channel id which the preview program belongs to.
130 * Returns the type of the preview program.
137 * Returns whether the preview program i
49 createFromProgram(Context context, long previewChannelId, Program program) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java189 public abstract void loadHandle(int program); argument
198 public void loadHandle(int program) { argument
199 handle = GLES20.glGetUniformLocation(program, mName);
210 public void loadHandle(int program) { argument
211 handle = GLES20.glGetAttribLocation(program, mName);
306 int program = GLES20.glCreateProgram();
308 if (program == 0) {
309 throw new RuntimeException("Cannot create GL program: " + GLES20.glGetError());
311 GLES20.glAttachShader(program, vertexShader);
313 GLES20.glAttachShader(program, fragmentShade
700 prepareTexture(BasicTexture texture, int program, ShaderParameter[] params) argument
[all...]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
H A DSeriesRecordingScheduler.java389 * Pick one program per an episode.
394 * <p>If there are no existing schedules for an episode, one program which starts earlier is
417 for (Program program : programs) {
418 long seriesRecordingId = seriesRecordingIds.get(program.getSeriesId());
419 if (TextUtils.isEmpty(program.getSeasonNumber())
420 || TextUtils.isEmpty(program.getEpisodeNumber())) {
422 result.get(seriesRecordingId).add(program);
426 program.getSeasonNumber(), program.getEpisodeNumber());
432 programsForEpisode.add(program);
469 isProgramScheduled(DvrDataManager dataManager, Program program) argument
[all...]
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DProgramDataManagerTest.java151 for (Program program : programs) {
154 assertProgramEquals(startTimeMs, programInfoAt, program);
157 // Case #2: Corner cases where there's a program that starts at the start of the range.
165 for (Program program : programs) {
166 assertTrue(program.getEndTimeUtcMillis() >= prefetchTimeRangeStartMs);
184 // Set current time to few seconds before the current program ends,
191 // Note that changing current time doesn't affect the current program
192 // because current program is updated after waiting for the program's duration.
207 * Test if program dat
536 onCurrentProgramUpdated(long channelId, Program program) argument
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DDvrSeriesSettingsFragment.java109 for (Program program : mPrograms) {
110 long channelId = program.getChannelId();
301 for (Program program : mPrograms) {
303 if (program.getStartTimeUtcMillis() >= System.currentTimeMillis()
304 && mSeriesRecording.matchProgram(program)
306 mSeriesRecordingId, program.getSeasonNumber(), program.getEpisodeNumber()))) {
307 recordingCandidates.add(program);
/packages/apps/TV/src/com/android/tv/dvr/provider/
H A DEpisodicProgramLoadTask.java109 * Returns the program query task. It is {@code null} until it is executed.
149 * If {@code ignoreChannelOption} is {@code true}, the program will be matched with
188 * Runs on the UI thread after the program loading finishes successfully.
194 * Runs on the UI thread after the program loading was canceled.
238 // The query includes the current program. Will be filtered if needed.
291 Program program = Program.fromCursor(c);
295 programMatches = seriesRecording.matchProgram(program,
298 programMatches = seriesRecording.matchProgram(program);
303 seriesRecording.getId(), program.getSeasonNumber(),
304 program
[all...]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DTransientRowHelperTests.java134 for (PreviewProgram program : programs) {
136 values.put(PreviewPrograms.COLUMN_TRANSIENT, program.isTransient ? 1 : 0);
139 program.id = ContentUris.parseId(uri);
201 assertEquals("Transient program and programs in transient channel should be removed.",
H A DPackageRemovedReceiverTest.java132 for (Program program : programs) {
135 program.id = ContentUris.parseId(uri);

Completed in 1959 milliseconds

123