Commit Graph

32570 Commits

Author SHA1 Message Date
jackqdyulei
c3b0724c61 Set statusBarColor to secondary_device_default_settings
The SettingsDrawer has a translucent scrim on top of status bar,
which makes the color of status bar darker. By resetting the
statusBarColor we can make the real color of status bar to
"#242424" as close as possible.

Bug: 30811708
Test: Manual - Take a screenshot
Change-Id: I639ccac9d32aff9df5854c009da1fae15ba0e71f
2017-01-03 09:40:19 -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
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
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
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
Fan Zhang
d5b48454a3 Build a new FooterPreference UI.
- Create a new layout for footer prefs.
- Create a new FooterPreference type to use the layout
- Create a Mixin to create and add the pref to screen
- Create a new lifecycle observer type to invoke mixin at right time
- Switch SettingsPreferenceFragment to use footer mixin.
- Switch FingerprintSettings to use the new footer pref.

Bug: 33579394
Test: RunSettingsRoboTests
Change-Id: I548ac39a0d120196a7ffed09b4f98bd9a80bae90
2016-12-14 16:41:49 -08:00
Maurice Lam
1b89a9a4e1 Merge "Remove WifiSetupActivity" 2016-12-15 00:36:32 +00:00
Philip P. Moltmann
231c9fbfa6 Use new QueuedWork interface.
Test: Ran SharedPreferences CTS tests
Bug: 33385963
Change-Id: I8025a087b43462324d0d45555094cbb54a671404
2016-12-14 15:02:03 -08:00
Maurice Lam
f8a325c7c6 Remove WifiSetupActivity
That activity was copied into setup wizard and is no longer used.

Also removed setup_illustration_lock_screen because that is also
not used in the current GLIF theme.

Test: Existing Robolectric tests pass
Bug: 33590605
Change-Id: Ib2ea02a5e4bce17a7ea829b854f73caf7d5c5f97
2016-12-14 22:41:58 +00:00
Fan Zhang
b75fdfcd0d Move a11y entry point to top level menu.
Bug: 31781480
Test: make RunSettingsRoboTests still pass
Change-Id: I4f50aa56603750728ce0f3c82c3da720b3e6f09f
2016-12-14 13:55:07 -08:00
Esteban Talavera
e539c886fd Merge "Check new user restriction for profile removal" 2016-12-14 19:16:28 +00:00
Zhendong Yang
b521aeb9f7 Merge "Fix crash when rotating HighPowerDetail dialog" am: 783ff43769 am: 7598c6201d am: 8711f4055d
am: 8c9e3db8d9

Change-Id: Ib6d620f89225a8258b1671d206bb617e5d1bf56f
2016-12-14 06:00:07 +00:00
Zhendong Yang
8c9e3db8d9 Merge "Fix crash when rotating HighPowerDetail dialog" am: 783ff43769 am: 7598c6201d
am: 8711f4055d

Change-Id: Idb2d601fa627dcb8268228435192392c760787d0
2016-12-14 05:53:04 +00:00
Zhendong Yang
8711f4055d Merge "Fix crash when rotating HighPowerDetail dialog" am: 783ff43769
am: 7598c6201d

Change-Id: I97e9ef07df912e7bac3c4657272feab943bcb84e
2016-12-14 05:46:08 +00:00
Zhendong Yang
7598c6201d Merge "Fix crash when rotating HighPowerDetail dialog"
am: 783ff43769

Change-Id: Ie4f4856f6e4b1bb4970013b2425bb39d34383859
2016-12-14 05:38:34 +00:00
Treehugger Robot
783ff43769 Merge "Fix crash when rotating HighPowerDetail dialog" 2016-12-14 05:30:16 +00:00
Tony Mak
e0405fc4f2 Use Activity.getActivityToken to align with mr2
Context.getActivityToken is introduced since O.
To align with MR2 and avoid unnecessary merge conflict,
pass the activity token from activity to controller.

Test: 1. make RunSettingsRoboTests
      2. Manual Test
      	a. Start SET_NEW_PASSWORD intent in user 0, set password.
         	User 0 password is set.
      	b. Start SET_NEW_PASSWORD intent in work profile, set password.
         	work profile password is set.

Bug: 32959373
Change-Id: I8577752d446a7c395ad30417f8c0c832f951d7b3
2016-12-14 02:57:14 +00:00
Tony Mak
f869b14e25 Merge "DO NOT MERGE: Fix DPM.ACTION_SET_NEW_PASSWORD" into nyc-mr2-dev am: 0e7405fc17
am: 4cce4c5170  -s ours

Change-Id: Ib636f0fe8401f3871ce2b37f86d36740367ba196
2016-12-14 02:27:31 +00:00
Tony Mak
90b13dee55 DO NOT MERGE: Fix DPM.ACTION_SET_NEW_PASSWORD am: 8a2f28a629
am: 2d45ef14e5  -s ours

Change-Id: I656993de99f93cc421590ea549bd7a20fc954643
2016-12-14 02:27:15 +00:00
Tony Mak
4cce4c5170 Merge "DO NOT MERGE: Fix DPM.ACTION_SET_NEW_PASSWORD" into nyc-mr2-dev
am: 0e7405fc17

Change-Id: Ie336a58e84b889d8700ab64b56248f0c4933c5fa
2016-12-14 02:19:24 +00:00
Tony Mak
2d45ef14e5 DO NOT MERGE: Fix DPM.ACTION_SET_NEW_PASSWORD
am: 8a2f28a629

Change-Id: I1c8cdfe6e4c052a0bee1391c9c1166868da5f6ac
2016-12-14 02:19:22 +00:00
TreeHugger Robot
0e7405fc17 Merge "DO NOT MERGE: Fix DPM.ACTION_SET_NEW_PASSWORD" into nyc-mr2-dev 2016-12-14 02:08:37 +00:00
Jeremy Joslin
66e6027da0 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: I7248ac32e0598d82107c150372c1fe4e9e2243a5
2016-12-13 15:33:55 -08:00
Fan Zhang
af71eb20c8 Merge "Always reserve space for preference icons." 2016-12-13 17:06:59 +00:00
Bill Yi
fdcd3cfd08 Import translations. DO NOT MERGE am: a4e78d242d -s ours
am: a379685253  -s ours

Change-Id: Icb5a3589fb6a0333a4a5c8a75e6c692943e1ada8
2016-12-13 04:02:26 +00:00
Bill Yi
a379685253 Import translations. DO NOT MERGE
am: a4e78d242d  -s ours

Change-Id: Ie0ee095783da15c15ba64fd736a175bb1600287a
2016-12-13 03:55:17 +00:00