Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffb9487a authored by Hall Liu's avatar Hall Liu Committed by Automerger Merge Worker
Browse files

Merge "Throw exception from addServiceAnnouncement impl" am: a179e9f6 am:...

Merge "Throw exception from addServiceAnnouncement impl" am: a179e9f6 am: 15b0dc5e am: dd1aa9dc am: e9fd2d37 am: 6adb24da

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1322368

Change-Id: Ifa1d248385b303f5820b59caad7a9fe383cfb93b
parents 4a7b5bc9 6adb24da
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -453,7 +453,8 @@ public class MbmsDownloadSession implements AutoCloseable {
     * callback may include any of the errors that are not specific to the streaming use-case.
     *
     * May throw an {@link IllegalStateException} when the middleware has not yet been bound,
     * or an {@link IllegalArgumentException} if the byte array is too large.
     * or an {@link IllegalArgumentException} if the byte array is too large, or an
     * {@link UnsupportedOperationException} if the middleware has not implemented this method.
     *
     * @param contents The contents of the service announcement descriptor received from the
     *                     group call server. If the size of this array is greater than the value of
+2 −1
Original line number Diff line number Diff line
@@ -234,7 +234,8 @@ public class MbmsDownloadServiceBase extends IMbmsDownloadService.Stub {
    @Override
    public @MbmsErrors.MbmsError int addServiceAnnouncement(
            int subscriptionId, @NonNull byte[] contents) {
        return 0;
        throw new UnsupportedOperationException("addServiceAnnouncement not supported by"
                + " this middleware.");
    }

    /**