Expose Constructor for ModemActivityInfoException

ModemActivityInfoException is a SystemApi but the constructor
is not. There's a longstanding need to expose it for testing.

Bug: 186152174
Test: make update-api && make offline-sdk-docs
Change-Id: I609b4a893e2f4fad54d29e09234da08a45efac78
This commit is contained in:
Nathan Harold
2022-01-25 12:51:11 -08:00
parent 91b96e3454
commit 10fc628397
2 changed files with 6 additions and 1 deletions

View File

@@ -12312,6 +12312,7 @@ package android.telephony {
}
public static class TelephonyManager.ModemActivityInfoException extends java.lang.Exception {
ctor public TelephonyManager.ModemActivityInfoException(int);
method public int getErrorCode();
field public static final int ERROR_INVALID_INFO_RECEIVED = 2; // 0x2
field public static final int ERROR_MODEM_RESPONSE_ERROR = 3; // 0x3

View File

@@ -11487,7 +11487,11 @@ public class TelephonyManager {
private final int mErrorCode;
/** @hide */
/**
* An exception with ModemActivityInfo specific error codes.
*
* @param errorCode a ModemActivityInfoError code.
*/
public ModemActivityInfoException(@ModemActivityInfoError int errorCode) {
mErrorCode = errorCode;
}