OSDN Git Service

Fix onBlockedStatusChanged does not work on multiple networks
authorjunyulai <junyulai@google.com>
Mon, 8 Apr 2019 08:58:22 +0000 (16:58 +0800)
committerjunyulai <junyulai@google.com>
Mon, 8 Apr 2019 09:15:52 +0000 (17:15 +0800)
commit26b7664c4311dbc389188be06ce37b91267ba181
treefdac2eb8883f50da95b6404b8178dcd1e79261cc
parent1178972d68144489b4bf709549da38ca355cc317
Fix onBlockedStatusChanged does not work on multiple networks

There is a logic error in maybeNotifyNetworkBlockedForNewUidRules
that caused function to return if there is no status change in
the first network. This would cause CTS failed in devices which
has volte-enabled SIM inserted.

Bug: 129409153
Fix: 117969394
Test: 1. atest com.android.cts.net.HostsideNetworkCallbackTests \
         --generate-new-metrics 20
      2. atest FrameworksNetTests

Change-Id: Ifd18d1c6ad708c1dbc793f03d8241f572af50317
services/core/java/com/android/server/ConnectivityService.java