Loading media/java/android/media/MediaController2.java +3 −3 Original line number Diff line number Diff line Loading @@ -325,7 +325,7 @@ public class MediaController2 implements AutoCloseable { MediaController2.this, command, args); if (resultReceiver != null) { if (result == null) { throw new RuntimeException("onSessionCommand shouldn't return null"); resultReceiver.send(Session2Command.RESULT_INFO_SKIPPED, null); } else { resultReceiver.send(result.getResultCode(), result.getResultData()); } Loading Loading @@ -442,8 +442,8 @@ public class MediaController2 implements AutoCloseable { * @param controller the controller for this event * @param command the session command * @param args optional arguments * @return the result for the session command. A runtime exception will be thrown if null * is returned. * @return the result for the session command. If {@code null}, RESULT_INFO_SKIPPED * will be sent to the session. */ @Nullable public Session2Command.Result onSessionCommand(@NonNull MediaController2 controller, Loading media/java/android/media/MediaSession2.java +3 −3 Original line number Diff line number Diff line Loading @@ -397,7 +397,7 @@ public class MediaSession2 implements AutoCloseable { MediaSession2.this, controllerInfo, command, args); if (resultReceiver != null) { if (result == null) { throw new RuntimeException("onSessionCommand shouldn't return null"); resultReceiver.send(Session2Command.RESULT_INFO_SKIPPED, null); } else { resultReceiver.send(result.getResultCode(), result.getResultData()); } Loading Loading @@ -753,8 +753,8 @@ public class MediaSession2 implements AutoCloseable { * @param controller controller information * @param command the session command * @param args optional arguments * @return the result for the session command. A runtime exception will be thrown if null * is returned. * @return the result for the session command. If {@code null}, RESULT_INFO_SKIPPED * will be sent to the session. */ @Nullable public Session2Command.Result onSessionCommand(@NonNull MediaSession2 session, Loading Loading
media/java/android/media/MediaController2.java +3 −3 Original line number Diff line number Diff line Loading @@ -325,7 +325,7 @@ public class MediaController2 implements AutoCloseable { MediaController2.this, command, args); if (resultReceiver != null) { if (result == null) { throw new RuntimeException("onSessionCommand shouldn't return null"); resultReceiver.send(Session2Command.RESULT_INFO_SKIPPED, null); } else { resultReceiver.send(result.getResultCode(), result.getResultData()); } Loading Loading @@ -442,8 +442,8 @@ public class MediaController2 implements AutoCloseable { * @param controller the controller for this event * @param command the session command * @param args optional arguments * @return the result for the session command. A runtime exception will be thrown if null * is returned. * @return the result for the session command. If {@code null}, RESULT_INFO_SKIPPED * will be sent to the session. */ @Nullable public Session2Command.Result onSessionCommand(@NonNull MediaController2 controller, Loading
media/java/android/media/MediaSession2.java +3 −3 Original line number Diff line number Diff line Loading @@ -397,7 +397,7 @@ public class MediaSession2 implements AutoCloseable { MediaSession2.this, controllerInfo, command, args); if (resultReceiver != null) { if (result == null) { throw new RuntimeException("onSessionCommand shouldn't return null"); resultReceiver.send(Session2Command.RESULT_INFO_SKIPPED, null); } else { resultReceiver.send(result.getResultCode(), result.getResultData()); } Loading Loading @@ -753,8 +753,8 @@ public class MediaSession2 implements AutoCloseable { * @param controller controller information * @param command the session command * @param args optional arguments * @return the result for the session command. A runtime exception will be thrown if null * is returned. * @return the result for the session command. If {@code null}, RESULT_INFO_SKIPPED * will be sent to the session. */ @Nullable public Session2Command.Result onSessionCommand(@NonNull MediaSession2 session, Loading