Loading media/java/android/media/tv/ITvInputSessionWrapper.java +4 −3 Original line number Diff line number Diff line Loading @@ -249,7 +249,8 @@ public class ITvInputSessionWrapper extends ITvInputSession.Stub implements Hand } case DO_SELECT_AUDIO_PRESENTATION: { SomeArgs args = (SomeArgs) msg.obj; mTvInputSessionImpl.selectAudioPresentation(args.argi1, args.argi2); mTvInputSessionImpl.selectAudioPresentation( (Integer) args.arg1, (Integer) args.arg2); args.recycle(); break; } Loading Loading @@ -348,8 +349,8 @@ public class ITvInputSessionWrapper extends ITvInputSession.Stub implements Hand @Override public void selectAudioPresentation(int presentationId, int programId) { mCaller.executeOrSendMessage(mCaller.obtainMessageII(DO_SELECT_AUDIO_PRESENTATION, presentationId, programId)); mCaller.executeOrSendMessage( mCaller.obtainMessageOO(DO_SELECT_AUDIO_PRESENTATION, presentationId, programId)); } @Override Loading services/core/java/com/android/server/tv/TvInputManagerService.java +11 −9 Original line number Diff line number Diff line Loading @@ -815,8 +815,8 @@ public final class TvInputManagerService extends SystemService { } @GuardedBy("mLock") private boolean createSessionInternalLocked(ITvInputService service, IBinder sessionToken, int userId, AttributionSource tvAppAttributionSource) { private boolean createSessionInternalLocked( ITvInputService service, IBinder sessionToken, int userId) { UserState userState = getOrCreateUserStateLocked(userId); SessionState sessionState = userState.sessionStateMap.get(sessionToken); if (DEBUG) { Loading @@ -836,7 +836,7 @@ public final class TvInputManagerService extends SystemService { callback, sessionState.inputId, sessionState.sessionId); } else { service.createSession(channels[1], callback, sessionState.inputId, sessionState.sessionId, tvAppAttributionSource); sessionState.sessionId, sessionState.tvAppAttributionSource); } } catch (RemoteException e) { Slog.e(TAG, "error in createSession", e); Loading Loading @@ -1547,7 +1547,7 @@ public final class TvInputManagerService extends SystemService { IBinder sessionToken = new Binder(); SessionState sessionState = new SessionState(sessionToken, info.getId(), info.getComponent(), isRecordingSession, client, seq, callingUid, callingPid, resolvedUserId, uniqueSessionId); callingPid, resolvedUserId, uniqueSessionId, tvAppAttributionSource); // Add them to the global session state map of the current user. userState.sessionStateMap.put(sessionToken, sessionState); Loading @@ -1559,8 +1559,8 @@ public final class TvInputManagerService extends SystemService { serviceState.sessionTokens.add(sessionToken); if (serviceState.service != null) { if (!createSessionInternalLocked(serviceState.service, sessionToken, resolvedUserId, tvAppAttributionSource)) { if (!createSessionInternalLocked( serviceState.service, sessionToken, resolvedUserId)) { removeSessionStateLocked(sessionToken, resolvedUserId); } } else { Loading Loading @@ -3135,6 +3135,7 @@ public final class TvInputManagerService extends SystemService { private final ComponentName componentName; private final boolean isRecordingSession; private final ITvInputClient client; private final AttributionSource tvAppAttributionSource; private final int seq; /** * The {code UID} of the application that created the session. Loading Loading @@ -3163,7 +3164,8 @@ public final class TvInputManagerService extends SystemService { private SessionState(IBinder sessionToken, String inputId, ComponentName componentName, boolean isRecordingSession, ITvInputClient client, int seq, int callingUid, int callingPid, int userId, String sessionId) { int callingPid, int userId, String sessionId, AttributionSource tvAppAttributionSource) { this.sessionToken = sessionToken; this.inputId = inputId; this.componentName = componentName; Loading @@ -3174,6 +3176,7 @@ public final class TvInputManagerService extends SystemService { this.callingPid = callingPid; this.userId = userId; this.sessionId = sessionId; this.tvAppAttributionSource = tvAppAttributionSource; } @Override Loading Loading @@ -3223,8 +3226,7 @@ public final class TvInputManagerService extends SystemService { // And create sessions, if any. for (IBinder sessionToken : serviceState.sessionTokens) { if (!createSessionInternalLocked( serviceState.service, sessionToken, mUserId, null)) { if (!createSessionInternalLocked(serviceState.service, sessionToken, mUserId)) { tokensToBeRemoved.add(sessionToken); } } Loading Loading
media/java/android/media/tv/ITvInputSessionWrapper.java +4 −3 Original line number Diff line number Diff line Loading @@ -249,7 +249,8 @@ public class ITvInputSessionWrapper extends ITvInputSession.Stub implements Hand } case DO_SELECT_AUDIO_PRESENTATION: { SomeArgs args = (SomeArgs) msg.obj; mTvInputSessionImpl.selectAudioPresentation(args.argi1, args.argi2); mTvInputSessionImpl.selectAudioPresentation( (Integer) args.arg1, (Integer) args.arg2); args.recycle(); break; } Loading Loading @@ -348,8 +349,8 @@ public class ITvInputSessionWrapper extends ITvInputSession.Stub implements Hand @Override public void selectAudioPresentation(int presentationId, int programId) { mCaller.executeOrSendMessage(mCaller.obtainMessageII(DO_SELECT_AUDIO_PRESENTATION, presentationId, programId)); mCaller.executeOrSendMessage( mCaller.obtainMessageOO(DO_SELECT_AUDIO_PRESENTATION, presentationId, programId)); } @Override Loading
services/core/java/com/android/server/tv/TvInputManagerService.java +11 −9 Original line number Diff line number Diff line Loading @@ -815,8 +815,8 @@ public final class TvInputManagerService extends SystemService { } @GuardedBy("mLock") private boolean createSessionInternalLocked(ITvInputService service, IBinder sessionToken, int userId, AttributionSource tvAppAttributionSource) { private boolean createSessionInternalLocked( ITvInputService service, IBinder sessionToken, int userId) { UserState userState = getOrCreateUserStateLocked(userId); SessionState sessionState = userState.sessionStateMap.get(sessionToken); if (DEBUG) { Loading @@ -836,7 +836,7 @@ public final class TvInputManagerService extends SystemService { callback, sessionState.inputId, sessionState.sessionId); } else { service.createSession(channels[1], callback, sessionState.inputId, sessionState.sessionId, tvAppAttributionSource); sessionState.sessionId, sessionState.tvAppAttributionSource); } } catch (RemoteException e) { Slog.e(TAG, "error in createSession", e); Loading Loading @@ -1547,7 +1547,7 @@ public final class TvInputManagerService extends SystemService { IBinder sessionToken = new Binder(); SessionState sessionState = new SessionState(sessionToken, info.getId(), info.getComponent(), isRecordingSession, client, seq, callingUid, callingPid, resolvedUserId, uniqueSessionId); callingPid, resolvedUserId, uniqueSessionId, tvAppAttributionSource); // Add them to the global session state map of the current user. userState.sessionStateMap.put(sessionToken, sessionState); Loading @@ -1559,8 +1559,8 @@ public final class TvInputManagerService extends SystemService { serviceState.sessionTokens.add(sessionToken); if (serviceState.service != null) { if (!createSessionInternalLocked(serviceState.service, sessionToken, resolvedUserId, tvAppAttributionSource)) { if (!createSessionInternalLocked( serviceState.service, sessionToken, resolvedUserId)) { removeSessionStateLocked(sessionToken, resolvedUserId); } } else { Loading Loading @@ -3135,6 +3135,7 @@ public final class TvInputManagerService extends SystemService { private final ComponentName componentName; private final boolean isRecordingSession; private final ITvInputClient client; private final AttributionSource tvAppAttributionSource; private final int seq; /** * The {code UID} of the application that created the session. Loading Loading @@ -3163,7 +3164,8 @@ public final class TvInputManagerService extends SystemService { private SessionState(IBinder sessionToken, String inputId, ComponentName componentName, boolean isRecordingSession, ITvInputClient client, int seq, int callingUid, int callingPid, int userId, String sessionId) { int callingPid, int userId, String sessionId, AttributionSource tvAppAttributionSource) { this.sessionToken = sessionToken; this.inputId = inputId; this.componentName = componentName; Loading @@ -3174,6 +3176,7 @@ public final class TvInputManagerService extends SystemService { this.callingPid = callingPid; this.userId = userId; this.sessionId = sessionId; this.tvAppAttributionSource = tvAppAttributionSource; } @Override Loading Loading @@ -3223,8 +3226,7 @@ public final class TvInputManagerService extends SystemService { // And create sessions, if any. for (IBinder sessionToken : serviceState.sessionTokens) { if (!createSessionInternalLocked( serviceState.service, sessionToken, mUserId, null)) { if (!createSessionInternalLocked(serviceState.service, sessionToken, mUserId)) { tokensToBeRemoved.add(sessionToken); } } Loading