Loading services/core/java/com/android/server/media/MediaRouter2ServiceImpl.java +20 −8 Original line number Diff line number Diff line Loading @@ -2955,6 +2955,21 @@ class MediaRouter2ServiceImpl { } } /** * Notifies the corresponding manager of the creation of the given {@link * RoutingSessionInfo}. * * @param requestId The id of the request that originated the creation of the session. * @param session The session that was created. */ public void notifySessionCreated(int requestId, @NonNull RoutingSessionInfo session) { try { mManager.notifySessionCreated(requestId, session); } catch (RemoteException ex) { logRemoteException("notifySessionCreated", ex); } } /** * Notifies the corresponding manager of the availability of the given routes. * Loading Loading @@ -4042,14 +4057,11 @@ class MediaRouter2ServiceImpl { int originalRequestId = toOriginalRequestId(managerRequestId); for (ManagerRecord manager : getManagerRecords()) { try { manager.mManager.notifySessionCreated( ((manager.mManagerId == requesterId) ? originalRequestId : MediaRouter2Manager.REQUEST_ID_NONE), session); } catch (RemoteException ex) { Slog.w(TAG, "notifySessionCreatedToManagers: " + "Failed to notify. Manager probably died.", ex); } int requestId = manager.mManagerId == requesterId ? originalRequestId : MediaRouter2Manager.REQUEST_ID_NONE; manager.notifySessionCreated(requestId, session); } } Loading Loading
services/core/java/com/android/server/media/MediaRouter2ServiceImpl.java +20 −8 Original line number Diff line number Diff line Loading @@ -2955,6 +2955,21 @@ class MediaRouter2ServiceImpl { } } /** * Notifies the corresponding manager of the creation of the given {@link * RoutingSessionInfo}. * * @param requestId The id of the request that originated the creation of the session. * @param session The session that was created. */ public void notifySessionCreated(int requestId, @NonNull RoutingSessionInfo session) { try { mManager.notifySessionCreated(requestId, session); } catch (RemoteException ex) { logRemoteException("notifySessionCreated", ex); } } /** * Notifies the corresponding manager of the availability of the given routes. * Loading Loading @@ -4042,14 +4057,11 @@ class MediaRouter2ServiceImpl { int originalRequestId = toOriginalRequestId(managerRequestId); for (ManagerRecord manager : getManagerRecords()) { try { manager.mManager.notifySessionCreated( ((manager.mManagerId == requesterId) ? originalRequestId : MediaRouter2Manager.REQUEST_ID_NONE), session); } catch (RemoteException ex) { Slog.w(TAG, "notifySessionCreatedToManagers: " + "Failed to notify. Manager probably died.", ex); } int requestId = manager.mManagerId == requesterId ? originalRequestId : MediaRouter2Manager.REQUEST_ID_NONE; manager.notifySessionCreated(requestId, session); } } Loading