Commit Graph

91 Commits

Author SHA1 Message Date
Fan Zhang
6507613ebc Log visibility change for all fragments.
Bug: 30681771
Test: SettingsUnitTests

Refactor visibility logging from InstrumentedFragment into a mixin. And
apply mixin in remaining fragments.

Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
2016-08-18 14:04:13 -07:00
Jason Monk
6af0b9db4c Wifi p2p fix?
Bug: 27431029
Change-Id: Ic9661dbb75d633d4b6e778cde796785aa33c04e0
2016-03-01 15:27:38 -05:00
Chris Wren
9d1bfd1e8d port settings over to new metrics enum
Change-Id: I0b3efd2f4db773ccbc52bfe59ee8eb0dab9584fb
2016-01-27 10:58:58 -05:00
Jason Monk
0b4fdc49fb Create configure Wi-Fi screen
Add a gear on Settings menu, and move a bunch of stuff from
overflow and advanced screen to there.  Also move add network
to be the last item in the list rather than in overflow.

Also fix WifiP2p breakage.

Change-Id: I5c84c25e5ba9224f77dcd988b0b2850ae6e71168
2015-12-04 12:57:39 -05:00
Jason Monk
39b467482d Depend on support lib preferences
Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
2015-10-13 10:12:20 -04:00
Sanket Padawe
7186a47ef3 Check for special char when renaming device for Wi-Fi direct.
Bug: 21141820
Change-Id: I78231d95e5ba3f505325d5657f8e6106a887f11e
2015-05-18 11:39:01 -07:00
Chris Wren
8a963babe2 log visibility of views
Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f
Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
2015-03-27 13:39:07 -04:00
Fabrice Di Meglio
263bcc8b73 Use Drawer in Settings app
- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header  validation when launched from the Drawer but *force* validation if external
call thru an Intent

Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).

Also, verified that:

- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer

Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
2014-02-03 16:36:46 -08:00
Yuhao Zheng
5d2169eb6f Refresh peer list when entering wifi p2p settings
When wifi p2p is connected, entering Wi-Fi Direct UI won't show any peer devices
until a WIFI_P2P_PEERS_CHANGED_ACTION broadcast is received (long after or never).
Users may be confused and think p2p is disconnected. It's more user friendly to
display connected devices right at the beginning.

In addition, this CL removes the useless mWifiP2pManager.requestGroupInfo call.

Bug: 11175553
Change-Id: I0f0834043a2cf6e8fc20319e6861b62484478146
2013-10-11 14:08:48 -07:00
Yuhao Zheng
acac38011b Wi-Fi Direct setting UI: handle p2p disable state
This is not a normal use case as we can't enter Wi-Fi Direct setting when p2p
is disabled. However we can make this happen by entering Wi-Fi Direct setting
screen then disabling wifi via quick settings.

Previous UI implementation didn't handle p2p enable->disable change completely,
leaving the screen out-of-date until we change the screen orientation.

Now we always attach mThisDevicePref/mPeersGroup/mPersistentGroup to the screen,
but just disable them when p2p is disabled. Another advantage of doing this is
to avoid b/11050625, which occurs when a PreferenceGroup is not attached to the
PreferenceScreen.

Bug: 11133069
Change-Id: I9be7b6e396d7677b5a33df8e6294b4a0aa6bd389
2013-10-10 10:08:45 -07:00
Yuhao Zheng
6271cd01de Fix NPE in Wi-Fi Direct Setting UI
After a PreferenceGroup is created, attach it to a PreferenceScreen right away.
Otherwise, if PreferenceGroup.addPreference is accidentally called before being
attached, it will result in an NPE and a UI crash.

Bug: 11050625
Change-Id: I68fa8b67ab807c0729c43c1b5cdabdbcd4f2c230
2013-10-08 10:26:37 -07:00
Russell Brenner
ac57f3e1eb Add resources for light theme
Bug: 10407819
Change-Id: Ie232b2d48a8d67355d7c31a878ebaa79aae7c44d
2013-08-30 10:10:02 -07:00
Vinit Deshapnde
1a9819df16 Fix an NPE in WifiP2pSettings UI
The NPE happens becase we save a references to the group that is to be
deleted, when the confirmation dialog is being shown to the user. We lose
that reference if orientation is changed (because the UI creates a new
WifiP2pSettings to interact with).

The fix is to save the name of the group that is being deleted in
persistent store, and re-select the group based on that.

Bug: 9004915
Change-Id: I1387a5b17fa2773748f4c8b34adddfc9516cfcf3
2013-06-10 12:28:48 -07:00
Irfan Sheriff
540f75aa92 Limit device name length
Bug: 8599677
Change-Id: Ifce5579c0a65c98a4faaad286a7255b2e63d2a76
2013-04-11 22:26:28 -07:00
Irfan Sheriff
bd4e10579b am 5c879e48: am 414d9e9c: Merge "P2PSetting:Avoid p2p_find on group removal event"
# By sunil duttu
# Via Android Git Automerger (1) and others
* commit '5c879e48eddfe617125733f2be46854a0266a23b':
  P2PSetting:Avoid p2p_find on group removal event
2013-02-06 11:20:40 -08:00
sunil duttu
7c872478eb P2PSetting:Avoid p2p_find on group removal event
Immediately after group termination p2p_find is being issued
from settings and this causing issue whenever user sends
connection request immediately after group_removal_event.

Change-Id: I41e5f520f7d9475d0ec890d40eea172d9d66d06e
2013-02-06 23:18:30 +05:30
Irfan Sheriff
9f86b5df78 Use updated API
Fetch peer details from broadcast instead of querying the whole list
each time

Change-Id: I57d82c9dc977d91675b5e5c99979732c80fb1a09
2012-12-11 22:18:59 -08:00
Irfan Sheriff
fb6faab59e Fix strings
Bug: 7182012
Bug: 7071211
Change-Id: I34aa508d5e4151ffdc538a3ab9ae1ddf3749b345
2012-09-18 21:03:42 -07:00
Yoshihiko Ikenaga
f3f14665a3 Enable to delete a stored persistent group from p2p settings.
Enable to delete a stored persistent group from p2p settings.
The multilingualization has NOT been done yet.

Change-Id: I84bd89343c9e3ce5e62b8b96dfce9d286675b145
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2012-08-28 15:16:38 +09:00
Irfan Sheriff
c26c2f2204 Merge "Fetch peers after preferenceScreen is ready" into jb-dev 2012-05-31 15:04:53 -07:00
Irfan Sheriff
a9d76b3bcc Fetch peers after preferenceScreen is ready
Bug: 6450152
Change-Id: Ic95c7fdba5fa7cb54b0c54ed9a423e0e0683ad2f
2012-05-31 12:44:03 -07:00
Amith Yamasani
5864701197 Retain text in Rename Device dialog.
Also, show the current device name in the dialog, if available.

Bug: 6508967
Change-Id: I34d420e197796352aeab74121bdee55c2d2854d7
2012-05-29 13:19:26 -07:00
Irfan Sheriff
db3d4bb8c4 Fix p2p settings crash
- Restore on orientation change
- Use appropriate string for dialog

Bug: 6456079
Bug: 6463563
Change-Id: I1fa0b90a14d09608b580ebf3d66b92fc8721eae7
2012-05-18 13:27:05 -07:00
Irfan Sheriff
97617ce89e Allow p2p device rename
Change-Id: Ib61425da344f955b0a583716516181bdfbd4b504
2012-04-26 16:39:10 -07:00
Irfan Sheriff
c08caf7a33 Add support for cancelling connection
Change-Id: Iba4a002ab86e62d87ae1175b75c203d3a86ad7c6
2012-04-06 15:28:57 -07:00
Irfan Sheriff
3a14bafcf6 Fix discovery state tracking
Use the new intent to track if we are in discovery state

Change-Id: I9e07c3ccfcf62c3c33195d23c94de60d4248670c
2012-03-28 15:55:20 -07:00
Irfan Sheriff
a318d1e821 Fix p2p settings NPE
Bug: 6138959
Change-Id: I0c930686220ad8a77e3a998a108158b2467b5707
2012-03-09 15:18:42 -08:00
Irfan Sheriff
6ac5554d30 P2p UI fixes
- Move Wi-Fi direct as a setting in Wi-Fi
- Handle some UI refresh issues

Change-Id: Idc43a2ca98acc4b904ca1f5fe0b1447ee612f218
2012-03-07 10:54:06 -08:00
Irfan Sheriff
d37422a3a0 Concurrency wifi p2p and client operation support
Change-Id: I095b7e7ce143cc37ec454a8e43ed579258d72ea1
2012-01-18 15:33:31 -08:00
Irfan Sheriff
1e13143b3a Add debug support for P2P WPS
Use a system property to allow WPS selection for p2p
connection

Change-Id: I34af97eaa4c4d4ff2e7ed52ba8f9bfb21f7b1c45
2011-12-19 16:43:29 -08:00
Irfan Sheriff
8c2ac71b34 Add wifi direct settings UI
- Use switch for toggling
- Follow string and UI suggestions from UX folks

The goal is to keep the interaction minimal - PBC is used when possible and keypad/display
are used only if really necessary

Bug: 5332330
Change-Id: I83e91ad3a393c143e70f1f2b6a842b95eacde404
2011-11-29 15:43:20 -08:00
Irfan Sheriff
2592083c1f Update p2p settings UI
- Add self device information on settings
- Add remove group option

Bug: 5332330
Change-Id: I5de4fa1e92a5182e10269fe5c2b78f1f6313fb63
2011-09-16 10:46:58 -07:00
Irfan Sheriff
ec10578884 Update new API in debug settings
Bug: 5247957
Change-Id: I594e55a928a2870cb153b042df74a2b354bee073
2011-09-13 16:03:08 -07:00
Irfan Sheriff
6b8de71381 Update settings from API cleanup
Bug: 5247957
Change-Id: Iba77318972b58f4fe250b9adfe83937c9cce7ef3
2011-09-07 00:10:51 -07:00
Irfan Sheriff
6689200262 Use renamed Wps class
Bug: 5247957
Change-Id: Ib95f0411f637bcb6d43b9b963a282d4e9c4e813a
2011-09-06 22:32:04 -07:00
Irfan Sheriff
e964d57152 Remove device name and display debug setting
Device name in WifiP2pConfig is going away

Bug: 5247957
Change-Id: Ib6ada8420ed8e7fbfcab85eee5f1665e33e8f024
2011-09-01 15:01:03 -07:00
Irfan Sheriff
1610a74a26 Expose wifi p2p toggle switch to user
We will not show the Wifi p2p settings to user but the turn on/off capability
is exposed to the user and applications will be expected to let user turn on
and turn off p2p at launch.

Remove the compound button integration from the settings page.

Bug: 5242230
Change-Id: I54ec307304256b051e85201b8bb829d0e5544bfc
2011-08-31 11:54:46 -07:00
Irfan Sheriff
3d05e3c2be Update WifiP2pManager API use
Bug: 5002384
Change-Id: I6fb3564482061783429b433105ae5f2fa1cfafcc
2011-08-24 14:19:29 -07:00
repo sync
76feb7f1c1 Use updated wifip2pmanager API
Change-Id: I03ef9a050b51a8895b89cd5daa93a094dc0b75a1
2011-08-04 14:05:37 -07:00
Irfan Sheriff
9ef53578b8 Fix package path for p2p settings
Split p2p change to avoid eclipse errors on master

Bug: 5002384
Change-Id: I446d4524b823d42c79daa24d43aa24012743e734
2011-08-03 23:21:33 -07:00
repo sync
b98463f8b0 Updated: Wi-Fi p2p initial UI implementation
Change-Id: If60f42f76fa07a868d2e11b012b4697252c69f5f
2011-07-24 11:16:50 -07:00