[Media ML] Add @JavaOnlyStableParcelable to media classes
For mainline module to receive parcelable classes not part of the module (i.e. framework class) as argument, they should be either structured parcelable or public/system api. For the latter case, we need to mark them as @JavaOnlyStableParcelable to ensure that they can be referenced safely. This CL adds the annotation to AudioAttributes and MediaMetadata, which are used by ISession, ISessionController, and ISessionControllerCallback. Bug: 169046322 Test: build successful Change-Id: Id2abb9f6b31e5432a631cc11aa65eb7c356451eb
This commit is contained in:
@@ -15,4 +15,4 @@
|
||||
|
||||
package android.media;
|
||||
|
||||
parcelable AudioAttributes;
|
||||
@JavaOnlyStableParcelable parcelable AudioAttributes;
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
|
||||
package android.media;
|
||||
|
||||
parcelable MediaMetadata;
|
||||
@JavaOnlyStableParcelable parcelable MediaMetadata;
|
||||
|
||||
Reference in New Issue
Block a user