OSDN Git Service

Handle IpReachabilityMonitor errors better.
authorErik Kline <ek@google.com>
Fri, 14 Oct 2016 09:33:22 +0000 (18:33 +0900)
committerErik Kline <ek@google.com>
Tue, 8 Nov 2016 07:02:24 +0000 (16:02 +0900)
commite4526604664cb66ecdcbeca4d8f64e8c94750c31
tree79f97959b121a85133f331529047796d1a746d5d
parent1563f499a1ef0c893ff17178f8d2d3c09a30ca93
Handle IpReachabilityMonitor errors better.

If construction of a new IpReachabilityMonitor throws an IAE then
log it and immediately call onProvisioningFailure().

Test: runtest frameworks-wifi
      passes, except for selectQualifiedNetworkDoesNotChooseDeletedEphemeral()
      which fails with an NPE for unrelated reasons.

Bug: 31038971
Bug: 31742703
Change-Id: Ie91b8bdd509d06ad54d062bf446e74c092eb096c
core/java/android/net/metrics/IpManagerEvent.java
services/net/java/android/net/ip/IpManager.java