Commit Graph

179 Commits

Author SHA1 Message Date
Amith Yamasani
967da9517f Bring back Wi-Fi sleep policy setting for wifi-only devices.
Have a different set of strings, since we cannot mention mobile data for
a wifi-only device.

Bug: 3487952
Change-Id: I486315da40f15807f75d85d2a077a6b234a1e3d7
2011-03-02 10:36:31 -08:00
Irfan Sheriff
590e6c23b7 Use AsyncChannel in settings
Change-Id: I440f08dec986e4dad4b578ee4065d6063b8ef989
2011-02-27 22:08:33 -08:00
Amith Yamasani
0f85c48d6c Remove / re-word some settings for WiFi-only devices.
Bug: 3468248

1. Remove Wireless->Mobile networks
2. Remove Wireless->Tethering and WiFi hotspot
3. Remove Wireless->Wi-Fi Settings->Wi-Fi disconnect policy
4. Re-word Network location summary text to not include "mobile network"

Change-Id: I84a551a1b63591974731029b0d4b90a85e43a716
2011-02-24 10:53:29 -08:00
Daisuke Miyakawa
a93196f165 Take care of null in Wifi setup.
The preference isn't available in Wifi setup launched from
SetupWizard, causing NPE.

Bug: 3404998
Change-Id: Ia0dabea95e5e7424698a269c0851d610fd305309
2011-01-29 11:55:24 -08:00
Irfan Sheriff
7bdf0e73d0 Move sleep policy to main settings page
Bug: 3404049
Change-Id: I091abd737894a4adb9ebfc08b8e63bc3224b971c
2011-01-28 17:00:37 -08:00
Amith Yamasani
9eb18f0015 Fix missing title for WiFi Advanced settings.
Bug: 3360783
Change-Id: I8c22ce5a995eab26d300402471770c082f90a34a
2011-01-25 12:56:53 -08:00
Daisuke Miyakawa
14cbcb7fe8 Revise layout for Wifi Setup in XLarge screen
- revise xml for new layout
- introduce padding View objects for resizing screen when
  software keyboard is shown.
- We now don't show the detailed status of Wi-Fi module anymore
  in SetupWizard flow (like "disconnected", "connecting", etc.)
- remove Forget button and relevant code.

Bug: 3347865
Change-Id: Ieab3246f06ee73af59e247b3f9f31c7570efc71f
2011-01-17 13:34:21 -08:00
Irfan Sheriff
6377e47f8b Add UI to report WPS overlap error
Bug: 3354319
Change-Id: I4584bc3a820ace1232026920c4dc29e6b273461c
2011-01-16 13:10:32 -08:00
Irfan Sheriff
4de7499d7c Merge "Add feedback dialogs for WPS" into honeycomb 2011-01-16 13:03:10 -08:00
Daisuke Miyakawa
267d51a68a Disable long-press behavior in setupwizard.
Bug: 3355243
Change-Id: Ibe15da5ced91f975ca9c9c3c4d42cbd1c753f9d4
2011-01-15 15:21:13 -08:00
Irfan Sheriff
dee5b26892 Add feedback dialogs for WPS
Upon failure or an existing WPS session,
a dialog message is conveyed to the user

Bug: 3316078
Change-Id: Ibcf27e21058970f8f1667061c7654948c690d48e
2011-01-14 09:43:13 -08:00
Daisuke Miyakawa
4f0cd58e86 Merge "Show password field when authentication failed." into honeycomb 2011-01-12 11:02:04 -08:00
Daisuke Miyakawa
cde3083fb5 Show password field when authentication failed.
- add onAuthenticationFailure() method to prepare
  appropriate UIs.
- set "edit" boolean to true so that users can modify
  password when re-seleting a network.
- keep mStatusText shown for simplicity. It has been hidden
  during "editing" phase, but we don't need to do that any more
- modify Connect button handling so that the button
  hides/appears at appropriate time
- manage visibility state of some fields so that
  we can "reset" the status when authentication failed
- show keyboard again when password field re-appears

Bug: 3330109
Change-Id: I1cdf0573280ab46882117e21501a43a447e50b40
2011-01-12 09:59:43 -08:00
Amith Yamasani
9e3a4700b6 Remove extra button bar.
Bug: 3058024

Change-Id: Ib3c2620869729f8916178ea0c0e899635b470a8f
2011-01-12 09:12:20 -08:00
Amith Yamasani
935d6e9309 Don't add wifi entries twice, when returning from another activity.
Bug: 3209730
Change-Id: I7408a56fc10359e508be5a1d27492da2227335ce
2011-01-07 13:13:24 -08:00
Daisuke Miyakawa
8630cde72b Remove unnecessary codes around WifiSettings.
Bug: 3321110
Change-Id: Iaac35a507b8e46e2d4702f0e5cda7b515a57db67
2011-01-06 13:27:36 -08:00
Daisuke Miyakawa
0688f251af Refresh layouts for SetupWizard.
- DateTimeSettingsSetupWizardXL
- WifiSettingsForSetupWizardXL

Bug: 3308677, 3137755
Change-Id: Ifdf67aa7521de7ef0286fea2b15ce693fbf5d5ce
2010-12-28 12:06:08 -08:00
Irfan Sheriff
cdbc80afb2 Use WpsConfiguration for new API
Change-Id: I4c1544178bcb29e751db56edb781faf9145cdf86
2010-12-13 16:00:41 -08:00
Irfan Sheriff
c1bad6bc68 scan immediately when user indicates so
Bug: 3242989
Change-Id: Ia15d7a61a40b64830a7840b7d31e6b5f96b2ad78
2010-12-03 16:22:16 -08:00
Irfan Sheriff
afc2aacf00 Use new config change broadcasts
Bug: 3237735
Change-Id: I29e2807f76d54354bf501b2e7655f49386e6bf95
2010-12-03 14:15:05 -08:00
Irfan Sheriff
582ab4d414 Act on supplicant changes only when disconnected
When wifi network state is disconnected, supplicant
state changes provide more fine grained information to display.
When network is connected, the UI should ignore supplicant
state changes.

Change-Id: I46aa8c2ba80303aae5c74415825102a13cc41380
2010-11-24 09:13:14 -08:00
Irfan Sheriff
52727dd1fb Restore compareTo behavior of access point list
The Comparator with TreeList that was added during
wifi set up changes does not work well since
access point can change later.

Restore the old compareTo behavior.

Change-Id: I75681fea616792e9fd134c0d71762b4e0d46ffd6
2010-11-23 16:55:03 -08:00
Daisuke Miyakawa
58b0291fe6 Refactor WiFi code around XL setup
Major:
- move SetupWizard-related codes to WifiSettingsForSetupWizardXL as
  much as possible
- stop using Preference for configurinig wifi network. We use
  WifiConfigUiForSetupWizardXL instead, which is base on a bare View.

Minor:
- change button handling code expecting better readability.
- hide Detail button.
- modify strings a bit.
- add logs

Bug: 3175016
Change-Id: I5b29917af73aac6a82e13ba846a9d5085f9bd523
2010-11-10 15:31:10 -08:00
Daisuke Miyakawa
3dd06301fa Use custom preference.xml in XL.
A spacer are added on the left side of each preference, which isn't
needed in XL setup screen.

Change-Id: Ie3b8e04b492b4a4840ba1bbda4a413673734fbaa
2010-11-08 12:20:33 -08:00
Daisuke Miyakawa
8b3b876c09 Fix UI for WifiSettings for XL screen
Change-Id: I874e1e8d86e8b219414f6bf2ff945ea4f9ab7a6c
2010-11-04 12:44:27 -07:00
Daisuke Miyakawa
1dc3715e3a Reduce default settings in WifiSetup XL.
We don't want to show every configurations in default, while
we also don't want to complicate basic wifi logics. In order to
achive both goals, we first introduce tweaked xml file
(wifi_config_preference2.xml). It does contain all the
config components but almost all of them are in "gone" visibility.
Those components are still able to act as data storage, but never
be seen as actual UI components.

Change-Id: I4ad3c1b4cbbe77ca2b628b0be25e2b3eb9d645aa
2010-10-29 18:00:36 -07:00
Irfan Sheriff
e45e13f47a UI for wps pin from device
Bug: 3119043
Bug: 3112178
Change-Id: I573146ed0c834cb88d5f42c25fe0be3ed501a321
2010-10-26 09:58:58 -07:00
Daisuke Miyakawa
55de702961 Disable Wifi when a user press cancel in XL setup
Bug: 3122182
Change-Id: Id333b9ede9093fa7fb8aa256b720effa5abf290d
2010-10-21 19:40:16 -07:00
Daisuke Miyakawa
c05efc1df7 UI refresh
Bug: 3110575
Change-Id: Ia6ffef6de8882920b89372052b5e29968bedfe5f
2010-10-19 10:12:50 -07:00
Irfan Sheriff
9cf1b00657 Fix issue with limiting access points
There should not be a limit on the general
settings screen to display access points

Change-Id: I81fd438c7464a229f00dcddca359476d8684a349
2010-10-08 16:08:51 -07:00
Daisuke Miyakawa
fef4125d4e Disable buttons during first scan.
Also remove status manager code, as they should not be here.

Bug: 3069020
Change-Id: I6fcf8470066f96b7f608ceb519b0783e44307846
2010-10-06 13:34:18 -07:00
Daisuke Miyakawa
3b6aa41cce Improve UI of WifiSettingsForXL
Change-Id: Idd25251581577246ff3fb6820b9c569454292593
2010-09-29 16:09:42 -07:00
Daisuke Miyakawa
5d3c5cb9d0 Fix misc problems happening in SetupWizard XL
Change-Id: I6ba0813f36625de3d86543953972869657be50be
2010-09-28 16:04:08 -07:00
Daisuke Miyakawa
86eaa09aa4 Modify implementation around SetupWizard XL
Bug: 3005211
Change-Id: Ia01957725956d570370aceeab01750d77069001a
2010-09-24 11:06:30 -07:00
Irfan Sheriff
b3024fa6a0 Add UI for WPS
The WPS available option is shown
for networks in scan results. Upon
selecting a network, the user has
the option of manually entering passwords
or choosing WPS for connection

Bug: 2277571
Change-Id: Ia12eb1742f1bf17128d51fa09e56dc4c3f067fa5
2010-09-23 07:18:07 -07:00
Daisuke Miyakawa
7e7ae9e59d Fragmentize wifi.AdvancedSettings.
Change-Id: I3dde2eb604886a8d0719549eabac76fadc74c220
2010-09-15 22:06:47 -07:00
Daisuke Miyakawa
b962d6566c SetupWizard improvement: let users see "scanning"
Current UI shows nothing when there's no connection available, even when
the device is finding some. So user cannot know whether the static
"Not connected" screen means: the device is finding right now, or
actually no network is available.

Change-Id: Ia8ea1c66956e8de819f6a98362bcc9086bda172c
2010-09-15 12:57:34 -07:00
Irfan Sheriff
f027ce5e02 Add static IP UI
Remove the existing UI and add per network static IP config option

Change-Id: I9b8636e1559de9691144fdb54e20d40985896650
2010-09-14 17:02:21 -07:00
Daisuke Miyakawa
a41a9286ab Remove unnecessary comment.
Change-Id: I4532a3b042f3dfee4f1a1fe3c26111ed8b00d023
2010-09-12 20:35:06 -07:00
Daisuke Miyakawa
5cd60eb8aa Add modifications which should have been in the change
I520d690d3301837d32f91dad54a973a379ce1989

Change-Id: Iecca6b4fef2ec42a62273035b096ccedcea94d78
2010-09-01 19:38:23 -07:00
Daisuke Miyakawa
d36699282c Add Wifi Setup screen for Setup Wizard with XL size screen.
* Add WifiSettingsForSetupWizardXL as a new Activity
The activity has WifiSettings fragment in it. It also contains
several buttons, texts around the fragment.

* Making configuration UI part of Preference list.
In Wifi Setup for Setup Wizard XL, WifiSettings fragment lets
a UI for configuring access points shown inside a
PregerenceCategory object, while it has been shown as Dialog.

To achieve this action, WifiDialog is decomposed into two parts:
- WifiConfigUiBase (Mainly UI part)
- WifiConfigController (Mainly Wifi controller part)

All codes for wifi configuration in WifiDialog is now in
WifiConfigController, which is reused from
WifiConfigPreference.

* Misc stuff
- Remove AccessPoint#compareTo(). Instead,
  AccessPoint.AccessPointComparater should be used when needed.

Change-Id: I520d690d3301837d32f91dad54a973a379ce1989
2010-09-01 16:17:51 -07:00
Daisuke Miyakawa
9c8bde576a Fragmentize WifiSettings.
- Add button bar feature toward SettingsPreferenceFragment,
  which has existed in PreferenceActivity and has been used
  (probably) only by Settings app.
- super.onActivityCreated() is not called at the beggining of
  WifiSettings#onActivityCreated(), the parent method assumes
  the child should have prepared PreferenceScreen, while
  WifiSettings cannot do until the parent Activity is ready.
- Call SetHasOptionMenu() should be called AFTER the parent
  Activity is ready. It is not documented, so it would be better
  to file another bug.
- Add exception to proguard...

Change-Id: Iebd27f0cb0abdbee9b4b1cc9b00f4bf127f7815d
2010-08-25 16:03:33 -07:00
Irfan Sheriff
d821c7adcc asynchronous API changes
Use the simplified connect, save & remove async API

Change-Id: I5754f1772163bcb4ab0ae18cab3747e17c21531a
2010-08-11 08:32:28 -07:00
Irfan Sheriff
7add00049a Increase scan time in settings
With the combo scan on all bands taking about 5-6s,
increase scan time in settings to 10s.

Change-Id: Ie98605a211dcb149b3bbd2c723bc10352e207cc3
2010-08-04 11:27:42 -07:00
Chung-yih Wang
de5302577f am 5dcdbb5c: am 8719f0d2: am 8c81257f: Fix the double-quoted SSID issue. 2010-05-17 09:21:28 -07:00
Chung-yih Wang
8c81257f70 Fix the double-quoted SSID issue.
Bug id http://b/issue?id=2684571

Change-Id: I0f1e508b9a3d0fefcef28235380392368a51e42a
2010-05-15 10:57:23 +08:00
Irfan Sheriff
c02e258eaa am e7879010: am ea87b6d7: Merge "Stop scanning after errors" into froyo 2010-04-17 09:44:54 -07:00
Irfan Sheriff
e81497095b Stop scanning after errors
When scan fails for 3 times, we show a
failure toast and continue to scan.
In one case this caused infinite toasts,
until the user stopped wifi.

Its not clear what can cause this kind of
a state since wifi disable broadcast should
stop the scans. This fix will stop scans
after 3 continuous failures. Any wifi state
change will restart scan.

Bug: 2601937
Change-Id: I68733394cb3c9b76ffb15f7579e7af6c1f54d39c
2010-04-16 14:56:54 -07:00
Irfan Sheriff
5536c4a052 am a4bbf553: am 3957b3c1: Merge "scan only when wifi is enabled" into froyo 2010-04-10 11:58:12 -07:00
Irfan Sheriff
2215c7f868 scan only when wifi is enabled
Bug: 2570611
Change-Id: Ibb51dee8ec110179ec28f9469526a1fe61e74d00
2010-04-09 17:52:26 -07:00