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

12

/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...]
/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 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 DChannelRecord.java92 WatchedProgram program = mWatchHistory.poll();
93 mTotalWatchDurationMs -= program.getWatchedDurationMs();
/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/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/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/providers/TvProvider/tests/src/com/android/providers/tv/
H A DEpgDataCleanupServiceTests.java140 for (Program program : programs) {
141 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, program.startTime);
142 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, program.endTime);
145 program.id = ContentUris.parseId(uri);
179 for (Program program : programs) {
180 values.put(WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, program.startTime);
181 values.put(WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, program.endTime);
184 program.id = ContentUris.parseId(uri);
214 Program program = new Program(1, 2);
215 insertPrograms(program);
[all...]
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
H A DSurfaceTextureView.java69 int program = GLES20.glCreateProgram();
70 if (program != 0) {
71 GLES20.glAttachShader(program, vertexShader);
73 GLES20.glAttachShader(program, pixelShader);
75 GLES20.glLinkProgram(program);
77 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
79 Log.e(TAG, "Could not link program: ");
80 Log.e(TAG, GLES20.glGetProgramInfoLog(program));
81 GLES20.glDeleteProgram(program);
82 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/src/com/android/tv/dvr/ui/
H A DDvrRecordConflictFragment.java37 mConflicts = getDvrManager().getScheduledRecordingsThatConflict(getEntry().program);
76 Program program = getEntry().program;
78 getDvrManager().addSchedule(program, mConflicts);
H A DDvrRecordScheduleFragment.java50 Program program = entry.program;
52 getDvrManager().getScheduledRecordingsThatConflict(program);
55 getDvrManager().addSchedule(program, conflicts);
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/guide/
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...]
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...]
/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/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.
308 * Jumps to the start of the current program.
310 * (={@link #PROGRAM_START_TIME_THRESHOLD})from the start time of the program, it goes to
311 * the start of the previous program if exists.
320 Program program = mProgramManager.getProgramAt(
322 if (program == null) {
326 Math.max(program.getStartTimeUtcMillis(), mPlayController.mRecordStartTimeMs);
335 * Jumps to the start of the next program i
[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 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.
111 Program program = mProgramDataManager.getCurrentProgram(channel.getId());
112 if (program != null) {
113 program.prefetchPosterArt(mContext, mPosterArtWidth, mPosterArtHeight);
/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...]

Completed in 1326 milliseconds

12