diff options
author | Hall Liu <hallliu@google.com> | 2020-09-11 13:32:16 -0700 |
---|---|---|
committer | Hall Liu <hallliu@google.com> | 2020-10-22 11:34:28 -0700 |
commit | adfc80c4d5f0cb514c34e519032c4e61e4d90ad9 (patch) | |
tree | 5db852026fafdc29c14f3ca533388dfcf661d4fa /api | |
parent | 3a14c6bdcc973838660dd7eb89302e349b39daec (diff) |
Update PhoneStateListener#onOutgoingEmergencySms
Update the callback for emergency SMS to follow the same pattern as for
emergency calls for API consistency.
Fixes: 168269065
Test: atest CtsTelephonyTestCases:PhoneStateListenerTest
Change-Id: If27771aef1858ea92dd620b56368d1a6a4f61ab3
Merged-In: If27771aef1858ea92dd620b56368d1a6a4f61ab3
Diffstat (limited to 'api')
-rwxr-xr-x | api/system-current.txt | 3 | ||||
-rw-r--r-- | api/test-current.txt | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index e81f6d4c031d..37ce4cfcfc3e 100755 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -10816,7 +10816,8 @@ package android.telephony { method public void onCallAttributesChanged(@NonNull android.telephony.CallAttributes); method @Deprecated public void onOutgoingEmergencyCall(@NonNull android.telephony.emergency.EmergencyNumber); method public void onOutgoingEmergencyCall(@NonNull android.telephony.emergency.EmergencyNumber, int); - method public void onOutgoingEmergencySms(@NonNull android.telephony.emergency.EmergencyNumber); + method @Deprecated public void onOutgoingEmergencySms(@NonNull android.telephony.emergency.EmergencyNumber); + method public void onOutgoingEmergencySms(@NonNull android.telephony.emergency.EmergencyNumber, int); method @RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE") public void onPreciseCallStateChanged(@NonNull android.telephony.PreciseCallState); method public void onRadioPowerStateChanged(int); method public void onSrvccStateChanged(int); diff --git a/api/test-current.txt b/api/test-current.txt index 6fac6c18746a..93f9e2c907d6 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -1629,6 +1629,8 @@ package android.telephony { public class PhoneStateListener { method public void onOutgoingEmergencyCall(@NonNull android.telephony.emergency.EmergencyNumber, int); + method @Deprecated public void onOutgoingEmergencySms(@NonNull android.telephony.emergency.EmergencyNumber); + method public void onOutgoingEmergencySms(@NonNull android.telephony.emergency.EmergencyNumber, int); } public final class PreciseDataConnectionState implements android.os.Parcelable { |