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

Commit 3832f4da authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Add "not congested" network capability.

Can be used by a network to indicate when it's congested, meaning that
apps should defer network traffic that could be done at a later time.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.,com.android.server.connectivity.VpnTest,com.android.server.ConnectivityServiceTest
Bug: 64133169
Change-Id: Icfaff89c6ba15ccb6108ac95a52b3744c3c8a4b0
parent 64c6af7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1012,6 +1012,8 @@ public class DataConnection extends StateMachine {
            result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING);
            result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING);
        }
        }


        result.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED);

        return result;
        return result;
    }
    }