Merge "Throw exception from addServiceAnnouncement impl" am: a179e9f6e7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1322368 Change-Id: I62f10f5484e0262a3dd1adf12b89ce624ac0caa8
This commit is contained in:
@@ -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.
|
* 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,
|
* 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
|
* @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
|
* group call server. If the size of this array is greater than the value of
|
||||||
|
|||||||
@@ -234,7 +234,8 @@ public class MbmsDownloadServiceBase extends IMbmsDownloadService.Stub {
|
|||||||
@Override
|
@Override
|
||||||
public @MbmsErrors.MbmsError int addServiceAnnouncement(
|
public @MbmsErrors.MbmsError int addServiceAnnouncement(
|
||||||
int subscriptionId, @NonNull byte[] contents) {
|
int subscriptionId, @NonNull byte[] contents) {
|
||||||
return 0;
|
throw new UnsupportedOperationException("addServiceAnnouncement not supported by"
|
||||||
|
+ " this middleware.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user