Adding 1s time gap between back-to-back calling setDataThrottling API am: 47e14e567f am: 4579f048c4

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

Change-Id: I2dd705bad62218a0fb51faa742a615d267ff4f40
This commit is contained in:
Aaron Tsai
2021-04-23 04:24:01 +00:00
committed by Automerger Merge Worker

View File

@@ -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);