OSDN Git Service

Allow passing in acceptUnvalidated without explicitlySelected
authorLorenzo Colitti <lorenzo@google.com>
Tue, 4 Jun 2019 05:37:26 +0000 (14:37 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Tue, 4 Jun 2019 14:35:22 +0000 (14:35 +0000)
commit0e33bd116782f92dc77f65104ec6706e46548742
treecb024948aaea0735aff785694c173be19c36555a
parent9e2457622abb8611876185f09cb79f5c3c2f4711
Allow passing in acceptUnvalidated without explicitlySelected

This will allow wifi to tell ConnectivityService that partial
connectivity is acceptable even if the network is not explicitly
selected.

This is needed when the user selects a partial connectivity
network and tells the system to connect to the network, and never
to ask again. In such cases, the system must switch to the
network even if it is not explicitly selected.

Bug: 130766237
Test: atest FrameworksNetTests
Test: unit tests in an upcoming CL
Change-Id: I13465090b7b1c0bf5dc83362387a5428d77b7e1d
core/java/android/net/NetworkAgent.java
services/core/java/com/android/server/ConnectivityService.java