Loading radio/1.6/IRadio.hal +3 −3 Original line number Original line Diff line number Diff line Loading @@ -347,15 +347,15 @@ interface IRadio extends @1.5::IRadio { * * * @param serial Serial number of request. * @param serial Serial number of request. * @param dataThrottlingAction DataThrottlingAction as defined in types.hal * @param dataThrottlingAction DataThrottlingAction as defined in types.hal * @param completionWindowSecs window, in seconds, in which the requested * @param completionDurationMillis window, in milliseconds, in which the * throttling action has to be achieved. This must be 0 when * requested throttling action has to be achieved. This must be 0 when * dataThrottlingAction is DataThrottlingAction:HOLD. * dataThrottlingAction is DataThrottlingAction:HOLD. * * * Response function is IRadioResponse.setDataThrottlingResponse() * Response function is IRadioResponse.setDataThrottlingResponse() */ */ oneway setDataThrottling(int32_t serial, oneway setDataThrottling(int32_t serial, DataThrottlingAction dataThrottlingAction, DataThrottlingAction dataThrottlingAction, int32_t completionWindowSecs); int64_t completionDurationMillis); /** /** * Get which bands the modem's background scan is acting on. * Get which bands the modem's background scan is acting on. Loading radio/1.6/vts/functional/radio_hidl_hal_api.cpp +5 −4 Original line number Original line Diff line number Diff line Loading @@ -303,7 +303,7 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); Return<void> res = radio_v1_6->setDataThrottling( Return<void> res = radio_v1_6->setDataThrottling( serial, DataThrottlingAction::THROTTLE_SECONDARY_CARRIER, 60); serial, DataThrottlingAction::THROTTLE_SECONDARY_CARRIER, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); Loading @@ -318,7 +318,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::THROTTLE_ANCHOR_CARRIER, 60); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::THROTTLE_ANCHOR_CARRIER, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); Loading @@ -332,7 +333,7 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::HOLD, 60); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::HOLD, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); Loading @@ -347,7 +348,7 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::NO_DATA_THROTTLING, 60); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::NO_DATA_THROTTLING, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); Loading Loading
radio/1.6/IRadio.hal +3 −3 Original line number Original line Diff line number Diff line Loading @@ -347,15 +347,15 @@ interface IRadio extends @1.5::IRadio { * * * @param serial Serial number of request. * @param serial Serial number of request. * @param dataThrottlingAction DataThrottlingAction as defined in types.hal * @param dataThrottlingAction DataThrottlingAction as defined in types.hal * @param completionWindowSecs window, in seconds, in which the requested * @param completionDurationMillis window, in milliseconds, in which the * throttling action has to be achieved. This must be 0 when * requested throttling action has to be achieved. This must be 0 when * dataThrottlingAction is DataThrottlingAction:HOLD. * dataThrottlingAction is DataThrottlingAction:HOLD. * * * Response function is IRadioResponse.setDataThrottlingResponse() * Response function is IRadioResponse.setDataThrottlingResponse() */ */ oneway setDataThrottling(int32_t serial, oneway setDataThrottling(int32_t serial, DataThrottlingAction dataThrottlingAction, DataThrottlingAction dataThrottlingAction, int32_t completionWindowSecs); int64_t completionDurationMillis); /** /** * Get which bands the modem's background scan is acting on. * Get which bands the modem's background scan is acting on. Loading
radio/1.6/vts/functional/radio_hidl_hal_api.cpp +5 −4 Original line number Original line Diff line number Diff line Loading @@ -303,7 +303,7 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); Return<void> res = radio_v1_6->setDataThrottling( Return<void> res = radio_v1_6->setDataThrottling( serial, DataThrottlingAction::THROTTLE_SECONDARY_CARRIER, 60); serial, DataThrottlingAction::THROTTLE_SECONDARY_CARRIER, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); Loading @@ -318,7 +318,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::THROTTLE_ANCHOR_CARRIER, 60); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::THROTTLE_ANCHOR_CARRIER, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); Loading @@ -332,7 +333,7 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::HOLD, 60); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::HOLD, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); Loading @@ -347,7 +348,7 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { serial = GetRandomSerialNumber(); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::NO_DATA_THROTTLING, 60); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::NO_DATA_THROTTLING, 60000); ASSERT_OK(res); ASSERT_OK(res); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type); Loading