Home | History | Annotate | Download | only in tv

Lines Matching defs:session

83      * Creates the session for {@link TvView}.
85 * <p>Do not call {@link TvView#setCallback} after the session is created.
91 TvViewSession session = new TvViewSession(tvView, tunableTvView, callback);
92 mTvViewSessions.add(session);
93 if (DEBUG) Log.d(TAG, "TvView session created: " + session);
94 return session;
97 /** Releases the {@link TvView} session. */
99 public void releaseTvViewSession(TvViewSession session) {
100 mTvViewSessions.remove(session);
101 session.reset();
102 if (DEBUG) Log.d(TAG, "TvView session released: " + session);
105 /** Creates the session for recording. */
113 RecordingSession session = new RecordingSession(inputId, tag, callback, handler, endTimeMs);
114 mRecordingSessions.add(session);
115 if (DEBUG) Log.d(TAG, "Recording session created: " + session);
119 return session;
122 /** Releases the recording session. */
123 public void releaseRecordingSession(RecordingSession session) {
124 mRecordingSessions.remove(session);
125 session.release();
126 if (DEBUG) Log.d(TAG, "Recording session released: " + session);
164 for (TvViewSession session : mTvViewSessions) {
165 if (session.mTuned) {
166 return session.mChannelUri;
177 for (RecordingSession session : mRecordingSessions) {
178 if (session.mTuned && TextUtils.equals(inputId, session.mInputId)) {
179 if (session.mEndTimeMs < timeMs) {
180 timeMs = session.mEndTimeMs;
191 for (TvViewSession session : mTvViewSessions) {
192 if (session.mTuned && Objects.equals(inputId, session.mInputId)) {
201 for (TvViewSession session : mTvViewSessions) {
202 if (session.mTuned && Objects.equals(channelUri, session.mChannelUri)) {
212 for (RecordingSession session : mRecordingSessions) {
213 if (session.mTuned && Objects.equals(inputId, session.mInputId)) {
223 for (RecordingSession session : mRecordingSessions) {
224 if (session.mTuned && Objects.equals(channelUri, session.mChannelUri)) {
233 * The session for {@link TvView}.
235 * <p>The methods which create or release session for the TV input should be called through this
236 * session.
299 "tune: {session="
329 // Release the previous session to not to hold the unnecessary session.
362 if (DEBUG) Log.d(TAG, "Reset TvView session");
373 if (DEBUG) Log.d(TAG, "Reset TvView session by recording");
382 * The session for recording.
384 * <p>The caller is responsible for releasing the session when the error occurs.
409 if (DEBUG) Log.d(TAG, "Release of recording session requested.");
415 if (DEBUG) Log.d(TAG, "Releasing of recording session.");
419 for (TvViewSession session : mTvViewSessions) {
424 + session.mTuned
426 + session.mInputId
427 + ", session="
428 + session
431 if (!sessionsession.mInputId, mInputId)) {
432 session.retune();
468 for (TvViewSession session : mTvViewSessions) {
469 if (session.mTuned
470 && Objects.equals(session.mInputId, inputId)
471 && !isTunedForRecording(session.mChannelUri)) {
472 session.resetByRecording();
493 /** Sets recording session's ending time. */
575 /** Called when recording session is created or destroyed. */