diff options
| author | 2022-01-25 12:51:11 -0800 | |
|---|---|---|
| committer | 2022-01-25 12:51:11 -0800 | |
| commit | 10fc628397b54d6aba31489a2a3f63dbad7ee6d5 (patch) | |
| tree | 7f884ca1626a7421031fb8cf1742892dc1631082 | |
| parent | 91b96e3454b6b142275b2abcf1ec0fe77a1f56e8 (diff) | |
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
| -rw-r--r-- | core/api/system-current.txt | 1 | ||||
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 8fd027182c3f..8c56d79476c6 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -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 diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 9ac9d66b3965..aab6daa20279 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -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; } |