Call waiting add the error reponse for FDN_CHECK_FAILURE

The getCallWaitingStatus and setCallWaitingStatus system api did not
have FDN_CHECK_FAILURE. Therefore, the call waiting can't get the
precise error response while FDN is enabled.
Adding the CALL_WAITING_STATUS_FDN_CHECK_FAILURE for this case.

Bug: 189402480
Test: pass cts' TelephonyManagerTest#testGetCallWaitingStatus
pass cts' TelephonyManagerTest#testSetCallWaitingStatus

Change-Id: I2ed3b71c050c3632c6f4937a764394b1d07f51cd
This commit is contained in:
SongFerngWang
2022-01-11 15:44:33 +08:00
parent d6b531e627
commit 79eca48b7b
2 changed files with 14 additions and 1 deletions

View File

@@ -12976,6 +12976,7 @@ package android.telephony {
field public static final int ALLOWED_NETWORK_TYPES_REASON_USER = 0; // 0x0
field public static final int CALL_WAITING_STATUS_DISABLED = 2; // 0x2
field public static final int CALL_WAITING_STATUS_ENABLED = 1; // 0x1
field public static final int CALL_WAITING_STATUS_FDN_CHECK_FAILURE = 5; // 0x5
field public static final int CALL_WAITING_STATUS_NOT_SUPPORTED = 4; // 0x4
field public static final int CALL_WAITING_STATUS_UNKNOWN_ERROR = 3; // 0x3
field public static final String CAPABILITY_NR_DUAL_CONNECTIVITY_CONFIGURATION_AVAILABLE = "CAPABILITY_NR_DUAL_CONNECTIVITY_CONFIGURATION_AVAILABLE";

View File

@@ -15137,6 +15137,15 @@ public class TelephonyManager {
@SystemApi
public static final int CALL_WAITING_STATUS_NOT_SUPPORTED = 4;
/**
* Indicates the call waiting status could not be set or queried because the Fixed Dialing
* Numbers (FDN) feature is enabled.
*
* @hide
*/
@SystemApi
public static final int CALL_WAITING_STATUS_FDN_CHECK_FAILURE = 5;
/**
* @hide
*/
@@ -15145,6 +15154,7 @@ public class TelephonyManager {
CALL_WAITING_STATUS_DISABLED,
CALL_WAITING_STATUS_UNKNOWN_ERROR,
CALL_WAITING_STATUS_NOT_SUPPORTED,
CALL_WAITING_STATUS_FDN_CHECK_FAILURE,
})
@Retention(RetentionPolicy.SOURCE)
public @interface CallWaitingStatus {
@@ -15165,6 +15175,7 @@ public class TelephonyManager {
* <li>{@link #CALL_WAITING_STATUS_DISABLED}}</li>
* <li>{@link #CALL_WAITING_STATUS_UNKNOWN_ERROR}}</li>
* <li>{@link #CALL_WAITING_STATUS_NOT_SUPPORTED}}</li>
* <li>{@link #CALL_WAITING_STATUS_FDN_CHECK_FAILURE}}</li>
* </ul>
* @hide
*/
@@ -15214,7 +15225,8 @@ public class TelephonyManager {
* {@link #CALL_WAITING_STATUS_ENABLED} or
* {@link #CALL_WAITING_STATUS_DISABLED} if the operation succeeded and
* {@link #CALL_WAITING_STATUS_NOT_SUPPORTED} or
* {@link #CALL_WAITING_STATUS_UNKNOWN_ERROR} if it failed.
* {@link #CALL_WAITING_STATUS_UNKNOWN_ERROR} or
* {@link #CALL_WAITING_STATUS_FDN_CHECK_FAILURE} if it failed.
* @hide
*/
@SystemApi