Home | History | Annotate | Download | only in tv

Lines Matching defs:session

385                 if (sessionState.session != null && !sessionState.isRecordingSession) {
391 sessionState.session.release();
432 // If there are any other sessions based on this session, they should be released.
455 if (state.session != null) {
457 state.session.release();
527 throw new SessionNotFoundException("Session state not found for token " + sessionToken);
529 // Only the application that requested this session or the system can access it.
531 throw new SecurityException("Illegal access to the session with token " + sessionToken
542 ITvInputSession session = sessionState.session;
543 if (session == null) {
544 throw new IllegalStateException("Session not yet created for token "
547 return session;
611 // Let clients know the create session requests are failed.
616 if (sessionState.session == null && (inputId == null
638 // Set up a callback to send the session token.
641 // Create a session. When failed, send a null token immediately.
670 if (sessionState.session != null) {
675 sessionState.session.release();
681 sessionState.session = null;
696 // Remove the session state from the global session state map of the current user.
703 // Also remove the session token from the session token list of the current client and
737 ITvInputSession session = getSessionLocked(sessionState);
738 session.setMain(isMain);
1152 // A non-recording session of a backgroud (non-current) user
1177 // Create a new session token and a session state.
1183 // Add them to the global session state map of the current user.
1186 // Also, add them to the session state map of the current service.
1246 // Inform the new main session first.
1247 // See {@link TvInputService.Session#onSetMain}.
1332 // Here, we let the hardware session know only whether volume is on or
2076 SessionState session = entry.getValue();
2077 pw.println(entry.getKey() + ": " + session);
2080 pw.println("inputId: " + session.inputId);
2081 pw.println("client: " + session.client);
2082 pw.println("seq: " + session.seq);
2083 pw.println("callingUid: " + session.callingUid);
2084 pw.println("userId: " + session.userId);
2085 pw.println("sessionToken: " + session.sessionToken);
2086 pw.println("session: " + session.session);
2087 pw.println("logUri: " + session.logUri);
2088 pw.println("hardwareSessionToken: " + session.hardwareSessionToken);
2125 // A mapping from the token of a TV input session to its state.
2131 // The token of a "main" TV input session.
2217 private ITvInputSession session;
2219 // Not null if this session represents an external device connected to a hardware TV input.
2238 session = null;
2406 public void onSessionCreated(ITvInputSession session, IBinder hardwareSessionToken) {
2411 mSessionState.session = session;
2413 if (session != null && addSessionTokenToClientStateLocked(session)) {
2426 private boolean addSessionTokenToClientStateLocked(ITvInputSession session) {
2428 session.asBinder().linkToDeath(mSessionState, 0);
2430 Slog.e(TAG, "session process has already died", e);
2457 if (mSessionState.session == null || mSessionState.client == null) {
2478 if (mSessionState.session == null || mSessionState.client == null) {
2495 if (mSessionState.session == null || mSessionState.client == null) {
2512 if (mSessionState.session == null || mSessionState.client == null) {
2529 if (mSessionState.session == null || mSessionState.client == null) {
2546 if (mSessionState.session == null || mSessionState.client == null) {
2563 if (mSessionState.session == null || mSessionState.client == null) {
2581 if (mSessionState.session == null || mSessionState.client == null) {
2600 if (mSessionState.session == null || mSessionState.client == null) {
2617 if (mSessionState.session == null || mSessionState.client == null) {
2634 if (mSessionState.session == null || mSessionState.client == null) {
2651 if (mSessionState.session == null || mSessionState.client == null) {
2663 // For the recording session only
2670 if (mSessionState.session == null || mSessionState.client == null) {
2681 // For the recording session only
2689 if (mSessionState.session == null || mSessionState.client == null) {
2700 // For the recording session only
2707 if (mSessionState.session == null || mSessionState.client == null) {
2721 // 1. The current TV input session is tuned to a new channel.
2722 // 2. The session is released for some reason.
2724 // a new entry. The latter indicates the end of the most recent entry for the given session.