Loading services/core/java/com/android/server/tv/TvInputManagerService.java +8 −4 Original line number Original line Diff line number Diff line Loading @@ -879,10 +879,13 @@ public final class TvInputManagerService extends SystemService { sessionState.session = null; sessionState.session = null; } } } } if (mCurrentSessionState == sessionState) { // only log when releasing the current on-screen session logExternalInputEvent(FrameworkStatsLog.EXTERNAL_TV_INPUT_EVENT__EVENT_TYPE__RELEASED, logExternalInputEvent(FrameworkStatsLog.EXTERNAL_TV_INPUT_EVENT__EVENT_TYPE__RELEASED, mCurrentInputId, sessionState); mCurrentInputId, sessionState); mCurrentInputId = null; mCurrentInputId = null; mCurrentSessionState = null; mCurrentSessionState = null; } removeSessionStateLocked(sessionToken, userId); removeSessionStateLocked(sessionToken, userId); return sessionState; return sessionState; } } Loading Loading @@ -3046,6 +3049,7 @@ public final class TvInputManagerService extends SystemService { } } private void logExternalInputEvent(int eventType, String inputId, SessionState sessionState) { private void logExternalInputEvent(int eventType, String inputId, SessionState sessionState) { // TODO: handle recording sessions UserState userState = getOrCreateUserStateLocked(sessionState.userId); UserState userState = getOrCreateUserStateLocked(sessionState.userId); TvInputState tvInputState = userState.inputMap.get(inputId); TvInputState tvInputState = userState.inputMap.get(inputId); TvInputInfo tvInputInfo = tvInputState.info; TvInputInfo tvInputInfo = tvInputState.info; Loading Loading
services/core/java/com/android/server/tv/TvInputManagerService.java +8 −4 Original line number Original line Diff line number Diff line Loading @@ -879,10 +879,13 @@ public final class TvInputManagerService extends SystemService { sessionState.session = null; sessionState.session = null; } } } } if (mCurrentSessionState == sessionState) { // only log when releasing the current on-screen session logExternalInputEvent(FrameworkStatsLog.EXTERNAL_TV_INPUT_EVENT__EVENT_TYPE__RELEASED, logExternalInputEvent(FrameworkStatsLog.EXTERNAL_TV_INPUT_EVENT__EVENT_TYPE__RELEASED, mCurrentInputId, sessionState); mCurrentInputId, sessionState); mCurrentInputId = null; mCurrentInputId = null; mCurrentSessionState = null; mCurrentSessionState = null; } removeSessionStateLocked(sessionToken, userId); removeSessionStateLocked(sessionToken, userId); return sessionState; return sessionState; } } Loading Loading @@ -3046,6 +3049,7 @@ public final class TvInputManagerService extends SystemService { } } private void logExternalInputEvent(int eventType, String inputId, SessionState sessionState) { private void logExternalInputEvent(int eventType, String inputId, SessionState sessionState) { // TODO: handle recording sessions UserState userState = getOrCreateUserStateLocked(sessionState.userId); UserState userState = getOrCreateUserStateLocked(sessionState.userId); TvInputState tvInputState = userState.inputMap.get(inputId); TvInputState tvInputState = userState.inputMap.get(inputId); TvInputInfo tvInputInfo = tvInputState.info; TvInputInfo tvInputInfo = tvInputState.info; Loading