Connection throttling in android emulator

I was trying to throttle the network connection in android emulator by below code

AndroidDriver androidDriver = (AndroidDriver) getDriverHelper ().getDriver();

androidDriver.setNetworkSpeed(NetworkSpeed.LTE );

The code execution was successful, Unfortunately the connection throttling is not happening for the different network profiles like GSM, GPRS, EDGE, LTE…

Can someone please help me to resolve the issue or suggest me any other approach to proceed with connection throttling in emulator/real devices.