History log of /frameworks/support/media/src/main/java/androidx/media/MediaSession2Stub.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e7fe1a7b5c39d7950622257b7fedcd831ee2cac2 27-Apr-2018 Hyundo Moon <hdmoon@google.com> Set classLoader when using Bundle from Media*Compat.Callback

When connected to remote controller/session, receiving a bundle
through Media*Compat.Callback can cause BadParcelableException of
PlaybackStateCompat class.
This CL prevents the problem by setting the class loader.

Test: connectedCheck w/o MediaPlayer2Test passes
Change-Id: I131f360b7c0e1a0621d02307b4f26078a8a8ea87
/frameworks/support/media/src/main/java/androidx/media/MediaSession2Stub.java
f2b24d6520e1fd1988d8dbe32a5384b07e1010d3 27-Apr-2018 Hyundo Moon <hdmoon@google.com> Fix wrong direct casting of IMediaControllerCallback

When casting a binder, direct casting should not be used. It throws
ClassCastException when casting a binder from remote process.
This CL replaces direct casting with
IMediaControllerCallback.Stub.asInterface(IBinder binder).

Test: Ran connectedCheck (with @Ignore on MediaPlayer2Test)
Change-Id: I15b50226d82a8769ae514aa9337b53e19c5e7505
/frameworks/support/media/src/main/java/androidx/media/MediaSession2Stub.java
30e1e494c9e6845738b0d8fbc7c4041eca50fa63 26-Apr-2018 Sungsoo Lim <sungsoo@google.com> Rename MediaSession2StubImplBase

- MediaSession2Stub
: Getting the commands from MediaController2
: This class will implement IMediaSession2.Stub later
- MediaSessionLegacyStub
: Getting the commands from MediaControllerCompat
: Currently it is partially copied from MediaSession2StubImplBase

Bug: 78491174
Test: ./gradlew :media:connectedCheck
Change-Id: Ib6382e66cdb49c73f3a69aa3442bf463588409be
/frameworks/support/media/src/main/java/androidx/media/MediaSession2Stub.java