Commit Graph

32991 Commits

Author SHA1 Message Date
Matthew Fritze
9955db6360 SearchFeatureProvider's context field is removed
SearchFeatureProvider was holding on to a context and
outlived the SettingsActivity, thus leaking the activity.
The context was passed into most methods, and thus it
makes more sense to pass it in to every method.

Bug: 33677967
Test: Run MakeSettingsRoboTests
Change-Id: Ia82f30e7e0b83587b4baeef28e81da6b8e4303fe
2016-12-20 11:39:10 -08:00
Nathan Harold
d18b9fcde0 Always include BAND_MODE=AUTOMATIC in the Radio Band Mode List
To facilitate user recovery from issues where the band mode
list is incomplete and may not report the full list of bands,
the user should *always* have the ability to set the band mode
selection to AUTOMATIC.

Bug: 28124606
Test: compilation, UI check
Change-Id: Ib961d9b058ade5a51dfec0777971c8c98dee2033
(cherry picked from commit f8555e4812)
2016-12-20 11:34:05 -08:00
Julia Reynolds
d6835a20fc Support showing notifications as badges.
And remove unneeded app level settings.

Change-Id: I88f506b0704195181d1748a3135f8ee0f39b774f
Test: manual for now. will add tests when have real mocks for the pages
2016-12-20 13:07:04 -05:00
Fan Zhang
829faf6c45 Hide unnecessary toggle on nightlight display preference.
Change-Id: I8ef7cbc1e065c34071d3e0ca8f91f419e269236d
Fixes: 33761785
Test: Visual
2016-12-20 10:00:56 -08:00
Sean Stout
b9245bf8e5 Renamed "Demo mode" to "System UI demo mode"
Test: Manually verified string in "Developer options"
Bug: 33694332
Change-Id: I9597b35b4a0a4f475a01ae8712123ca49c8f9b8b
2016-12-20 17:39:25 +00:00
TreeHugger Robot
ad5ccad461 Merge "Implement always-on VPN separate lockdown setting" 2016-12-20 16:45:48 +00:00
Robin Lee
e7347dd8c0 Implement always-on VPN separate lockdown setting
Allows Settings to control whether always-on VPN is required for the
connection to complete, or if it is offered on a best-efforts basis.

Change-Id: I5eb273a99e7559adc66b05e647c9130a819f99d4
Test: runtest -x tests/app/src/com/android/settings/vpn2/VpnTests.java
Fix: 32420810
2016-12-20 15:20:43 +00:00
Nathan Harold
f8555e4812 Always include BAND_MODE=AUTOMATIC in the Radio Band Mode List
To facilitate user recovery from issues where the band mode
list is incomplete and may not report the full list of bands,
the user should *always* have the ability to set the band mode
selection to AUTOMATIC.

Bug: 28124606
Test: compilation, UI check
Change-Id: Ib961d9b058ade5a51dfec0777971c8c98dee2033
2016-12-19 18:04:52 -08:00
Doris Ling
dea703544a Merge "Add new method getExtraIntentAction() in DashboardFeatureProvider." 2016-12-19 23:53:37 +00:00
TreeHugger Robot
a4ddf57270 Merge "Left align preferences and graphs to leave space for icon." 2016-12-19 23:11:16 +00:00
Salvador Martinez
1cea5d199b Refresh support screen more often
Support screen is now refreshed in the onResume.
This will prevent the situation where you open the
support tab and then you cross a hours of operation
boundary and the button is not updated.

Test: make RunSettingsRoboTests
Bug: 33272736
Change-Id: I9312b3b6f711eda91d5d60b3ff30e5ac12bf89c1
2016-12-19 15:03:08 -08:00
Doris Ling
3d9224fd82 Add new method getExtraIntentAction() in DashboardFeatureProvider.
Add a new method to get the extra intent-filter action to be used
to query the dynamic dashboard tiles.

Bug: 32739952
Test: make RunSettingsRoboTests
Change-Id: I96d9d8bd32ebe34b7c0df00c3fb4d8900b476c94
2016-12-19 14:23:09 -08:00
Jeremy Joslin
93f09d08bc Merge "New pref toggle for network recommendations." am: a5249906ab am: 2b03ffb264 am: 6061ca1b1a
am: 1fed0c6ae7  -s ours

Change-Id: I3746879fe1ad54eb78838b515ee8bb96b74fe69e
2016-12-19 22:13:52 +00:00
Jeremy Joslin
1fed0c6ae7 Merge "New pref toggle for network recommendations." am: a5249906ab am: 2b03ffb264
am: 6061ca1b1a

Change-Id: I05753f7a5d54cd7707531c0a6cd9491c081454b3
2016-12-19 22:09:52 +00:00
Jeremy Joslin
6061ca1b1a Merge "New pref toggle for network recommendations." am: a5249906ab
am: 2b03ffb264

Change-Id: Ie4f4255740559a3018ba84df0084ff94995aa87d
2016-12-19 22:06:22 +00:00
Jeremy Joslin
2b03ffb264 Merge "New pref toggle for network recommendations."
am: a5249906ab

Change-Id: I7f39f341077bcc403c06d08a87d394f0f25f6356
2016-12-19 22:02:23 +00:00
Treehugger Robot
a5249906ab Merge "New pref toggle for network recommendations." 2016-12-19 21:54:53 +00:00
Fan Zhang
ec407ff78c Left align preferences and graphs to leave space for icon.
Bug: 33559277
Test: Visual inspection
Change-Id: Iacf9556826174a03b1cbf8a6f179b63d8686c5f5
2016-12-19 13:41:37 -08:00
roger xue
f5c786f6d6 move PreferenceController into settingsLib/core
Test: moved
Change-Id: I6578efc4d51ef5a9202b6a8ad1c7197aeda2d6bb
2016-12-19 12:41:02 -08:00
Paul Duffin
38c844eb11 Use junit instead of junit4-target
Bug: 30188076
Test: make checkbuild
Change-Id: Ic2bc905dd47d771630bb5a7047b0e290fb3dd04f
2016-12-19 14:01:32 +00:00
Jeremy Joslin
fbcff7a6b2 New pref toggle for network recommendations.
Adding a new toggle to control whether network
recommendations are enabled.

Removed the "Use open networks" pref and its associated strings
and components as it's no longer needed.

Test: Built and ran.
BUG: 33549591
BUG: 33270391
Change-Id: I03069ca30d06089600ca958f8da117564189f839
Merged-In: I7248ac32e0598d82107c150372c1fe4e9e2243a5
Merged-In: I82eed6dc7daef1c622ea4e33ce42c331e0cd786d
2016-12-18 10:33:28 -08:00
TreeHugger Robot
376f0c8943 Merge "Handle option menu click in support tab." 2016-12-17 01:28:25 +00:00
TreeHugger Robot
5f893153c0 Merge "Enable button only when scrollview reached the bottom" 2016-12-17 00:43:49 +00:00
Fan Zhang
bcfb262cc3 Handle option menu click in support tab.
Change-Id: I47b52ae25200c9fd5b948f1f85199b45f50f6b43
Fixes: 33703324
Test: RunSettingsRoboTests
2016-12-16 15:52:04 -08:00
Salvador Martinez
4e20cb429a Removed fake data
Was using fake data for testing that we could attach
payloads. This is no longer needed since we are now
attaching real data.

Test: Manual Verification on GCS
Bug: 27823357
Change-Id: I055c2b2e027f721e14ea5b6b7efccd5267018b8c
2016-12-16 15:34:59 -08:00
jackqdyulei
0b3edc728e Enable button only when scrollview reached the bottom
Bug: 28410288
Test: make RunSettingsRoboTests
Change-Id: I04653c377f7d419b6701b5589ff25961e0f5c077
2016-12-16 14:58:43 -08:00
Maurice Lam
62478b9e3e Depend on gingerbread variant of SuwLib
Test: Existing tests pass
Bug: 33094508
Change-Id: I489bbdba2cd0cf79f610c6827ee2af8e5c53a566
2016-12-16 14:11:02 -08:00
Jaewoong Jung
12010156ab Merge "Adds a menu item for additional battery info to battery settings." 2016-12-16 22:05:21 +00:00
Jaewoong Jung
1e0f8ff5e5 Adds a menu item for additional battery info to battery settings.
Bug: 33352540
Test: No additional test failures.

Change-Id: Ibfc1a9463c93d3c087ed712fe45d3d0717472c6a
2016-12-16 12:25:32 -08:00
Aurimas Liutikas
1aba712008 Merge "Point to the new checkstyle location for packages/apps/Settings PREUPLOAD hook." 2016-12-16 17:44:49 +00:00
TreeHugger Robot
1e4d5b5852 Merge "Refactor Work sounds in SoundSettings." 2016-12-16 01:37:13 +00:00
TreeHugger Robot
d8c209f0af Merge "Added survey triggering mechanisms" 2016-12-15 23:36:45 +00:00
Aurimas Liutikas
7764709ca6 Point to the new checkstyle location for packages/apps/Settings PREUPLOAD hook.
This change depends on r.android.com/314437

Bug: 33666900
Test: None
Change-Id: Ibcf177186e64e7e34493301f109ea9d4454fa3a2
2016-12-15 15:06:04 -08:00
TreeHugger Robot
a8dee23ee5 Merge "Hide next button when max fingerprints enrolled" 2016-12-15 22:57:27 +00:00
Doris Ling
2adb6ea4ec Refactor Work sounds in SoundSettings.
- final round of refactoring SoundSettings to use preference
  controller.
- add work sound controller to control all the work profile sound
  settings.

Change-Id: Ifa9f9c1f717ca292576f077311fe284325e12651
Fixes: 32276590
Test: make RunSettingsRoboTests
2016-12-15 14:53:27 -08:00
TreeHugger Robot
08951ab12f Merge "Update the Settings database to enable Payloads" 2016-12-15 22:51:32 +00:00
TreeHugger Robot
7e1f0be0b2 Merge "Removing the ActiveNetworkScorerDialog." 2016-12-15 21:38:47 +00:00
Salvador Martinez
db42a6ce0a Added survey triggering mechanisms
Surveys can now be triggered on a subset of Settings screens.
Surveys can also be modified/created for this subset of
screens remotely.

Test: RoboTests && JUnitTests
Bug: 27823357
Change-Id: I1534af5573bef6f6c65c9c99b6f5a2917c3325b9
2016-12-15 13:04:30 -08:00
Matthew Fritze
1dec073528 Update the Settings database to enable Payloads
Add Payload and Payload type columns to the settings
database. This includes extending preference controllers
to map their settings to UI components so that the
payload results can be consumed by a front end.

Change-Id: I889dcc4ff7793306718d12e1e5993386b58f21cc
Fixes: 33451851, 33390556
Test: RunSettingsRoboTests
2016-12-15 21:00:52 +00:00
TreeHugger Robot
4e8b78a201 Merge "Remove divider lines from all PreferenceFragments." 2016-12-15 18:54:33 +00:00
TreeHugger Robot
6d7e2ed023 Merge "Move a11y entry point to top level menu." 2016-12-15 18:14:26 +00:00
TreeHugger Robot
be611ab112 Merge "Build a new FooterPreference UI." 2016-12-15 17:56:28 +00:00
Bill Yi
ef9ef16f09 Import translations. DO NOT MERGE am: a48002a65a -s ours
am: e6c8409112  -s ours

Change-Id: I1e1c318f936aa9df381e86d38505a40c37ed745e
2016-12-15 08:12:03 +00:00
Bill Yi
e6c8409112 Import translations. DO NOT MERGE
am: a48002a65a  -s ours

Change-Id: I21d68ceafcfb4fa08a5e9ad6f8d6c66e4a238787
2016-12-15 08:05:57 +00:00
TreeHugger Robot
cc07eaca2d Merge "Use Activity.getActivityToken to align with mr2" 2016-12-15 06:19:11 +00:00
Bill Yi
a48002a65a Import translations. DO NOT MERGE
Change-Id: If6787baad938f8184b5b6ddb2c59317b0d6144bd
Auto-generated-cl: translation import
2016-12-14 21:03:28 -08:00
TreeHugger Robot
873dac3a75 Merge "Use new QueuedWork interface." 2016-12-15 03:13:40 +00:00
Jeremy Joslin
68230bac97 Removing the ActiveNetworkScorerDialog.
It should have been removed as part of ag/1707023.

Test: Still builds.
BUG: 33549591
BUG: 33270391
Change-Id: I82eed6dc7daef1c622ea4e33ce42c331e0cd786d
2016-12-14 18:19:48 -08:00
TreeHugger Robot
d4443e7196 Merge "New pref toggle for network recommendations." 2016-12-15 01:43:56 +00:00
Fan Zhang
4addb59265 Remove divider lines from all PreferenceFragments.
(this is partially revert of ag/I0ce486f7ac6)

- Only draw divider lines on top of PreferenceCategory and
  FooterPreference

Bug: 33601143
Test: make RunSettingsRoboTests
Change-Id: I26146dcae1603dc807e54ea431910685107be94c
2016-12-14 16:41:49 -08:00