Lines Matching refs:session

436             if (state.session != null) {
438 state.session.release();
497 // Only the application that requested this session or the system can access it.
499 throw new SecurityException("Illegal access to the session with token " + sessionToken
510 ITvInputSession session = sessionState.session;
511 if (session == null) {
515 return session;
573 // Let clients know the create session requests are failed.
578 if (sessionState.session == null && (inputId == null
600 // Set up a callback to send the session token.
603 // Create a session. When failed, send a null token immediately.
628 if (sessionState.session != null) {
633 sessionState.session.release();
639 sessionState.session = null;
654 // Remove the session state from the global session state map of the current user.
661 // Also remove the session token from the session token list of the current client and
698 ITvInputSession session = getSessionLocked(sessionState);
699 session.setMain(isMain);
1032 // Create a new session token and a session state.
1037 // Add them to the global session state map of the current user.
1040 // Also, add them to the session state map of the current service.
1094 // Inform the new main session first.
1180 // Here, we let the hardware session know only whether volume is on or
1780 SessionState session = entry.getValue();
1781 pw.println(entry.getKey() + ": " + session);
1784 pw.println("info: " + session.info);
1785 pw.println("client: " + session.client);
1786 pw.println("seq: " + session.seq);
1787 pw.println("callingUid: " + session.callingUid);
1788 pw.println("userId: " + session.userId);
1789 pw.println("sessionToken: " + session.sessionToken);
1790 pw.println("session: " + session.session);
1791 pw.println("logUri: " + session.logUri);
1792 pw.println("hardwareSessionToken: " + session.hardwareSessionToken);
1828 // A mapping from the token of a TV input session to its state.
1834 // The token of a "main" TV input session.
1918 private ITvInputSession session;
1920 // Not null if this session represents an external device connected to a hardware TV input.
1936 session = null;
1944 // If there are any other sessions based on this session, they should be released.
2134 public void onSessionCreated(ITvInputSession session, IBinder hardwareSessionToken) {
2139 mSessionState.session = session;
2141 if (session != null && addSessionTokenToClientStateLocked(session)) {
2154 private boolean addSessionTokenToClientStateLocked(ITvInputSession session) {
2156 session.asBinder().linkToDeath(mSessionState, 0);
2158 Slog.e(TAG, "session process has already died", e);
2185 if (mSessionState.session == null || mSessionState.client == null) {
2206 if (mSessionState.session == null || mSessionState.client == null) {
2223 if (mSessionState.session == null || mSessionState.client == null) {
2240 if (mSessionState.session == null || mSessionState.client == null) {
2257 if (mSessionState.session == null || mSessionState.client == null) {
2274 if (mSessionState.session == null || mSessionState.client == null) {
2291 if (mSessionState.session == null || mSessionState.client == null) {
2309 if (mSessionState.session == null || mSessionState.client == null) {
2327 if (mSessionState.session == null || mSessionState.client == null) {
2344 if (mSessionState.session == null || mSessionState.client == null) {
2361 if (mSessionState.session == null || mSessionState.client == null) {
2378 if (mSessionState.session == null || mSessionState.client == null) {
2393 // 1. The current TV input session is tuned to a new channel.
2394 // 2. The session is released for some reason.
2396 // a new entry. The latter indicates the end of the most recent entry for the given session.