mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Config the number of live modems based on current multisim number. am: 400ce4ff76
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15924337 Change-Id: I626a1c2f8451feeab95b1b651787a7c72549e425
This commit is contained in:
@@ -58,7 +58,16 @@ TEST_P(RadioConfigHidlTest, setModemsConfig_invalidArgument) {
|
||||
TEST_P(RadioConfigHidlTest, setModemsConfig_goodRequest) {
|
||||
serial = GetRandomSerialNumber();
|
||||
ModemsConfig* mConfig = new ModemsConfig();
|
||||
mConfig->numOfLiveModems = 1;
|
||||
if (isSsSsEnabled()) {
|
||||
mConfig->numOfLiveModems = 1;
|
||||
} else if (isDsDsEnabled()) {
|
||||
mConfig->numOfLiveModems = 2;
|
||||
} else if (isTsTsEnabled()) {
|
||||
mConfig->numOfLiveModems = 3;
|
||||
} else {
|
||||
ALOGI("Skipping setModemsConfig_goodRequest, unsupported multisim number");
|
||||
return;
|
||||
}
|
||||
Return<void> res = radioConfig->setModemsConfig(serial, *mConfig);
|
||||
ASSERT_OK(res);
|
||||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||
|
||||
Reference in New Issue
Block a user