mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Adding DSDA configuration for VTS." am: 202c44bbdc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2260545 Change-Id: I30603ddd268c018164451325cae0c83f87dd4783 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -92,6 +92,10 @@ bool isDsDsEnabled() {
|
||||
return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "dsds");
|
||||
}
|
||||
|
||||
bool isDsDaEnabled() {
|
||||
return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "dsda");
|
||||
}
|
||||
|
||||
bool isTsTsEnabled() {
|
||||
return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "tsts");
|
||||
}
|
||||
|
||||
@@ -103,6 +103,11 @@ bool isSsSsEnabled();
|
||||
*/
|
||||
bool isDsDsEnabled();
|
||||
|
||||
/*
|
||||
* Check if device is in DSDA (Dual SIM Dual Active).
|
||||
*/
|
||||
bool isDsDaEnabled();
|
||||
|
||||
/*
|
||||
* Check if device is in TSTS (Triple SIM Triple Standby).
|
||||
*/
|
||||
|
||||
@@ -176,7 +176,7 @@ TEST_P(RadioConfigTest, setSimSlotsMapping) {
|
||||
slotPortMapping.physicalSlotId = -1;
|
||||
slotPortMapping.portId = -1;
|
||||
std::vector<SlotPortMapping> slotPortMappingList = {slotPortMapping};
|
||||
if (isDsDsEnabled()) {
|
||||
if (isDsDsEnabled() || isDsDaEnabled()) {
|
||||
slotPortMappingList.push_back(slotPortMapping);
|
||||
} else if (isTsTsEnabled()) {
|
||||
slotPortMappingList.push_back(slotPortMapping);
|
||||
@@ -252,7 +252,7 @@ TEST_P(RadioConfigTest, checkPortInfoExistsAndPortActive) {
|
||||
}
|
||||
if (isSsSsEnabled()) {
|
||||
EXPECT_EQ(1, simCount);
|
||||
} else if (isDsDsEnabled()) {
|
||||
} else if (isDsDsEnabled() || isDsDaEnabled()) {
|
||||
EXPECT_EQ(2, simCount);
|
||||
} else if (isTsTsEnabled()) {
|
||||
EXPECT_EQ(3, simCount);
|
||||
|
||||
Reference in New Issue
Block a user