Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30769138 authored by Nagendra Prasad Nagarle Basavaraju's avatar Nagendra Prasad Nagarle Basavaraju
Browse files

VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response

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

Bug: 308538353
Test: atest VtsHalRadioTargetTest
Change-Id: I32242dff1ab7f2f1923674e7880b547f6e55de93
parent 01aa3b4b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -90,6 +90,11 @@ 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());
@@ -125,6 +130,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
            EXPECT_EQ(radioRsp_network->networkTypeBitmapResponse, allowedNetworkTypesBitmap);
        }