Searched defs:program (Results 1 - 25 of 25) sorted by relevance

/packages/apps/TV/src/com/android/tv/data/
H A DOnCurrentProgramUpdatedListener.java21 * Called when the current program is updated.
23 void onCurrentProgramUpdated(long channelId, Program program); argument
H A DProgram.java40 * A convenience class to create and insert program information entries into the database.
154 * Returns {@code true} if this program is valid or {@code false} otherwise.
161 * Returns {@code true} if the program is valid and {@code false} otherwise.
163 public static boolean isValid(Program program) { argument
164 return program != null && program.isValid();
201 * Returns the program duration.
232 * Returns array of canonical genres for this program.
247 * Returns if this program has the genre.
276 Program program
[all...]
H A DProgramDataManager.java60 // To prevent from too many program update operations at the same time, we give random interval
104 // Any program that ends prior to this time will be removed from the cache
105 // when a channel's current program is updated.
152 * Set the program prefetch update wait which gives the delay to query all programs from DB
208 * Returns the current program at the specified channel.
215 * Reloads program data.
227 * A listener interface to receive notification on program data retrieval from DB.
233 * This would be called only if fetched data is around the selected program.
253 * Enables or Disables program prefetch.
278 * @return {@link List} with Programs. It may includes dummy program i
313 isProgramPlayedAt(Program program, long time) argument
339 notifyCurrentProgramUpdate(long channelId, Program program) argument
351 updateCurrentProgram(long channelId, Program program) argument
621 onPostExecute(Program program) argument
[all...]
/packages/apps/TV/src/com/android/tv/recommendation/
H A DWatchedProgram.java26 public WatchedProgram(Program program, long watchStartTimeMs, long watchEndTimeMs) { argument
27 mProgram = program;
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.
H A DNotificationService.java376 final Program program = Utils.getCurrentProgram(this, channel.getId());
377 if (program == null) {
380 final long programDurationMs = program.getEndTimeUtcMillis()
381 - program.getStartTimeUtcMillis();
382 long programLeftTimsMs = program.getEndTimeUtcMillis() - System.currentTimeMillis();
394 program.getPosterArtUri(), (int) mNotificationCardMaxWidth,
397 Log.e(TAG, "Failed to decode poster image for " + program.getPosterArtUri());
404 createChannelLogoCallback(this, notificationId, inputDisplayName, channel, program,
418 final Channel channel, final Program program, final Bitmap posterArtBitmap) {
423 program, inputDisplayNam
416 createChannelLogoCallback( NotificationService service, final int notificationId, final String inputDisplayName, final Channel channel, final Program program, final Bitmap posterArtBitmap) argument
428 sendNotification(int notificationId, Bitmap channelLogo, Channel channel, Bitmap posterArtBitmap, Program program, String inputDisplayName1) argument
[all...]
H A DRecommendationDataManager.java383 Program program = new Program.Builder()
389 return new WatchedProgram(program, watchedRecord.watchedStartTime, endTime);
435 Program program = new Program.Builder()
442 return new WatchedProgram(program,
494 private ChannelRecord updateChannelRecordFromWatchedProgram(WatchedProgram program) { argument
496 if (program != null && program.getWatchEndTimeMs() != 0l) {
497 channelRecord = mChannelRecordMap.get(program.getProgram().getChannelId());
499 && channelRecord.getLastWatchEndTimeMs() < program.getWatchEndTimeMs()) {
500 channelRecord.logWatchHistory(program);
[all...]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DProgramUtils.java37 // Populate program data for a week.
42 * Populate programs by repeating given program information.
46 public static void populatePrograms(Context context, Uri channelUri, ProgramInfo program) { argument
51 values.put(Programs.COLUMN_SHORT_DESCRIPTION, program.description);
53 TvContentRatingCache.contentRatingsToString(program.contentRatings));
61 int index = program.getIndex(timeMs, channelId);
62 timeMs = program.getStartTimeMs(index, channelId);
66 ProgramInfo programAt = program.build(context, index++);
H A DChannelInfo.java64 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/tests/unit/src/com/android/tv/data/
H A DProgramTest.java40 Program program = new Program.Builder().build();
41 assertEquals("isValid", false, program.isValid());
45 Program program = new Program.Builder()
48 assertNullCanonicalGenres(program);
49 assertHasGenre(program, NOT_FOUND_GENRE, false);
50 assertHasGenre(program, FAMILY_GENRE_ID, false);
51 assertHasGenre(program, COMEDY_GENRE_ID, false);
52 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true);
56 Program program = new Program.Builder()
59 assertCanonicalGenres(program, FAMILY_KID
88 assertNullCanonicalGenres(Program program) argument
93 assertCanonicalGenres(Program program, String... expected) argument
98 assertHasGenre(Program program, int genreId, boolean expected) argument
[all...]
H A DProgramDataManagerTest.java142 for (Program program : programs) {
145 assertProgramEquals(startTimeMs, programInfoAt, program);
148 // Case #2: Corner cases where there's a program that starts at the start of the range.
156 for (Program program : programs) {
157 assertTrue(program.getEndTimeUtcMillis() >= prefetchTimeRangeStartMs);
174 // Set current time to few seconds before the current program ends,
181 // Note that changing current time doesn't affect the current program
182 // because current program is updated after waiting for the program's duration.
197 * Test if program dat
523 onCurrentProgramUpdated(long channelId, Program program) argument
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DScheduledRecordingPresenter.java80 protected void onPostExecute(Program program) {
81 super.onPostExecute(program);
82 setTitleAndImage(cardView, recording, program);
110 @Nullable Program program) {
111 if (program != null) {
112 cardView.setTitle(program.getTitle());
113 cardView.setImageUri(program.getPosterArtUri());
109 setTitleAndImage(RecordingCardView cardView, ScheduledRecording recording, @Nullable Program program) argument
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DChannelCheckItem.java50 public void onCurrentProgramUpdated(long channelId, Program program) {
51 updateProgramTitle(program);
120 private void updateProgramTitle(Program program) { argument
122 if (program != null) {
123 title = program.getTitle();
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/
H A DRenderer.cpp78 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/dvr/
H A DDvrManager.java71 * Schedules a recording for {@code program} instead of the list of recording that conflict.
72 * @param program the program to record
75 public void addSchedule(Program program, List<ScheduledRecording> recordingsToOverride) { argument
77 "Adding scheduled recording of " + program + " instead of " + recordingsToOverride);
79 Channel c = mChannelDataManager.getChannel(program.getChannelId());
82 ScheduledRecording r = ScheduledRecording.builder(program)
103 * Adds a season recording schedule based on {@code program}.
105 public void addSeasonSchedule(Program program) { argument
106 Log.i(TAG, "Adding season recording of " + program);
159 getScheduledRecordingsThatConflict(Program program) argument
184 getPeriod(Program program) argument
[all...]
/packages/apps/TV/src/com/android/tv/search/
H A DDataManagerSearch.java134 Program program = mProgramDataManager.getCurrentProgram(channel.getId());
135 if (program == null) {
138 if (contains(program.getTitle(), query)
139 && !isRatingBlocked(program.getContentRatings())) {
140 addResult(results, channelsFound, channel, program);
150 Program program = mProgramDataManager.getCurrentProgram(channel.getId());
151 if (program == null) {
154 if (contains(program.getDescription(), query)
155 && !isRatingBlocked(program.getContentRatings())) {
156 addResult(results, channelsFound, channel, program);
173 addResult(List<SearchResult> results, Set<Long> channelsFound, Channel channel, Program program) argument
[all...]
/packages/apps/TV/src/com/android/tv/data/epg/
H A DEpgFetcher.java205 for (Program program : newPrograms) {
206 if (program.getEndTimeUtcMillis() > oldStartTimeUtcMillis) {
213 // or insert new program if there is no matching program in the database.
228 // Partial match. Update the old program with the new one.
230 // could be application specific settings which belong to the old program.
240 // No match. Remove the old program first to see if the next program in
241 // {@code oldPrograms} partially matches the new program.
247 // No match. The new program doe
316 toContentValues(Program program) argument
[all...]
/packages/apps/TV/src/com/android/tv/menu/
H A DChannelCardView.java142 ChannelCardView cardView, final Program program) {
147 || program.getChannelId() != cardView.mProgram.getChannelId()
148 || program.getChannelId() != cardView.mChannel.getId()) {
214 Log.e(TAG, "Fails to check program's content rating.");
141 createProgramPosterArtCallback( ChannelCardView cardView, final Program program) argument
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramTableAdapter.java64 * Adapts the {@link ProgramListAdapter} list to the body of the program guide table.
345 if (Program.isValid(mSelectedEntry.program)) {
346 Program program = mSelectedEntry.program;
347 if (getProgramBlock(program) == null) {
348 program.prefetchPosterArt(itemView.getContext(), mImageWidth, mImageHeight);
407 if (Program.isValid(mSelectedEntry.program)) {
410 Program program = mSelectedEntry.program;
412 TvContentRating blockedRating = getProgramBlock(program);
469 getProgramBlock(Program program) argument
565 createProgramPosterArtCallback( ProgramRowHolder holder, final Program program) argument
[all...]
H A DProgramManager.java42 * Manages the channels and programs for the program guide.
70 * Entry for program guide table. An "entry" can be either an actual program or a gap between
79 public final Program program; field in class:ProgramManager.TableEntry
100 private TableEntry(long channelId, Program program, long entryStartUtcMillis, argument
102 this(channelId, program, null, entryStartUtcMillis, entryEndUtcMillis, isBlocked);
105 private TableEntry(long channelId, Program program, ScheduledRecording scheduledRecording, argument
108 this.program = program;
119 // using a negative entryEndUtcMillis keeps it from conflicting with program I
[all...]
/packages/apps/TV/src/com/android/tv/ui/
H A DChannelBannerView.java80 * Lock program details at the channel banner.
81 * This is used when a content is locked so we don't want to show program details
82 * including program description text and poster art.
172 // TODO: This {@code uri} argument may be a program which is not related to this
173 // channel. Consider adding channel id as a parameter of program URI to avoid
341 * If it's {@code null}, only program information will be updated.
513 // Need to update the text size of the program text view depending on the channel logo.
531 private void updateProgramInfo(Program program) { argument
533 program = sLockedChannelProgram;
534 } else if (!Program.isValid(program) || TextUtil
615 updateProgramTextView(Program program) argument
678 updateProgramTimeInfo(Program program) argument
725 setLastUpdatedProgram(Program program) argument
[all...]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
H A DTunerRecordingSessionWorker.java443 Program program = null;
445 program = new Program(c);
447 return program;
494 private Uri insertRecordedProgram(Program program, long channelId, String storageUri, argument
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java125 public abstract void loadHandle(int program); argument
134 public void loadHandle(int program) { argument
135 handle = GLES20.glGetUniformLocation(program, mName);
146 public void loadHandle(int program) { argument
147 handle = GLES20.glGetAttribLocation(program, mName);
197 int program = GLES20.glCreateProgram();
199 if (program == 0) {
200 throw new RuntimeException("Cannot create GL program: " + GLES20.glGetError());
202 GLES20.glAttachShader(program, vertexShader);
204 GLES20.glAttachShader(program, fragmentShade
419 prepareTexture(BasicTexture texture, int program, ShaderParameter[] params) 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/
H A DMainActivity.java369 public void onCurrentProgramUpdated(long channelId, Program program) {
535 public void onCurrentProgramUpdated(long channelId, Program program) {
1140 * Returns the current program which the user is watching right now.<p>
1142 * If the time shifting is available, it can be a past program.
1163 * Returns the current program which the user is watching right now.<p>
1166 * a past program.
1178 * If the time shifting is available, the time is the playing position of the program,
1482 // program guide. The intention here is to respond to
1483 // "content://android.media.tv/program", not "content://android.media.tv/program/XX
1926 createProgramPosterArtCallback( MainActivity mainActivity, final Program program) argument
1940 updateProgramPosterArt(Program program, @Nullable Bitmap posterArt) argument
1964 updateMediaMetadataWithAlternativeArt(final Program program) argument
[all...]

Completed in 642 milliseconds