History log of /packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dad557305e6abb8d632acd44c55975d7a117bbdd 20-Apr-2018 Doris Ling <dling@google.com> Fix Network details title not being translated.

- use the title resource id instead of the actual string in the launch
intent so that it can react to language change.

Change-Id: I424dc026a9298d12627c05f97f27e9d4cba5a341
Fixes: 77896130
Test: run i18nscreenshots
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
01cfb9d8c54dd2c888cea15987e7644e8a78a3e0 02-Apr-2018 Fan Zhang <zhfan@google.com> Remove wrapper for ConnectionManager/IPackageManager

Bug: 76167422
Test: robotests
Change-Id: I5f051b0ce58b97a3cfd5d4bae469463dcd6d83ac
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
234854cb047205b98a007120e2d6323f2bac97be 30-Mar-2018 Fan Zhang <zhfan@google.com> Remove more wrappers in favor of new Robolectric support

Bug: 76167422
Test: robotests
Change-Id: Ic71a181bee6f90f25f9fa2a748cf708887495394
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5178a9d07a501262f92ef6e37227ada57ab32954 20-Mar-2018 Adam Newman <homebrew@google.com> Observe NetworkCallback instead of polling

Switch from polling for the first connected WiFi network to observing
the currently connected WiFi network and associating that with the
preference at the time the preference is created or updated.

Whenever the ConnectedAccessPointPreference is removed or UI is stopped
unregister the callback.

Bug:68031656
Test: make RunSettingsRoboTests
Change-Id: I5d1ed83b6a13e8a83fae04bfdce8d0f13c2ba0ac
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e05884564e369d5b4a107570164e56963a4ad328 19-Mar-2018 Jyun LuoLai <jyunluolai@google.com> Modify connectivty related strings

Change-Id: I971c5f68ff3d881ad0285f87ab868a204edc9b7f
Fixes: 73960246
Test: Manual test & make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c6b4f3d92c82167205ccc5af11e0d9c3250cb8c3 09-Mar-2018 Adam Newman <homebrew@google.com> Enable launching captive portal directly

Whenever a user has connected to a captive portal network, split the
ConnectedAccessPointPreference to allow directly signing into the
captive portal or modifying the network's settings. When in any other
network state, use the old behavior of a single tappable preference that
takes the user to settings.

Bug: 63929546
Bug: 68031656
Test: make RunSettingsRoboTests
Test: manual by connecting to Captive Portal and normal WiFi networks.

Change-Id: I444202a12138d90c94bda94945c121c8c0810536
(cherry picked from commit 7577624db7bf9d9c8382161bab25849589822601)
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a0d8315762325099d7cfb4301b45c9ff3e7da5f7 21-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove use of forceUpdate."
7cf99f5f1239f2e657b5592e286f0c0d31661da0 16-Feb-2018 Fan Zhang <zhfan@google.com> Migrate more settings to use SubSettingsLauncher

Bug: 73250851
Test: robotests
Change-Id: I08f6f380489646231d6d8ceb1488e2efb036bf69
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0f711f86a6b5e6136213fb682bc33a27c05be3c6 09-Feb-2018 Sundeep Ghuman <sghuman@google.com> Remove use of forceUpdate.

Now that WifiTracker correctly handles eviction of stale scan results
only after scanning has resumed, it is no longer necessary to
conditionally fetch APs on app resumption.

Fix broken test.

Bug: 68030053
Test: runtest --path
tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java

Change-Id: Ib4c8d6e53cf760fcb5f00069da40c578171c09f4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
96fc83d82192e1282847c4a9a6c820f2f2f03b19 08-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Delete WPS settings."
26e35dac79ce0e9ce38a1bd5aadaae505e4103ce 07-Feb-2018 Andrew Sapperstein <asapperstein@google.com> Delete WPS settings.

Removes the WPS PIN and Push button settings, all of
the strings, and related code.

Change-Id: I1c7a35ffc8491c57e07accba9b1b5f5407b01831
Fixes: 72421239
Test: deletes code, robotests
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d0d7322138de40d3c89e91bf8d918c8a52688536 07-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Modify logging in WifiSettings."
d895f9374cacbf55c94ea7afb560ad4f138e1c05 07-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove the second target for ConnectedApPreference"
790dcdcd96591abe2dd59c240149a202fde46406 03-Feb-2018 Sundeep Ghuman <sghuman@google.com> Modify logging in WifiSettings.

This now respects both the Log tag setting and the developer options
toggle.

Bug: NA
Test: NA
Change-Id: I444b00cb35a61d8779cc46c90b33e611d5b0ac06
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3810036691fa25ef39021e8d244c13d54a892a91 25-Jan-2018 Joe LaPenna <jlapenna@google.com> Always show wifi wake setting.

Remove WIFI_WAKEUP_AVAILABLE config setting its available by default.
Remove check for NETWORK_RECOMMENDATIONS_ENABLED, the feature no longer
uses the recommender.

Test: make RunSettingsRoboTests RunSettingsLibRoboTests;
Test: atest SettingsBackupTest; manual/exploratory
Bug: 69624403
Bug: 67952636
Change-Id: Ia65f7f9349e77a13ad4af1dbd992b28a5cb16368
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a2b151efbe819af04885237bf0ffdb341c56e7a7 27-Jan-2018 jackqdyulei <jackqdyulei@google.com> Remove the second target for ConnectedApPreference

Also create new gear layout since previous one has its own
ripple, which conflicts the normal preference ripple.

Fixes: 72528535
Fixes: 72442172
Test: Screenshot | RunSettingsRoboTests

Change-Id: I6a253574d0a5c971104c157584d66c3312764a26
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f92b2773d3cebd6c56735f405bd5e577613c5a58 29-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move AccessPointPreference.generateApKey."
9c8e6fb68f513f84db59ba8013ae6890d92fc498 24-Jan-2018 Sundeep Ghuman <sghuman@google.com> Move AccessPointPreference.generateApKey.

Move logic into AccessPoint.java.

Bug: 64989100
Test: runtest --path
tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java

Change-Id: I822a9675263191f22e84233bf2f83a610375a815
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a95847850197231eb2099d76e0fdd2cc2af670f4 17-Jan-2018 Fan Zhang <zhfan@google.com> Keep access point list updated once in short time

The function onAccessPointsChanged will be called many times
and access points will be updated many times in 300ms. So check
if the same event exists before calling postDelayed.

Fixes: 68230819
Test: Manual test
Change-Id: Id098e1b77c28b62a5495c3369ed950531e59dba2
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
87d120a7e1571b8f7743c676cdf7a0d2cd82e7b1 11-Jan-2018 Fan Zhang <zhfan@google.com> Override switch bar string for wifi/battery saver screen

Bug: 69462439
Test: visual
Change-Id: I18d03ee1664f111222d7b9bb7ee893e4ce0e1343
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
848f67d17a2a452da8549ab787e4419b927e5698 20-Dec-2017 Ben Lin <linben@google.com> Add ability to show/hide Wi-Fi settings, and all related sub-settings.

This adds a new boolean flag, config_show_wifi_settings, which when set
to false will hide the "Wi-Fi" page in network & internet (there is no
key value associated with this preference page). It will also hide
nested pages from search results, such as Wi-Fi preferences.

Bug: 62379554
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=ConfigureWifiSettingsTest
and
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiSettingsTest
and
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiMasterSwitchPreferenceControllerTest
all pass.

Change-Id: Iedc6bc272e0cb2b561c6bf25968e70f355aaaa8e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0a40de69384710d2dcf82615cc97b52f64974b3a 18-Dec-2017 jackqdyulei <jackqdyulei@google.com> Revamp the network detail page

1. Update the title to be wifi name
2. Add "Advanced" category

Bug: 68029969
Test: Screenshot
Change-Id: Ie0502b22336de7af2c2b1b706b51f340685b2413
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e0b0e9f9025038d72f8129606cc1f432afcb54e0 29-Nov-2017 Fan Zhang <zhfan@google.com> Refactor help menu stuff into a controller

This is a clean up to action bar menu item pattern, we will use the same
pattern to build search icon on all pages in a later change.

Bug: 68814716
Test: robotests
Change-Id: Iedd3ec263e8ccb63ed75ec7a95b28c00878b1de4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d4292256406d374e923335d1c97752da2909ad7b 08-Nov-2017 Pavel Grafov <pgrafov@google.com> Block editing of locked down wifi network from details page.

Test: make ROBOTEST_FILTER=WifiDetailPreferenceControllerTest RunSettingsRoboTests
Bug: 68990370
Change-Id: Idceb064486afd93bc8b2f52d605a788520de8e56
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7d5c9ace64b3b65bb3475d4f25fb5a7ac8c2730f 16-Nov-2017 Fan Zhang <zhfan@google.com> Add test and fix null keys in search providers.

- Add keys to some screens.
- Remove dynamic saved network/turst agent from search provider.
- Remove dynamic print services from printsettings.

Bug: 69384409
Test: atest
Change-Id: I62dce27d52585badb2a8953a05084e35dbae2f7d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fbede9c080bd6d3d40e1e969239f44ccea058233 02-Nov-2017 jackqdyulei <jackqdyulei@google.com> Add ConnectedAccessPointPreference

This preference contains:
1. All the logic from AccessPointPreference
2. Gear icon on the right

Bug: 68807544
Test: RunSettingsRoboTests & Screenshot
Change-Id: I128401d81b075c4e9c5ca711562de26e73147745
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5345e0bd8d1c86e302691f4e5851da46a9f231db 13-Oct-2017 Eric Schwarzenbach <easchwar@google.com> Merge "Show updated Speed Label on Wifi detail page."
389daf02ffbc9ff40f6ada9f34881fe5736da194 11-Oct-2017 Eric Schwarzenbach <easchwar@google.com> Show updated Speed Label on Wifi detail page.

Fixes a bug where the detail page sometimes doesn't show a speed label
even when WifiSettings shows it. WifiSettings stores its connected
AccessPoint in a bundle on page load and connect. If that AccessPoint's
score cache doesn't have a score yet, it won't (can't) store it in the
bundle. If the score cache is then updated, it will display a score in
WifiSettings, but since the bundle has already been saved, the
AccessPoint that WifiNetworkDetailPage receives will not have a score.

This change modifies the preference to store the bundle only once the
user clicks the preference, so the detail page will be in sync with
WifiSettings.

Bug: 67607122
Test: manual
Change-Id: I6b33129b5a03b0e3e6d6e48ea48726e8dbe840b9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4e43cca7fdc6b10a04c6b3af2281c5a234bfe0bf 10-Oct-2017 Tony Mantler <nicoya@google.com> Delete usage of WifiTracker#getCurrentAccessPoints

Bug: 67640649
Test: RunSettingsRoboTests, manually search for saved AP
Change-Id: I5a243ccc49abf78551710011cabf0c7473270cc4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
df2567cbadc8d24b5c235ea10f9e8bb082b74392 29-Sep-2017 Tony Mantler <nicoya@google.com> Make WifiTracker lifecycle aware

Bug: 66953027
Test: m -j checkbuild
Change-Id: I004c889b887a67614a5e0b6ae62fdbf8d6070ebd
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
79f347602186a4057b3f29cab9bed0fd229d3cb1 14-Sep-2017 Eric Schwarzenbach <easchwar@google.com> Add since_visible_millis to Settings action logs.

This change adds a new action logging method on MetricsFeatureProvider
within Settings.

Uses the VisibilityLoggerMixin to calculate the elapsed time since
the fragment has been visible. Adds tagged data in
MetricsFeatureProvider#action() to store this elapsed time in
NOTIFICATION_SINCE_VISIBLE_MILLIS in MetricsEvents. Modifies the
LogWriter interface to accept variadic taggedData args in its action()
methods. Annotates the old subtype #action() methods as deprecated.

EventLogWriter also no longer casts the subtype values to strings before
sending them to MetricsLogger, so they are correctly stored as subtype
instead of package.

Bug: 65371699, 65631695
Test: make RunSettingsRoboTests
Change-Id: Iec6a61dd6a49ab237e2bdc4469fed45e89d9c380
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
00685675c80675696b8a7a0cd36bcc233c93a485 19-Sep-2017 Sundeep Ghuman <sghuman@google.com> Merge "Gate WifiSettings verbose logging on toggle." into oc-mr1-dev am: 77aeb2a0a7
am: ea98db9946

Change-Id: I5b125c60c4cc39b8f8661b2eff6d19de0c1c5eff
dee1a22c45c78dd1d4a681314045b0757b63623d 01-Sep-2017 Doris Ling <dling@google.com> Consolidate all wrappers used for testing.

- Add the wrapper package and move all wrappers to the wrapper package.
- Get rid of some wrapper interface/impl implementation and have a
wrapper class directly.

Bug: 65634579
Test: make RunSettingsRoboTests
Change-Id: Ic757d8f7bacfa7a034c7e692205bc1dc4b0e1de1
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
381987a8ce7fd979cc6438fe815d29712a9ce52a 31-Aug-2017 Sundeep Ghuman <sghuman@google.com> Gate WifiSettings verbose logging on toggle.

These aids in debugging bugreports, which are filed with verbose
logging.

Bug: b/64989100
Test: NA
Change-Id: Ife1940ddb5fdec997cc07304b8c160244ec8356b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5a7e46dd800dac5ce863b5b337592bca21dc0c2b 17-Jul-2017 Eric Schwarzenbach <easchwar@google.com> Add modify button to WifiNetworkDetailsFragment.

Adds pencil icon to Wifi Detail action bar to modify the network.
Modifies package/public visibility to allow the detail package to
use the WifiDialog. Listens for changes in WifiConfigurations to
propagate changes to the UI in WifiNetworkDetailsFragment.

Changes WifiNetworkDetail preference launch to conform to pattern
of other Settings apps. Removes unused WifiDetailActionBarObserver.

Bug: 36483704, 37082355
Test: make -j40 RunSettingsRoboTests
Change-Id: Ie9dc1892eaefdfad4a6bd7040bfc5dbf6236cfb4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fbc7a00a5c1c29d6626abdd4e309b48268d0d86e 08-Sep-2017 Stephen Chen <stewchen@google.com> Merge "Make auto Wi-Fi summary text consistent with feature availability." into oc-mr1-dev am: 194638ac78
am: d2f9de37c7

Change-Id: Id8725588b14f6a74efbdb2065864f2fce1561873
194638ac783c00957ddb45e17ecfb7ff502b5332 08-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make auto Wi-Fi summary text consistent with feature availability." into oc-mr1-dev
0a72c2339357bb6c512099539a78d973d8ba4a6f 06-Sep-2017 Charles He <qiurui@google.com> Merge "Enforce wifi config lockdown on details page." into oc-mr1-dev am: 10adff1163
am: e7cf5e6221

Change-Id: I356a58cadd3e19e61d9585f08e47c9d4cdcf4318
289af93896190038de3bdd7527625bb45d37dae5 02-Sep-2017 Charles He <qiurui@google.com> Enforce wifi config lockdown on details page.

Fixes the bug that, on the new WifiDetailPreference page, the "Forget"
button is not disabled properly for wifi configs created and protected
by DevicePolicyManger.

Robolectric test to follow in a separate CL.

Test: manual, by locking down wifi config with TestDPC
Test: make RunSettingsRoboTests
Bug: 64971700
Bug: 65396674
Change-Id: I27740eabd5eb94415e4258c9c80f91df2d9ab476
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8ffcbccbce2dea0e5ba23137d9098fb6dd938e59 01-Sep-2017 Stephen Chen <stewchen@google.com> Make auto Wi-Fi summary text consistent with feature availability.

"Turn Wi-Fi on automatically" feature is disabled when airplane mode or
battery saver mode is enabled, when Wi-Fi scanning is disabled, or when
network recommendations are disabled / scorer unset. This change
captures these negative cases in the summary text.

Bug: 65085700
Test: make ROBOTEST_FILTER=WifiWakeupPreferenceControllerTest
RunSettingsRoboTests -j40
Change-Id: I2f2d22b5bef3ad03a28d34e79a27e6545cac557f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8adf634a54c69e8f30e934101f701871beaea014 25-Aug-2017 Sundeep Ghuman <sghuman@google.com> Merge "Scroll to top when user connects to a network." into oc-mr1-dev am: a253e1d416
am: 501975914c

Change-Id: Ic3489f58b427ee0be5b3ad39a801af02ec15835b
055079ba380bd9810c52acaaea5068fc0c835972 17-Aug-2017 Sundeep Ghuman <sghuman@google.com> Scroll to top when user connects to a network.

We now track when the user initiates a connection request, and upon
connection will scroll to the connected network.

Bug: 34093572
Test: Open wifi picker. Connect to a new or different network. The picker
should scroll to the top of list

Change-Id: I7bed31b0dd4f40333f76f8389612f7fd55f2620e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
65e557754e3ac16950d72bf3f2a8ae9dec76aa99 11-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "onConnectedChanged should not update access points"
69fa52807416ba349d3fd6d7c8811742f5dd74e2 03-Aug-2017 Eric Schwarzenbach <easchwar@google.com> Fix issue where connected network sometimes doesn't update.

Ensures that the connected network Preference and WifiTracker have the
same reference so that updates to one propagate to the other.

Bug: 64124982
Test: manual
Change-Id: I1b838b1cf65da1b5aebf4f5f37f0df0c5e473dba
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
45bb3a1a77d0c548b5112ea7bfce48bab7361a07 22-Jul-2017 Sundeep Ghuman <sghuman@google.com> onConnectedChanged should not update access points

In WifiSettings, invocation of onConnectedChanged should not update
access points. This is controller by another callback,
onAccessPointsChanged. Furthermore, this is fired before any changes
have even been made to the AccessPoints.

This is exacerbating a problem where old scan results are not shown in
the WifiPicker, or sometimes the platform does not return any scan
results.

Bug: b/38212080
Test: runtest --path
packages/apps/Settings/tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java

Change-Id: Ibbc067d9952525b4edd85389996509e9b17bb1bd
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
bc1cf7e2608e6cd0e03372975ded5f7e61e6dac9 22-Jul-2017 Eric Schwarzenbach <easchwar@google.com> Make only the "Add Network" WifiDialog fullscreen.

Fixes an issue where other instances of WifiDialog were being launched
fullscreen. Creates static methods for creating fullscreen and modal
WifiDialogs to make the style more explicit.

Bug: 63889135
Test: make -j40 RunSettingsRoboTests
Change-Id: I2200b5d7f817b9f69a6abb73bf2c04ea24556d19
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1e69f27a415bf87cc0f05a6205a41cdcce697ab8 26-Jul-2017 Antony Sargent <asargent@google.com> Merge "Allow open password dialog for wrong-password wifi access points" into oc-dr1-dev
am: 9fb7a3b8b4

Change-Id: Ic44e0cf3972085439a603e25374d46447ebe7a8f
9fb7a3b8b44f4d45c0e253c0780009eb702e2de3 26-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow open password dialog for wrong-password wifi access points" into oc-dr1-dev
8eb816c940f0477bd7098dfdbcf08a6b9fc4550b 26-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow open password dialog for wrong-password wifi access points"
c00fedc6395dfe852b389df1e5ad87f015e43360 19-Jul-2017 Antony Sargent <asargent@google.com> Allow open password dialog for wrong-password wifi access points

When we're failing to connect to a wifi access point due to an incorrect
password, we want to allow an intent from a notification to open up the
wifi settings page and bring up the dialog for entering a different
password. We already have code in settings to do this for not-yet-saved
access points, so this CL just changes it slightly to also allow it for
saved access points.

Unfortunately WifiSettings can't be tested with Robolectric due to it
not supporting PreferenceScreen, so this adds a test to
WifiSettingsUiTest. There were some existing test failures in that file
which I've fixed while I was in there:

-The TestAccessPointBuilder class wasn't being found at runtime because
it was getting stripped out at build time due to not being used in
settings.

-The changingSecurityStateOnApShouldNotCauseMultipleListItems test was
asserting that we don't end up with multiple entries for the same SSID
in the access point list when changing the security state for the AP,
but it was accidentally passing multiple AP's with the same name the
first time.

Bug: 33245941
Test: runtest --path WifiSettingsUiTest.java
Change-Id: I16c9c8b0d8380a0e26f9b23df6a8d012af6a2476
Merged-In: I929ca6892242059df157c01d6e9ea30e8d1c5e78
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a1f56b5faafddd4c0cd2e64e5c028430457532da 26-Jul-2017 Christine Franks <christyfranks@google.com> Merge "Restrict changing wi-fi networks" into oc-dr1-dev
am: a7e10e0316

Change-Id: Ifcb15f741c4bcb72c32789870bc50027d2fc4cbb
a0dd987d20f224a6419f0680fab232287e8c5aec 12-Jul-2017 Christine Franks <christyfranks@google.com> Restrict changing wi-fi networks

Bug: 31852835
Test: manual - verify unrestricted as regular user, but that a password
is required in demo mode.
Change-Id: I60f95ccbb10ba728b384b9c8c2ae723934fb2928
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5d137f0f2cfe20ffd1e759f2f566e419ba6ce2aa 19-Jul-2017 Antony Sargent <asargent@google.com> Allow open password dialog for wrong-password wifi access points

When we're failing to connect to a wifi access point due to an incorrect
password, we want to allow an intent from a notification to open up the
wifi settings page and bring up the dialog for entering a different
password. We already have code in settings to do this for not-yet-saved
access points, so this CL just changes it slightly to also allow it for
saved access points.

Unfortunately WifiSettings can't be tested with Robolectric due to it
not supporting PreferenceScreen, so this adds a test to
WifiSettingsUiTest. There were some existing test failures in that file
which I've fixed while I was in there:

-The TestAccessPointBuilder class wasn't being found at runtime because
it was getting stripped out at build time due to not being used in
settings.

-The changingSecurityStateOnApShouldNotCauseMultipleListItems test was
asserting that we don't end up with multiple entries for the same SSID
in the access point list when changing the security state for the AP,
but it was accidentally passing multiple AP's with the same name the
first time.

Bug: 33245941
Test: runtest --path WifiSettingsUiTest.java
Change-Id: I929ca6892242059df157c01d6e9ea30e8d1c5e78
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
62a3220efb7dfbae6d3ef6de68a07e3c07117ca1 10-Jul-2017 Fan Zhang <zhfan@google.com> Use a grey shade under progress spinner in wifi settings

Change-Id: I1c3fa3a05fe66924989607d73e77ca2616a898e6
Fix: 62545533
Test: visual
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b963c1190f9ec00d1da69e0e3bc8780a9229a1d1 30-Jun-2017 Sundeep Ghuman <sghuman@google.com> Merge "Don't scroll when removing saved networks." into oc-dr1-dev
am: 1e561edb45

Change-Id: I9fa78596bdcbaeac90aaee55ddcde3f698ad907f
1e561edb45b3d21d20074b0748e16066e15b6082 30-Jun-2017 Sundeep Ghuman <sghuman@google.com> Merge "Don't scroll when removing saved networks." into oc-dr1-dev
97419f8d52e8431bf86c21275505c20f4589547c 29-Jun-2017 Shunta Sato <shunta.sato@sonymobile.com> Merge "Fix Wi-Fi list adds same AP repeatedly" into oc-dr1-dev
am: 9638e020e5

Change-Id: I4c947cddb3ee000bc51dd8ea2f9eefbc54927824
9638e020e5158ad5b654c585c145f9a9ee5588f6 29-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix Wi-Fi list adds same AP repeatedly" into oc-dr1-dev
14cc864122dae1b515c92fbade644d2a1ce27e71 27-Jun-2017 Sundeep Ghuman <sghuman@google.com> Don't scroll when removing saved networks.

Bug: b/62374459
Test: Open saved networks from WifiSettings. Remove a saved network.
Screen should not scroll to the top of the list.

Change-Id: Ia78fc0b5435f659c8fe31abee8b76006d7986b66
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
22080a1df54027d42f87f3004d79dc42c5337fa5 19-Dec-2016 Shunta Sato <shunta.sato@sonymobile.com> Fix Wi-Fi list adds same AP repeatedly

When switch AP security mode, several same APs are shown.

To fix this issue, append security type to preference
key for avoiding different APs have same key.
git fetch

Cherrypick of:
https://partner-android-review.googlesource.com/#/c/799829/

Bug: 37558394
Test: runtest --path
packages/apps/Settings/tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java

Change-Id: I39621636f14b29e45ba96ff76dc3c21a4996a136
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9ff2435ebc916c976b586f736edc3c345d738f3c 29-Jun-2017 Sundeep Ghuman <sghuman@google.com> Merge "Scroll to top when connecting to network." into oc-dr1-dev
am: ea3d314a10

Change-Id: I78adb370cf5261611ad0a56effae652c494e9592
eb41c8cf15a3f3521353f7724e43af30ae4530c7 27-Jun-2017 Sundeep Ghuman <sghuman@google.com> Scroll to top when connecting to network.

Bug: b/34093572
Test: Open wifi picker. Select new network. Picker should scroll to top
of list to display the connected access point category.

Change-Id: Ie555f076a62e8cb589f8c6157d628b345cd84a4c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d6db6d89388ae2b66fb3eb819eed2bdfba4ee9ad 16-Jun-2017 Shinji Sogo <shinji.sogo@sonymobile.com> Merge "Cleanup unused WifiP2pSettings code in WifiSettings" am: cd1f7a3146 am: 27ca1272a5
am: 879fd4b406

Change-Id: Ie7b7de6ab3e9d8ebf13beffffd0ca0aa4026e8ea
879fd4b406f180f176fe7c117d5aa49efd18a548 16-Jun-2017 Shinji Sogo <shinji.sogo@sonymobile.com> Merge "Cleanup unused WifiP2pSettings code in WifiSettings" am: cd1f7a3146
am: 27ca1272a5

Change-Id: I70f81796a7c29c416729cc7fd7b4fd8150fdc981
60b814ba434f346779635d8fe1a91296856e474f 13-Jun-2017 Sundeep Ghuman <sghuman@google.com> Allow WifiSettings to show old APs on app resume.

If we do not have any recent scan results, show the previous APs from
when the app was last paused, by not triggering a force update.

Accompanying changes are also made in WifiTracker to prevent
onAccessPointsChanged callbacks from being invoked until the tracker
receives a new 'SCAN_RESULTS_AVAILABLE' broadcast (ag/2409026).

Bug: b/38212080
Test: runtest --path
packages/apps/Settings/tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java
one minute later.

Change-Id: I4f9b2ec855e057e28235b0253ab42c6b4521bebc
Merged-In: I4f9b2ec855e057e28235b0253ab42c6b4521bebc
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4ae59dde433751666d8bb10f509a6e13f5eed28f 13-Jun-2017 Sundeep Ghuman <sghuman@google.com> Allow WifiSettings to show old APs on app resume.

MANUAL MERGE of ag/2398149 to avoid merge conflicts when trying to
submit to oc-dev.

If we do not have any recent scan results, show the previous APs from
when the app was last paused, by not triggering a force update.

Accompanying changes are also made in WifiTracker to prevent
onAccessPointsChanged callbacks from being invoked until the tracker
receives a new 'SCAN_RESULTS_AVAILABLE' broadcast (ag/2409026).

Bug: b/38212080
Test: runtest --path
packages/apps/Settings/tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java
one minute later.

Change-Id: I4f9b2ec855e057e28235b0253ab42c6b4521bebc
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
ba1b520505508fd96cbf6cd287112d09365f8514 13-May-2017 Shinji Sogo <shinji.sogo@sonymobile.com> Cleanup unused WifiP2pSettings code in WifiSettings

Cleanup commented code giving access to WifiP2pSettings from option menu
is not needed anymore.

Bug: 38333540
Test: Manual test
Change-Id: I5884ec219ba09601d9602f026fa8ad89f765934f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
015c7706e49100870ab0f3786e4e2e0de9e641ab 01-Jun-2017 Fan Zhang <zhfan@google.com> Hide saved network preference when there is none.

We already do this when wifi is enabled. This change brings same
behavior when wifi is off.

Change-Id: I44301fe46a6183735f8be71c80cfe719ad0e82b4
Fix: 62094681
Test: runtest --path tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a99b86c56a060179b1d90937ebfba897778eaa46 09-May-2017 Stephen Chen <stewchen@google.com> Update Wi-Fi Wakeup setting to check whether the feature is available.

Bug: 38037361
Test: make ROBOTEST_FILTER=WifiWakeupPreferenceControllerTest
RunSettingsRoboTests -j40

Change-Id: I1c1b930546cc090d72f3047058a428acd1b2883a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f5d02aa7659ce0e0ea1057acbbe26468feaa137f 02-May-2017 Stephen Chen <stewchen@google.com> Fix Disallow config Wi-Fi message for AFW Do mode.

Correctly displays the custom message set by the Test DPC tool
for devices in AFW Do mode.

This change also fixes an issue where when Wi-Fi is disabled, the
disabled message is not shown instantly on Settings app start.

Bug: 37134344
Bug: 37911257
Test: runtest --path
packages/apps/Settings/tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java
for off message testing, manual inspection using the Test DPC tool, and
verifying Guest mode behavior.

Change-Id: I61e48f605d75cb5665461536beeedcb32f6aa7f9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
87bf49a43689dae7673f1aeb3a6498939b1117ac 21-Apr-2017 Sundeep Ghuman <sghuman@google.com> Force update APs when enabling wifi in WifiSettings.

This reverts commit b2bdc8f17b6148495731e4bfdd9968a6840907eb
and fixes a broken Espresso test case.

Reason for revert: Rolling forward after fix in ag/2133493, to fix b/37324736

Bug: b/37324736
Test: runtest --path
packages/apps/Settings/tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java

Change-Id: I9cdf8cb1043af5d527eccbd9cc56d3b02419d7ac
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b2bdc8f17b6148495731e4bfdd9968a6840907eb 20-Apr-2017 Sundeep Ghuman <sghuman@google.com> Revert "Force update APs when enabling wifi in WifiSettings."

This reverts commit 1c231d32b125f368e29fc30b6edebc81b9db7623.

Reason for revert: b/37530557 - ANR in Settings due to deadlock

Change-Id: I85d70aa957dca76189b7600d7b39cb9a09437e91
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1c231d32b125f368e29fc30b6edebc81b9db7623 19-Apr-2017 Sundeep Ghuman <sghuman@google.com> Force update APs when enabling wifi in WifiSettings.

Bug: b/37324736
Test: See bug for repro steps.
Change-Id: I2a789e13781c64d2cc72b059685c5f3dfb9ff2ad
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
bb46d23c8f0e264863457d2b7a342ac331558b04 19-Apr-2017 Sundeep Ghuman <sghuman@google.com> Remove animations in WifiSettings.

This addresses jank issues when first showing the WifiSettings. Given
the new loading bar, animated transitions seem less relevant. Based on
user feedback, animations may be readded after a delay in ODR.

Bug: b/37429702
Test: Visual
Change-Id: I9a44820bb354885d0ef31d50278aee6a47727701
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
60c1d4ec6498a026fca50fdc8c9ef7d31458251c 14-Apr-2017 Sundeep Ghuman <sghuman@google.com> Fix startup jank in the Wifi Picker.

Synchronously fetch the latest APs during onResume and show these before
displaying the other wifi preferences. This fixes a visibile shuffling
issue. Additional Setting preferences are now programatically added
during onStart and hidden during onStop in order to avoid the animation
delay which causes a shuffling effect.

Bug: b/36406983
Test: Visual inspection. Animation jank is difficult to programatically
test.

Change-Id: I34b2d737a8e72e1dc296c170f753975fafce7a3e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0c4747401a26011bbbcffc236fd2fb293df333e6 06-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Link to "scanning settings" when Wi-Fi is off." into oc-dev
0820ee350f7dd6609b51bc0322d600b966e938a7 05-Apr-2017 Amin Shaikh <ashaikh@google.com> Link to "scanning settings" when Wi-Fi is off.

Always link to scanning settings when wifi is off. Previously, the link
was only shown when wifi was off and scanning settings were on.

Bug: 36033488
Test: m RunSettingsRoboTests and manually testing on device
Change-Id: I0abc6f4a25072c78fea6a971621cebc1a97b658b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
36b68df4d4d69534254d5bb35d1b424620db854b 04-Apr-2017 Peter Qiu <zqiu@google.com> wifi: allow manual connection to a Passpoint provided network

While connected to other WiFi network, a Passpoint AP with its
provider installed will shown as "<SSID> available via
<Provider Name>", since the installed provider contained
necessary credentials needed to connect to that AP.

This CL will trigger a connection to that AP when the user
taps on it for manual connection.

Bug: 36357280
Test: manual connecting to a Passpoint network while connected
to other network

Change-Id: Idec440aa1606e80bcea56054e77ef2dc50a7ac93
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
19b74d92139ee4cd47afe07685bcceddec190d13 31-Mar-2017 Stephen Chen <stewchen@google.com> Improve responsiveness of toggling wifi and refactor user restriction logic.

Moved logic for handling wifi state changes into correct listener
method. Changed logic for handling isUiRestricted. This should
streamline toggling flow for WiFi both when Wifi Scanning is on and off,
and in guest mode.

Bug: 36724409
Bug: 36711085
Bug: 36398321

Test: make, test cases in tracking bug
Change-Id: I69fe07369db192c94f81dd678087ac4e8c35197b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
555d12b427c90c552d9631ca5315d299dc33a8be 30-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Do not show progress bar when disabling wifi." into oc-dev
f5d1327e2aa76115ff6083d80dfb2cc63f0f81f9 30-Mar-2017 Stephen Chen <stewchen@google.com> Do not show progress bar when disabling wifi.

Bug: 34286786
Test: make, test on device.
Change-Id: I109ac05ce3565abc3d80ecec2879c2f7c8bc1724
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b19b8f37c95e26c8b321453e84f37f92c0b8106f 28-Mar-2017 Stephen Chen <stewchen@google.com> Connect immediately after pressing on previously connected saved networks.

Bug: 34287193
Test: manual inspection
Change-Id: Idf7156fa48640a34ce11cbf2f9683cfc6525a7b5
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5e0c60d2ac8d0ede4f372a85e700de2a3098b2cf 28-Mar-2017 Amin Shaikh <ashaikh@google.com> Remove delayed processing of UI events in onStop

Bug: 36682492
Test: manually; test tracking in b/36403635
Change-Id: Ia369cd61a6473ae2af4891cf6b923900504921c1
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
11478573ec0ffd02cb3812d9c2a87c31893c3846 27-Mar-2017 Stephen Chen <stewchen@google.com> Expand Wifi Picker Menu by default.

Bug: 36575182
Test: make SettingsFunctionalTests and ran tests on device.
Change-Id: I256ea82a8e4478d81497b9a56cc4fb7755839f1c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f7fb763ed55749d7a4be09ce289c4894f0664767 27-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Populate summary for top level wifi picker options"
f52128f7cbb5b5eeebc94cba74c48303f4466f12 25-Mar-2017 Zhihong Li <zhihong.li@sonymobile.com> Merge "Show correct Wi-Fi status when switching to multi window mode" am: 4cc1f72576 am: a4def43fad
am: 76fb361b9d

Change-Id: Ib19926feb7d3a2da0a8aaa9dc9c5ee3bcae6c2af
a4def43fadeca9cff616387954eeaff9dc91b2ce 25-Mar-2017 Zhihong Li <zhihong.li@sonymobile.com> Merge "Show correct Wi-Fi status when switching to multi window mode"
am: 4cc1f72576

Change-Id: Id60415285629e6d7a712a9f441e6e7839732bf94
4cc1f72576870fd29133a4147b4df7369a66580b 25-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Show correct Wi-Fi status when switching to multi window mode"
04cae3b66a794e37f56398727d3e0cbfd348ed8a 24-Mar-2017 Amin Shaikh <ashaikh@google.com> Populate summary for top level wifi picker options

Screenshot: https://drive.google.com/file/d/0B8qSkjrtrXEPLTh0ZTRnMWFWX2M/view

Bug: 36532777
Test: make RunSettingsRoboTests
Change-Id: I9b364ecc4d71de484216f848c853db91a2a08fa7
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
bef3c6ddfd91fb9845c134f83d0cadc35254236e 24-Mar-2017 Amin Shaikh <ashaikh@google.com> Update WriteWifiConfigToNfcDialog.

- Use the new WifiManager API to retrieve the WPS NFC token for the
current network.
- Add WifiManagerWrapper class to support testing because Robolectric
does not yet support testing Android O.

Bug: 35725168
Test: m RunSettingsRoboTests
Change-Id: I7805bdcbe02dc262083bcd371d4ad88d256f8089
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2df0bf9d5cc160611099167625659db9d736036b 21-Mar-2017 Sundeep Ghuman <sghuman@google.com> Create a way to inject a WifiTracker into WifiSettings.

Bug: b/36403696
Test: Preliminary step to enable creation of Espresso tests b/36403696
Change-Id: I63c49cca0905a9d05964c11b3307ccf1859db7ec
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f35a55dee468be819b924b1f8cfb575d5f74c4a9 16-Mar-2017 Sundeep Ghuman <sghuman@google.com> Add progress bar and delay to WifiSettings refresh.

This change shows the progress bar for 0.3 seconds before AccessPoints are
about to be refreshed and 1.7 afterwards for a total duration of roughly
2 seconds. This indirectly fixes issues with no longer having a refresh button,
indicates ongoing scanning to the user, and should help avoid user errors where
the user clicks on the wrong access point while the list is being updated.

In order to avoid excess UI movement, the progress bar off state is now set
to invisible rather than gone.

Bug: b/34774783
Test: Currently blocked on refactor, tracked in b/36403635 and will
start next week.
Change-Id: I2bb6b5b3d4611cdbfd7138c758785601896d05b9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
241d902200278c5bd412e308ce3019f1d89038c8 15-Mar-2017 Jay <yingjie.x.hu@sonymobile.com> Merge "Improve Wi-Fi Settings UI in guest mode"
am: 31f64a1253

Change-Id: I15f05538344aa615a4f69eebf7fdec66efc3cf29
a620f52e647b531698ab5ec8fad8871d963b7599 14-Jul-2016 Jay <yingjie.x.hu@sonymobile.com> Improve Wi-Fi Settings UI in guest mode

Progress bar is still seen along with a permission forbidden tip in
guest mode and it's confusing. It should be hidden because actually
nothing happens there.

When Wi-Fi is off, Wi-Fi OFF tip should be shown even in guest mode
becuase it should be consistent with Wi-Fi status.

Improves d8c3ca43163427a75c8b70114096238177f97af0.

Bug:31235488
Test: manual inspection.

Change-Id: I611719db253a0aec03d61e881af0e5dc3869d50b
Merged-In: If89728e293721cea45dcd717316d87f6df17ea7c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b77cbe5bb288b6814d57d18ad3a00b8414fbdab7 15-Mar-2017 Stephen Chen <stewchen@google.com> Fix Wi-Fi Settings Guest mode UI.

Progress bar should not show in guest mode when onViewCreated.

When Wi-Fi is off, Wi-Fi OFF tip should be shown even in guest
mode to be consistent with Wi-Fi status.

Bug: 35627922
Test: tracked in b/35324506
Change-Id: If89728e293721cea45dcd717316d87f6df17ea7c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8f060d7148d5c7cdc4de4df9fdf7536c4e6afaae 13-Mar-2017 Sundeep Ghuman <sghuman@google.com> Fix calculation of Access Point Level.

Bug: b/35854026
Test: make RunSettingsRoboTests
Change-Id: I5287e8c7b46a463cfa25659c756f6ca9175cb68c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
07db40434b7ba496e473826e21e2e959fea365e5 28-Feb-2017 Sundeep Ghuman <sghuman@google.com> Create the Wifi Network Details Page.

This page should not be searchable, as it corresponds to a specific
access point, thus click on a search result would not have an access
point in which to open.

Fix WifiPicker bugs b/35883232 and b/35951638 that deal with UI jank.

Bug: 34713316
Test: Tracked in b/35963536 and to be implemented in an immediate follow
up CL.
Change-Id: Iad7f26c7f04c3fc7d07a8e9188843eeb4d44cd36
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9d12d101be7ed735b47a5214a98318d17e7a7563 23-Sep-2016 Zhihong Li <zhihong.li@sonymobile.com> Show correct Wi-Fi status when switching to multi window mode

In WifiSettings, when switching to multi window mode,
WifiSettings fragment is recreated and "onPause()" is called,
then WifiTracker stops and wrong Wi-Fi status is shown.

Move "WifiTracker.startTracking()" to "onStart()",
"WifiTracker.stopTracking()" to "onStop()"
to make sure to show correct Wi-Fi status.

Bug: 36078677
Test: Manual test OK

Change-Id: I215f180b1082f6039c03de8b4a3ca27d1f364c75
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9f5aaa4e5f18b6445efdf7931b85cad03d1a13c4 08-Mar-2017 Stephen Chen <stewchen@google.com> Remove refresh button from WifiSettings.

Bug: 34891524
Test: b/34673204 for instrumentation tests. Verified button is removed.
Change-Id: I0b30d36bd6b3f0b1361ef4f7dc775ed3545a7bdc
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b759516cbf26c9bb5f71c7f93e764fac73f48701 14-Feb-2017 Matthew Fritze <mfritze@google.com> Create whitelist for the most popular settings

As a temporary solution to getting the most popular
settings to be the top rank, we have created a white list.
If a prioritized setting shows up somewhere in the results
then it will be given an elevated rank to be at the top.

Bug: 35048659
Test: make RunSettingsRoboTests
Change-Id: I92b563a17b42d8f91d980dd1d8e5f8f29ca5aa9c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
738695e5e81b2436b28f2985694ed279e726ed57 02-Mar-2017 Peter Qiu <zqiu@google.com> Merge "wifi: use Passpoint API when forgetting a Passpoint network" am: ff960ed859 am: c5848718ee
am: d49c2ff80f

Change-Id: I2ffbf8cccd698cc8bd5145a7896243ea35107518
c5848718ee132f64d43a2e94ba44bf017e5ad886 02-Mar-2017 Peter Qiu <zqiu@google.com> Merge "wifi: use Passpoint API when forgetting a Passpoint network"
am: ff960ed859

Change-Id: I0e085c5c31656c943d7674770ea9f28d963f2726
4ec020a4242fe392aa3be0a465d55414e1b164fa 01-Mar-2017 Peter Qiu <zqiu@google.com> wifi: use Passpoint API when forgetting a Passpoint network

Use WifiManager#removePasspointConfiguration when forgetting a
Passpoint network to remove the configuration.

This maintains the legacy behavior, where forgetting a Passpoint
network/AP will remove its provider's profile.

Bug: 34207710
Test: manual test
Change-Id: I8b7f6d9fb20fa9f0f0d90566f76c2a39308ce420
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0b61e3028c0617e7f39ac821d49f00166cfaad0b 23-Feb-2017 Sundeep Ghuman <sghuman@google.com> Draw currently connected network in Picker.

Make sure to call refresh when adding the Access Point Preference to the
WifiPicker's Connected Access Point Category. This will case the icon
and the title to be drawn.

Bug: 35388267
Test: None. Too difficult without robolectric testing which requires
refactor.

Change-Id: I7949733f8ca7f904327872df54f6963c723bc704
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c6ca314c0b872f75926807ca7d6eb24ebe7cb684 15-Feb-2017 Fan Zhang <zhfan@google.com> Log source with visibility change

- Add a method in VisibilityLoggerMixin to log visible event using
LogMaker, which allows logging additional FIELD_CONTEXT field.
- In Utils.startFragment, add current page's metricsCategory as an extra
to next page.
- In next page's onResume(), extract the previous page's metricsCategory
and send it to VisibilityLoggerMixin.visible()
- Update all caller with additional paramters

Change-Id: I8e1f2597fa465b7d3aa16fa1d21c052a3219694a
Fix: 35359289
Test: RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8fc61244ef938d31e9933e64ea3713c8db088602 14-Feb-2017 Stephen Chen <stewchen@google.com> Correctly restrict UI for WifiSettings in Guest profile.

Makes sure the restricted user does not see Wifi Preferences
or Saved Networks activity. Also fixes a bug where the progress
bar is displayed starting the activity in Guest mode, and does not go
away. LinkablePreference is changed to make sure titles can be
multi-lined.

Bug: 35317523
Bug: 35318292
Test: to be done in b/35324506
Change-Id: I4a07a2ab3a83c3adaf87226969fd6f16e41c9419
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2e966c642fb4f5464e0941339a10a9dad9d3aee3 10-Feb-2017 Stephen Chen <stewchen@google.com> Create 'See All Networks' Preference to hide additional networks.

Bug: 34719725
Test: manual inspection, tests to be added in b/35322551
Change-Id: I1a5a08ca4c53db71b4c0c3d4c2942da65faa67d2
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f200005086681c9a3063f7ece9556ce838d9c334 31-Jan-2017 Sundeep Ghuman <sghuman@google.com> Create a new PreferenceCategory for the current AP.

This highlights the currently connected ap in it's own category.

Bug: 34714183
Test: Manual inspection with connected AP, APs available but not
connected, and Wifi off.

Change-Id: I100bcf5b0bdc7b4f725f2ff630aa885dbca90332
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9d2712cd78514eb35ba1d480738841f3c203ecfd 26-Jan-2017 Stephen Chen <stewchen@google.com> Move AdvancedWifiSettings into ConfigureWifiSettings.

Bug:34719854
Test: make -j40 RunSettingsRoboTests
clicked on preferences and made sure functionality did not change.

Change-Id: Ia5f0c7f5ea0f88d1322008ab58ca79028cc1a2bb
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c4c9f4d50eec659eb50f8ed671c27d8c6ef0c924 24-Jan-2017 Doris Ling <dling@google.com> Update Network & internet->Wi-Fi to use MasterSwitchPreference.

- Add a preference controller for Network & internet->Wi-Fi to control
the preference toggling and summary update.
- Refactor WifiSettings and WifiEnabler to share code between the new
wifi preference controller and the wifi setting.
- Refactor BluetoothSummaryHelper to have a common base class with the
WifiSummaryHelper.
- Rename the summary helper to summary updater.

Bug: 34280769
Test: make RunSettingsRoboTests
Change-Id: I00ebfc161bcef89331bb41ba405ed8cb8232d248
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
889db8804382556b1b1b42c25460a684bcb05144 25-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add additional preference items to WifiSettings for configuring Wi-Fi."
41456785482f41e82e8fd1b2538749da73303980 21-Jan-2017 Stephen Chen <stewchen@google.com> Add additional preference items to WifiSettings for configuring Wi-Fi.

Removed the gear icon that links to ConfigureWifiSettings activity,
and added links to ConfigureWifiSettings and SavedAccessPointSettings.
Included these links in the wifi disabled screen.

Also refactored code to have dividers between wifi list and other settings, and
changed refresh menu item to a button.

Bug: 34518148
Bug: 33110624
Test: Manual inspection
Change-Id: Ie40935f553faea59b7a76fc050d970d431cef5ad
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7e6df837ee23a62879d2e5182f923388d209ce56 24-Jan-2017 Fan Zhang <zhfan@google.com> Remove getCategoryKey() from DashboardFragment children.

Use the centralized registry to look up category key instead.

Bug: 32936784
Test: make RunSettingsRoboTests -j40
Change-Id: I0b8c72d70f93e4b5c58871ac90de41f69ad15653
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6031fba9f28e228189508b150c1fcbebf1393ee3 18-Jan-2017 Tamas Berghammer <tberghammer@google.com> DO NOT MERGE: Revert "Update package names to work with the proto3 compiler"
am: 5a638a6ad1

Change-Id: If23c0926eecf6a08ed0c0ab174cdddb43e31cc00
5a638a6ad159dd489de3da1089327f71e2138911 18-Jan-2017 Tamas Berghammer <tberghammer@google.com> DO NOT MERGE: Revert "Update package names to work with the proto3 compiler"

This reverts commit fbd5f5fdce07a6d77dd2c3309c7272bf33414396.

Change-Id: I769f7a0f509996ccc39fd1c628cad7e5ec1202bf
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6cd7e52b9e9650245b28b8dafbb1c4f195a99376 18-Jan-2017 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler
am: fbd5f5fdce

Change-Id: I20b3bc10cf66bb94369631cef229787b5e6353b6
fbd5f5fdce07a6d77dd2c3309c7272bf33414396 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
(cherry picked from commit 265d3c2a0c36251bf8a9f571d7239b6dd404d942)
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
265d3c2a0c36251bf8a9f571d7239b6dd404d942 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b21815e32099303c89f795a44b02f488fed20d6b 31-Oct-2016 Stephen Chen <stewchen@google.com> Add subtypes to tron logging for Wifi toggles.

For ACTION_WIFI_CONNECT, added subtype to specify whether user is
connecting to saved network.
For ACTION_WIFI_OFF, added subtype to specify whether user was connected
to a network at the time.

Bug: 32371451
Test: Verify logs by running:
adb logcat -b events | egrep '(sysui_|notification_)'
Merged-In: I1d4445bda2fbeb062831e6f858ccc711bff65105

Change-Id: I6b87dc10fcfe412f1c72ae944c2dd4d81da12b53
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d9e2c946af8cebeaf9fa81ca5657d3932ee56d1b 31-Oct-2016 Stephen Chen <stewchen@google.com> Add subtypes to tron logging for Wifi toggles.

For ACTION_WIFI_CONNECT, added subtype to specify whether user is
connecting to saved network.
For ACTION_WIFI_OFF, added subtype to specify whether user was connected
to a network at the time.

Bug: 32371451
Change-Id: I1d4445bda2fbeb062831e6f858ccc711bff65105
Fixes: 32371451
Test: Verify logs by running:
adb logcat -b events | egrep '(sysui_|notification_)'
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
aa71afe5978b1340a2d702f3a75d22baf8c96348 22-Sep-2016 Fan Zhang <zhfan@google.com> Use MetricsFeatureProvider for logging in Settings.

Bug: 31664539
Test: make RunSettingsRoboTests for regression
Test: adb logcat -b events | egrep "(sysui_|notification_)" for
verifying log

Change-Id: Id944be7c4ff9911aebee481c2df485542f1318f0
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d65184faef1076280e121c5cbc1db863f3f37924 20-Sep-2016 Fan Zhang <zhfan@google.com> Log visibility change for DialogCreatable in Settings.

Bug: 30681529
Test: adb logcat -b events | egrep "(sysui_|notification_)"
Test: make RunSettingsRoboTests
Change-Id: I51754d258ba1ddfae24323681f21cd02de4dbb4e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e9d7698b933c9ca229617090dea79ee727fcb66d 01-Sep-2016 Doris Ling <dling@google.com> Fix NullPointerException when refreshing wifi preferences. am: b8011dbb93 am: 7a15f88912 am: e972a23faf am: e3f9654ebc
am: 7d16fb0baf

Change-Id: Iaf0fb7bbac3fd1810902150490b59e7baa6d19b7
e972a23fafa385ebba4fec0ce9e689a1263b64e9 01-Sep-2016 Doris Ling <dling@google.com> Fix NullPointerException when refreshing wifi preferences. am: b8011dbb93
am: 7a15f88912

Change-Id: I3b04d4d87063f928fa76b4843ca0692c8d0311cb
b8011dbb936df94f54bbce75282a2caf477346dc 31-Aug-2016 Doris Ling <dling@google.com> Fix NullPointerException when refreshing wifi preferences.

AccessPointPreference.refresh() is being called in different threads.
The refresh of the preference should only be updated in the main thread.
When access point updates is received not in the main thread, will post
the refreshing of the preference to the message queue to make the update
on the UI thread.

Test: auto - run monkey to verify there is no ANR or crash
manual - go to Settings->Wifi, toggle on/off many times and verify
there is no crash.

Change-Id: I656a70ecf2e7b9446c7b95b6b42ab19a5cc2e51c
Fixes: 30902893
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
01b36f8e24e500235c741763fe20988769e83517 30-Aug-2016 Doris Ling <dling@google.com> Remove preference "Searching for Wi-Fi networks..." am: b8e8485720 am: b7d9f7b83d
am: 925584fb84

Change-Id: I381bd31931d05e22f053ea9fdb822be3c91575f0
dc8a2d2b36bda3b7558d1a4c28f9590cd0f2032f 30-Aug-2016 Doris Ling <dling@google.com> Remove preference "Searching for Wi-Fi networks..." am: b8e8485720
am: ba7e57ec06

Change-Id: Ic2e0b0c977cf11dcca4ed87deeb8bc6fe9a27420
925584fb846358be89a6d3d14ad5964385a12459 30-Aug-2016 Doris Ling <dling@google.com> Remove preference "Searching for Wi-Fi networks..." am: b8e8485720
am: b7d9f7b83d

Change-Id: I3d21413f7ee61001bae570b478871af6f95d2999
b8e8485720757bcc1c8e5e1e3c5f3f8b2d33ae03 30-Aug-2016 Doris Ling <dling@google.com> Remove preference "Searching for Wi-Fi networks..."

When we add the preference "Searching for Wi-Fi networks...", we didn't
provide a key to the preference. As a result, each time when we get
access point update and try to show such tile, it creates a new one, and
results in multiple entries of such tile. Adding a key to the preference
will prevent the multiple entry from being added.

Test: Manual -
1. Turn wifi off and on several times, verify that there is only one entry
of "Searching for Wi-Fi networks..." when initializing the wifi access
point list.
2. Verifies that when the access point list is established, the
"Searching for Wi-Fi networks..." entry is gone.

Change-Id: Iaad329d89f8e4b52129d0661501aa34fbd956692

Change-Id: I1bfa77051e068926e8c876a89adf14d143970e7e
Fixes: 31143961
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1bab964a5d86a6f5b9fda0d44f1c6797d22ff301 25-Aug-2016 Fan Zhang <zhfan@google.com> Don't remove wifi preferences when updating AP to avoid GC. am: 3f0e1344d3 am: bc6e2c49f0
am: d96bc5b5a6

Change-Id: Id10ded6d97308c175194ffb59afdd89e924ed1c8
9d031f2fbce4cc525e4d5a5598e9c9d1813c2ce2 24-Aug-2016 Fan Zhang <zhfan@google.com> Don't remove wifi preferences when updating AP to avoid GC.

Bug: 30870531

Removing wifi preferences every time will force update create a new set
of preferences, which leads to higher chance of GC.

Change-Id: Ifea2f63a3b54fa0d5861fb34a348d81e99bcab68
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3f0e1344d39ac58b37e21c8aae548344d853c29a 24-Aug-2016 Fan Zhang <zhfan@google.com> Don't remove wifi preferences when updating AP to avoid GC.

Bug: 30870531

Removing wifi preferences every time will force update create a new set
of preferences, which leads to higher chance of GC.

Change-Id: Ifea2f63a3b54fa0d5861fb34a348d81e99bcab68
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5c0063af7edae995fdfaa45441a3f1dc2666b252 12-Aug-2016 Salvador Martinez <dehboxturtle@google.com> Prevent wifi icon from disappearing

Made changes to WifiSettings that customizes
the preference icon so that the icon is never
null. This greatly reduces jittering.

Bug: 29979747
Change-Id: I3d2767310513389c09a37e34674a304278f4d0de
(cherry picked from commit 47568de0037401f1f5c1d17231f9198b16c8872e)
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b0e8f673897da3cd7807f37f88fd924e4dd73df5 18-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Log visibility change for all fragments."
6507613ebcd22e4691c2af92a5c161bd327db336 08-Aug-2016 Fan Zhang <zhfan@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4ec4237b60f08db2e99e94b60752299007493785 17-Aug-2016 Tony Mantler <nicoya@google.com> Merge "Fix Wifi screen updating"
47568de0037401f1f5c1d17231f9198b16c8872e 12-Aug-2016 Salvador Martinez <dehboxturtle@google.com> Prevent wifi icon from disappearing

Made changes to WifiSettings that customizes
the preference icon so that the icon is never
null. This greatly reduces jittering.

Bug: 29979747
Change-Id: I3d2767310513389c09a37e34674a304278f4d0de
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c2d8110a86bffc9b9f3bdd1bb60074abcd82c890 12-Aug-2016 Tony Mantler <nicoya@google.com> Fix Wifi screen updating

Fixes keyboard focus being cleared, and allows animation

b/30759327

Change-Id: If820708a292ef8dfa173d9edc04bbab322ee78d9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8ab081e304b978602823b5f7fa81a673e98b4bb2 18-Apr-2016 Jason Monk <jmonk@google.com> Potential fix for receiver leak problem

The background thread is not stopping listening fast enough and is
resulting in first a receiver leak message followed by a crash when
trying to finally unregister the receiver.

Fix this by adding a registerReceiver to SummaryLoader that will
automatically unregister the receiver on the main thread to ensure
it happens in time.

Change-Id: I0104e929d5505eb53993f6765e4c90120df35cf6
Fixes: 28211606
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9e9ba0d75142c7af9d8f7eabb7dfd34ff59e2064 11-Apr-2016 Jason Monk <jmonk@google.com> Fix localization issues with disabled

Change-Id: Iba63b50000f546a1e323c855462841e82fce4df8
Fixes: 27948378
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
85da859392a3272083aab9475b9a2c152e402c6d 30-Mar-2016 Jason Monk <jmonk@google.com> Fix wifi animation issues

There are still some remaining animation issues on the wifi screen.
To avoid regressions from M, just disable animations on the entire
wifi screen.

Change-Id: Iabf8ace731638ae7af483c6f3887ca351b17ac60
Fixes: 26271353
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2de6a287cad72cb7939df3702dabd4aa559fe0c9 28-Mar-2016 Jason Monk <jmonk@google.com> Merge changes I22d799f8,I1bc14e7a into nyc-dev

* changes:
Guard against crash in dev options
Switch to whitelist for animations
f38fb38f26117176ba7b961e960ef5c79e28a152 18-Mar-2016 Jason Monk <jmonk@google.com> Switch to whitelist for animations

Disable animations for all SettingsPreferenceFragments, unless they
explicitly ask for them before creating their preference screens.

Turn it on for all fragments using the cached removal currently.

Bug: 27713314
Change-Id: I1bc14e7aeb3ee5b8ddb4f3547f472305cd312edf
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e2b2c3ffe43da02317c7a1c80a5ec47cd1dc3ee8 17-Mar-2016 Sudheer Shanka <sudheersai@google.com> Add more policy transparency for wifi settings.

Show policy transparency dialog if user tries to modify a
wifi configuration locked by device owner.

Bug: 27375948
Change-Id: I504082282f57bc5de9f097e962d195ecd2cc9da4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
ebfbe5cfe64c0ac46a6812652c9139e674fc3056 07-Mar-2016 Jason Monk <jmonk@google.com> Fix add network alignment

Bug: 26759951
Change-Id: I5ba657b5a4099d9f2f1ecf2f27a6a25908bc4a86
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2071eda150c4ade320fa91ec99678114afbd223e 25-Feb-2016 Jason Monk <jmonk@google.com> Workarounds to avoid removing all prefs

Removing all prefs causes ugly animations, so avoid it at all cost
and cache all the prefs (while still added) as long as possible.

Bug: 26271353
Change-Id: I33b84d751938b460f4b66c0158057407dd45d974
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7dbbe131683c231f6820bca4d67853649a4836f8 16-Feb-2016 Sudheer Shanka <sudheersai@google.com> Add disabled by policy empty views to more screens.

Bug: 27214401
Change-Id: I6cd4292a63610671070bf2134105e9e348c3ab32
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9e9e63b7b3b31fcae7242eb07f528487e0913402 11-Feb-2016 Sudheer Shanka <sudheersai@google.com> Part3 - Don't add padlock if the restriction is not set by admin.

Bug: 26687435
Change-Id: Ibfea6d7d5bd32e7a05dcc2cc32b121c9e50b6a34
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9d1bfd1e8de6e46137a9571507c03526880d6a46 27-Jan-2016 Chris Wren <cwren@android.com> port settings over to new metrics enum

Change-Id: I0b3efd2f4db773ccbc52bfe59ee8eb0dab9584fb
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7ff7ea1e7f010f294b411fb58586c3bfb7f386e6 27-Jan-2016 Sudheer Shanka <sudheersai@google.com> Made changes to menu items in WifiSettings and AccountSyncSettings.

When the admin has set disallow_config_wifi, menu items are not added.
we need to check if the menu items can be added after this fragment is
resumed. And for remove account menuitem, check whether any admin has
disabled management of a specific account type.

Change-Id: I58f5a59fe0614c9bc7068b15f43f89527939359d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6d70e7dce3f63f48204ab88e6bd650e7a214ab54 26-Jan-2016 Tony Mantler <nicoya@google.com> Merge "Move AccessPointPreference to SettingsLib"
99b255c8a57d17630fe16bf2e8e1859ce3e5cec6 22-Jan-2016 Tony Mantler <nicoya@google.com> Move AccessPointPreference to SettingsLib

Change-Id: Ib4a7c64e976aed5e75ec04fa72e2fdbd12923371
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
95a71e06eb4561c495a569b196750af5368c7525 12-Jan-2016 Sudheer Shanka <sudheersai@google.com> Add disabled by policy message as empty views in preferencefragment.

Change-Id: I296dc02c8e5cbea74f8415f4c8c5723f85e20b5b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
df828405b107fd6a2602580cf7e8f43723c69d58 06-Jan-2016 Jeff Sharkey <jsharkey@android.com> Follow PackageManager refactoring.

Change-Id: Iae8b40acf6317366f0de780e367e0c21a9966477
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0b4fdc49fba83ad2a950681ef014b6927e438007 04-Dec-2015 Jason Monk <jmonk@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
73df1a9894886da01a9bba352d9df9e7f2b91a7d 30-Nov-2015 Jason Monk <jmonk@google.com> Guard against monkey crash.

Bug: 25813437
Change-Id: Id86c775b235ee303dc05c1cf70a407bf5472b17c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4cfe39f5397d037d106abf07db31b0e01484bd92 19-Nov-2015 Makoto Onuki <omakoto@google.com> Use explicit APIs to get device owner information

Bug 24676413

Change-Id: Id346c2f01658173c9671edcfd34bc33f1b25faa4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3069581512bcb9687cb8d79675f6c4950c9ac087 17-Nov-2015 Jason Monk <jmonk@google.com> Summary support for Settings Home

Also add summaries to a few of the major items.

Change-Id: I17924f14941fe095d819e142cdd21cf4b4e9ffd1
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
771fac591f6e00221713e6eb763148e3d191d7c2 08-Sep-2015 Maurice Lam <yukl@google.com> [WifiSettings] Add Wi-Fi dialog activity

Add a Wi-Fi dialog activity that can be started by setup wizard to
connect to a Wi-Fi access point.

Also refactored mEdit and mModify in WifiConfigController into an
int-enum mMode, with modes view, connect and modify. This is how the
new modes maps to the old flags:

MODE_VIEW -- mEdit = false, mModify = *
MODE_CONNECT -- mEdit = true, mModify = false
MODE_MODIFY -- mEdit = true, mModify = true

Bug: 23426311
Change-Id: I8e2221fd3c42577068e07686dab245dd5888e0ae
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2662df843327dd938225c75722d0bbf3b01068f7 28-Aug-2015 Maurice Lam <yukl@google.com> [WifiSettings] Submit Wi-Fi dialog with enter key

Add a OnKeyListener for hardware keyboards and an
OnEditorActionListener for on-screen IMEs to submit the Wi-Fi dialog
with the currently entered information.

Before committing the action, check for whether the dialog is
submittable -- that is checking whether all necessary information has
been entered. If not the enter key behaves the same as it is before
the change.

Bug: 22211604
Change-Id: Idede4233a7385d3bcd8fd6614948270280536bf1
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6f03829e746aa3f505d71723001a7f84a806452f 03-Sep-2015 Xiaohui Chen <xiaohuic@google.com> Cleanup remaining USER_OWNER in Settings

Bug: 19913735
Change-Id: I6894a7c81ed7504b02d533d9e9f65f800dbca895
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e0ece963c67fd3594d284820718c3f316981ac7f 22-Aug-2015 Sanket Padawe <sanketpadawe@google.com> Avoid new network to connect by using "Add Network" instead only Save it.

Bug: 23422433
Change-Id: I49aabff91ba127bf2a3b0aa25c8163ee4097bf4d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3bf0db8d10fee87c6c2cb7f012dcf97d1ce458f3 24-Jul-2015 Sanket Padawe <sanketpadawe@google.com> Fix issues in AP dialog arising after clicking on AP preferences.

+Added a new flag to keep track if user wanted to modify AP by hard
pressing on AP.

Bug: 22485686
Change-Id: Ia60a564a5344393f5e5340a3493ae7c660ead3d7
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
088537a315b74cdcd3ab3201c8de2c79417ebae4 10-Jul-2015 Jason Monk <jmonk@google.com> Fix wifi not re-ordering

Bug: 22361247
Change-Id: I5c25061735628682741060c8a699c0a977c4351b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
55dd8869db9c2a66423fcbb83cb5f5db38f8fb5f 29-Jun-2015 Jason Monk <jmonk@google.com> Reduce jank in wifi settings

- Fix view recycling for AccessPointPreferences by adding a dummy
during initial inflation
- Cut down on what is done during onBindView and refresh()
- Try to re-use AccessPointPreferences when possible

Some jank still occurs when scan results come in, but it is less
than before.

Bug: 16518752
Change-Id: I2619303281dd50aa3864783c49738ae9f221834a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
55601622d5ddd9d9ef0ace09ade96e999879bff7 24-Jun-2015 Lifu Tang <lifu@google.com> Language Update for Wi-Fi/Bluetooth Scanning

Bug: 22046234
Change-Id: Iea8fa2368d1e568a8e1fdd3edefa8f4fc6053e48
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9dd754e1f405aa47a6d9c97bf50f23c8f51b7a79 23-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Reflect effect of all Wifi editability factors in Settings" into mnc-dev
5de33f402a9117fbabbde5d04bf1016be5f9f126 27-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Reflect effect of all Wifi editability factors in Settings

Bug: 21427528
Bug: 21150087
Bug: 21612565
Change-Id: I62962a9b3fc1bb9c90be79e133873006da102054
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4dd013efc1d986475fb46464268d54612da21c87 18-Jun-2015 Jason Monk <jmonk@google.com> Fix opening secured networks from QS

Bug: 21908788
Change-Id: I09b1d22ae8b1815e720bd8c05fa1e38d66d1dcfd
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c68b46c1f22e1679b3b4a31c20c7951ca1f119f0 15-Jun-2015 Jason Monk <jmonk@google.com> Handle switch of ssid to CharSequence (for spans)

Change to reference the string directly for places like search,
etc.

Bug: 20059794
Change-Id: I3305c9833e8aeea52b968c094d0a1881a3e6699e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3d32af264254660150c5f2d63a64b3462a9378dd 03-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Fix Wifi Settings crash on continuous wifi toggling.

Bug: 21591640
Change-Id: I17aa385a1e5fb3edfdb054234ab20b3dbc6fea60
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7a0b412ed25f35d7bb5660b44336b20f454cc438 28-May-2015 Jason Monk <jmonk@google.com> Make use of WifiTracker's WorkerThread support

Let the AccessPoint callbacks come in on a BG thread and do more
of the handling there.

Bug: 21486080
Change-Id: I529152d9f5c429b790a669b75b6d955ce4336caf
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
cb5444ad2ccf2f16bddafb8844cde6a1a92adddb 15-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Reflect Wifi config lockdown restriction in Settings" into mnc-dev
1a2aa9942f2c14bdaf46ce4911f9838dc21652ba 14-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Reflect Wifi config lockdown restriction in Settings

DO created WiFi configurations are now only locked down
for editing/removing if DISALLOW_CONFIG_WIFI is not set.
This needed to be reflected on Settings UI.

Bug: 20719934
Change-Id: Ibd218821ab46cca8396084e2d73ae5ee00b584b3
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
02f0a4aff3349513e69ea6697151c60088f75dcd 13-May-2015 Jason Monk <jmonk@google.com> Fix connecting to secure wifi from QS

Sometimes the preference isn't created yet, so we need to hold on
to the ssid until the preference for that access point gets created.

Bug: 20975085
Change-Id: Ib5804611793550106f6059b1afe016de4e89bc64
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e0bf739ddf8781024578a879fa94bb5e6a71303b 30-Apr-2015 Maurice Lam <yukl@google.com> Merge "[WifiSettings] Add progress bar when scanning" into mnc-dev
28c3f6bb71da1727fdc39bdc622518b1daeb3b0a 22-Apr-2015 Maurice Lam <yukl@google.com> [WifiSettings] Add progress bar when scanning

Add a progress bar when the Wi-Fi screen is in a transient state,
like enabling, disabling Wi-Fi and scanning for network. This change
sets the progress bar as a pinned header at the top of the activity.

The pinned header container needs to be match parent so that the
progress bar can occupy the full width of the screen. If the header
view doesn't want to fill the width, then the header view *inside*
the container should be wrap_content.

Added an overloaded setPinnedHeader method that takes a layout
resource ID, and returns the view to the caller. This way the
inflater can set the parent property so that layout params will not
be ignored.

Bug: 17389577
Change-Id: I18d0eb7c72ad31d1c4b35a54789016c32c81fb93
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a2fd30765171fa4299919c569ee3c1577fe2f0db 16-Apr-2015 Vinit Deshpande <vinitd@google.com> Implement 'Available via Passpoint' feature [DO NOT MERGE]

This also fixes the issues related to explicit connection
to passpoint AP, and fixes occassional mention of
'connected via Wi-Fi Assistent'

Change-Id: I152cebafa6259194f1d09a6972a3508156335cb6
(cherry picked from commit 08b5b5d4393b3a670208a157520c4dd97f4cfc3a)
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
46a8e6c143604213aa6b1efa4fadbd6d542b3223 22-Apr-2015 Maurice Lam <yukl@google.com> [WifiSetup] Show progress bar when scanning

Added setProgressBarVisible method to show the progress bar when the
UI is in a transient state (e.g. enabling / disabling Wi-Fi, scanning
for access points).

Bug: 19674909
Change-Id: I82180b7949a03f6ac468f069febf0ffd1f42f1b7
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
93564706e1255e649ecd3c6efc7f1c8fb0660bc7 25-Apr-2015 Andres Morales <anmorales@google.com> Merge "Fix crash when rotating NFC dialog"
6221467fae3f8ee073095d3ea590f2b390dee164 24-Apr-2015 Zoltan Szatmary-Ban <szatmz@google.com> Fix NPE when tapping on Add Network in Settings > WiFi

Bug:20542955
Change-Id: I06cfc21f906f94b2b61f2121c22c3d3318c9e65b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
008c9238d930ce770d537e22c958a6ad1061b4b7 22-Apr-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Show dialog when user tries to edit a locked down WiFi config"
aef794a2894e996fafa17097744a2bab75eb680d 21-Apr-2015 Andres Morales <anmorales@google.com> Fix crash when rotating NFC dialog

Bug: 18710540
Change-Id: I0f50a8aed555439e8beeff70276d646fc11afe0a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
89403529adf7584ded2bdadf985fde12a346ec3b 15-Apr-2015 Zoltan Szatmary-Ban <szatmz@google.com> Show dialog when user tries to edit a locked down WiFi config

Also, 'FORGET' button is not shown on WifiDialogs of locked down configs.
Context menu only shows 'Connect' for them.

Bug: 20117316
Change-Id: I3fa986c10b6ff47d1a897794213c225c8c6f579b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
dce1c724f1cea5128d485342ea8af72c1f770aa3 14-Apr-2015 Sanket Padawe <sanketpadawe@google.com> Remove "Show apps" and add summary to saved networks from Wifi Settings.

Bug: 20148271
Change-Id: Ie042ac83a7253ff86f3eda77fb1e8a4c0e1a13d5
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
be794c30ca49c17521e66482ce30c94ffb2ec8ee 27-Mar-2015 Lifu Tang <lifu@google.com> Added links to scanning settings

Bug: 19918721
Change-Id: Ifb1508807d34b675e9ea1522f86a9310ed6b663f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f22e8c4c2e81e499ea542c272c1cc1cfee94452e 26-Mar-2015 Chris Wren <cwren@android.com> log wifi actions from settings

To start:
enable
disable
forget
connect
add

Depends-On: I60163e44602b8e23b643b9103c324fa0e0d2c4c4
Change-Id: I52f40298db63f410ced2dbf5ba05d3ad098a85a2
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8a963babe2e36b7a41f77b8d2598c97658196e58 20-Mar-2015 Chris Wren <cwren@android.com> log visibility of views

Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f
Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b5f4a2c86ea6ca3abe91362afc3d3aaa6ad0721f 19-Mar-2015 Sanket Padawe <sanketpadawe@google.com> Fix crash while trying to connect to network in WiFi Settings.

Bug: 19535465
Change-Id: Ibfc40a08e6c648681df5fd16e2334d9ec45b10f4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fc1b00cfe439b0c462b3acbba709c3cbc1132a1f 28-Jan-2015 Jason Monk <jmonk@google.com> Move some wifi tracking code to SettingsLib

Move tracking of which networks are available/saved and their state
over to SettingsLib to share it with Quick Settings.

Bug: 19180466
Change-Id: Iaeef06b26da8cb38e1ba09a7d105d04d499dc181
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c91676e6d96e1edf104cc5be42497393aa71ce6e 03-Feb-2015 Andres Morales <anmorales@google.com> am 2e75203a: Use getDefaultAdapter instead of getNfcAdapter automerge: 98d8a49
automerge: 4bd31b9

* commit '4bd31b9ac676a5d3c6943bc9f86f524eedad5bef':
Use getDefaultAdapter instead of getNfcAdapter
2e75203a6ecb81725b68bced6c5f8d5be37365f1 02-Feb-2015 Andres Morales <anmorales@google.com> Use getDefaultAdapter instead of getNfcAdapter

getNfcAdapter can throw an exception if NFC is not
available

Bug: 19227597
Change-Id: Ib95849057938066dc5760a34f16333f5423ce61f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
859dcab128d804ec50f84779cdbf95f1505bae0e 15-Jan-2015 Maurice Lam <yukl@google.com> Remove grey Wi-Fi icon from Setup Wizard

This removes the grey Wi-Fi icon from the empty-view in the Wi-Fi
list of Setup Wizard. Also updated the style so it looks like the
description text in other setup screens.
Also fixed the view recycling by not calling getRootAdapter in
onActivityCreated, since that will cause the Preference framework
to not cache the AccessPoint preference.

Bug: 17575719
Bug: 16518752
Change-Id: I06cbc88db1c04b29a9ce8221596265effc39b90b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c2fb78627fa6c715b06a731edf36a4efcf294592 07-Jan-2015 Andres Morales <anmorales@google.com> am dfb448d2: am f58a646b: am f11feccf: Merge "Don\'t display Write NFC option if no NFC" into lmp-mr1-dev

* commit 'dfb448d23ec666f9fdbb1ee44ccaef12ea98a80c':
Don't display Write NFC option if no NFC
f11feccf99948d166e6873315252fdaf416ae272 07-Jan-2015 Andres Morales <anmorales@google.com> Merge "Don't display Write NFC option if no NFC" into lmp-mr1-dev
64c7429ac84e2f041e64fb7094f390b7491472dc 06-Jan-2015 Andres Morales <anmorales@google.com> Don't display Write NFC option if no NFC

Bug: 18830151
Change-Id: Id5a06e6d98380f509307a6819494255524755ab1
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
06b65d1c7d5f5c87f8d723b6ab0040f9bfc834c4 10-Dec-2014 Jeff Davidson <jpd@google.com> resolve merge conflicts of 0c7e4ed to master.

Change-Id: I6c5625564f69769eb6f61d3df7531f032080d0d9
5ead6b92fdcfd5da4841509be534efa6264a4ccc 27-Nov-2014 Jeff Davidson <jpd@google.com> Final platform settings UX for ephemeral networks.

Show "Connected via Wi-Fi assistant" instead of just "Connected" when
a Wi-Fi connection is ephemeral. Otherwise, treat ephemeral
connections just like saved ones - show (read-only) connection stats
when you click the network, and offer the ability to "forget" the
network, which prevents further ephemeral connections.

Bug: 18525241
Change-Id: I0d2146ab47b82d32c50b2ef883f176a6b6066713
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
568d1560898687de216f38bdc2bd5f933aed3f7d 07-Nov-2014 Jeff Davidson <jpd@google.com> am 0fc9271b: am c4a68608: am 99f191f5: Remove the Wi-Fi Assistant card.

* commit '0fc9271b21b46b6972dcf0e976d20605042b0b38':
Remove the Wi-Fi Assistant card.
99f191f5856bb266854d7b08a50523626eb70f72 06-Nov-2014 Jeff Davidson <jpd@google.com> Remove the Wi-Fi Assistant card.

Per the latest mocks, advanced wireless settings will be the only
location in platform settings where Wi-Fi Assistants are configured.
The card is no longer being used.

Bug: 13780935
Change-Id: Idddf971404532256165045665bd0a6b19966d2bd
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3959e9b933e15fe30fd4ae936f1691dc7c4ce3e7 06-Nov-2014 Jeff Davidson <jpd@google.com> am 7b17e24d: am a9086ee9: Show accurate connection status for ephemeral networks. automerge: b46a919

* commit '7b17e24d36e5fd3263204a4ee666e85a4a006b90':
Show accurate connection status for ephemeral networks.
b46a9194fe88a26e80d415919d191703c340925e 04-Nov-2014 Jeff Davidson <jpd@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d920bd08193eec3844be944a34844e472f06f38c 28-Oct-2014 Jason Monk <jmonk@google.com> am ca063736: Merge "Allow QS to launch adding network dialog" into lmp-mr1-dev automerge: 496b3f6 automerge: 3caba72

* commit 'ca063736e98decbf14d876dd90689d02cb18eaa2':
Allow QS to launch adding network dialog
36760c108b4b427da95afee23bc0ac7aeace9323 27-Oct-2014 Jason Monk <jmonk@google.com> Allow QS to launch adding network dialog

This allows QS to set an extra that will launch the adding network
dialog directly for a specified ssid. It will be used to take users
straight from QS to the password entry, when a secure network is
selected.

Bug: 17722817
Change-Id: I570596af906de005c505678b539f915c06e6fd14
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
ec4ba9b5381d343801c2df9147222b909b6abb4b 26-Sep-2014 Sky Faber <skyf@google.com> User wifi separation feature.

-Enable forget button for all users.

Change-Id: Iab79db10107ab5dbeb469c12621a9a4916bd62c9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d7d604056b568b27951fcb6113ef59eb08a2ed90 27-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Separate wifi AP added by applications."
2d657e36295428f5de8bf710a2ea24f42cb5bb78 23-Sep-2014 Sky Faber <skyf@google.com> Separate wifi AP added by applications.

-Add permission to allow settings to modify all wifi APs
-Add option to show AP owners.

Change-Id: I12943563ef714c4287e13488578f020d136d006d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fb075455bd8aa99861c28836ffefae92153a7958 19-Sep-2014 vandwalle <vandwalle@google.com> correctly report DHCP failures

Change-Id: I7a77da83dfb91d42ae18c54ae369ee8756e8f4d6
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f4b548c0f596ab525ed492162d4654f382829257 12-Sep-2014 PauloftheWest <paulofthewest@google.com> Removed all references to "Google Wi-Fi Assistant" from Settings.

+ Removed Wi-Fi Assistant message in Wi-Fi Advanced since it was
overridden by the Wi-Fi Assistant.
+ Removed Wi-Fi Assistant message in Wi-Fi Assistant Card. Instead,
it is programatically created when the scorer is known.
+ "Google" was replaced with a placeholder.

Bug: 17457236
Change-Id: If3aab06c911ecf6ec13cbf00dea2fe9333abc1fc
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
073f07f33b49cfcde6ec6026f778a1cf00baf913 02-Sep-2014 Sky Faber <skyf@google.com> Remove UI for Forget AP as a secondary user.

Bug: 16898030
Bug: 17317819
Change-Id: I4ef17483bc1b35f2f70c23eb12d813f029b15bf0
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
de29d04fae4877de1d0ab37093ca4e721d528cfb 02-Sep-2014 PauloftheWest <paulofthewest@google.com> Fixed an issue were "Saved Networks" would not appear correctly.

Bug: 17284538
Change-Id: Id93cd93f94a59437b04d41d4b0412d3b22575e17
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0a5402dcf9592a81f55d80dcd37629402c0dc856 28-Aug-2014 Jeff Davidson <jpd@google.com> Fix crash in WifiSettings.

SDK version is an int, not a long. (Also change SharedPreference key
to avoid issues for people who've already dismissed the Wifi Assistant
card).

Bug: 17304642
Change-Id: Ic959516b88e91edd53562703fa7db9c15ead20e4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a14e3f3373170ae126531a21bd9a121e0d886e53 27-Aug-2014 PauloftheWest <paulofthewest@google.com> Merge "Removed the Wi-Fi icon shown when Wi-Fi is off." into lmp-dev
b6c414a6d279b83f5306e9d4aaddb02e5bb8cfe1 25-Aug-2014 Maurice Lam <yukl@google.com> [WifiSetup] Progress when wifi scanning

Use a custom empty view to show the status while wifi is scanning
or off. Cannot use android.R.id.empty because in phone portrait
layout the illustration is the listview header, which will be hidden
if the list is empty and we use ListView.setEmptyView.

Bug: 17183006
Change-Id: Ie8598303f4e61f87e078008fb7a03918ba92c9ef
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2b41c90fed9487ea8f83cad684d2061a1c112981 21-Aug-2014 PauloftheWest <paulofthewest@google.com> Removed the Wi-Fi icon shown when Wi-Fi is off.

Bug: 16570104
Change-Id: Iacee07c225f6609b92f1df193b682fde0a720a92
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
978d2785fbc3ae4b37c50a099f900403c58dce46 19-Aug-2014 Jeff Davidson <jpd@google.com> Suppress WiFi Assistant card until future platform updates.

This replaces the previous behavior of an increasing timeout. When the
user dismisses the WiFi Assistant card, either by opting out or
successfully configuring the assistant, the card is suppressed until
the next major platform upgrade (assuming the assistant is not enabled
at the time of the upgrade).

Bug: 16902858
Change-Id: I5373a7a743f21777b7b75a620b5a4e9004e57466
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d60f85daadc27df47d0fb04e73f18c50ac70f3c7 03-Aug-2014 PauloftheWest <paulofthewest@google.com> Added WiFi Assistant settings.

+ Added ability to setup Wifi Assistant.
- Removed 'Avoid poor connections' from WiFi Advance Settings.
- Removed 'Optimize Wi-Fi' from WiFi Advance Settings.
+ Replaced checkboxes with switches in WifFI Advance Settings.
+ Added horizontal rule to seperate MAC/IP address text.

Bug: 15698824
Change-Id: Ia319ff5fb2566854666a07d0e77c8816a49fd3d6
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2e7162618dab134a5e3c60b5c128dc71ff635fdd 09-Aug-2014 Jeff Davidson <jpd@google.com> Clean up Wi-Fi Assistant card.

Use a ListView header instead of a Preference to display the card at
the top of the list.

Also clean some dead code.

Bug: 16378017
Change-Id: I5a7f1d197cde071c45395b6d7f6016aa7201187a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3b5e4e242184d8ad4adb9366e9aee24c082be7dc 31-Jul-2014 vandwalle <vandwalle@google.com> The Settings app is listening to wpa_supplicant state change so as to update the state of the AccessPoint objects and present Wifi state to the user.

This is not right because wpa_supplicant states are transient (for instance when the WiFi Layer, at Layer 2, is going thru some harmless spurious disconnection cycle due to WiFi signal fluctuation). This cause the state of the WiFi Network to appear to be unstable to the user.

Hence, I removed dependencies on wpa_supplicant internal state.

In addition so as to improve debugging, I added the BSSID to the Wifi Verbose Logging string which is shown in wifi picker alongside the current network. This string only appear when a user goes into Developper Options and enable WiFi Verbose Logging.

The below bug is an example of situation where a spurious disconnect (a coupld seconds) handled by wpa_supplicant can cause the WiFi Settings to indicate that the link is unstable.

Bug:16140888 Wifi best network selection not smooth


Change-Id: I0e7c6b86262b88ed993c46fcdcdbab4d9b1f5ea1
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fd19aff782bd382ae34900e5ce0f0b7410e3082f 31-Jul-2014 PauloftheWest <paulofthewest@google.com> Fixed crash when changing orientation in the Add Networks dialog.

Bug: 16479540
Change-Id: Ib42977b72039f49b5d5ae688c0b0ded1094b44e2
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0f8e031a34a105f6dd73b0a5247a56bf1f080975 28-Jul-2014 PauloftheWest <paulofthewest@google.com> Fixed a bug where Wi-Fi would should networks out of range.

Bug: 16569017
Change-Id: Ie2d094aed2fcb1b2471ae1105b6782105e6be5ce
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2d4d9a9067a2904ed75247f83b0f37a086a020b2 18-Jul-2014 Maurice Lam <yukl@google.com> [WifiSetup] Don't show WiFi assistant card in WifiPickerActivity

Do not create the assistant card if we are in WifiPickerActivity,
which includes setup wizard and account login.

Bug: 16382431
Change-Id: Id5eaa8040eafe5222e1a5c9276a2a10bedebfd71
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
63a1affdae1971677e7a54f90a463712ddc6ace5 24-Jul-2014 PauloftheWest <paulofthewest@google.com> Fixed an illustrious NullPointer bug on Wifi Assistant

+ The class was never instantiated...

Bug: 16543506
Change-Id: I00882df31ee986116b8fa28a54796bb3b20f2e2b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1a0297c544cb15ed4b56e70575b169b3889543b7 18-Jun-2014 Julia Reynolds <juliacr@google.com> Use restrictionsprovider framework in Settings.

Bug: 15305103

Change-Id: Ib0147e366fe90de3512d0cc06e2a47ee16012dff
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
878ca0edb9598de695750b72c7cd3d1c056d984c 18-Jul-2014 Jeff Davidson <jpd@google.com> Merge "Link WifiAssistant card with actual settings." into lmp-dev
6a627652cbac48a7d5bea5bc81772f90d7d82af9 02-Jul-2014 Maurice Lam <yukl@google.com> [WifiSetup] Mechanism for suspending auto finish

We have been using forget() to prevent auto-reconnection when the
user hits back to Wifi setup. This has the side effect of forgetting
networks, which is undesirable especially for password protected APs.

The new mechanism keeps a flag on whether the user has selected a
connection. Only auto-advance if the user has picked a network and
there is a valid WiFi connection.

The new EXTRA_REQUIRE_USER_SELECTION can specify whether a user
selection is required initially. That is, whether to auto finish if
the system connected to a network without user input. The default is
false so WiFi can be skipped if the user started setup wizard with
a valid WiFi connection (e.g. after System Update). Note that a user
selection is always required when the user goes back from the next
screen.

Since the new AP dialog does not have a connect button, the SKIP
button in the navigation bar also changes to NEXT when there is a
valid WiFi connection, so the user can hit NEXT if they decided not
to change the network.

Bug: 15333554
Bug: 15999487
Change-Id: I98e935b8e09e470a0c49c44bc299bb2eced98634
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
873fa4f2ba4385a553381c0ed15f45d1e82e8947 17-Jul-2014 Jeff Davidson <jpd@google.com> Link WifiAssistant card with actual settings.

Only show the card if we haven't already enabled an assistant, and if
there's one available on the device to enable. (For now, we enable the
first one; in the future, we can offer a selection between
assistants).

When the user opts in, we either show the standard system activity or
the custom opt-in activity if the assistant has defined one. In either
case, we only dismiss the card if the child activity indicates that
opt-in was successful.

Bug: 16376277
Change-Id: Ic92c7676c563ab8c8fb695117a053004f15f7d25
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
060e01a93e678a62d9328bc3c48555976bda7710 05-Jul-2014 PauloftheWest <paulofthewest@google.com> Added Wifi Assistant Card

+ Show Wi-Fi Assistant card above network list that scroll under the action bar with the rest of the list
+ Display a promo image and text
+ Clicking "Setup" should link to the selected Wi-Fi assistant app (must be open to 3rd parties)
+ Touching "No, Thanks" should snooze this card for 30 days / 2nd time 90 / 3rd time 180 days / then forever

Bug: 15703202

Change-Id: If74101bea630246c6bda2de3ed79fee72eca4c0c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e6b336d1a05752b546319a33a5f5b5c65bccf4e9 10-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> FR #14318673 Search - add synonyms

- add synonyms to be indexed at the same time as titles and sub-titles
- fix Wi-Fi keywords

Change-Id: I1cb026775592c29c2b813153574c6695e3e90f31
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7837b999862cf341b0f124be7ace1dfc64d0a5a8 24-Jun-2014 PauloftheWest <paulofthewest@google.com> Added Saved networks UI to Wifi

+ Added Saved networks to Overflow menu
+ Moved WPS Pin Entry from Overflow menu to Advance Setting Activity
+ "Automatically manage Wi-Fi : Let a Wi-Fi assistant manage your connection"
+ "Wi-Fi assistant : <selected assistant> [cog secondary hit target]
+ MAC address & IP address list items have the static italic style
- "Avoid poor connections" from Advance Settings
- "Wi-Fi optimization" from Advance Settings

Bug: 15698824

Change-Id: Ieb25b29874752db07398dcb200ec07862779f507
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5bdf0423f9dbc3cf5970045aacdfef79daacc430 02-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix SettingsPreferenceFragment.startFragment()

- was always passing R.string.lock_settings_picker_title as a title res

Change-Id: Iab47ef3da00e91d5ce3b6dc50c50c943bd78b08f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b4564c39b734227cd67e46d738caa6fb9d89c4cb 18-Jun-2014 PauloftheWest <paulofthewest@google.com> Applied some minor UI changes (see below)

+ Changed wifi icons to teal
+ Removed “Secured with …” from network status
+ Added an empty state image above text when Wi-Fi is off
+ Removed Wi-Fi Direct and WPS Push button from overflow menu
+ Added Wi-Fi Direct and WPS Push button to Advance Activity
+ Input Password Dialog: Moved Signal Strength and Security to Advance
+ Input Password Dialog: Updated Password text to Material style

BugId: #15698824 #15702808
Change-Id: I542ab9aac2c098738330c92d9183d3907c4f0b38
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9f59de930ae14566673d4d57597b836556820b29 20-Jun-2014 Maurice Lam <yukl@google.com> [WifiSetup] Restore enableNext behavior

Partial revert of ag/475394 which moved enable-next-on-connect
behavior to setup wizard specific code. But account creation was
using it outside of setup wizard context.

Change-Id: I575976207a3ba2b5dac7e5467036e6ec7f519d9d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
204521626f63bef4a8ac2d76334b94dbb0f3aa3b 13-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> resolved conflicts for merge of f9360dbc to master

Change-Id: I2e468d83a7ce5200c59f63b4362e7bee10d0a2eb
138ff8c0457c6e1345015973668d652fa17c7c3b 12-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Make the SwitchBar appear immediately

- change the way the SwitchBar is shown and hidden
- save its state
- remove the delay transition code

Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d3446c5708aff2580d4ddb9f559e72784bfac55e 23-May-2014 Russell Brenner <russellbrenner@google.com> Refactor setup wizard-related code

Extracted setup-related code from WifiSettings, putting it into a new
derived class, WifiSettingsForSetupWizard.

Set taskAffinity to com.android.wizard, for alignment with other
setup wizard-related tasks.

Change-Id: If371f219dac5d3eff8f7899c16cc6f9475be47cf
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
653cfeeb0a84d836a107653d7e0a478a56e6cc5f 22-May-2014 vandwalle <vandwalle@google.com> when vervbose logging, keep track of a list of ScanResults per AP

Change-Id: Ib8f797de360f11eb9914a6aa44d418e1d0571973
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c9a6698fd44492841bf83bead93b62ecba8a967e 22-May-2014 vandwalle <vandwalle@google.com> make verbose logging a wifimanager hidden API

Change-Id: I092b7f507ad4dfdab16658929f02584a1fc22ba4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5fe81c7cc874a5f662a4cf1b8a00ba3e974ce7b2 16-May-2014 Andres Morales <anmorales@google.com> Merge "Fix issues in Wi-Fi NFC tag code"
ae04155bbe875279d6637ffa5dda974b9af019fa 15-May-2014 Andres Morales <anmorales@google.com> Fix issues in Wi-Fi NFC tag code

An NPE + multiple comments

Change-Id: I04ffe10874cc2e9aa9f68bc551b8da98eb6f1640
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1303dbd52a795e7280548dadafff3b4622df94b6 15-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Code cleaning

- remove obsolete imports

Change-Id: I6878498047ced7fd6405b84b76bc808ee5ff49fc
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
41937766981423c9252e12e3319b2e7532739627 14-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Introduce SwitchBar widget

- SwitchBar is a LinearLayout that containts a TextView and a Switch and
is intended to replace all Switches that are put in the ActionBar as a
custom view
- use the new SwitchBar for WifiSetting only for now (a later CL will
take care of all the other Setting that are using a Switch in the
ActionBar)

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: I5e98dbe995bba8f440d08459e09ca3ac09d3464b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a1ebae6f718ee5fddcb33b8464c78c581ae05d69 14-May-2014 Maurice Lam <yukl@google.com> [WifiSettings] Fix NullPointerException during setup

The wifi setup activity that setup wizard uses does not have an
action bar.

bug: 14930301
Change-Id: I14f276c1932cb725bffd765faafc0edf6f1d54f6
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
15826d4ea1428b3d1edb86866ca57a93c2252bda 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Mode code cleaning: remove obsolete references to EXTRA_NO_HEADERS

- the EXTRA_NO_HEADERS flag as no more meaning as we are showing
the Tiles (previously named "Headers") only in the Dashboard
(which is the main Settings screen)

Change-Id: I55656de0d28ca9c84adbe6647d870838b4ac230b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
255743990c0163332d1931e0b2081b84b51904ab 19-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Make the WiFi switch appear again

- use the ActionBar Theme context when creating the Switch for
getting the correct Theming

Change-Id: I1c44e1b1c28bf02af4c2ac9912295106d93a60e8
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a298f077c8e1a73e1c17c444845da7dd650443bc 16-Apr-2014 Andres Morales <anmorales@google.com> Merge "Write wifi config to NFC tag"
45f754e50618076213ed6911ff1e6c37b4db0467 11-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add Indexable.SearchIndexProvider.getNonIndexableKeys(Context)

- getNonIndexableKeys(Context) allow a SearchIndexProvider to tell which data
he does not want to index by providing a list of the data keys
- use this new API for SoundSettings and removing KEY_EMERGENCY_TONE related
settings if the device is not CDMA
- add a BaseSearchIndexProvider for code simplification

Change-Id: I23633ace1d7e390ee05fac0a5458a33e04e72d8d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
ef7a40a0d65a4d3e43d454273c6334448158e555 06-Jan-2014 Andres Morales <anmorales@google.com> Write wifi config to NFC tag

Configured networks expose the option to
write config to an NFC tag. This tag can be
then tapped to another device to configure
the same network. Implemented according to
WiFi Alliance WPS spec.

Change-Id: I33a1be1610aab71cf1ab864418d494027370ebca
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
86ea97f4524fe96abeffcba3386753741989cd71 03-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Re-enable on/off switch for Wi-Fi and Bluetooth Settings

- the switch was no more there when launching from an Intent (it was a regression)

Change-Id: I1fc95cad4523a1d3812323fb26908f925a9e623e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d25314d3305ed1a07b53991a978cd71219ef2a10 22-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Settings - update for new UI (no more Drawer)

- follow the UX spec by no more using a Drawer
- the Dashboard is now a Fragment that contains the list of Headers
- the search results are also put into a Fragment that is replacing
the initial one (Dashboard or other) when expanding the SearchView
- use a SearchView for query input
- when tapping on a Header or a Search Result, re-launch Settings as
an Activity so that we are benefiting from the Activity stack for
UP affordance and BACK button
- manage UP affordance to show it only when needed
- move some Actions to the Menu in the ActionBar for allowing space
to the Search action and removing some clutter
- fix an issue with the Index and WiFiEnabler and their cached Context
that was not updated when there was a Configuration change
- simplify the SettingsActivity code by extracting some inner classes

Change-Id: I50b5f77bb44a7fade1886114dbbc820609a5e63d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5f3442af6f1d1141f8f4dff033d4176214281b81 21-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Use SearchIndexableData enable state for WiFi Settings

- same as for Bluetooth
- now the remembered WiFi networks names can be indexed when
WiFi is turned on

Change-Id: I904ce6a425c21ee07ce3ee8fdc0cd71ab5a18d12
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
51bfee595c3ce587e2e26565fd9e8f4ae02c3482 21-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Add dynamic Preferences indexing (part 2)

- change the Index SQL model. Add a new "enabled" column.
- use that column for issuing a more restrictive search query
- change the SearchIndexProvider API to pass the "enable" state
- apply it to Bluetooth settings
- refactor the list of indexable resources (SearchIndexableResources)

Change-Id: Ic900fb27cb12a285a80d953aa1aa88f0070cd986
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fa7dc240e978b1b77bb5c80a78cd1f8c77648301 13-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Add external Preferences indexing

- define SettingsSearchIndexablesProvider as an internal
SearchIndexablesProvider
- protect access thru using android.permission.READ_SEARCH_INDEXABLES
- update WallpaperTypeSettings and WifiSettings for taking care of
the new model
- update the Dashboard for taking care about external Icons for the
search result
- update sqlite model/version for taking care about Intents
(enable launching external applications for showing the settings)

Change-Id: I2e38599327e6480f1754f52666becce0884cee9d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6c9e03fd6d834009df10869a9701eee0129f915a 13-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> More code cleaning

- use var for context.getResources()
- rename var

Change-Id: I8b8b7ffdd2c83bdbec7a4f162757597032aa9fb0
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
757450247d25f207ae7ea303ccedf3f76639f43e 12-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add dynamic Preferences indexing"
b8dfbf140986a9c0781f268ea40914063f026436 11-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Add dynamic Preferences indexing

- introduce a new private interface "Indexable".
- refactor Wallpaper and Wi-Fi settings to support this new
interface.
- only index saved/remembered Wi-Fi networks
- also add the capability to remove some data from the Index.

Fragments that want to publish some dynamic indexable data should
implement the "Indexable" interface and provide a static final field
named "INDEX_DATA_PROVIDER" with is the Indexable.IndexDataProvider
interface for providing the data for indexing.

Thru this interface the Index can ask what are the data chuncks to
index.

Change-Id: I31e7212c87b8218efe1a8f3028147cb19e119be6
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
565d8b7bcccd924094cceca49fcee45391441f20 06-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13327889 Launching Wifi setting using available wifi network
...notification does not show ON/OFF button for wifi

- the notification was launching the WifiPickerActivity which is
a PreferenceActivity, so take care of this case too.

Change-Id: I64f58d4b9f75141626bb6f0266cf2f17fbb39fc7
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
263bcc8b732dbb47d3ce63904e0e05191fabbad6 18-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
ac57f3e1eb56998550534c1b32d99cb7b5cc2b7b 28-Aug-2013 Russell Brenner <russellbrenner@google.com> Add resources for light theme

Bug: 10407819
Change-Id: Ie232b2d48a8d67355d7c31a878ebaa79aae7c44d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e38ea38002290da8ed16f07ea45f0ebfb41b38cd 02-Aug-2013 Geoffrey Borggaard <geoffreyb@google.com> Adds a base class for restricted settings

Creates an easy way to ask for the restriction pin before
allowing access to a settings page. Does this to the WiFiSettings.

Change-Id: I49734f66e09b6449596412ecf6fc1113bf57ce7f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2dcf6083f77ea8abc200dc87eed22b8bbb45fd07 26-Jul-2013 Birdson_Chen <birdson_chen@pegatroncorp.com> Fix "Add Network" show last selected WiFi AP Dialog

When user taps Wi-Fi add network button, the pop-up dialog is not empty (it shows last selected WiFi AP Dialog).
The above is observed after the following steps:
- Launch Settings application
- Turn on Wi-Fi
- Select any Wi-Fi Access Point which is not connected previously and change to portrait mode
- Press Cancel from the pop-up and select Add Network icon in menu

Because the "Rotation" operation will cause WifiDialog re-creating and the current settings
of selected Wi-Fi Access Point is saved before WifiDialog destroyed.
Then, the saved Wi-Fi Access Point is displayed when user tap on "Add Network".

It need to clear the saved Wi-Fi Access Point when WifiDialog re-creating.

Change-Id: I3e93943e5bee405329e309c3ec88a35ee9cafc43
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5ac904321d81a0a0b7892c5722c464dc3c693f9f 30-May-2013 Robert Greenwalt <rgreenwalt@google.com> Don't show scan-always text if it is off.

bug:9206410
Change-Id: If7e06f50d3d8db6ea198f437d4d268e65ec96c16
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
765f55f52a7e7a6e91afbeee7f1697a2cf24f8c2 24-May-2013 Russell Brenner <russellbrenner@google.com> Improved logic for Skip warning message

Use ConnectivityManager instead of TelephonyManager to determine
how device is connected.

Bug: 9118704
Change-Id: I5c1db90500591ca67e927976066a46e1f66e2e60
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7e59f73e9cc3d93b8baa1c3e4aa59347d859dfb4 13-May-2013 Robert Greenwalt <rgreenwalt@google.com> Remove wifi scan-always dialog.

When wifi is switched off we no longer want a notification dialog
about scan-always, instead using in-panel text.

bug:8907190
Change-Id: I707f306a056068d92f69070873f1e6330b598b1e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
91c016de410f77a291bd9cc1d1e54cf46dda7373 23-Apr-2013 Maggie Benthall <mbenthall@google.com> UI compliance for WifiSettings

Rename and reword string that appears in WifiSettings when user is
restricted from modifying the networks.

Bug: 8696370
Change-Id: I1945550c05163ebff9602e4ba8ba890fece61265
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7e61c233061b4e87257a332be83f72f840d07c62 11-Apr-2013 Maggie Benthall <mbenthall@google.com> Implement Settings app UX for when a user has wifi config locked down.

When the user is restricted from configuring wifi:
- Leave the on/off button enabled
- Hide all menu options
- Hide all networks, and display a message saying:
"This user is not allowed to configure wireless networks."

Change-Id: I20193b552ea071740686bd9091637459e9b668b5
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f2a9717b93e39d7e15f90e84f8b4de24da11463e 03-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> More fix for bug #8505156 WiFi properties dialog is having some issues in RTL mode

- use setPaddingRelative() instead of setPadding()
- add missing android:textAlignment="viewStart"

Change-Id: I8b981fb64686067de5998e4e218b04126bf2b2f8
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
ca8e9cd383c0131cb5e73a177ec948de577a9f60 26-Mar-2013 Irfan Sheriff <isheriff@google.com> Fix monkey crash

Bug: 8011964
Change-Id: Idafdb7b3bc22d3280e0aa93877b7e09a23270149
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
eca454ebc208c1b0d0c28dfa7669ee1cd8233d29 18-Mar-2013 Russell Brenner <russellbrenner@google.com> Enable Back during setup wizard

Aside from enabling the system back button, updated the result codes
to distinguish back (RESULT_CANCEL) from skip (RESULT_SKIP).

This CL should have been uploaded along with http://ag/284254,
which has already been merged.

Bug: 6477759
Bug: 8409375
Change-Id: I031acda1d675ee79a3166a51073113093211709d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
13b3882049955a76432c140a9179dea406514ea1 22-Feb-2013 Irfan Sheriff <isheriff@google.com> Clean up scan handling

use regular scan API instead of obsolete active scan API

Bug: 8158647
Change-Id: I8f70e19219ad789b7501a40529bcd6b6524739e8
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4cd0f1191b347df8cf0a550bcfd710c9c7c2bc13 06-Feb-2013 Irfan Sheriff <isheriff@android.com> am 6639dee4: am 203631b2: Merge "wifiSettings: Updating the networkinfo on supplicant event"

# By sunil duttu
# Via Android Git Automerger (1) and others
* commit '6639dee497304c359141caf9b0452699a6d64aa9':
wifiSettings: Updating the networkinfo on supplicant event
f99d52cf7156991a74f942efb081369a5a14a431 06-Feb-2013 sunil duttu <duttus@codeaurora.org> wifiSettings: Updating the networkinfo on supplicant event

In framework we update the networkId on supplicant state change
these changes in the network info should be reflected in settings.
there by updating the networkinfo.
The problem we are facing without this fix is when we have single
saved AP profile Switching off the AP when we are in connecting
tate resulting in a behavior Where UI keep showing connecting
to that AP instead of showing it as out of range.

Change-Id: I04073b9a4068f4b75216ebfd431adc126583f15c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fd50438e8ed3dad5e9355bd6e34d7d419aaa553c 17-Jan-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix Switches padding for Settings app"
b27223f139248f92637997378d7a38d7d24f6b02 16-Jan-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix Switches padding for Settings app

- use setPaddingRelative() instead of setPadding()

Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
de11bcec8de61d96d72f41d53599ec65c6d258c2 11-Jan-2013 Irfan Sheriff <isheriff@google.com> Update enterprise API usage

Also, remove the unnecessary keystore lock/unlock checks since these
are now controlled at lockscreen

Change-Id: If65c4029d4cf2b8377fbc3512c9f691572125995
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
56a166e9e3cac96246bd724ceea96846fc9e41e1 20-Oct-2012 Russell Brenner <russellbrenner@google.com> Added info about why Wi-Fi is required

Added a new optional textview to wifi settings, informing that wifi
is required during setup. For use on Nakasi 3G.

Bug: 7383934
Change-Id: I231472438e61ccddedc1e680a362f90738d64a2d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3067fbce2ebd74432cba03313a15fd4ead56265d 10-Oct-2012 Russell Brenner <russellbrenner@google.com> Return RESULT_OK when wifi connection established

Two new exit points were not setting a return result. Since the
default result for an activity is RESULT_CANCEL, Setup Wizard was
continuing as if no connection was made.

Bug: 7298234
Change-Id: I44085f38ed021b7d417f9794b3341747f00300e9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
88c9f2889fafb53a2875418317ecd197d9aae883 27-Sep-2012 Russell Brenner <russellbrenner@google.com> Show warnings when skipping Wi-Fi connection

If user skips over Wi-Fi, warn about possible carrier data charges or
inability to receive updates, depending on whether or not phone
service is available.

Note to translators: Some strings are being moved here from setup
wizard. They're tagged with their msgid's so as not to trigger
retranslation.

Bug: 7211786
Change-Id: Idec7863377bd453d1808b26ee3da75f8310b32e0
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b08739003aa2cbc4dfe650f6badda8cfe2be1e76 28-Sep-2012 Wink Saville <wink@google.com> Merge "Fix an NPE in WifiSettings." into jb-mr1-dev
001e14a118e8d5c0fac5876439dc0356d7943eb7 28-Sep-2012 Wink Saville <wink@google.com> Fix an NPE in WifiSettings.

Under stressful conditions, like the Monkey tests, getActivity() can
return null. We assume this occurs when the fragment has shut down but
asynchronous commands are returning results. This change adds appropriate
null checks but assumes during normal operation the checks are not needed.

Bug: 7152711
Change-Id: I7a3736ccead33738dab1a36e78ae1d8042db6e94
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
852cfa9335d8abbc164ae6a3b6b25e7da7e9a0fd 20-Sep-2012 Russell Brenner <russellbrenner@google.com> Move super call to top of onActivityCreated

The historical reasons for not calling super.onActivityCreated early
on appear to be no longer relevant.

Bug: 6935999
Change-Id: I63aad8a4c70ce938ecb07541267cad44e3e18e13
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
df5a62e30be409d2b80c896fa333d155a9198522 12-Sep-2012 Christopher Tate <ctate@google.com> Don't crash during setup of secondary users

Make sure to call super.onActivityCreated() even in the short-circuit
case where there's an early 'return'. This has probably been broken
for a long time but was never exercised while bringing up a new-from-
scratch device, but is the usual code path now for secondary users.

Change-Id: I0c1a5116440908d65750133689507917307e1dcd
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0cd75608c0dc6f4a33e8ff944478945083430394 25-Jul-2012 Irfan Sheriff <isheriff@google.com> Merge "Use updated WifiManager API"
5cd1bbda7d5f13d36a8d0144ed5310064a760bee 10-Jul-2012 Irfan Sheriff <isheriff@google.com> Use updated WifiManager API

Change-Id: Ia02fc8a7eafa84fa4eddeeefafa7fecaac82903e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
79d8e80a304922c34a6bd344f1fa49dd7dfd106d 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Make Settings app aware of layout direction

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I696c0f66a16640af767da3c05b5d300fd2284ecb
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
58d6ffc5f56a94afade76ac8dc434c6e3d43fd6d 08-Jun-2012 Russell Brenner <russellbrenner@google.com> Disable notification alerts in Settings for SUW

When activated by Setup Wizard, disable notification alerts and other
status bar flags as also done by Setup Wizard and GSF.

Bug: 6645469
Change-Id: I43ef5c2a5fa3f53434a1aaa968de50d91b0d78ce
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9d5a6eb4d7ec662e666dc5dfe1506616d5b59341 23-May-2012 Michael Kolb <kolby@google.com> Match setup wizard wifi settings with new wireframes

Bug: 6521472

Change-Id: I159d8a98327ad775b2c5ccfc7380d60d62b54dad
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1c0a8f953ba85bd21660a44dbbf891f313367196 17-May-2012 Russell Brenner <russellbrenner@google.com> Merge "Wifi select screen redlines" into jb-dev
4837a691ceb4a5d7114d3f3be8352dde3e0f084c 16-May-2012 Irfan Sheriff <isheriff@google.com> Use icons in wifi settings

Bug: 6469022
Change-Id: I1bbd7681f3800db9387eb998da78cf0a42109600
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fc86669031e9c11efa688cbf95e53c77dbc0a03d 14-May-2012 Russell Brenner <russellbrenner@google.com> Wifi select screen redlines

Bug: 6458336

Use proportional layout when wifi settings is used
by setup wizard

Change-Id: I91f50df29b23b1bece9cbd65a1426f8bc8d7c7f7
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e99006f75b2639dbe910a318516f13b13af47480 16-May-2012 Russell Brenner <russellbrenner@google.com> Merge "Add wps icon to wifi panel" into jb-dev
fc1281e6a80951321d9bc46c8eee27da1a4ba3ed 16-May-2012 Russell Brenner <russellbrenner@google.com> Add wps icon to wifi panel

Bug: 6449333
Change-Id: Iba74e895105253594bcfe8f0d98353714a816065
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
53fa78fcb237e52733d00a93a29485c4b3d7d290 15-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Push wifi direct to overflow menu" into jb-dev
0c925dc71598c3042c75143a57331acf1c949cd0 15-May-2012 Irfan Sheriff <isheriff@google.com> Push wifi direct to overflow menu

Bug: 6469022
Change-Id: I62e4b4372416a5fbaf43a52be71f7291b761997b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
44a49ed67e96c739eabf09520ef432c7f421b486 10-May-2012 Russell Brenner <russellbrenner@google.com> Include Add Network button for Setup Wizard

To allow first-time users to set up on networks with hidden SSID,
include this button on the action bar. Temporarily using
placeholder text until artwork is available.

Bug: 6446220
Change-Id: I437ad3f37b42b93f7a0c6838cbb0c5090073e32d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0575736cdc13bd08e42a954c7699d3937679b561 06-May-2012 Andrew Flynn <flynn@google.com> Allow WiFi picker to exit after a valid connection is made

Choice is passed in via boolean extra and has two effects:
* A valid network connection exits the picker.
* The next button (if there is one) is hidden.

This functionality will be used for SetupWizard initially.

Bug: 6428046
Change-Id: Ieeed3a9f1013cccd76bd4762131747a57a38ce9c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
bfff317559045481a71acf2bd8f6c304f078c457 08-May-2012 Andrew Flynn <flynn@google.com> Hide Back button when requesting intent says to

Change-Id: I79ed35843500f20367568510ea8df3afe543ede8
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
cfadc35af8236cedb157a89b3c591c1afb2b761c 06-May-2012 Russell Brenner <russellbrenner@google.com> Add WPS Push Button back into Setup Wizard Wi-Fi

This isn't yet the image button shown in the UX flows, but pending
artwork and some potential tricky Preference layout changes, this
will give access to the WPS functionality.

Bug: 6449333
Change-Id: Ibda0e48cf972dad10c7e92a7482fca9b3c104559
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a90015c2c9795479ce6f1896f443948d615fd0c5 01-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Add wifi direct menu only for supported devices" into jb-dev
e8d79cf188a79c44ea6a801c2e101564ab630288 01-May-2012 Irfan Sheriff <isheriff@google.com> Add wifi direct menu only for supported devices

Bug: 6421096
Change-Id: Iaf0ad85e97be8d750dd74808f840c6731d8130fd
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3ab5c6838f01cd6306c0ca2728f3c01e29a8318f 28-Apr-2012 Irfan Sheriff <isheriff@google.com> Ignore invalid network forget

Bug: 6397063
Change-Id: I066bd45e95b7e8671bc7dfcb83e46246f110b3a9
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fc5dd2cbf0d614f661d513ba6e672b8731d8ea6b 23-Apr-2012 Russell Brenner <russellbrenner@google.com> Restore look of Wi-Fi panel for Setup Wizard

As part of the Wi-Fi refresh, this CL hides the action bar, menu, and
Settings icon in the context of the Setup Wizard. Dead code related
to WifiSettingsForSetupWizardXL has also been removed.

Bug: 5364589
Change-Id: Ib6716500153879b939a18a7007f1f6521b73890b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9da80a90bec430c52f78d6a951687a208d311d9e 24-Apr-2012 Amith Yamasani <yamasani@google.com> Fix NPE due to delayed event handling.

a.k.a., annoying monkeys.

Bug: 6336430
Change-Id: Ie038a71d0ae66b3f30ccd704529f767fa2058542
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b0b37ae21c172491bc170659b5f429601858ddc1 24-Apr-2012 Amith Yamasani <yamasani@google.com> Help menus for several screens.

Bug: 5144896
Change-Id: Ib2f5146f6f62f2a33261bb165c3bf1bf13b22f38
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6243e8e466fae6d1828e1862586c07fc4eabf4c7 09-Apr-2012 Vishal Mahaveer <vishalm@ti.com> Wifi: Update message when scan result is empty

Handle case when Wi-Fi scan result is empty

Change-Id: I03ccbf2603367efa3c6dfe20514e8c7c5a68b5d9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6ac5554d3006451c2d0bf9250a6ac9e77d572b0d 07-Mar-2012 Irfan Sheriff <isheriff@google.com> P2p UI fixes

- Move Wi-Fi direct as a setting in Wi-Fi
- Handle some UI refresh issues

Change-Id: Idc43a2ca98acc4b904ca1f5fe0b1447ee612f218
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
90380120e72a9bebd2fd198372c423afc9b0eeec 28-Feb-2012 Irfan Sheriff <isheriff@google.com> Enhance and fix WPS UI

- Fixes WPS usage for open network
- Exposes WPS on UI for easy access to push button and pin based techniques
- Adds support for cancelling WPS
- Adds a dialog that reports a progress since WPS can take quite a bit of time
to complete

The WpsDialog code is enhanced from contribution by yoshihiko.ikenaga@jp.sony.com
on partner source.

Change-Id: Ib0103507e0192e8195e7bfeb1c8e8855c20e23ca
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8f2f08e0eefaea2cff27beae9c43b3baac81dee6 24-Feb-2012 Irfan Sheriff <isheriff@google.com> Use new WifiManager API

Change-Id: I9cc092e98412146a07c1829cacab47b8cea0bc9a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
09a9b38fbccd4c6e62f042d8bb326f9b6ef9a8f0 14-Feb-2012 Irfan Sheriff <isheriff@google.com> Add support for wifi verification before connect

Change-Id: Ie1fb9c2fad4f75985077236eab61c296314f4fe4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
cc38b493927167f9c8aa43020c1bf4d3a870abf0 26-Aug-2011 Isaac Levy <ilevy@google.com> WifiSettings cleanup; emptyListi() instead of null

Change-Id: I0fced1f00ff259aed98988f0913383c50a3c6427
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fdac5bae251bd0b569c38aa8575b89ba0895911c 25-Aug-2011 Isaac Levy <ilevy@google.com> Speeding up WifiSettings AP list printout

Change-Id: Idc82ba7320469e05984ba6ac9f7d2cf927dfaa00
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9284d48a8a2da4b84ebe4efeb9be7385b85267da 23-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Autojoin new unsecured networks without dialog"
22d441acdba0fb7b99f5958ddd0198f4c371b2a7 23-Aug-2011 Isaac Levy <ilevy@google.com> Autojoin new unsecured networks without dialog

Unsaved, open wifi networks will connect on single click
without opening the connect dialog box

Change-Id: I71da155aa8b711309f0ed7eca4bd22a254db28c5
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
348b62e6e9568166a17b1304296e0f08aee97cf5 20-Aug-2011 Gilles Debunne <debunne@google.com> Bug 5078738: some options moved to overflow menu

Change-Id: I4ea41dfcd2b0d05de870fb8af5a7614970538491
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e1246c52632adff6623c525958c875690fa996b0 18-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Follow preferences padding changes in framework."
8b2bf2e53814a20f09f658554cde61657df8ac99 12-Aug-2011 Isaac Levy <ilevy@google.com> Changed wifi status lines per UX consult

Change-Id: I656fa2c5c52338b320796a919edb5018e7b68851
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
dcf8ba9eb233b4dadd1e198b7ec6ba413c6583c1 17-Aug-2011 Jeff Sharkey <jsharkey@android.com> Follow preferences padding changes in framework.

Change-Id: Ia83237290da035e5ee7a2e92ef56fc02838aac56
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c1eab91f073313d84e67b4626f008aa3520c9f3a 08-Aug-2011 Gilles Debunne <debunne@google.com> Wifi state reset when disconnected

https://review.source.android.com/19086

Change-Id: Ie7367f2240b94569fed3120244f1cb268bb09206
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3d13110d40b972a44c80558e0179323f9b330b2f 04-Aug-2011 Amith Yamasani <yamasani@google.com> Save and restore wifi dialogs on screen rotation.

Bug: 4981732

Change-Id: If065f9af93af405d954fde044351e473d62ea91b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
cd8e5246f1d538384dae87b8d2867ba3e44a6981 25-Jul-2011 Gilles Debunne <debunne@google.com> Text instead of icons in account settings options

Also changed the default style to remove the opaque title background.

Change-Id: I948d9a15961223c3703bb607e2e5a6bf41e0ff5e
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b98463f8b0de186dc263217286449a76d6df91a8 30-Jun-2011 repo sync <isheriff@google.com> Updated: Wi-Fi p2p initial UI implementation

Change-Id: If60f42f76fa07a868d2e11b012b4697252c69f5f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
18e9992a5e5f515566aa9ea861b2e1a3c2450ebc 30-Jun-2011 Gilles Debunne <debunne@google.com> Changed text and appearance when Wifi/Bluetooth is off

A TextView is used as an empty view, centered on screen with the message.

Change-Id: I33825775d6b2ed212e5839cfac84d055b9336667
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
dcff7338ad5dd9a883c735afaed1a0e73ae8eb74 01-Jul-2011 Gilles Debunne <debunne@google.com> AdvancedSettings replaced by AdvancedWifiSettings

Change-Id: Ie51d14c9961e8780c8774bbe56e113cf85357817
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
dc7101ff883d3b91a7b5d2d0e813109aa05d1af3 27-Jun-2011 Gilles Debunne <debunne@google.com> Split ActionBar in Settings

Made menu item visible to force action bar, changed style.

Also change parent_fragment for items that have been moved to top level (wifi,
bluetooth, development, battery).

Change-Id: I62932ba55356abdfbf94942f5b4efaa0f15dbd6a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e78c1879058571c00879f0d3e756951302adf513 21-Jun-2011 Gilles Debunne <debunne@google.com> Settings refactoring

Wifi and bluetooth pane refactored, main toggles moved to left pane.

Change-Id: I42ea4cf3bdf24158f3c67e0dea311258206cd78a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
32232fd9f2751b8618111831749ace5c9df021e8 09-Jun-2011 Irfan Sheriff <isheriff@google.com> am 4a1b8898: am f448c32d: Merge "Fix UI settings display issues" into honeycomb-LTE

* commit '4a1b8898c76a98f14bbc1690f172ec0e6171fab2':
Fix UI settings display issues
317e0aa530760ee323c7a98321d9b34a2ffa1d41 07-Jun-2011 Irfan Sheriff <isheriff@google.com> Fix UI settings display issues

- Update access points to reflect the latest IP configuration
- Show IP list for static IP networks

Bug: 4391449
Change-Id: If8fb6fe8bdca9d6e635b1b12927c17e1661f200c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d4023b7cca11e33e84df39dee9e9a737efab47c2 25-May-2011 Brian Carlstrom <bdc@google.com> Integrating keystore with keyguard (Part 4 of 4)

Summary:

frameworks/base
keystore rewrite
keyguard integration with keystore on keyguard entry or keyguard change
KeyStore API simplification

packages/apps/Settings
Removed com.android.credentials.SET_PASSWORD intent support
Added keyguard requirement for keystore use

packages/apps/CertInstaller
Tracking KeyStore API changes
Fix for NPE in CertInstaller when certificate lacks basic constraints

packages/apps/KeyChain
Tracking KeyStore API changes

Details:

frameworks/base

Move keystore from C to C++ while rewriting password
implementation. Removed global variables. Added many comments.

cmds/keystore/Android.mk
cmds/keystore/keystore.h
cmds/keystore/keystore.c => cmds/keystore/keystore.cpp
cmds/keystore/keystore_cli.c => cmds/keystore/keystore_cli.cpp

Changed saveLockPattern and saveLockPassword to notify the keystore
on changes so that the keystore master key can be reencrypted when
the keyguard changes.

core/java/com/android/internal/widget/LockPatternUtils.java

Changed unlock screens to pass values for keystore unlock or initialization

policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
policy/src/com/android/internal/policy/impl/PatternUnlockScreen.java

KeyStore API changes
- renamed test() to state(), which now return a State enum
- made APIs with byte[] key arguments private
- added new KeyStore.isEmpty used to determine if a keyguard is required

keystore/java/android/security/KeyStore.java

In addition to tracking KeyStore API changes, added new testIsEmpty
and improved some existing tests to validate expect values.

keystore/tests/src/android/security/KeyStoreTest.java

packages/apps/Settings

Removing com.android.credentials.SET_PASSWORD intent with the
removal of the ability to set an explicit keystore password now
that the keyguard value is used. Changed to ensure keyguard is
enabled for keystore install or unlock. Cleaned up interwoven
dialog handing into discrete dialog helper classes.

AndroidManifest.xml
src/com/android/settings/CredentialStorage.java

Remove layout for entering new password

res/layout/credentials_dialog.xml

Remove enable credentials checkbox

res/xml/security_settings_misc.xml
src/com/android/settings/SecuritySettings.java

Added ability to specify minimum quality key to ChooseLockGeneric
Activity. Used by CredentialStorage, but could also be used by
CryptKeeperSettings. Changed ChooseLockGeneric to understand
minimum quality for keystore in addition to DPM and device
encryption.

src/com/android/settings/ChooseLockGeneric.java

Changed to use getActivePasswordQuality from
getKeyguardStoredPasswordQuality based on experience in
CredentialStorage. Removed bogus class javadoc.

src/com/android/settings/CryptKeeperSettings.java

Tracking KeyStore API changes

src/com/android/settings/vpn/VpnSettings.java
src/com/android/settings/wifi/WifiSettings.java

Removing now unused string resources

res/values-af/strings.xml
res/values-am/strings.xml
res/values-ar/strings.xml
res/values-bg/strings.xml
res/values-ca/strings.xml
res/values-cs/strings.xml
res/values-da/strings.xml
res/values-de/strings.xml
res/values-el/strings.xml
res/values-en-rGB/strings.xml
res/values-es-rUS/strings.xml
res/values-es/strings.xml
res/values-fa/strings.xml
res/values-fi/strings.xml
res/values-fr/strings.xml
res/values-hr/strings.xml
res/values-hu/strings.xml
res/values-in/strings.xml
res/values-it/strings.xml
res/values-iw/strings.xml
res/values-ja/strings.xml
res/values-ko/strings.xml
res/values-lt/strings.xml
res/values-lv/strings.xml
res/values-ms/strings.xml
res/values-nb/strings.xml
res/values-nl/strings.xml
res/values-pl/strings.xml
res/values-pt-rPT/strings.xml
res/values-pt/strings.xml
res/values-rm/strings.xml
res/values-ro/strings.xml
res/values-ru/strings.xml
res/values-sk/strings.xml
res/values-sl/strings.xml
res/values-sr/strings.xml
res/values-sv/strings.xml
res/values-sw/strings.xml
res/values-th/strings.xml
res/values-tl/strings.xml
res/values-tr/strings.xml
res/values-uk/strings.xml
res/values-vi/strings.xml
res/values-zh-rCN/strings.xml
res/values-zh-rTW/strings.xml
res/values-zu/strings.xml
res/values/strings.xml

packages/apps/CertInstaller

Tracking KeyStore API changes
src/com/android/certinstaller/CertInstaller.java

Fix for NPE in CertInstaller when certificate lacks basic constraints
src/com/android/certinstaller/CredentialHelper.java

packages/apps/KeyChain

Tracking KeyStore API changes
src/com/android/keychain/KeyChainActivity.java
src/com/android/keychain/KeyChainService.java
support/src/com/android/keychain/tests/support/IKeyChainServiceTestSupport.aidl
support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
tests/src/com/android/keychain/tests/KeyChainServiceTest.java

Change-Id: I80533bf8986a92b0b99cd5fb1c4943e0f23fc1c8
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1ad4824d848d67e185f06b4fdce86f1caeb0d95e 08-Mar-2011 Amith Yamasani <yamasani@google.com> am 35bc6b5f: Wifi disconnect policy summary text should not contain "mobile data".

* commit '35bc6b5f151ea073522f14067eb92aab3a99bc7d':
Wifi disconnect policy summary text should not contain "mobile data".
35bc6b5f151ea073522f14067eb92aab3a99bc7d 08-Mar-2011 Amith Yamasani <yamasani@google.com> Wifi disconnect policy summary text should not contain "mobile data".

Bug: 4026299

Change the summary if it is a wifi-only device.

Change-Id: I433113d9fc430ab06efec81b6934a03dbb17ca1b
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fb6f306a2bd29e3bea1447e857a8e6461c0b02c0 03-Mar-2011 Amith Yamasani <yamasani@google.com> am 665fc6aa: am b7e393bf: Merge "Bring back Wi-Fi sleep policy setting for wifi-only devices." into honeycomb

* commit '665fc6aadd07b831dcb72d1e04199fd26b6049b6':
Bring back Wi-Fi sleep policy setting for wifi-only devices.
967da9517f85be677750a63c8e6d6ff24955b4e2 02-Mar-2011 Amith Yamasani <yamasani@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
590e6c23b7ba4bf9a75ecfe5e6eda11d0dfa5c71 24-Feb-2011 Irfan Sheriff <isheriff@google.com> Use AsyncChannel in settings

Change-Id: I440f08dec986e4dad4b578ee4065d6063b8ef989
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0f85c48d6c77e811f4d949503f0aa3efd908834d 24-Feb-2011 Amith Yamasani <yamasani@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a93196f1651a0598d6e398f6fb3c2e513a3b7091 29-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7bdf0e73d051f176fbc20451761eb50177d69f91 29-Jan-2011 Irfan Sheriff <isheriff@google.com> Move sleep policy to main settings page

Bug: 3404049
Change-Id: I091abd737894a4adb9ebfc08b8e63bc3224b971c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9eb18f00152cd3bb490ca1dc1ccff671ea3f3a1b 25-Jan-2011 Amith Yamasani <yamasani@google.com> Fix missing title for WiFi Advanced settings.

Bug: 3360783
Change-Id: I8c22ce5a995eab26d300402471770c082f90a34a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
14cbcb7fe88dab90cb50efa3a09869bc48297170 13-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
6377e47f8b89982ebfa381542a301606a4bbb06d 16-Jan-2011 Irfan Sheriff <isheriff@google.com> Add UI to report WPS overlap error

Bug: 3354319
Change-Id: I4584bc3a820ace1232026920c4dc29e6b273461c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4de7499d7cee5ccbbe656ad4aa96102959356b65 16-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "Add feedback dialogs for WPS" into honeycomb
267d51a68a6e2bc40b90d199425af88a7a824f53 16-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Disable long-press behavior in setupwizard.

Bug: 3355243
Change-Id: Ibe15da5ced91f975ca9c9c3c4d42cbd1c753f9d4
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
dee5b268925641c2e8f6280ce817fafa7e76d953 13-Jan-2011 Irfan Sheriff <isheriff@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4f0cd58e86c173672099f02f94b8a4a3bead574d 12-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show password field when authentication failed." into honeycomb
cde3083fb539e87728a17a0bb491314530a29643 09-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9e3a4700b6f6035c6ce79b0194ca0cff5f0f9574 11-Jan-2011 Amith Yamasani <yamasani@google.com> Remove extra button bar.

Bug: 3058024

Change-Id: Ib3c2620869729f8916178ea0c0e899635b470a8f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
935d6e930970e550ea7134799bc587f88fb96499 07-Jan-2011 Amith Yamasani <yamasani@google.com> Don't add wifi entries twice, when returning from another activity.

Bug: 3209730
Change-Id: I7408a56fc10359e508be5a1d27492da2227335ce
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8630cde72bde17dd3aa59326596df7b9c0d6183f 05-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove unnecessary codes around WifiSettings.

Bug: 3321110
Change-Id: Iaac35a507b8e46e2d4702f0e5cda7b515a57db67
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0688f251af533c09682c791ae20834ab7854d7d7 28-Dec-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refresh layouts for SetupWizard.

- DateTimeSettingsSetupWizardXL
- WifiSettingsForSetupWizardXL

Bug: 3308677, 3137755
Change-Id: Ifdf67aa7521de7ef0286fea2b15ce693fbf5d5ce
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
cdbc80afb2dd191e1e2938a9939a1e11b5fd17ff 08-Dec-2010 Irfan Sheriff <isheriff@google.com> Use WpsConfiguration for new API

Change-Id: I4c1544178bcb29e751db56edb781faf9145cdf86
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c1bad6bc68020590b7d6df50fdacaa28201b006f 04-Dec-2010 Irfan Sheriff <isheriff@google.com> scan immediately when user indicates so

Bug: 3242989
Change-Id: Ia15d7a61a40b64830a7840b7d31e6b5f96b2ad78
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
afc2aacf0015fbb3a79b1f29ce552fe35efe58b7 03-Dec-2010 Irfan Sheriff <isheriff@google.com> Use new config change broadcasts

Bug: 3237735
Change-Id: I29e2807f76d54354bf501b2e7655f49386e6bf95
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
582ab4d414c21f71cf1e4df658b304d1a409c155 23-Nov-2010 Irfan Sheriff <isheriff@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
52727dd1fbca7612c2179b50689cd77f8f939b1a 17-Nov-2010 Irfan Sheriff <isheriff@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
58b0291fe6e6e47bf3d7457d8cf2648b8ce4a1ae 09-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3dd06301fae98494c779afb1adb606a1354f0323 08-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8b3b876c096acb93ec8736851e47e2ba3ce276e5 04-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix UI for WifiSettings for XL screen

Change-Id: I874e1e8d86e8b219414f6bf2ff945ea4f9ab7a6c
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1dc3715e3ac5100b1531fb2bdc7232d2c3508846 30-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
e45e13f47ad5e09aa8291d81a03a136618b383c0 22-Oct-2010 Irfan Sheriff <isheriff@google.com> UI for wps pin from device

Bug: 3119043
Bug: 3112178
Change-Id: I573146ed0c834cb88d5f42c25fe0be3ed501a321
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
55de702961642521e247f155963644df81756215 22-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Disable Wifi when a user press cancel in XL setup

Bug: 3122182
Change-Id: Id333b9ede9093fa7fb8aa256b720effa5abf290d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c05efc1df7576b05d878734c7a5b220b5c9e3bb9 19-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> UI refresh

Bug: 3110575
Change-Id: Ia6ffef6de8882920b89372052b5e29968bedfe5f
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9cf1b00657a9af5a6a4d9692fc4fed554258515d 09-Oct-2010 Irfan Sheriff <isheriff@google.com> Fix issue with limiting access points

There should not be a limit on the general
settings screen to display access points

Change-Id: I81fd438c7464a229f00dcddca359476d8684a349
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fef4125d4e5db8d35a3c76041fdfde9a12627480 06-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Disable buttons during first scan.

Also remove status manager code, as they should not be here.

Bug: 3069020
Change-Id: I6fcf8470066f96b7f608ceb519b0783e44307846
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
3b6aa41cce9dafa48dfbb3e93ea856610de1f1e7 30-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Improve UI of WifiSettingsForXL

Change-Id: Idd25251581577246ff3fb6820b9c569454292593
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5d3c5cb9d0134c02ee0a5a91baa2e90d83a5dedd 29-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix misc problems happening in SetupWizard XL

Change-Id: I6ba0813f36625de3d86543953972869657be50be
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
86eaa09aa42e3281ed6c8ea85e09d4875973c4bf 24-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Modify implementation around SetupWizard XL

Bug: 3005211
Change-Id: Ia01957725956d570370aceeab01750d77069001a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b3024fa6a0359f18b93fd8aaf197fce59f806ede 17-Sep-2010 Irfan Sheriff <isheriff@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7e7ae9e59d1d3b7f1346955ccb58f39f3ee769db 14-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fragmentize wifi.AdvancedSettings.

Change-Id: I3dde2eb604886a8d0719549eabac76fadc74c220
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
b962d6566c99edf9950b5d05c5f08c56d1f850fe 14-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f027ce5e0223799f98f6d297b40ab57c8a7a8b5c 31-Aug-2010 Irfan Sheriff <isheriff@google.com> Add static IP UI

Remove the existing UI and add per network static IP config option

Change-Id: I9b8636e1559de9691144fdb54e20d40985896650
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
a41a9286ab80f2ed18176aa0b3261f9db7f72944 13-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove unnecessary comment.

Change-Id: I4532a3b042f3dfee4f1a1fe3c26111ed8b00d023
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5cd60eb8aa5a4d5cf1a850ddd05d4f94eae1eb2f 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add modifications which should have been in the change
I520d690d3301837d32f91dad54a973a379ce1989

Change-Id: Iecca6b4fef2ec42a62273035b096ccedcea94d78
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d36699282cbd0a6897f425106081d3f2c0db55d4 27-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9c8bde576ab18fcfe653587f3e63604430c8791c 25-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
d821c7adcccda6024c3e82013f1579507f528949 10-Aug-2010 Irfan Sheriff <isheriff@google.com> asynchronous API changes

Use the simplified connect, save & remove async API

Change-Id: I5754f1772163bcb4ab0ae18cab3747e17c21531a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7add00049ac150c4b8c0e473a9baca70cf5e8aa8 04-Aug-2010 Irfan Sheriff <isheriff@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
de5302577f8c8ce117da16e3bb3e857d2831a623 17-May-2010 Chung-yih Wang <cywang@google.com> am 5dcdbb5c: am 8719f0d2: am 8c81257f: Fix the double-quoted SSID issue.
8c81257f70fabeaa505e292bd0c2226dd5eefc4c 15-May-2010 Chung-yih Wang <cywang@google.com> Fix the double-quoted SSID issue.

Bug id http://b/issue?id=2684571

Change-Id: I0f1e508b9a3d0fefcef28235380392368a51e42a
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c02e258eaae69e475df3825aa71167a43b573b84 17-Apr-2010 Irfan Sheriff <isheriff@google.com> am e7879010: am ea87b6d7: Merge "Stop scanning after errors" into froyo
e81497095bd97a14db07d870cb9f57aa0c220078 16-Apr-2010 Irfan Sheriff <isheriff@google.com> 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
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5536c4a052ed307028394fcd2cafe141d723e54b 10-Apr-2010 Irfan Sheriff <isheriff@google.com> am a4bbf553: am 3957b3c1: Merge "scan only when wifi is enabled" into froyo
2215c7f86895ce1400e9d0cde7ec3326713a5f5b 09-Apr-2010 Irfan Sheriff <isheriff@google.com> scan only when wifi is enabled

Bug: 2570611
Change-Id: Ibb51dee8ec110179ec28f9469526a1fe61e74d00
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f5a6e5bfa9497e41d518c24d1b5f3b235962a379 05-Apr-2010 Irfan Sheriff <isheriff@google.com> am dbb0a7ed: am 6e74d41b: Fix network disable on connect
6e74d41bd0525459c43ed010e8f049ffc20ca362 03-Apr-2010 Irfan Sheriff <isheriff@google.com> Fix network disable on connect

If we dont have an updated access point list
when we are re-enabling networks after connecting,
we could end up keeping some networks disabled.

This could happen if there is no event that
triggers an access point before enabling networks

Update the current access point list
right before enabling all networks.

Bug: 2567770
Change-Id: Ieb1ac8147d4acb05a6d13c44396653f0af94643d
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
79470d1a66f479919c13e27546391439cafa0ee7 31-Mar-2010 Freeman Ng <tenorslowworm@google.com> wifi settings option to only enable Next button once a wifi connection is established

Change-Id: I4b346648bce4b93f4885f1577a1510dcd18d8df5
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
2d70273673e2f3b83a52dc5baa206a568fe5b3bd 06-Mar-2010 Adam Powell <adamp@google.com> Added null check for monkey behavior
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
af7b2d8a23d297194365db74518cd67c58b9f48d 05-Feb-2010 Chia-chi Yeh <chiachi@android.com> WifiSettings: enable all networks only when connected, disconnected, or failed.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
7d6bfbfc309d9c596fb25429ab89c528660b07f4 05-Feb-2010 Chia-chi Yeh <chiachi@android.com> WifiSettings: enable all networks when state is changed.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
9dee8a96c5682aebff50adc8c87519ee6c36e3ef 04-Feb-2010 Chia-chi Yeh <chiachi@android.com> WifiSettings: tweak the order of calls to registerReceiver() to make the UI better.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
065cd4be6471084863c6560b8404dfdeaf4f2154 03-Feb-2010 Chia-chi Yeh <chiachi@android.com> WifiSettings: rename WifiSettings2 to WifiSettings.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
df90dd9f55886edd80e44d4bec3cd12d8d3a9444 03-Feb-2010 Chia-chi Yeh <chiachi@android.com> WifiSettings: remove dead code.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
c9a663abf759fdce0006e88fdc7333cf00515345 18-Dec-2009 Irfan Sheriff <isheriff@google.com> WifiSettings has leaked window

Fix for leaked window
Bug: 2311236
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
eb48882e18ba9b1241a4d79c0cd45d6994b6dec6 23-Oct-2009 Neel Parekh <neel@google.com> am 62d3407d: Minor change to use defined key rather than a string.

Merge commit '62d3407de4a843cb83397fa757bc89653d78c800' into eclair-mr2

* commit '62d3407de4a843cb83397fa757bc89653d78c800':
Minor change to use defined key rather than a string.
a2bfad13995d8ee00ab084f1ce5c31aea5db1317 23-Oct-2009 Patrick Scott <phanna@android.com> Fix the build.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
62d3407de4a843cb83397fa757bc89653d78c800 23-Oct-2009 Neel Parekh <neel@google.com> Minor change to use defined key rather than a string.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
0bc64d45b418c70dca77a74ddbea62612ae4fe19 23-Oct-2009 Neel Parekh <neel@google.com> resolved conflicts for merge of e304b9f4 to eclair-mr2
e304b9f4f7f5bf07522fcc05615d172abd6c52a3 23-Oct-2009 Neel Parekh <neel@google.com> Add a intent extra to only show the access points in the settings menu.

Bug: 2198865
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
69ea4234a06ec7b864e9fa8c62e404b079fa7a6d 13-Oct-2009 Chung-yih Wang <cywang@google.com> Remove the getHumanReadibleSsid().

Since we already push down the quotes handling in WifiService.java,
there is no need of the function.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
fc0139aa28d6d94ae868d6d794fa0c8ed621ecf8 22-Sep-2009 Chia-chi Yeh <chiachi@android.com> WifiSettings: use Credentials instead of CertTool.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
f71c8b40b5a92e21d09dd75880e16aa857c1b6cb 09-Sep-2009 Hung-ying Tyan <tyanh@google.com> Add install-cert-from-sdcard in Security settings

Also:
* Resume keystore states in SecuritySettings.onResume().
* Use action strings defined in CertTool and Keystore.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
844bb946afffb0e895ed7801c8dde969c599fc7f 31-Jul-2009 Chung-yih Wang <cywang@google.com> am c538b651: Fix some UI flow issues when the keystore is locked in WiFi setting.

Merge commit 'c538b651a23287ab25584995c6c4b7a68ece027c'

* commit 'c538b651a23287ab25584995c6c4b7a68ece027c':
Fix some UI flow issues when the keystore is locked in WiFi setting.
c538b651a23287ab25584995c6c4b7a68ece027c 30-Jul-2009 Chung-yih Wang <cywang@google.com> Fix some UI flow issues when the keystore is locked in WiFi setting.

To make it more user friendly, we need to continue on what
users intend to do after unlocking the credential storage.
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
bd7f05701a02233a6422b9a8e680f9b6264d8c12 06-Jul-2009 Chung-yih Wang <cywang@google.com> am eb7836f1: Apply the new keystore and certtool library in Wifi setting.

Merge commit 'eb7836f11ec4e9753db7c6ecd9414e153bb7bdbe'

* commit 'eb7836f11ec4e9753db7c6ecd9414e153bb7bdbe':
Apply the new keystore and certtool library in Wifi setting.
eb7836f11ec4e9753db7c6ecd9414e153bb7bdbe 06-Jul-2009 Chung-yih Wang <cywang@google.com> Apply the new keystore and certtool library in Wifi setting.

1. Certificate related APIs were moved to CertTool. Therefore,
we have to migrate to CertTool instead.
2. Unlock the keystore if it is not unlocked yet(send the intent
out to credential storage) for EAP access points.
3. Add Password field for WPA_EAP and IEEE8021X(this is for
phase 2 auth.)
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
8762093e0094e09493fa6cbac8e8fbf265f18165 15-May-2009 Michael Chan <mchan@android.com> Findbug fixes in Settings app

modified: src/com/android/settings/ApnPreference.java
modified: src/com/android/settings/ApnSettings.java
modified: src/com/android/settings/BandMode.java
modified: src/com/android/settings/BatteryInfo.java
modified: src/com/android/settings/LanguageSettings.java
modified: src/com/android/settings/ManageApplications.java
modified: src/com/android/settings/RadioInfo.java
modified: src/com/android/settings/SdCardSettings.java
modified: src/com/android/settings/UsageStats.java
modified: src/com/android/settings/ZoneList.java
modified: src/com/android/settings/bluetooth/LocalBluetoothDevice.java
modified: src/com/android/settings/deviceinfo/Status.java
modified: src/com/android/settings/quicklaunch/QuickLaunchSettings.java
modified: src/com/android/settings/wifi/AccessPointDialog.java
modified: src/com/android/settings/wifi/AccessPointPreference.java
modified: src/com/android/settings/wifi/WifiLayer.java
modified: src/com/android/settings/wifi/WifiSettings.java
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
afc4ab2ffbb8327ddce9907961295a32cbf49d0f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
4e14e5ccbf1ef27220419849133d482a546d5c04 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
1152aff9d0767e528aa4a40cc8acb51b9c21d2e7 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
5962e18d0e5741511e78102a3746828b05f9f9ea 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
abc48f80d8747b4fc051b7dd364355ee667a9bac 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java
de2d9f5f109265873196f1615e1f3546b114aaa7 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Settings/src/com/android/settings/wifi/WifiSettings.java