Snap for 11710546 from 316ba7c659a612f0aea9c69aa3cb907b456ad966 to 24Q3-release Change-Id: I68c6ba5c317d7241736cd6c717caa25a3ec2e483
diff --git a/apex/framework/java/android/media/MediaCommunicationManager.java b/apex/framework/java/android/media/MediaCommunicationManager.java index ba59395..8dd6fed 100644 --- a/apex/framework/java/android/media/MediaCommunicationManager.java +++ b/apex/framework/java/android/media/MediaCommunicationManager.java
@@ -284,16 +284,22 @@ @SystemApi(client = MODULE_LIBRARIES) public interface SessionCallback { /** - * Called when {@link #onSession2TokenCreated(Session2Token, int)} is left unimplemented. + * Equivalent to {@link #onSession2TokenCreated(Session2Token, int)}, except + * it does not take the pid of the session. + * + * <p>Not invoked if the implementation overrides {@link + * #onSession2TokenCreated(Session2Token, int)}. * * @param token the newly created token */ - // TODO (b/324266224): Deprecate this method once other overload is published. default void onSession2TokenCreated(@NonNull Session2Token token) {} /** * Called when a new {@link MediaSession2} is created. * + * <p>The default implementation calls {@link #onSession2TokenCreated(Session2Token, + * int)}. + * * @param token the newly created token * @param pid the pid of the process hosting the media session */