diff options
author | Aaron Tsai <tsaiaaron@google.com> | 2021-04-15 20:27:23 +0800 |
---|---|---|
committer | Aaron Tsai <tsaiaaron@google.com> | 2021-04-23 02:35:23 +0000 |
commit | 47e14e567fc25e74c95cf9c2e40a079f56692068 (patch) | |
tree | 93f5c8c68784ac592cb81d778ca2fd809276b6a5 /radio/1.6 | |
parent | 40bbe789a45542354d25d92c9ecf20c23d68b426 (diff) | |
download | platform_hardware_interfaces-47e14e567fc25e74c95cf9c2e40a079f56692068.tar.gz platform_hardware_interfaces-47e14e567fc25e74c95cf9c2e40a079f56692068.tar.bz2 platform_hardware_interfaces-47e14e567fc25e74c95cf9c2e40a079f56692068.zip |
Adding 1s time gap between back-to-back calling setDataThrottling API
Modem has restriction that it can not process back-to-back thermal actions.
Adding 1s delay to prevent unexpected errors.
Bug: 181634712
Test: atest VtsHalRadioV1_6TargetTest -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=*setDataThrottling/0_slot1"
Change-Id: I70a717cbc3a63d5b1abb4be9d3920d0ee3451b14
Diffstat (limited to 'radio/1.6')
-rw-r--r-- | radio/1.6/vts/functional/radio_hidl_hal_api.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/radio/1.6/vts/functional/radio_hidl_hal_api.cpp b/radio/1.6/vts/functional/radio_hidl_hal_api.cpp index f343707353..7c059841db 100644 --- a/radio/1.6/vts/functional/radio_hidl_hal_api.cpp +++ b/radio/1.6/vts/functional/radio_hidl_hal_api.cpp @@ -433,6 +433,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { ::android::hardware::radio::V1_6::RadioError::NONE, ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS})); } + + sleep(1); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::THROTTLE_ANCHOR_CARRIER, @@ -453,6 +455,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { ::android::hardware::radio::V1_6::RadioError::NONE, ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS})); } + + sleep(1); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::HOLD, 60000); @@ -473,6 +477,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) { ::android::hardware::radio::V1_6::RadioError::NONE, ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS})); } + + sleep(1); serial = GetRandomSerialNumber(); res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::NO_DATA_THROTTLING, 60000); |