Commit Graph

63 Commits

Author SHA1 Message Date
Irfan Sheriff
5cd1bbda7d Use updated WifiManager API
Change-Id: Ia02fc8a7eafa84fa4eddeeefafa7fecaac82903e
2012-07-25 09:58:46 -07:00
Irfan Sheriff
8f2f08e0ee Use new WifiManager API
Change-Id: I9cc092e98412146a07c1829cacab47b8cea0bc9a
2012-03-01 13:53:37 -08:00
Freeman Ng
7e84e4682d remove obsolete background bitmaps
Change-Id: I5ca2b3eeda1f9d2e63c495e5f5b88e28592c5655
2011-08-17 16:58:56 -07:00
Gilles Debunne
e78c187905 Settings refactoring
Wifi and bluetooth pane refactored, main toggles moved to left pane.

Change-Id: I42ea4cf3bdf24158f3c67e0dea311258206cd78a
2011-06-21 11:05:29 -07:00
Freeman Ng
0a24ca3b18 am 6beb924e: am 351367bb: am f368d4dc: Merge "add options to lock suw wifi setup orientation into portrait or landscape" into honeycomb-mr2
* commit '6beb924ec2b147d259cd3438f56cd88691fc57e5':
  add options to lock suw wifi setup orientation into portrait or landscape
2011-06-07 18:20:19 -07:00
Freeman Ng
f54fec5939 add options to lock suw wifi setup orientation into portrait or landscape
bug: 4522454
Change-Id: I30ba3d4b5d0e4949ed6744cc9f0f68306fec9ce8
2011-06-06 16:27:55 -07:00
Daisuke Miyakawa
6a7b3d9949 Handle "scanning" status correctly
Bug: 4026282
Change-Id: I7dc113122a8611095642e1a70334d7cdc165173f
2011-03-07 16:29:50 -08:00
Daisuke Miyakawa
ffce5dabbb Show "disconnected" progress bar on add network flow
Change-Id: I4dc2df9016f21f655a13c244b744020de4a12d0b
2011-03-07 16:07:02 -08:00
Daisuke Miyakawa
f26b2b5110 Fix padding problem around progress bar
Change-Id: I3f76b4f01ed433e68a839f02c2c1840c60749ef1
2011-03-04 13:08:44 -08:00
Daisuke Miyakawa
83183f4698 Notify "skip to caller.
Bug: 3504698
Change-Id: Ifb39830ff15943a3ef1a0130a8620049fe481ff9
2011-03-02 15:56:45 -08:00
Daisuke Miyakawa
6291d50b5d Shrink screen correctly on authentication failure
Bug: 3505089
Change-Id: Ibbd54c6afb0d349fb446775af93412e7557df3c5
2011-03-02 13:48:45 -08:00
Daisuke Miyakawa
d1c22a1b56 Show more graceful screens for "add network" flow
- use TableLayout instead of RelativeLayout for
  wifi configuration to align each columns appropriately.
- split @id/type field into two fields in SetupWizard

Bug: 3403168
Change-Id: I37f2c60ce1b0473af7d20dee1775e9893d2abade
2011-03-02 13:05:14 -08:00
Daisuke Miyakawa
302b057207 Remove unnecessary visibility change hack
Bug: 3502198
Change-Id: I173323eabe7bc5f8ff89b01e71bf00b1b5a83bff
2011-03-02 12:41:54 -08:00
Daisuke Miyakawa
dfd492df3f Remove bottom padding below wifi preference.
- show bottom padding only when top bar is using static View
- hide wifi preference when ProgressBar is used
- show bottom padding when top bar is using static View and
  wifi preference is hidden.
- rename wifi_config_padding to content_padding, as it is not
  just for wifi config but for acquiring default hight of
  @id/content
- update screen state correctly

Bug: 3502220
Change-Id: I86c89435f43d6bd016a78f7afeb5f477f63d0696
2011-03-02 12:37:30 -08:00
Daisuke Miyakawa
c4a495fb5b Not show connecting screen when editing a network
Bug: 3505089
Change-Id: I4793cca80b70e9a7f8ac8d3703e22424d181ac67
2011-03-02 12:24:56 -08:00
Daisuke Miyakawa
2adae4e274 Clean up for Wifi setup XL
Change-Id: I5f5c6764be244252cb91331b59d920a54cc03e86
2011-03-01 14:27:45 -08:00
Irfan Sheriff
590e6c23b7 Use AsyncChannel in settings
Change-Id: I440f08dec986e4dad4b578ee4065d6063b8ef989
2011-02-27 22:08:33 -08:00
Daisuke Miyakawa
7e3ff8eca6 Tiny fix for Wifi setup XL.
Change-Id: I918f4bc8dfbb84a3bdaf6aa74f326f2f5e22bfe2
2011-02-25 17:12:56 -08:00
Daisuke Miyakawa
be10e75c8c Fix visual stuffs of XL Wifi setup.
- remove delayed button enabler stuff including
  "add network" and "refresh" buttons
- add bottom padding to stop moving bottom divider up/down
- add padding for the preference, which should have been
  done in I1f8fb8eca11d52d9c18866301553110c2147b3ef

Bug: 3424645
Change-Id: Ifc8120c123ee154fbe11526474edc65c5943eea6
2011-02-24 16:30:56 -08:00
Daisuke Miyakawa
beec0b2da6 Remove padding between top divider and wifi list
We need View in addtion to ProgressBar, since the latter doesn't
allow us to control its padding on the bottom.

Bug: 3443287
Change-Id: I1f8fb8eca11d52d9c18866301553110c2147b3ef
2011-02-15 14:11:55 -08:00
Daisuke Miyakawa
cc0dc00916 Remove portrait support in SetupWizard
We support sensorLandscape for a moment.

See also I45e30c652feab1d30c4f0379379f8ca4e455fa02

- Use sensorLandscape instead of default
- Modify paddings in default xmls to layout landscape stuffs
  correctly

Change-Id: Ife03de69e4d1d2d898cd0e8de3cefd733aea8f19
2011-02-10 12:31:23 -08:00
Daisuke Miyakawa
09d5c98ea1 Forget network on back in SetupWizard
Bug: 3435571
Change-Id: I13c5024515942948971fbf3bb209360244ee7254
2011-02-10 10:11:31 -08:00
Daisuke Miyakawa
35eae7ccc7 Clean up XL Wifi setup and fix misc problems.
- Introduce screen state, which suppress inconsistent
  UI shown in 3378805.
- Introduce initSecurityFields(), which will reduce hook
  inside WifiConfigController#showSecurityfields()
- fix layout for eap-not-supported case with "add network"
  flow.

Bug: 3378805
Bug: 3403168
Change-Id: I52895570809095d9baceac5f84665572188ecefd
2011-02-09 12:23:28 -08:00
Daisuke Miyakawa
f3bfc89ce5 Enable orientation in SetupWizard
Change-Id: I45e30c652feab1d30c4f0379379f8ca4e455fa02
2011-02-04 18:38:19 -08:00
Daisuke Miyakawa
fe7d04fee2 Introduce "add network" again
The button was once disabled due to the issue 3400715.
See also Ic618078bc70a7db35ec22e6382b9486e92630120

Bug: 3403168
Change-Id: If823a0e8218480b89405e5c4fa6d1afe791eb6d5
2011-02-01 12:46:33 -08:00
Daisuke Miyakawa
62fb701ea9 Disable back button on SetupWizard flow.
Bug: 3383738
Change-Id: Ie06d85ee22482f865a8173a45d0645699427729e
2011-01-31 11:05:05 -08:00
Daisuke Miyakawa
a71551418c Merge "Disable "add network" button." into honeycomb 2011-01-28 12:36:07 -08:00
Daisuke Miyakawa
6ca5354727 Disable "add network" button.
It has broken UI which possibly get users stuck.

Bug: 3400715
Change-Id: Ic618078bc70a7db35ec22e6382b9486e92630120
2011-01-28 12:08:02 -08:00
satok
c9cd29ddb8 Remove invalid call of "clearFocus" in SetupWizard......
Bug: 3398097

- Also disabled logging......
- Once you call "clearFocus", onFocusChanged will be called and
  EditText will try to show the keyboard again. And while bringing up the keyboard,
  the activity is changed and it will end up with the keyboard being shown in the next activity...

Change-Id: If4d3876d4950bb2583c5588f462a94d022d6a7cf
2011-01-28 18:03:47 +09:00
Daisuke Miyakawa
350b724d09 Fix wifi flow
- show progress bar correctly
- stop inappropriately showing padding views
- expand the screen when successful.

Bug: 3378348
Bug: 3378341
Change-Id: I89ff31d24c050755c90fbf07cd4f56d8f0ddeac9
2011-01-21 15:55:48 -08:00
Daisuke Miyakawa
8f533a6232 Use new backgrounds in wifi setup for xl
Bug: 3373467
Change-Id: Iccc9a4c36dc46a67e395c81a642646b8199be606
2011-01-20 12:28:47 -08:00
Daisuke Miyakawa
4781d280d4 Fix Wifi setup for xl.
- Show the title "Add network" correctly
- Handle ProgressBar on "Add network" flow correctly
- Handle possible NPE cases.

Bug: 3361270
Change-Id: Ic0fb808086bfce7b0f88e5703e617a62bc71667a
2011-01-19 16:17:56 -08:00
Daisuke Miyakawa
a30013fad4 UI fix for wifi setup in xl
- Show "connecting" and "connected" text
- Modify layout for "Add network"

Bug: 3347865
Change-Id: I9c9b33b9033e7fb4f885717f00507c1360400725
2011-01-18 20:29:47 -08:00
Daisuke Miyakawa
ee5576ce06 Polish layout and UI for wifi setup
Bug: 3347865
Change-Id: I529fc2f5e11388b34b66617aee64b7facd3708e0
2011-01-18 16:26:03 -08:00
Daisuke Miyakawa
a0587d028a Show correct title.
Bug: 3347865
Change-Id: Ide13ab46f480107c6be1ff22edf44c2ac465fbf9
2011-01-17 18:01:34 -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
Daisuke Miyakawa
267d51a68a Disable long-press behavior in setupwizard.
Bug: 3355243
Change-Id: Ibe15da5ced91f975ca9c9c3c4d42cbd1c753f9d4
2011-01-15 15:21:13 -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
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
Daisuke Miyakawa
762d264658 Check null on Wifi setup screen.
Bug: 3313432
Change-Id: Id475dbca81be9e8f9a7d61cda062095358a725c1
2010-12-28 09:22:24 -08:00
Daisuke Miyakawa
dadf1e53cb Show "not configurable" screen in EAP
Bug: 3175016
Change-Id: If67c0cbf41adee205c8b3eec410e39bc29c2f04d
2010-12-16 10:58:49 -08:00
Daisuke Miyakawa
0333f74b9c Use different text in unsecured network.
We don't show any config UI when network is unsecured, while
Previously we've shown "Enter network configuration" anyway.

Also stop showing network status on StatusText (above
AccessPoint). New network status often appears and instructions
are removed unexpectedly.

Bug: 3175016
Change-Id: I3aa288930a8643e178f7c3897b326b7e00964361
2010-12-16 10:45:23 -08:00
Daisuke Miyakawa
4dd2a5b4f7 Use Handler to delay enabling skip button.
- enable skip button after a while
- stop ignoring wifi status

Bug: 3186913
Change-Id: Ia565f77ecb0d11ad514548774b49d8eda6db4ff8
2010-11-17 10:09:38 -08:00
Daisuke Miyakawa
695dc5e8b6 Remove the limit of available Wi-Fi networks
Change-Id: Ib9cf6753683ecf4d531c76cf1134757ad7d70c47
2010-11-15 10:20:31 -08:00
Daisuke Miyakawa
fdb9343ef6 Stop showing software keyboard when appropriate
This change assumes the structure inside layout file.
We will change the structure inside the layout, so
fundemental fix should come along the layout change.

Also let software keyboard hide when appropriate.
onBackButtonPressed() loses the focus and hiding
the keyboard doesn't work fine after the call.

Bug: 3192886
Change-Id: Ifd28d1f1fd0d6f72dc1c32c066dd793c6f9f36ab
2010-11-12 18:09:23 -08:00
Daisuke Miyakawa
91e9683d8f Set attachToRoot instead of manually doing so.
Bug: 3053354
Change-Id: I065c16cd5af3b438d02d6a0b0da080295e9c17cb
2010-11-12 09:48:08 -08:00
Daisuke Miyakawa
40124c30a9 Delay showSoftInput() call.
We need to wait onFocusView() call back for actually showing
software keyboard.

Bug: 3053354
Change-Id: Idd946e3b8a372ddbabb8b36600c77290f77a06e6
2010-11-11 16:58:04 -08:00
Daisuke Miyakawa
dd9fbb0b9e Enable wifi on XL Wifi setup.
In I5b29917af73aac6a82e13ba846a9d5085f9bd523, we removed
relevant code but it was wrong. At least we need to enable
Wifi once when the Activity is created.

Bug: 3186944
Change-Id: I078cdf9b3d8952e6ce7bb3f9b27a4439e82da534
2010-11-11 09:10:07 -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