OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:recordedProgram
(Results
1 - 15
of
15
) sorted by null
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DvrBrowseFragment.java
44
import com.android.tv.dvr.data.
RecordedProgram
;
84
private final HashMap<String,
RecordedProgram
> mSeriesId2LatestProgram = new HashMap<>();
110
if (lhs instanceof
RecordedProgram
) {
111
if (rhs instanceof
RecordedProgram
) {
112
return
RecordedProgram
.START_TIME_THEN_ID_COMPARATOR.reversed()
113
.compare((
RecordedProgram
) lhs, (
RecordedProgram
) rhs);
117
} else if (rhs instanceof
RecordedProgram
) {
173
.addClassPresenter(
RecordedProgram
.class, new RecordedProgramPresenter(context))
236
public void onRecordedProgramsAdded(
RecordedProgram
... recordedPrograms)
[
all
...]
DetailsContent.java
27
import com.android.tv.dvr.data.
RecordedProgram
;
48
RecordedProgram
recordedProgram
) {
50
.setChannelId(
recordedProgram
.getChannelId())
51
.setProgramTitle(
recordedProgram
.getTitle())
52
.setSeasonNumber(
recordedProgram
.getSeasonNumber())
53
.setEpisodeNumber(
recordedProgram
.getEpisodeNumber())
54
.setStartTimeUtcMillis(
recordedProgram
.getStartTimeUtcMillis())
55
.setEndTimeUtcMillis(
recordedProgram
.getEndTimeUtcMillis())
56
.setDescription(TextUtils.isEmpty(
recordedProgram
.getLongDescription()
[
all
...]
SeriesRecordingPresenter.java
32
import com.android.tv.dvr.data.
RecordedProgram
;
92
public void onRecordedProgramsAdded(
RecordedProgram
... recordedPrograms) {
94
for (
RecordedProgram
recordedProgram
: recordedPrograms) {
95
if (TextUtils.equals(
recordedProgram
.getSeriesId(),
98
mWatchedPositionManager.addListener(this,
recordedProgram
.getId());
108
public void onRecordedProgramsRemoved(
RecordedProgram
... recordedPrograms) {
110
for (
RecordedProgram
recordedProgram
: recordedPrograms) {
111
if (TextUtils.equals(
recordedProgram
.getSeriesId()
[
all
...]
DvrDetailsFragment.java
47
import com.android.tv.dvr.data.
RecordedProgram
;
202
protected void startPlayback(
RecordedProgram
recordedProgram
, long seekTimeMs) {
203
if (Utils.isInBundledPackageSet(
recordedProgram
.getPackageName()) &&
204
!isDataUriAccessible(
recordedProgram
.getDataUri())) {
205
// Since cleaning
RecordedProgram
from forgotten storage will take some time,
212
long programId =
recordedProgram
.getId();
221
Channel channel = channelDataManager.getChannel(
recordedProgram
.getChannelId());
223
checkPinToPlay(
recordedProgram
, seekTimeMs);
226
TvContentRating[] ratings =
recordedProgram
.getContentRatings()
[
all
...]
SeriesRecordingDetailsFragment.java
41
import com.android.tv.dvr.data.
RecordedProgram
;
65
private List<
RecordedProgram
> mRecordedPrograms;
66
private
RecordedProgram
mRecommendRecordedProgram;
115
List<
RecordedProgram
> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId());
116
Collections.sort(programs,
RecordedProgram
.EPISODE_COMPARATOR);
147
Collections.sort(mRecordedPrograms,
RecordedProgram
.SEASON_REVERSED_EPISODE_COMPARATOR);
178
for (
RecordedProgram
program : mRecordedPrograms) {
213
private
RecordedProgram
getRecommendProgram(List<
RecordedProgram
> programs) {
215
RecordedProgram
program = programs.get(i)
[
all
...]
RecordedProgramDetailsFragment.java
31
import com.android.tv.dvr.data.
RecordedProgram
;
44
private
RecordedProgram
mRecordedProgram;
136
public void onRecordedProgramsAdded(
RecordedProgram
... recordedPrograms) { }
139
public void onRecordedProgramsChanged(
RecordedProgram
... recordedPrograms) { }
142
public void onRecordedProgramsRemoved(
RecordedProgram
... recordedPrograms) {
143
for (
RecordedProgram
recordedProgram
: recordedPrograms) {
144
if (
recordedProgram
.getId() == mRecordedProgram.getId()) {
/packages/apps/TV/src/com/android/tv/dvr/data/
RecordedProgram.java
49
public class
RecordedProgram
extends BaseProgram {
88
public static
RecordedProgram
fromCursor(Cursor cursor) {
129
public static ContentValues toValues(
RecordedProgram
recordedProgram
) {
131
if (
recordedProgram
.mId != ID_NOT_SET) {
132
values.put(RecordedPrograms._ID,
recordedProgram
.mId);
134
values.put(RecordedPrograms.COLUMN_INPUT_ID,
recordedProgram
.mInputId);
135
values.put(RecordedPrograms.COLUMN_CHANNEL_ID,
recordedProgram
.mChannelId);
136
values.put(RecordedPrograms.COLUMN_TITLE,
recordedProgram
.mTitle);
137
values.put(RecordedPrograms.COLUMN_SEASON_DISPLAY_NUMBER,
recordedProgram
.mSeasonNumber)
[
all
...]
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
DvrDataManagerInMemoryImpl.java
29
import com.android.tv.dvr.data.
RecordedProgram
;
48
private final Map<Long,
RecordedProgram
> mRecordedPrograms = new HashMap<>();
75
public List<
RecordedProgram
> getRecordedPrograms() {
158
public void addRecordedProgram(
RecordedProgram
recordedProgram
) {
159
addRecordedProgramInternal(
recordedProgram
);
162
public void updateRecordedProgram(
RecordedProgram
r) {
172
public void removeRecordedProgram(
RecordedProgram
scheduledRecording) {
191
public
RecordedProgram
addRecordedProgramInternal(
RecordedProgram
recordedProgram)
[
all
...]
/packages/apps/TV/src/com/android/tv/recommendation/
RecordedProgramPreviewUpdater.java
30
import com.android.tv.dvr.data.
RecordedProgram
;
38
* Class to update the preview data for {@link
RecordedProgram
}
72
public void onRecordedProgramsAdded(
RecordedProgram
... recordedPrograms) {
78
public void onRecordedProgramsChanged(
RecordedProgram
... recordedPrograms) {
84
public void onRecordedProgramsRemoved(
RecordedProgram
... recordedPrograms) {
123
Set<
RecordedProgram
> recordedPrograms = generateRecommendationRecordedPrograms();
150
private Set<
RecordedProgram
> generateRecommendationRecordedPrograms() {
151
Set<
RecordedProgram
> programs = new HashSet<>();
152
ArrayList<
RecordedProgram
> sortedRecordedPrograms =
155
sortedRecordedPrograms,
RecordedProgram
.START_TIME_THEN_ID_COMPARATOR.reversed())
[
all
...]
/packages/apps/TV/src/com/android/tv/data/
PreviewProgramContent.java
26
import com.android.tv.dvr.data.
RecordedProgram
;
73
* Create preview program content from {@link
RecordedProgram
}
76
Context context, long previewChannelId,
RecordedProgram
recordedProgram
) {
78
.getChannel(
recordedProgram
.getChannelId());
83
Uri recordedProgramUri = TvContract.buildRecordedProgramUri(
recordedProgram
.getId());
85
.setId(
recordedProgram
.getId())
88
.setTitle(
recordedProgram
.getTitle())
90
.setPosterArtUri(Uri.parse(
recordedProgram
.getPosterArtUri()))
93
recordedProgramUri, new Pair<>(PARAM_INPUT,
recordedProgram
.getInputId()))
[
all
...]
/packages/apps/TV/src/com/android/tv/dvr/
DvrWatchedPositionManager.java
25
import com.android.tv.dvr.data.
RecordedProgram
;
86
@DvrWatchedStatus public int getWatchedStatus(
RecordedProgram
recordedProgram
) {
87
long watchedPosition = getWatchedPosition(
recordedProgram
.getId());
90
} else if (watchedPosition >
recordedProgram
102
if (recordedProgramId ==
RecordedProgram
.ID_NOT_SET) {
DvrManager.java
49
import com.android.tv.dvr.data.
RecordedProgram
;
120
public void onRecordedProgramsAdded(
RecordedProgram
... recordedPrograms) {
124
for (
RecordedProgram
recordedProgram
: recordedPrograms) {
125
createSeriesRecordingForRecordedProgramIfNeeded(
recordedProgram
);
130
public void onRecordedProgramsChanged(
RecordedProgram
... recordedPrograms) { }
133
public void onRecordedProgramsRemoved(
RecordedProgram
... recordedPrograms) {
140
List<
RecordedProgram
> recordedPrograms) {
141
for (
RecordedProgram
recordedProgram
: recordedPrograms)
[
all
...]
DvrDataManagerImpl.java
46
import com.android.tv.dvr.data.
RecordedProgram
;
89
private final HashMap<Long,
RecordedProgram
> mRecordedPrograms = new HashMap<>();
97
private final HashMap<Long,
RecordedProgram
> mRecordedProgramsForRemovedInput = new HashMap<>();
314
private void onRecordedProgramsLoadedFinished(Uri uri, List<
RecordedProgram
> recordedPrograms) {
324
for (
RecordedProgram
recorded : recordedPrograms) {
338
List<
RecordedProgram
> oldRecordedPrograms =
342
notifyRecordedProgramsRemoved(
RecordedProgram
.toArray(oldRecordedPrograms));
344
HashMap<Long,
RecordedProgram
> oldRecordedPrograms
348
List<
RecordedProgram
> addedRecordedPrograms = new ArrayList<>();
349
List<
RecordedProgram
> changedRecordedPrograms = new ArrayList<>()
[
all
...]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DvrUiHelper.java
51
import com.android.tv.dvr.data.
RecordedProgram
;
310
RecordedProgram
recordedProgram
= dvrManager.getRecordedProgram(program.getTitle(),
312
if (
recordedProgram
!= null) {
530
* {@link ScheduledRecording}, {@link
RecordedProgram
}, or {@link SeriesRecording}.
550
} else if (dvrItem instanceof
RecordedProgram
) {
551
recordingId = ((
RecordedProgram
) dvrItem).getId();
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
TunerRecordingSessionWorker.java
42
import com.android.tv.dvr.data.
RecordedProgram
;
591
RecordedProgram
recordedProgram
=
RecordedProgram
.builder()
601
ContentValues values =
RecordedProgram
.toValues(
recordedProgram
);
Completed in 750 milliseconds