OSDN Git Service

Show accurate connection status for ephemeral networks.
authorJeff Davidson <jpd@google.com>
Tue, 4 Nov 2014 02:47:28 +0000 (18:47 -0800)
committerJeff Davidson <jpd@google.com>
Wed, 5 Nov 2014 23:04:14 +0000 (15:04 -0800)
commitb46a9194fe88a26e80d415919d191703c340925e
treed4e1d4d87217095c6a04a444ba96f67f27046c18
parent815c61d729715e6d7a19fbf4f039d59d0dddc265
Show accurate connection status for ephemeral networks.

Configurations for these networks are not returned in
getConfiguredNetworks() and likely shouldn't be as clients of this API
would not expect them. (Note also that the ephemeral bit is marked
@hide). But the framework may connect to them regardless.

In these cases, as long as the connection status is something other
than the coarse-level DISCONNECTED, we show the status to be an
accurate representation of Wi-Fi state. (To make this possible, we
pass around the full NetworkInfo instead of just the DetailedState,
allowing us to get the coarse state where needed).

When long pressing on a non-DISCONNECTED ephemeral network, we offer
the ability to save the configuration. (Note that this flow is
currently broken and being tracked by another bug, but the behavior is
consistent with what happens when you simply click on the SSID).

Bug: 18205278
Change-Id: I30592c89546068c796f458a86bb26eb3b28c64df
res/values/strings.xml
src/com/android/settings/wifi/AccessPoint.java
src/com/android/settings/wifi/WifiSettings.java