[DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response

Handle RIL reporting response for getAllowedNetworkTypesBitmap() with
"LTE_CA" responses until Android T.

Bug: 308538353
Test: atest VtsHalRadioTargetTest , Device test @ b/308538353#comment29
Change-Id: I1916422c88ac6dad4a9d0777b32182b599e9c30c
This commit is contained in:
Nagendra Prasad Nagarle Basavaraju
2023-12-04 03:55:30 +00:00
parent e3e212e7cc
commit 378bd90e66

View File

@@ -85,6 +85,11 @@ void RadioNetworkTest::stopNetworkScan() {
TEST_P(RadioNetworkTest, setGetAllowedNetworkTypesBitmap) {
serial = GetRandomSerialNumber();
// get aidl version
int32_t aidl_version;
ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version);
ASSERT_OK(aidl_status);
// save current value
radio_network->getAllowedNetworkTypesBitmap(serial);
EXPECT_EQ(std::cv_status::no_timeout, wait());
@@ -120,6 +125,11 @@ TEST_P(RadioNetworkTest, setGetAllowedNetworkTypesBitmap) {
RadioError::INVALID_ARGUMENTS, RadioError::MODEM_ERR,
RadioError::REQUEST_NOT_SUPPORTED, RadioError::NO_RESOURCES}));
if (radioRsp_network->rspInfo.error == RadioError::NONE) {
if (aidl_version < 2) {
radioRsp_network->networkTypeBitmapResponse
&= ~static_cast<int32_t>(RadioAccessFamily::LTE_CA);
}
// verify we get the value we set
ASSERT_EQ(radioRsp_network->networkTypeBitmapResponse, allowedNetworkTypesBitmap);
}