OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:scheduledRecording
(Results
1 - 14
of
14
) sorted by null
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DetailsContent.java
28
import com.android.tv.dvr.data.
ScheduledRecording
;
76
ScheduledRecording
scheduledRecording
) {
78
.getChannel(
scheduledRecording
.getChannelId());
79
String description = !TextUtils.isEmpty(
scheduledRecording
.getProgramDescription()) ?
80
scheduledRecording
.getProgramDescription()
81
:
scheduledRecording
.getProgramLongDescription();
86
.setChannelId(
scheduledRecording
.getChannelId())
87
.setProgramTitle(
scheduledRecording
.getProgramTitle())
88
.setSeasonNumber(
scheduledRecording
.getSeasonNumber()
[
all
...]
SeriesRecordingPresenter.java
33
import com.android.tv.dvr.data.
ScheduledRecording
;
72
public void onScheduledRecordingAdded(
ScheduledRecording
... scheduledRecordings) {
73
for (
ScheduledRecording
scheduledRecording
: scheduledRecordings) {
74
if (
scheduledRecording
.getSeriesRecordingId() == mSeriesRecording.getId()) {
82
public void onScheduledRecordingRemoved(
ScheduledRecording
... scheduledRecordings) {
83
for (
ScheduledRecording
scheduledRecording
: scheduledRecordings) {
84
if (
scheduledRecording
.getSeriesRecordingId() == mSeriesRecording.getId()) {
131
public void onScheduledRecordingStatusChanged(
ScheduledRecording
... scheduledRecordings)
[
all
...]
/packages/apps/TV/src/com/android/tv/dvr/
BaseDvrDataManager.java
30
import com.android.tv.dvr.data.
ScheduledRecording
;
31
import com.android.tv.dvr.data.
ScheduledRecording
.RecordingState;
62
private final HashMap<Long,
ScheduledRecording
> mDeletedScheduleMap = new HashMap<>();
213
protected final void notifyScheduledRecordingAdded(
ScheduledRecording
...
scheduledRecording
) {
215
if (DEBUG) Log.d(TAG, "notify " + l + " added " + Arrays.asList(
scheduledRecording
));
216
l.onScheduledRecordingAdded(
scheduledRecording
);
224
protected final void notifyScheduledRecordingRemoved(
ScheduledRecording
...
scheduledRecording
) {
226
if (DEBUG) Log.d(TAG, "notify " + l + " removed " + Arrays.asList(
scheduledRecording
));
[
all
...]
WritableDvrDataManager.java
21
import com.android.tv.dvr.data.
ScheduledRecording
;
22
import com.android.tv.dvr.data.
ScheduledRecording
.RecordingState;
36
void addScheduledRecording(
ScheduledRecording
... scheduledRecordings);
46
void removeScheduledRecording(
ScheduledRecording
... scheduledRecordings);
52
void removeScheduledRecording(boolean forceRemove,
ScheduledRecording
... scheduledRecordings);
62
void updateScheduledRecording(
ScheduledRecording
... scheduledRecordings);
72
void changeState(
ScheduledRecording
scheduledRecording
, @RecordingState int newState);
DvrScheduleManager.java
39
import com.android.tv.dvr.data.
ScheduledRecording
;
72
private static final Comparator<
ScheduledRecording
> RESULT_COMPARATOR =
74
ScheduledRecording
.PRIORITY_COMPARATOR.reversed(),
75
ScheduledRecording
.START_TIME_COMPARATOR,
76
ScheduledRecording
.ID_COMPARATOR.reversed());
80
private static final Comparator<
ScheduledRecording
> CANDIDATE_COMPARATOR =
82
ScheduledRecording
.PRIORITY_COMPARATOR,
83
ScheduledRecording
.END_TIME_COMPARATOR,
84
ScheduledRecording
.ID_COMPARATOR);
90
private final Map<String, List<
ScheduledRecording
>> mInputScheduleMap = new HashMap<>()
[
all
...]
DvrManager.java
50
import com.android.tv.dvr.data.
ScheduledRecording
;
159
public
ScheduledRecording
addSchedule(Program program) {
173
public
ScheduledRecording
addScheduleWithHighestPriority(Program program) {
185
private
ScheduledRecording
addSchedule(Program program, long priority) {
191
ScheduledRecording
schedule;
222
public void addSchedule(
ScheduledRecording
schedule) {
229
mDataManager.addScheduledRecording(
ScheduledRecording
275
List<
ScheduledRecording
> toAdd = new ArrayList<>();
282
toAdd.add(
ScheduledRecording
.builder(recordedProgram)
288
mDataManager.addScheduledRecording(
ScheduledRecording
.toArray(toAdd))
[
all
...]
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
DvrDataManagerInMemoryImpl.java
30
import com.android.tv.dvr.data.
ScheduledRecording
;
31
import com.android.tv.dvr.data.
ScheduledRecording
.RecordingState;
47
private final Map<Long,
ScheduledRecording
> mScheduledRecordings = new HashMap<>();
70
private List<
ScheduledRecording
> getScheduledRecordingsPrograms() {
80
public List<
ScheduledRecording
> getAllScheduledRecordings() {
102
List<
ScheduledRecording
> temp = getNonStartedScheduledRecordings();
103
Collections.sort(temp,
ScheduledRecording
.START_TIME_COMPARATOR);
104
for (
ScheduledRecording
r : temp) {
113
public List<
ScheduledRecording
> getScheduledRecordings(Range<Long> period,
115
List<
ScheduledRecording
> temp = getScheduledRecordingsPrograms()
[
all
...]
/packages/apps/TV/src/com/android/tv/guide/
ProgramManager.java
32
import com.android.tv.dvr.data.
ScheduledRecording
;
93
for (
ScheduledRecording
r : mDvrDataManager.getAllScheduledRecordings()) {
131
public void onScheduledRecordingAdded(
ScheduledRecording
... scheduledRecordings) {
132
for (
ScheduledRecording
schedule : scheduledRecordings) {
144
public void onScheduledRecordingRemoved(
ScheduledRecording
... scheduledRecordings) {
145
for (
ScheduledRecording
schedule : scheduledRecordings) {
157
public void onScheduledRecordingStatusChanged(
ScheduledRecording
... scheduledRecordings) {
158
for (
ScheduledRecording
schedule : scheduledRecordings) {
174
ScheduledRecording
... schedules) {
175
for (
ScheduledRecording
schedule : schedules)
[
all
...]
ProgramItemView.java
47
import com.android.tv.dvr.data.
ScheduledRecording
;
114
if (entry.
scheduledRecording
== null) {
124
dvrManager.removeScheduledRecording(entry.
scheduledRecording
);
311
if (mTableEntry.
scheduledRecording
!= null) {
312
if (mDvrManager.isConflicting(mTableEntry.
scheduledRecording
)) {
315
switch (mTableEntry.
scheduledRecording
.getState()) {
316
case
ScheduledRecording
.STATE_RECORDING_NOT_STARTED:
319
case
ScheduledRecording
.STATE_RECORDING_IN_PROGRESS:
ProgramTableAdapter.java
62
import com.android.tv.dvr.data.
ScheduledRecording
;
573
ScheduledRecording
scheduledRecording
=
577
if (
scheduledRecording
!= null) {
578
if (mDvrManager.isConflicting(
scheduledRecording
)) {
582
switch (
scheduledRecording
.getState()) {
583
case
ScheduledRecording
.STATE_RECORDING_IN_PROGRESS:
587
case
ScheduledRecording
.STATE_RECORDING_NOT_STARTED:
591
case
ScheduledRecording
.STATE_RECORDING_FAILED:
[
all
...]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
RecordingTask.java
42
import com.android.tv.dvr.data.
ScheduledRecording
;
137
private
ScheduledRecording
mScheduledRecording;
145
RecordingTask(Context context,
ScheduledRecording
scheduledRecording
, Channel channel,
149
mScheduledRecording =
scheduledRecording
;
180
handleUpdateSchedule((
ScheduledRecording
) msg.obj);
236
int state =
ScheduledRecording
.STATE_RECORDING_FINISHED;
239
state =
ScheduledRecording
.STATE_RECORDING_CLIPPED;
261
ScheduledRecording
scheduledRecording
= mDataManage
[
all
...]
InputTaskScheduler.java
35
import com.android.tv.dvr.data.
ScheduledRecording
;
72
public static Comparator<
ScheduledRecording
> getRecordingOrderComparator() {
73
return
ScheduledRecording
.START_TIME_THEN_PRIORITY_THEN_ID_COMPARATOR;
84
HandlerWrapper(Looper looper,
ScheduledRecording
scheduledRecording
,
87
mId =
scheduledRecording
.getId();
117
private final Map<Long,
ScheduledRecording
> mWaitingSchedules = new ArrayMap<>();
148
public RecordingTask createRecordingTask(
ScheduledRecording
schedule, Channel channel,
159
* Adds a {@link
ScheduledRecording
}.
161
public void addSchedule(
ScheduledRecording
schedule)
[
all
...]
RecordingScheduler.java
46
import com.android.tv.dvr.data.
ScheduledRecording
;
188
List<
ScheduledRecording
> scheduledRecordings = mDataManager
191
ScheduledRecording
.STATE_RECORDING_NOT_STARTED);
192
for (
ScheduledRecording
r : scheduledRecordings) {
209
public void onScheduledRecordingAdded(
ScheduledRecording
... schedules) {
218
public void onScheduledRecordingRemoved(
ScheduledRecording
... schedules) {
224
for (
ScheduledRecording
schedule : schedules) {
237
public void onScheduledRecordingStatusChanged(
ScheduledRecording
... schedules) {
243
for (
ScheduledRecording
schedule : schedules) {
252
private void handleScheduleChange(
ScheduledRecording
... schedules)
[
all
...]
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/
InputTaskSchedulerTest.java
43
import com.android.tv.dvr.data.
ScheduledRecording
;
95
public RecordingTask createRecordingTask(
ScheduledRecording
scheduledRecording
,
100
when(task.getPriority()).thenReturn(
scheduledRecording
.getPriority());
101
when(task.getEndTimeMs()).thenReturn(
scheduledRecording
.getEndTimeMs());
110
ScheduledRecording
r = RecordingTestUtils.createTestRecordingWithPeriod(INPUT_ID,
116
.changeState(any(
ScheduledRecording
.class),
117
eq(
ScheduledRecording
.STATE_RECORDING_FAILED));
156
when(mDataManager.getScheduledRecording(anyLong())).thenReturn(
ScheduledRecording
174
.changeState(any(
ScheduledRecording
.class)
[
all
...]
Completed in 357 milliseconds