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

Commit 9df8b9cb 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: 47e14e56 am: 4579f048

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

Change-Id: I2dd705bad62218a0fb51faa742a615d267ff4f40
parents fa4d66b5 4579f048
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -433,6 +433,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) {
                 ::android::hardware::radio::V1_6::RadioError::NONE,
                 ::android::hardware::radio::V1_6::RadioError::NONE,
                 ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS}));
                 ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS}));
    }
    }

    sleep(1);
    serial = GetRandomSerialNumber();
    serial = GetRandomSerialNumber();


    res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::THROTTLE_ANCHOR_CARRIER,
    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::NONE,
                 ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS}));
                 ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS}));
    }
    }

    sleep(1);
    serial = GetRandomSerialNumber();
    serial = GetRandomSerialNumber();


    res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::HOLD, 60000);
    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::NONE,
                 ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS}));
                 ::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS}));
    }
    }

    sleep(1);
    serial = GetRandomSerialNumber();
    serial = GetRandomSerialNumber();


    res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::NO_DATA_THROTTLING, 60000);
    res = radio_v1_6->setDataThrottling(serial, DataThrottlingAction::NO_DATA_THROTTLING, 60000);