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

Commit 4b272a5b authored by Sooraj Sasindran's avatar Sooraj Sasindran
Browse files

ALLOW REQUEST_NOT_SUPPORTED for nr dual connectivity config

ALLOW REQUEST_NOT_SUPPORTED for nr dual connectivity configuration
and query

Bug: 181648176
Test: build
Change-Id: Iaa64b018a07367ea9d68783ecec1ea1a616ad6b4
parent df3a0dca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ interface IRadioResponse extends @1.5::IRadioResponse {
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:INTERNAL_ERR
     *   RadioError:REQUEST_NOT_SUPPORTED
     */
    oneway setNrDualConnectivityStateResponse(RadioResponseInfo info);

@@ -242,6 +243,7 @@ interface IRadioResponse extends @1.5::IRadioResponse {
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:INTERNAL_ERR
     *   RadioError:REQUEST_NOT_SUPPORTED
     */
    oneway isNrDualConnectivityEnabledResponse(RadioResponseInfo info, bool isEnabled);

+16 −2
Original line number Diff line number Diff line
@@ -369,11 +369,18 @@ TEST_P(RadioHidlTest_v1_6, setNrDualConnectivityState) {
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
    EXPECT_EQ(serial, radioRsp_v1_6->rspInfo.serial);
    ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
    if (getRadioHalCapabilities().modemReducedFeatureSet1) {
        ASSERT_TRUE(CheckAnyOfErrors(
                radioRsp_v1_6->rspInfo.error,
                {::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED}));
    } else {
        ASSERT_TRUE(
                CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
                                 {::android::hardware::radio::V1_6::RadioError::RADIO_NOT_AVAILABLE,
                                  ::android::hardware::radio::V1_6::RadioError::INTERNAL_ERR,
                                  ::android::hardware::radio::V1_6::RadioError::NONE}));
    }
}

/*
 * Test IRadio.isNrDualConnectivityEnabled() for the response returned.
@@ -387,11 +394,18 @@ TEST_P(RadioHidlTest_v1_6, isNrDualConnectivityEnabled) {
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
    EXPECT_EQ(serial, radioRsp_v1_6->rspInfo.serial);
    ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
    if (getRadioHalCapabilities().modemReducedFeatureSet1) {
        ASSERT_TRUE(CheckAnyOfErrors(
                radioRsp_v1_6->rspInfo.error,
                {::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED}));
    } else {
        ASSERT_TRUE(
                CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
                                 {::android::hardware::radio::V1_6::RadioError::RADIO_NOT_AVAILABLE,
                                  ::android::hardware::radio::V1_6::RadioError::INTERNAL_ERR,
                                  ::android::hardware::radio::V1_6::RadioError::NONE}));
    }
}

/*
 * Test IRadio.setDataThrottling() for the response returned.
+3 −0
Original line number Diff line number Diff line
@@ -28,6 +28,9 @@ struct HalDeviceCapabilities {
   * or android.hardware.radio@1.6::LinkCapacityEstimate:secondaryUplinkCapacityKbps
   * when given from android.hardware.radio@1.6::RadioIndication:currentLinkCapacityEstimate
   * </li>
   * <li> calling android.hardware.radio@1.6::IRadio.setNrDualConnectivityState
   * or querying android.hardware.radio@1.6::IRadio.isNrDualConnectivityEnabled
   * </li>
   * </ul>
   */
  bool modemReducedFeatureSet1;