mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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
This commit is contained in:
committed by
Sandeep Jawalkar
parent
fe49375ba9
commit
7529611056
@@ -236,7 +236,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user