/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | ProgramTest.java | 56 Program program = new ProgramImpl.Builder().build(); in testBuild() local 57 assertWithMessage("isValid").that(program.isValid()).isFalse(); in testBuild() 62 Program program = new ProgramImpl.Builder().setCanonicalGenres("").build(); in testNoGenres() local 63 assertNullCanonicalGenres(program); in testNoGenres() 64 assertHasGenre(program, NOT_FOUND_GENRE, false); in testNoGenres() 65 assertHasGenre(program, FAMILY_GENRE_ID, false); in testNoGenres() 66 assertHasGenre(program, COMEDY_GENRE_ID, false); in testNoGenres() 67 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testNoGenres() 72 Program program = new ProgramImpl.Builder().setCanonicalGenres(FAMILY_KIDS).build(); in testFamilyGenre() local 73 assertCanonicalGenres(program, FAMILY_KIDS); in testFamilyGenre() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/data/ |
D | SeriesRecordingTest.java | 100 Program program = in testDoesProgramMatch_differentSeriesId() local 102 assertDoesProgramMatch(program, mBaseSeriesRecording, false); in testDoesProgramMatch_differentSeriesId() 107 Program program = in testDoesProgramMatch_differentChannel() local 109 assertDoesProgramMatch(program, mBaseSeriesRecording, false); in testDoesProgramMatch_differentChannel() 114 ProgramImpl program = mBaseProgram; in testDoesProgramMatch_startFromSeason2() local 115 assertDoesProgramMatch(program, mSeriesRecordingSeason2, true); in testDoesProgramMatch_startFromSeason2() 116 program = new ProgramImpl.Builder(program).setSeasonNumber("1").build(); in testDoesProgramMatch_startFromSeason2() 117 assertDoesProgramMatch(program, mSeriesRecordingSeason2, false); in testDoesProgramMatch_startFromSeason2() 118 program = new ProgramImpl.Builder(program).setSeasonNumber("2").build(); in testDoesProgramMatch_startFromSeason2() 119 assertDoesProgramMatch(program, mSeriesRecordingSeason2, true); in testDoesProgramMatch_startFromSeason2() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfTest.java | 171 private void assertVerdict(int expected, byte[] program, byte[] packet, int filterAge) { in assertVerdict() argument 172 assertReturnCodesEqual(expected, apfSimulate(program, packet, null, filterAge)); in assertVerdict() 175 private void assertVerdict(int expected, byte[] program, byte[] packet) { in assertVerdict() argument 176 assertReturnCodesEqual(expected, apfSimulate(program, packet, null, 0)); in assertVerdict() 179 private void assertPass(byte[] program, byte[] packet, int filterAge) { in assertPass() argument 180 assertVerdict(PASS, program, packet, filterAge); in assertPass() 183 private void assertPass(byte[] program, byte[] packet) { in assertPass() argument 184 assertVerdict(PASS, program, packet); in assertPass() 187 private void assertDrop(byte[] program, byte[] packet, int filterAge) { in assertDrop() argument 188 assertVerdict(DROP, program, packet, filterAge); in assertDrop() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ProgramImpl.java | 185 ProgramImpl program = new ProgramImpl(); in fromParcel() local 186 program.mId = in.readLong(); in fromParcel() 187 program.mPackageName = in.readString(); in fromParcel() 188 program.mChannelId = in.readLong(); in fromParcel() 189 program.mTitle = in.readString(); in fromParcel() 190 program.mSeriesId = in.readString(); in fromParcel() 191 program.mEpisodeTitle = in.readString(); in fromParcel() 192 program.mSeasonNumber = in.readString(); in fromParcel() 193 program.mSeasonTitle = in.readString(); in fromParcel() 194 program.mEpisodeNumber = in.readString(); in fromParcel() [all …]
|
D | ProgramDataManager.java | 443 private boolean isProgramPlayedAt(Program program, long time) { in isProgramPlayedAt() argument 444 return program.getStartTimeUtcMillis() <= time && time <= program.getEndTimeUtcMillis(); in isProgramPlayedAt() 467 private void notifyCurrentProgramUpdate(long channelId, Program program) { in notifyCurrentProgramUpdate() argument 470 listener.onCurrentProgramUpdated(channelId, program); in notifyCurrentProgramUpdate() 474 listener.onCurrentProgramUpdated(channelId, program); in notifyCurrentProgramUpdate() 478 private void updateCurrentProgram(long channelId, Program program) { in updateCurrentProgram() argument 480 program == null in updateCurrentProgram() 482 : mChannelIdCurrentProgramMap.put(channelId, program); in updateCurrentProgram() 483 if (!Objects.equals(program, previousProgram)) { in updateCurrentProgram() 485 removePreviousProgramsAndUpdateCurrentProgramInCache(channelId, program); in updateCurrentProgram() [all …]
|
D | InternalDataUtils.java | 79 public static byte[] serializeInternalProviderData(Program program) { in serializeInternalProviderData() argument 82 if (!TextUtils.isEmpty(program.getSeriesId()) || program.getCriticScores() != null) { in serializeInternalProviderData() 83 out.writeObject(program.getSeriesId()); in serializeInternalProviderData() 84 out.writeObject(program.getCriticScores()); in serializeInternalProviderData() 91 + program.getTitle()); in serializeInternalProviderData() 125 public static byte[] serializeInternalProviderData(RecordedProgram program) { in serializeInternalProviderData() argument 128 if (!TextUtils.isEmpty(program.getSeriesId())) { in serializeInternalProviderData() 129 out.writeObject(program.getSeriesId()); in serializeInternalProviderData() 136 + program.getTitle()); in serializeInternalProviderData()
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDbSync.java | 293 void handleUpdateProgram(Program program, long programId) { in handleUpdateProgram() argument 299 if (program == null) { in handleUpdateProgram() 311 .setSeasonNumber(program.getSeasonNumber()) in handleUpdateProgram() 312 .setEpisodeNumber(program.getEpisodeNumber()) in handleUpdateProgram() 313 .setEpisodeTitle(program.getEpisodeTitle()) in handleUpdateProgram() 314 .setProgramDescription(program.getDescription()) in handleUpdateProgram() 315 .setProgramLongDescription(program.getLongDescription()) in handleUpdateProgram() 316 .setProgramPosterArtUri(program.getPosterArtUri()) in handleUpdateProgram() 317 .setProgramThumbnailUri(program.getThumbnailUri()); in handleUpdateProgram() 322 if (program.isEpisodic()) { in handleUpdateProgram() [all …]
|
/packages/apps/TV/src/com/android/tv/search/ |
D | DataManagerSearch.java | 166 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers() local 167 if (program == null) { in searchFromDataManagers() 170 if (contains(program.getTitle(), query) in searchFromDataManagers() 171 && !isRatingBlocked(program.getContentRatings())) { in searchFromDataManagers() 172 addResult(results, channelsFound, channel, program); in searchFromDataManagers() 192 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers() local 193 if (program == null) { in searchFromDataManagers() 196 if (contains(program.getDescription(), query) in searchFromDataManagers() 197 && !isRatingBlocked(program.getContentRatings())) { in searchFromDataManagers() 198 addResult(results, channelsFound, channel, program); in searchFromDataManagers() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrUiHelper.java | 122 Activity activity, Program program, boolean addCurrentProgramToSeries) { in showScheduleDialog() argument 123 if (SoftPreconditions.checkNotNull(program) == null) { in showScheduleDialog() 127 args.putParcelable(DvrHalfSizedDialogFragment.KEY_PROGRAM, program.toParcelable()); in showScheduleDialog() 144 public static void showScheduleConflictDialog(Activity activity, Program program) { in showScheduleConflictDialog() argument 145 if (program == null) { in showScheduleConflictDialog() 149 args.putParcelable(DvrHalfSizedDialogFragment.KEY_PROGRAM, program.toParcelable()); in showScheduleConflictDialog() 227 public static void showAlreadyScheduleDialog(Activity activity, Program program) { in showAlreadyScheduleDialog() argument 228 if (program == null) { in showAlreadyScheduleDialog() 232 args.putParcelable(DvrHalfSizedDialogFragment.KEY_PROGRAM, program.toParcelable()); in showAlreadyScheduleDialog() 237 public static void showAlreadyRecordedDialog(Activity activity, Program program) { in showAlreadyRecordedDialog() argument [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackMediaSessionHelper.java | 133 public void setupPlayback(RecordedProgram program, long seekPositionMs) { in setupPlayback() argument 134 if (program != null) { in setupPlayback() 135 mDvrPlayer.setProgram(program, seekPositionMs); in setupPlayback() 136 setupMediaSession(program); in setupPlayback() 149 public boolean isCurrentProgram(RecordedProgram program) { in isCurrentProgram() argument 150 return program != null && program.equals(getProgram()); in isCurrentProgram() 178 private void setupMediaSession(RecordedProgram program) { in setupMediaSession() argument 179 mProgramDurationMs = program.getDurationMillis(); in setupMediaSession() 180 String cardTitleText = program.getTitle(); in setupMediaSession() 182 Channel channel = mChannelDataManager.getChannel(program.getChannelId()); in setupMediaSession() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/search/ |
D | FakeSearchInterface.java | 37 for (Program program : mPrograms) { in search() 38 if (program.getTitle().contains(query) || program.getDescription().contains(query)) { in search() 39 results.add(fromProgram(program)); in search() 45 public static SearchResult fromProgram(Program program) { in fromProgram() argument 47 result.setTitle(program.getTitle()); in fromProgram() 49 program.getStartTimeUtcMillis() + " - " + program.getEndTimeUtcMillis()); in fromProgram() 50 result.setImageUri(program.getPosterArtUri()); in fromProgram() 52 result.setIntentData(TvContract.buildChannelUri(program.getChannelId()).toString()); in fromProgram() 53 result.setIntentExtraData(TvContract.buildProgramUri(program.getId()).toString()); in fromProgram() 56 result.setVideoWidth(program.getVideoWidth()); in fromProgram() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/ |
D | ProgramItemViewTest.java | 167 ProgramImpl program = new ProgramImpl.Builder(baseProgram).build(); in setValue_programNoTitle() local 168 TableEntry tableEntry = create30MinuteTableEntryFor(program, null, false); in setValue_programNoTitle() 176 ProgramImpl program = in setValue_programTitle() local 178 TableEntry tableEntry = create30MinuteTableEntryFor(program, null, false); in setValue_programTitle() 186 ProgramImpl program = in setValue_programDescriptionBlocked() local 191 TableEntry tableEntry = create30MinuteTableEntryFor(program, null, true); in setValue_programDescriptionBlocked() 200 ProgramImpl program = in setValue_programEpisode() local 205 TableEntry tableEntry = create30MinuteTableEntryFor(program, null, false); in setValue_programEpisode() 214 ProgramImpl program = in setValue_programEpisodeAndDescrition() local 220 TableEntry tableEntry = create30MinuteTableEntryFor(program, null, false); in setValue_programEpisodeAndDescrition() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | ChannelBannerView.java | 625 private void updateProgramInfo(Program program) { 627 program = mLockedChannelProgram; 628 } else if (program == null || !program.isValid() || TextUtils.isEmpty(program.getTitle())) { 629 program = mNoProgram; 633 || !TextUtils.equals(program.getTitle(), mLastUpdatedProgram.getTitle()) 635 program.getEpisodeDisplayTitle(getContext()), 637 updateProgramTextView(program); 639 updateProgramTimeInfo(program); 640 updateRecordingStatus(program); 641 updateProgramRatings(program); [all …]
|
/packages/services/Car/evs/app/ |
D | shader.cpp | 60 GLuint program = glCreateProgram(); in buildShaderProgram() local 61 if (program == 0) { in buildShaderProgram() 70 glDeleteProgram(program); in buildShaderProgram() 76 glDeleteProgram(program); in buildShaderProgram() 80 glAttachShader(program, vertexShader); in buildShaderProgram() 81 glAttachShader(program, pixelShader); in buildShaderProgram() 84 glLinkProgram(program); in buildShaderProgram() 86 glGetProgramiv(program, GL_LINK_STATUS, &linked); in buildShaderProgram() 91 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &size); in buildShaderProgram() 96 glGetProgramInfoLog(program, size, NULL, infoLog.get()); in buildShaderProgram() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | DvrHistoryRowAdapter.java | 149 RecordedProgram program, long maxDays) { in recordedProgramsToScheduledRecordings() argument 154 program.getStartTimeUtcMillis(), firstMillisecondToday)) { in recordedProgramsToScheduledRecordings() 157 ScheduledRecording scheduledRecording = ScheduledRecording.builder(program).build(); in recordedProgramsToScheduledRecordings() 158 mRecordedProgramScheduleMap.put(program.getId(), scheduledRecording); in recordedProgramsToScheduledRecordings() 174 public void onScheduledRecordingAdded(RecordedProgram program) { in onScheduledRecordingAdded() argument 176 Log.d(TAG, "onScheduledRecordingAdded: " + program); in onScheduledRecordingAdded() 178 if (mRecordedProgramScheduleMap.get(program.getId()) != null) { in onScheduledRecordingAdded() 182 recordedProgramsToScheduledRecordings(program, mMaxHistoryDays); in onScheduledRecordingAdded() 200 public void onScheduledRecordingRemoved(RecordedProgram program) { in onScheduledRecordingRemoved() argument 202 Log.d(TAG, "onScheduledRecordingRemoved: " + program); in onScheduledRecordingRemoved() [all …]
|
D | SeriesScheduleRowAdapter.java | 103 for (Program program : sortedPrograms) { in setPrograms() 105 mDataManager.getScheduledRecordingForProgramId(program.getId()); in setPrograms() 109 rows.add(new EpisodicProgramRow(mInputId, program, schedule, mHeaderRow)); in setPrograms() 110 mPrograms.put(program.getId(), program); in setPrograms() local 253 Program program = iter.next(); in handleUpdateRow() local 254 if (program.getEndTimeUtcMillis() <= currentTimeMs) { in handleUpdateRow() 256 removeItems(findRowIndexByProgramId(program.getId()), 1); in handleUpdateRow() 258 } else if (program.getStartTimeUtcMillis() < currentTimeMs) { in handleUpdateRow() 260 notifyItemRangeChanged(findRowIndexByProgramId(program.getId()), 1); in handleUpdateRow() 272 for (Program program : mPrograms.values()) { in getNextTimerMs() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | RecordedProgramPresenter.java | 73 protected void onBound(RecordedProgram program) { in onBound() argument 74 mProgram = program; in onBound() 76 mDvrWatchedPositionManager.addListener(this, program.getId()); in onBound() 77 setProgressBar(mDvrWatchedPositionManager.getWatchedPosition(program.getId())); in onBound() 116 public void onBindDvrItemViewHolder(DvrItemViewHolder baseHolder, RecordedProgram program) { in onBindDvrItemViewHolder() argument 119 DetailsContent details = DetailsContent.createFromRecordedProgram(mContext, program); in onBindDvrItemViewHolder() 121 mShowEpisodeTitle ? program.getEpisodeDisplayTitle(mContext) : details.getTitle()); in onBindDvrItemViewHolder() 123 cardView.setContent(generateMajorContent(program), generateMinorContent(program)); in onBindDvrItemViewHolder() 127 private String generateMajorContent(RecordedProgram program) { in generateMajorContent() argument 130 program.getStartTimeUtcMillis(), System.currentTimeMillis()); in generateMajorContent() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrManager.java | 165 public ScheduledRecording addSchedule(Program program) { in addSchedule() argument 166 return addSchedule(program, 0, 0); in addSchedule() 176 public ScheduledRecording addSchedule(Program program, in addSchedule() argument 181 SeriesRecording seriesRecording = getSeriesRecording(program); in addSchedule() 183 program, in addSchedule() 195 public ScheduledRecording addScheduleWithHighestPriority(Program program) { in addScheduleWithHighestPriority() argument 199 SeriesRecording seriesRecording = getSeriesRecording(program); in addScheduleWithHighestPriority() 201 program, in addScheduleWithHighestPriority() 207 program.getStartTimeUtcMillis(), in addScheduleWithHighestPriority() 208 program.getEndTimeUtcMillis()), in addScheduleWithHighestPriority() [all …]
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 144 oldEntry.program, 162 oldEntry.program, 181 oldEntry.program, 516 lastEntry.program, in updateTableEntriesWithoutNotification() 615 for (Program program : programs) { in createProgramEntries() 616 if (program.getChannelId() == INVALID_ID) { in createProgramEntries() 620 long programStartTime = Math.max(program.getStartTimeUtcMillis(), mStartUtcMillis); in createProgramEntries() 621 long programEndTime = program.getEndTimeUtcMillis(); in createProgramEntries() 632 program.getId()); in createProgramEntries() 636 program, in createProgramEntries() [all …]
|
D | ProgramTableAdapter.java | 497 if (Program.isProgramValid(mSelectedEntry.program)) { 498 Program program = mSelectedEntry.program; 499 if (getProgramBlock(program) == null) { 500 program.prefetchPosterArt(itemView.getContext(), mImageWidth, mImageHeight); 569 if (Program.isProgramValid(mSelectedEntry.program)) { 572 Program program = mSelectedEntry.program; 574 TvContentRating blockedRating = getProgramBlock(program); 578 program.loadPosterArt( 582 createProgramPosterArtCallback(this, program)); 585 String episodeTitle = program.getEpisodeDisplayTitle(mContext); [all …]
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 125 public abstract void loadHandle(int program); in loadHandle() argument 134 public void loadHandle(int program) { in loadHandle() argument 135 handle = GLES20.glGetUniformLocation(program, mName); in loadHandle() 146 public void loadHandle(int program) { in loadHandle() argument 147 handle = GLES20.glGetAttribLocation(program, mName); in loadHandle() 197 int program = GLES20.glCreateProgram(); in assembleProgram() local 199 if (program == 0) { in assembleProgram() 202 GLES20.glAttachShader(program, vertexShader); in assembleProgram() 204 GLES20.glAttachShader(program, fragmentShader); in assembleProgram() 206 GLES20.glLinkProgram(program); in assembleProgram() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/ |
D | Renderer.cpp | 78 GLuint program = glCreateProgram(); in createProgram() local 79 if (program) in createProgram() 81 glAttachShader(program, vertexShader); in createProgram() 83 glAttachShader(program, pixelShader); in createProgram() 86 glLinkProgram(program); in createProgram() 88 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram() 95 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); in createProgram() 101 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram() 106 glDeleteProgram(program); in createProgram() 107 program = 0; in createProgram() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/provider/ |
D | DvrDbSyncTest.java | 131 Program program = in testHandleUpdateProgram_changeTimeNotStarted() local 136 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_ID); in testHandleUpdateProgram_changeTimeNotStarted() 137 assertUpdateScheduleCalled(program); in testHandleUpdateProgram_changeTimeNotStarted() 148 Program program = in testHandleUpdateProgram_changeTimeInProgressNotCalled() local 150 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_ID); in testHandleUpdateProgram_changeTimeInProgressNotCalled() 159 Program program = in testHandleUpdateProgram_changeSeason() local 164 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_ID); in testHandleUpdateProgram_changeSeason() 165 assertUpdateScheduleCalled(program); in testHandleUpdateProgram_changeSeason() 177 Program program = in testHandleUpdateProgram_finished() local 182 mDbSync.handleUpdateProgram(program, BASE_PROGRAM_ID); in testHandleUpdateProgram_finished() [all …]
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | EpgDataCleanupServiceTests.java | 143 for (Program program : programs) { in insertPrograms() 144 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, program.startTime); in insertPrograms() 145 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, program.endTime); in insertPrograms() 148 program.id = ContentUris.parseId(uri); in insertPrograms() 182 for (Program program : programs) { in insertWatchedPrograms() 183 values.put(WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, program.startTime); in insertWatchedPrograms() 184 values.put(WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, program.endTime); in insertWatchedPrograms() 187 program.id = ContentUris.parseId(uri); in insertWatchedPrograms() 217 Program program = new Program(1, 2); in testClearOldPrograms() local 218 insertPrograms(program); in testClearOldPrograms() [all …]
|
/packages/services/Car/evs/sampleDriver/ |
D | GlWrapper.cpp | 135 GLuint program = glCreateProgram(); in buildShaderProgram() local 136 if (program == 0) { in buildShaderProgram() 145 glDeleteProgram(program); in buildShaderProgram() 151 glDeleteProgram(program); in buildShaderProgram() 155 glAttachShader(program, vertexShader); in buildShaderProgram() 156 glAttachShader(program, pixelShader); in buildShaderProgram() 159 glLinkProgram(program); in buildShaderProgram() 161 glGetProgramiv(program, GL_LINK_STATUS, &linked); in buildShaderProgram() 166 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &size); in buildShaderProgram() 171 glGetProgramInfoLog(program, size, nullptr, infoLog); in buildShaderProgram() [all …]
|