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

Commit 0853ce31 authored by Aaron Tsai's avatar Aaron Tsai Committed by Automerger Merge Worker
Browse files

Allow REQUEST_NOT_SUPPORTED for HAL interface updateSimPhonebookRecords am: ef8351b2

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1722511

Change-Id: I7c4cb5e7b3adeeb8f55d021459f30a4cb331e1c6
parents fdf8b5d9 ef8351b2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -851,7 +851,11 @@ TEST_F(RadioHidlTest_v1_6, updateSimPhonebookRecords) {
        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);
        EXPECT_EQ(::android::hardware::radio::V1_6::RadioError::NONE, radioRsp_v1_6->rspInfo.error);
        ASSERT_TRUE(CheckAnyOfErrors(
            radioRsp_v1_6->rspInfo.error,
            {::android::hardware::radio::V1_6::RadioError::NONE,
             ::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED},
             CHECK_GENERAL_ERROR));

        if(pbCapacity.maxAdnRecords > 0
                && pbCapacity.usedAdnRecords < pbCapacity.maxAdnRecords) {