Make MediaPlayer.invoke() public-and-hidden again

It's used in a bunch of other places in other repos that I don't
want to touch.

Change-Id: I6f2ec6f8066286de9b52499fc71f3f08953c3cb4
This commit is contained in:
Marco Nelissen
2013-06-14 09:42:26 -07:00
parent 85c28e8183
commit 2d2cd32cc7
3 changed files with 77 additions and 2 deletions

View File

@ -619,8 +619,9 @@ public class MediaPlayer
*
* @return A parcel suitable to hold a request for the native
* player.
* {@hide}
*/
private Parcel newRequest() {
public Parcel newRequest() {
Parcel parcel = Parcel.obtain();
parcel.writeInterfaceToken(IMEDIA_PLAYER);
return parcel;
@ -638,8 +639,9 @@ public class MediaPlayer
*
* @param reply Output parcel with the data returned by the
* native player.
* {@hide}
*/
private void invoke(Parcel request, Parcel reply) {
public void invoke(Parcel request, Parcel reply) {
int retcode = native_invoke(request, reply);
reply.setDataPosition(0);
if (retcode != 0) {