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

Commit 0cedaf1c authored by Aaron Tsai's avatar Aaron Tsai Committed by Automerger Merge Worker
Browse files

Adding 1s time gap between back-to-back calling setDataThrottling API am:...

Adding 1s time gap between back-to-back calling setDataThrottling API am: 47e14e56 am: 4579f048 am: 9df8b9cb

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

Change-Id: I6a1e36475b87da650cb8467b5ed63be9ca1a673d
parents cb66da1b 9df8b9cb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -447,6 +447,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,
@@ -467,6 +469,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);
@@ -487,6 +491,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);