Merge "Mark cellular security transparency APIs optional" into main
This commit is contained in:
commit
a95aa0fe46
2 changed files with 26 additions and 18 deletions
|
@ -747,6 +747,7 @@ oneway interface IRadioNetworkResponse {
|
|||
|
||||
/**
|
||||
* Response of isCellularIdentifierTransparencyEnabled.
|
||||
* This is an optional API.
|
||||
*
|
||||
* @param info Response info struct containing response type, serial no. and error.
|
||||
* @param isEnabled Indicates whether cellular identifier transparency is enabled or not.
|
||||
|
@ -757,12 +758,14 @@ oneway interface IRadioNetworkResponse {
|
|||
* RadioError:NONE
|
||||
* RadioError:RADIO_NOT_AVAILABLE
|
||||
* RadioError:INTERNAL_ERR
|
||||
* RadioError:REQUEST_NOT_SUPPORTED
|
||||
*/
|
||||
void isCellularIdentifierTransparencyEnabledResponse(
|
||||
in RadioResponseInfo info, boolean isEnabled);
|
||||
|
||||
/**
|
||||
* Response of setCellularIdentifierTransparencyEnabled.
|
||||
* This is an optional API.
|
||||
*
|
||||
* @param info Response info struct containing response type, serial no. and error.
|
||||
*
|
||||
|
@ -773,11 +776,13 @@ oneway interface IRadioNetworkResponse {
|
|||
* RadioError:RADIO_NOT_AVAILABLE
|
||||
* RadioError:INTERNAL_ERR
|
||||
* RadioError:INVALID_STATE
|
||||
* RadioError:REQUEST_NOT_SUPPORTED
|
||||
*/
|
||||
void setCellularIdentifierTransparencyEnabledResponse(in RadioResponseInfo info);
|
||||
|
||||
/**
|
||||
* Response of setSecurityAlgorithmsUpdatedEnabled.
|
||||
* This is an optional API.
|
||||
*
|
||||
* @param info Response info struct containing response type, serial no. and error.
|
||||
*
|
||||
|
@ -788,11 +793,13 @@ oneway interface IRadioNetworkResponse {
|
|||
* RadioError:RADIO_NOT_AVAILABLE
|
||||
* RadioError:INTERNAL_ERR
|
||||
* RadioError:INVALID_STATE
|
||||
* RadioError:REQUEST_NOT_SUPPORTED
|
||||
*/
|
||||
void setSecurityAlgorithmsUpdatedEnabledResponse(in RadioResponseInfo info);
|
||||
|
||||
/**
|
||||
* Response of isSecurityAlgorithmsUpdatedEnabled.
|
||||
* This is an optional API.
|
||||
*
|
||||
* @param info Response info struct containing response type, serial no. and error.
|
||||
* @param isEnabled Indicates whether cellular ciphering transparency is enabled or not.
|
||||
|
@ -803,6 +810,7 @@ oneway interface IRadioNetworkResponse {
|
|||
* RadioError:NONE
|
||||
* RadioError:RADIO_NOT_AVAILABLE
|
||||
* RadioError:INTERNAL_ERR
|
||||
* RadioError:REQUEST_NOT_SUPPORTED
|
||||
*/
|
||||
void isSecurityAlgorithmsUpdatedEnabledResponse(
|
||||
in RadioResponseInfo info, in boolean isEnabled);
|
||||
|
|
|
@ -2471,9 +2471,9 @@ TEST_P(RadioNetworkTest, isCellularIdentifierTransparencyEnabled) {
|
|||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
|
||||
|
||||
ASSERT_TRUE(CheckAnyOfErrors(
|
||||
radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, RadioError::MODEM_ERR}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
|
||||
RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
|
||||
}
|
||||
|
||||
TEST_P(RadioNetworkTest, setCellularIdentifierTransparencyEnabled) {
|
||||
|
@ -2502,9 +2502,9 @@ TEST_P(RadioNetworkTest, setCellularIdentifierTransparencyEnabled) {
|
|||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
|
||||
|
||||
ASSERT_TRUE(CheckAnyOfErrors(
|
||||
radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, RadioError::MODEM_ERR}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
|
||||
RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
|
||||
|
||||
// Assert the value has changed
|
||||
serial = GetRandomSerialNumber();
|
||||
|
@ -2514,9 +2514,9 @@ TEST_P(RadioNetworkTest, setCellularIdentifierTransparencyEnabled) {
|
|||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
|
||||
ASSERT_TRUE(CheckAnyOfErrors(
|
||||
radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, RadioError::MODEM_ERR}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
|
||||
RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
|
||||
EXPECT_EQ(valueToSet, radioRsp_network->isCellularIdentifierTransparencyEnabled);
|
||||
|
||||
// Reset original state
|
||||
|
@ -2555,9 +2555,9 @@ TEST_P(RadioNetworkTest, setSecurityAlgorithmsUpdatedEnabled) {
|
|||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
|
||||
|
||||
ASSERT_TRUE(CheckAnyOfErrors(
|
||||
radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, RadioError::MODEM_ERR}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
|
||||
RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
|
||||
|
||||
// Assert the value has changed
|
||||
serial = GetRandomSerialNumber();
|
||||
|
@ -2567,9 +2567,9 @@ TEST_P(RadioNetworkTest, setSecurityAlgorithmsUpdatedEnabled) {
|
|||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
|
||||
ASSERT_TRUE(CheckAnyOfErrors(
|
||||
radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, RadioError::MODEM_ERR}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
|
||||
RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
|
||||
EXPECT_EQ(valueToSet, radioRsp_network->isSecurityAlgorithmsUpdatedEnabled);
|
||||
|
||||
// Reset original state
|
||||
|
@ -2601,7 +2601,7 @@ TEST_P(RadioNetworkTest, isSecurityAlgorithmsUpdatedEnabled) {
|
|||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
|
||||
|
||||
ASSERT_TRUE(CheckAnyOfErrors(
|
||||
radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, RadioError::MODEM_ERR}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
|
||||
RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue