/packages/apps/TV/tests/unit/src/com/android/tv/dvr/data/ |
H A D | SeriesRecordingTest.java | 90 Program program = new Program.Builder(mBaseProgram).setSeriesId(OTHER_SERIES_ID).build(); 91 assertDoesProgramMatch(program, mBaseSeriesRecording, false); 96 Program program = new Program.Builder(mBaseProgram).setChannelId(OTHER_CHANNEL_ID).build(); 97 assertDoesProgramMatch(program, mBaseSeriesRecording, false); 102 Program program = mBaseProgram; 103 assertDoesProgramMatch(program, mSeriesRecordingSeason2, true); 104 program = new Program.Builder(program).setSeasonNumber("1").build(); 105 assertDoesProgramMatch(program, mSeriesRecordingSeason2, false); 106 program [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
H A D | OnCurrentProgramUpdatedListener.java | 21 * Called when the current program is updated. 23 void onCurrentProgramUpdated(long channelId, Program program); argument
|
H A D | InternalDataUtils.java | 73 * @param program the program which contains the objects to be serialized 77 public static byte[] serializeInternalProviderData(Program program) { argument 80 if (!TextUtils.isEmpty(program.getSeriesId()) || program.getCriticScores() != null) { 81 out.writeObject(program.getSeriesId()); 82 out.writeObject(program.getCriticScores()); 86 Log.e(TAG, "Could not serialize internal provider contents for program: " 87 + program.getTitle()); 120 public static byte[] serializeInternalProviderData(RecordedProgram program) { argument [all...] |
H A D | Program.java | 49 * A convenience class to create and insert program information entries into the database. 155 Program program = new Program(); 156 program.mId = in.readLong(); 157 program.mPackageName = in.readString(); 158 program.mChannelId = in.readLong(); 159 program.mTitle = in.readString(); 160 program.mSeriesId = in.readString(); 161 program.mEpisodeTitle = in.readString(); 162 program.mSeasonNumber = in.readString(); 163 program 250 isValid(Program program) argument 471 toContentValues(Program program) argument [all...] |
H A D | ProgramDataManager.java | 61 // To prevent from too many program update operations at the same time, we give random interval 107 // Any program that ends prior to this time will be removed from the cache 108 // 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 205 /** Returns the current program at the specified channel. */ 218 * Reloads program data. 230 * A listener interface to receive notification on program data retrieval from DB. 236 * This would be called only if fetched data is around the selected program. 256 * Enables or Disables program prefetch. 281 * @return {@link List} with Programs. It may includes dummy program i 316 isProgramPlayedAt(Program program, long time) argument 342 notifyCurrentProgramUpdate(long channelId, Program program) argument 353 updateCurrentProgram(long channelId, Program program) argument 624 onPostExecute(Program program) argument [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
H A D | ProgramTest.java | 50 Program program = new Program.Builder().build(); 51 assertEquals("isValid", false, program.isValid()); 56 Program program = new Program.Builder() 59 assertNullCanonicalGenres(program); 60 assertHasGenre(program, NOT_FOUND_GENRE, false); 61 assertHasGenre(program, FAMILY_GENRE_ID, false); 62 assertHasGenre(program, COMEDY_GENRE_ID, false); 63 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); 68 Program program = new Program.Builder() 71 assertCanonicalGenres(program, FAMILY_KID 169 assertNullCanonicalGenres(Program program) argument 174 assertCanonicalGenres(Program program, String... expected) argument 179 assertHasGenre(Program program, int genreId, boolean expected) argument [all...] |
/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/recommendation/ |
H A D | WatchedProgram.java | 26 public WatchedProgram(Program program, long watchStartTimeMs, long watchEndTimeMs) { argument 27 mProgram = program;
|
H A D | ChannelPreviewUpdater.java | 56 // The left time of a program should meet the threshold so that it could be recommended. 181 final Program program = Utils.getCurrentProgram(mContext, channel.getId()); 182 if (program != null 183 && isChannelRecommendationApplicable(channel, program)) { 184 programs.add(program); 194 private boolean isChannelRecommendationApplicable(Channel channel, Program program) { 196 program.getEndTimeUtcMillis() - program.getStartTimeUtcMillis(); 200 if (TextUtils.isEmpty(program.getPosterArtUri())) { 206 program [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
H A D | RecordedProgramPresenter.java | 70 protected void onBound(RecordedProgram program) { argument 71 mProgram = program; 73 mDvrWatchedPositionManager.addListener(this, program.getId()); 74 setProgressBar(mDvrWatchedPositionManager.getWatchedPosition(program.getId())); 113 public void onBindDvrItemViewHolder(DvrItemViewHolder baseHolder, RecordedProgram program) { argument 116 DetailsContent details = DetailsContent.createFromRecordedProgram(mContext, program); 118 program.getEpisodeDisplayTitle(mContext) : details.getTitle()); 120 cardView.setContent(generateMajorContent(program), generateMinorContent(program)); 124 private String generateMajorContent(RecordedProgram program) { argument 137 generateMinorContent(RecordedProgram program) argument [all...] |
/packages/apps/TV/src/com/android/tv/search/ |
H A D | DataManagerSearch.java | 154 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); 155 if (program == null) { 158 if (contains(program.getTitle(), query) 159 && !isRatingBlocked(program.getContentRatings())) { 160 addResult(results, channelsFound, channel, program); 175 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); 176 if (program == null) { 179 if (contains(program.getDescription(), query) 180 && !isRatingBlocked(program.getContentRatings())) { 181 addResult(results, channelsFound, channel, program); 207 addResult(List<SearchResult> results, Set<Long> channelsFound, Channel channel, Program program) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
H A D | DvrPlaybackMediaSessionHelper.java | 121 * Sets the recorded program for playback. 123 * @param program The recorded program to play. {@code null} to reset the DVR player. 125 public void setupPlayback(RecordedProgram program, long seekPositionMs) { argument 126 if (program != null) { 127 mDvrPlayer.setProgram(program, seekPositionMs); 128 setupMediaSession(program); 136 * Returns the recorded program now playing. 143 * Checks if the recorded program is the same as now playing one. 145 public boolean isCurrentProgram(RecordedProgram program) { argument 177 setupMediaSession(RecordedProgram program) argument 195 updatePosterArt(RecordedProgram program, MediaMetadata currentMetadata, @Nullable Bitmap posterArt, @Nullable String posterArtUri) argument 213 ProgramPosterArtCallback(Activity activity, RecordedProgram program, MediaMetadata metadata) argument 242 updateMetadataImageInfo(final RecordedProgram program, final MediaMetadata currentMetadata, final Bitmap posterArt, final int imageResId) argument [all...] |
/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/dvr/provider/ |
H A D | DvrDbSync.java | 60 * program is queried at a time and others are queued and will be executed on the other 235 // Note that the SeriesRecordingScheduler should be paused even though the program to 236 // check is not episodic because it can be changed to the episodic program after the 256 void handleUpdateProgram(Program program, long programId) { argument 262 if (program == null) { 274 .setEndTimeMs(program.getEndTimeUtcMillis()) 275 .setSeasonNumber(program.getSeasonNumber()) 276 .setEpisodeNumber(program.getEpisodeNumber()) 277 .setEpisodeTitle(program.getEpisodeTitle()) 278 .setProgramDescription(program 357 onCancelled(Program program) argument 365 onPostExecute(Program program) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
H A D | SeriesScheduleRowAdapter.java | 100 for (Program program : sortedPrograms) { 102 mDataManager.getScheduledRecordingForProgramId(program.getId()); 106 rows.add(new EpisodicProgramRow(mInputId, program, schedule, mHeaderRow)); 107 mPrograms.put(program.getId(), program); 244 Program program = iter.next(); 245 if (program.getEndTimeUtcMillis() <= currentTimeMs) { 246 // Remove the old program. 247 removeItems(findRowIndexByProgramId(program.getId()), 1); 249 } else if (program [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/provider/ |
H A D | DvrDbSyncTest.java | 95 Program program = new Program.Builder(BASE_PROGRAM).setStartTimeUtcMillis(startTimeMs) 97 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_ID); 98 assertUpdateScheduleCalled(program); 106 Program program = new Program.Builder(BASE_PROGRAM).setStartTimeUtcMillis(startTimeMs) 108 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_ID); 117 Program program = new Program.Builder(BASE_SERIES_PROGRAM).setSeasonNumber(seasonNumber) 119 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_ID); 120 assertUpdateScheduleCalled(program); 129 Program program = new Program.Builder(BASE_SERIES_PROGRAM).setSeasonNumber(seasonNumber) 131 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_I 139 assertUpdateScheduleCalled(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/ui/sidepanel/ |
H A D | ChannelCheckItem.java | 50 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 D | EpgDataCleanupServiceTests.java | 143 for (Program program : programs) { 144 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, program.startTime); 145 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, program.endTime); 148 program.id = ContentUris.parseId(uri); 182 for (Program program : programs) { 183 values.put(WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, program.startTime); 184 values.put(WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, program.endTime); 187 program.id = ContentUris.parseId(uri); 217 Program program = new Program(1, 2); 218 insertPrograms(program); [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | DvrUiHelper.java | 118 public static void showScheduleDialog(Activity activity, Program program, argument 120 if (SoftPreconditions.checkNotNull(program) == null) { 124 args.putParcelable(DvrHalfSizedDialogFragment.KEY_PROGRAM, program); 145 public static void showScheduleConflictDialog(Activity activity, Program program) { argument 146 if (program == null) { 150 args.putParcelable(DvrHalfSizedDialogFragment.KEY_PROGRAM, program); 235 public static void showAlreadyScheduleDialog(Activity activity, Program program) { argument 236 if (program == null) { 240 args.putParcelable(DvrHalfSizedDialogFragment.KEY_PROGRAM, program); 247 public static void showAlreadyRecordedDialog(Activity activity, Program program) { argument 264 requestRecordingCurrentProgram(Activity activity, Channel channel, Program program, boolean addProgramToSeries) argument 282 requestRecordingFutureProgram(Activity activity, Program program, boolean addProgramToSeries) argument 295 handleCreateSchedule(Activity activity, Program program, boolean addProgramToSeries) argument 615 getStyledTitleWithEpisodeNumber(Context context, BaseProgram program, int episodeNumberStyleResId) argument [all...] |
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | ChannelBannerView.java | 79 * Lock program details at the channel banner. 80 * This is used when a content is locked so we don't want to show program details 81 * including program description text and poster art. 499 // Need to update the text size of the program text view depending on the channel logo. 518 private void updateProgramInfo(Program program) { argument 520 program = mLockedChannelProgram; 521 } else if (program == null || !program.isValid() || TextUtils.isEmpty(program.getTitle())) { 522 program 560 updateProgramTextView(Program program) argument 614 updateProgramRatings(Program program) argument 645 updateProgramTimeInfo(Program program) argument 671 updateRecordingStatus(Program program) argument 688 updateProgressBarAndRecIcon(Program program, @Nullable ScheduledRecording recording) argument 725 isCurrentProgram(ScheduledRecording recording, Program program) argument 734 setLastUpdatedProgram(Program program) argument [all...] |
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | SurfaceTextureView.java | 69 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 D | ProgramUtils.java | 38 // Populate program data for a week. 43 * Populate programs by repeating given program information. 47 public static void populatePrograms(Context context, Uri channelUri, ProgramInfo program) { argument 52 values.put(Programs.COLUMN_SHORT_DESCRIPTION, program.description); 54 TvContentRatingCache.contentRatingsToString(program.contentRatings)); 62 int index = program.getIndex(timeMs, channelId); 63 timeMs = program.getStartTimeMs(index, channelId); 67 ProgramInfo programAt = program.build(context, index++);
|
/packages/apps/TV/src/com/android/tv/guide/ |
H A D | ProgramManager.java | 44 * Manages the channels and programs for the program guide. 135 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program, 148 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program, null, 161 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program, 288 * Update the initial time range to manage. It updates program entries and genre as well. 334 * Returns the program index of the program with {@code entryId} or -1 if not found. 349 * Returns the program index of the program at {@code time} or -1 if not found. 439 // Note that This can be happens only if program guid 673 final Program program; field in class:ProgramManager.TableEntry 694 TableEntry(long channelId, Program program, long entryStartUtcMillis, long entryEndUtcMillis, boolean isBlocked) argument 699 TableEntry(long channelId, Program program, ScheduledRecording scheduledRecording, long entryStartUtcMillis, long entryEndUtcMillis, boolean isBlocked) argument [all...] |
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 125 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...] |