Lines Matching refs:run
82 * contents of a run are submitted in sequential order, with eos
83 * indicating the last section of the run. Calls from different
87 * @param eos true if this is the last section of the run.
88 * @param runID mostly-unique ID for this run of data. Subtitle cues
93 * run, which defaults to the latest timestamp of
163 Run run = mRunsByEndTime.valueAt(ix);
164 while (run != null) {
165 Cue cue = run.mFirstCue;
172 mRunsByID.remove(run.mRunID);
173 Run nextRun = run.mNextRunAtEndTimeMs;
174 run.mPrevRunAtEndTimeMs = null;
175 run.mNextRunAtEndTimeMs = null;
176 run = nextRun;
295 Run run = mRunsByID.get(cue.mRunID);
296 if (run == null) {
297 run = new Run();
298 mRunsByID.put(cue.mRunID, run);
299 run.mEndTimeMs = cue.mEndTimeMs;
300 } else if (run.mEndTimeMs < cue.mEndTimeMs) {
301 run.mEndTimeMs = cue.mEndTimeMs;
304 // link-up cues in the same run
305 cue.mNextInRun = run.mFirstCue;
306 run.mFirstCue = cue;
335 public void run() {
581 Run run = mRunsByID.get(runID);
582 if (run != null) {
583 run.storeByEndTimeMs(mRunsByEndTime);
591 Run run = mRunsByID.get(runID);
592 if (run != null) {
593 run.mEndTimeMs = timeMs;
594 run.storeByEndTimeMs(mRunsByEndTime);