From 4e7c9e6a78603b96fa4654e1c6e8ccf770d07887 Mon Sep 17 00:00:00 2001 From: liuxiangjun Date: Sun, 18 Feb 2024 10:21:02 +0800 Subject: [PATCH] Keep only the errors received at SIM present condition Remove SIM Absent specific errors, such as ILLEGAL_SIM_OR_ME Bug:317314512 Test: VtsHalRadioTargetTest PerInstance/RadioNetworkTest#setNetworkSelectionModeManual/0_android_hardware_radio_network_IRadioNetwork_slot1 PerInstance/RadioNetworkTest#setNetworkSelectionModeManual/1_android_hardware_radio_network_IRadioNetwork_slot2 Change-Id: I1edcb265bd5a718c7d0d2be812fe3a435e39f55e Signed-off-by: liuxiangjun --- radio/aidl/vts/radio_network_test.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/radio/aidl/vts/radio_network_test.cpp b/radio/aidl/vts/radio_network_test.cpp index 0cb8ba70b8..df3fb1e8a8 100644 --- a/radio/aidl/vts/radio_network_test.cpp +++ b/radio/aidl/vts/radio_network_test.cpp @@ -1169,10 +1169,9 @@ TEST_P(RadioNetworkTest, setNetworkSelectionModeManual) { ASSERT_TRUE(CheckAnyOfErrors( radioRsp_network->rspInfo.error, - {RadioError::NONE, RadioError::ILLEGAL_SIM_OR_ME, RadioError::RADIO_NOT_AVAILABLE, - RadioError::INVALID_ARGUMENTS, RadioError::INVALID_STATE, RadioError::NO_MEMORY, - RadioError::INTERNAL_ERR, RadioError::SYSTEM_ERR, RadioError::CANCELLED, - RadioError::MODEM_ERR, RadioError::OPERATION_NOT_ALLOWED, RadioError::NO_RESOURCES})); + {RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, RadioError::INVALID_ARGUMENTS, + RadioError::INVALID_STATE, RadioError::NO_MEMORY, RadioError::INTERNAL_ERR, + RadioError::SYSTEM_ERR, RadioError::CANCELLED, RadioError::MODEM_ERR})); } /*