From 5ac83a65d008f2c93e836a376ef111481ce7a9bc Mon Sep 17 00:00:00 2001 From: sandeepjs Date: Tue, 21 May 2024 18:08:44 +0000 Subject: [PATCH] update vts setSimSlotMapping test cases to handle different MEP types Bug: 342543877 Test: atest PerInstance/RadioConfigTest#setSimSlotsMapping/0_android_hardware_radio_config_IRadioConfig_default Change-Id: I34229669713afabbb7802dfa7c79ff9689a7bdf5 Merged-In: I34229669713afabbb7802dfa7c79ff9689a7bdf5 (cherry picked from commit 7529611056a87368f95bf82d3cf4f4b3b99137ca) --- radio/aidl/vts/radio_config_test.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/radio/aidl/vts/radio_config_test.cpp b/radio/aidl/vts/radio_config_test.cpp index aed3b05b4f..0175a4c9b7 100644 --- a/radio/aidl/vts/radio_config_test.cpp +++ b/radio/aidl/vts/radio_config_test.cpp @@ -194,7 +194,14 @@ TEST_P(RadioConfigTest, setSimSlotsMapping) { EXPECT_LT(logicalSlotId, slotPortMappingList.size()); if (logicalSlotId >= 0 && logicalSlotId < slotPortMappingList.size()) { slotPortMappingList[logicalSlotId].physicalSlotId = i; - slotPortMappingList[logicalSlotId].portId = j; + if (radioRsp_config->simSlotStatus[i].supportedMepMode == + MultipleEnabledProfilesMode::MEP_A1 || + radioRsp_config->simSlotStatus[i].supportedMepMode == + MultipleEnabledProfilesMode::MEP_A2) { + slotPortMappingList[logicalSlotId].portId = j + 1; + } else { + slotPortMappingList[logicalSlotId].portId = j; + } } } }