Merge 24Q3 (ab/11976889) to aosp-main-future Bug: 347831320 Merged-In: Id31f5d13a2b11a173887d417029375215eaf6abd Change-Id: I71ef5c6eccaf21251bde3ba2ea83bcc3c2458834
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 */
diff --git a/flags/flags.aconfig b/flags/flags.aconfig index 3ab4832..ee31b6e 100644 --- a/flags/flags.aconfig +++ b/flags/flags.aconfig
@@ -7,6 +7,7 @@ flag { name: "enable_pid_to_media_session_2" + is_exported: true namespace: "media_solutions" description: "Add pid for Session2Token for Supporting project falcon in MediaSession2" bug: "318745416"