OSDN Git Service

[PT14] No-op refactoring of sendProxyBroadcast
authorChalard Jean <jchalard@google.com>
Fri, 8 Jun 2018 10:39:24 +0000 (19:39 +0900)
committerChalard Jean <jchalard@google.com>
Mon, 15 Oct 2018 03:58:40 +0000 (12:58 +0900)
commit19aa80f93679a3fcc272aeb2845f76d997264c30
tree8f14e245131aa7fa04224fb0eeec6b26946cc831
parent1ad4aed0b96877092080ea2225cbd70f27ae8eb8
[PT14] No-op refactoring of sendProxyBroadcast

If mGlobalProxy is non-null, then getDefaultProxy returns mGlobalProxy
so the first change is a no-op.
If mGlobalProxy is null and mDefaultProxyEnabled is true, then
getDefaultProxy returns mDefaultProxy, which has just been set to
proxyInfo, so the second change is a no-op.
If mGlobalProxy is null and mDefaultProxyEnabled is true, then
getDefaultProxy returns mDefaultProxy ; if mGlobalProxy is null and
mDefaultProxyEnabled is false, then getDefaultProxy returns null,
therefore the third change is a no-op.

Test: runtest
Change-Id: I7c21062302bf54f4fc917c82e0175975051a55ec
services/core/java/com/android/server/connectivity/ProxyTracker.java