Commit Graph

42107 Commits

Author SHA1 Message Date
Fan Zhang
f93fcd366a Update screen pinning state whenever it changes.
Change-Id: I98f0a7b0afcc76bcf822786e6cf3ea37004db1a8
Fixes: 71845181
Test: robotests
2018-01-11 12:42:16 -08:00
TreeHugger Robot
66898b0cc9 Merge "Update master switch style" 2018-01-11 03:00:28 +00:00
jackqdyulei
b7a35b5c06 Add metric id for anomaly fragments. am: 2fd1c9839c
am: 9bf0e057c8

Change-Id: I4d5941fb40ed03c6b4ed8563cb58bfc2a888f6be
2018-01-11 01:56:23 +00:00
jackqdyulei
9bf0e057c8 Add metric id for anomaly fragments.
am: 2fd1c9839c

Change-Id: Iff6c41c8549cdc102e954d6a429a9ab56d4e10c6
2018-01-11 01:53:47 +00:00
TreeHugger Robot
415e875324 Merge "Fix alignment in location requests screen" 2018-01-11 01:35:42 +00:00
TreeHugger Robot
9b89a98d56 Merge "Add 50% and 100% to auto battery saver settings" 2018-01-11 01:10:30 +00:00
TreeHugger Robot
343d5edfc0 Merge "Propagate extras when switching between choose lock activities" 2018-01-11 00:17:27 +00:00
TreeHugger Robot
db35899fd4 Merge "Fix NPE in SetupChooseLockpattern screen" 2018-01-11 00:15:01 +00:00
Fan Zhang
46b5474be4 Update master switch style
- When off, background grey
- When on, background accent
- Switch toggle always white, only change the slider color during on/off

Change-Id: I0ca49439f4e20e75517d503f28cc3068930591e8
Bug: 69462439
Test: robotests
2018-01-10 15:52:20 -08:00
Ben Lin
b1f6f24dcc Merge "Introduce boolean flags to show/hide items for Language & input." 2018-01-10 22:29:28 +00:00
Makoto Onuki
1e08dd8e18 Add 50% and 100% to auto battery saver settings
The settings UI will be updated for P eventually, but let's add more
options to the settings for dogfooders until the UI update happens.

Also add the current value to the choices, so that if we push a number
that's not in the choices, the settings app will work properly.

Bug: 68769804
Bug: 71762373
Test: Manual test
Change-Id: I22fd14d43f4575885b4b8e068d3df1e65f60c9e1
2018-01-10 14:22:57 -08:00
Ajay Nadathur
b14b996dbf Propagate extras when switching between choose lock activities
bug: 71715828
Test: Manually tested, added robolectric test
Change-Id: Ide18c94f52fe896aee0636ef702cd808b7d88638
2018-01-10 14:10:54 -08:00
Ajay Nadathur
6f6a7c6412 Fix NPE in SetupChooseLockpattern screen
bug: 71807569
Test: Manually tested and verified no longer crash
Change-Id: I9b6a20377f2cf7ffb9be12de7bfa59f8b1063625
2018-01-10 14:01:21 -08:00
TreeHugger Robot
537f0b816c Merge "Build slice from indexed data in SliceProvider" 2018-01-10 20:39:06 +00:00
Ben Lin
c28b46f2ea Introduce boolean flags to show/hide items for Language & input.
This adds seven new boolean flags:
config_show_phone_language
config_show_virtual_keyboard_pref
config_show_physical_keyboard_pref
config_show_spellcheckers_settings
config_show_tts_settings_summary
config_show_pointer_speed
config_show_vibrate_input_devices

Which when individually set to false, will hide the item from "Language
& input" in System. It will also hide them from surfacing in search
results.

Bug: 62379555
Test: Individual controller tests are all updated.

Change-Id: I9ef1c3037b0bec6ffa5a627006507f4f16e534c4
2018-01-10 11:27:58 -08:00
Matthew Fritze
8c96843fe3 Build slice from indexed data in SliceProvider
Connect the SliceIndexing data to the SliceProvider,
such that a query to SliceProvider can build a Slice
via the indexed data from SlicesIndexingManager.

We take the key from the Uri supplied to the SettingSliceProvider
and find a potential matching row in the indexed data. The
matched data is then used to Build a slice for the caller.

Bug: 67996923
Test: robotests
Change-Id: If51bfd1a05c3f3817ae720554f95a98fc7b002e1
2018-01-10 10:58:33 -08:00
yuemingw
533dfdfbfd Block Settings APP UI when disallow_airplane_mode is set.
Test: runtest -x packages/apps/Settings/tests/unit/src/com/android/settings/core/UserRestrictionTest.java
Fix: 67675441

Change-Id: Ice234cecf4de191b797ad4219852cf821720ab78
2018-01-10 16:37:54 +00:00
TreeHugger Robot
de63357366 Merge "Settings: Enable laser sensor toggle for user builds" 2018-01-10 10:26:42 +00:00
TreeHugger Robot
92aa8583c6 Merge changes Ie4c98617,I6a7248d9
* changes:
  Add BatteryTipDialogFragment.
  Add high usage battery tip
2018-01-10 03:15:27 +00:00
jackqdyulei
2fd1c9839c Add metric id for anomaly fragments.
1. PowerUsageAnomalyDetails
2. AnomalyDialogFragment

Bug: 37681923
Test: Build

Change-Id: Ia82fde0fa3e61b6284dc18db3018dd223a0e435b
(cherry picked from commit 725562c748)
2018-01-10 03:10:28 +00:00
TreeHugger Robot
9c76ab230f Merge "Hook up smart battery to Settings value." 2018-01-10 02:47:17 +00:00
jackqdyulei
fde637ff60 Add BatteryTipDialogFragment.
This DialogFragment handles all the tip related dialogs. This cl makes:
1. All the tips parcelable.
2. Add dialog for HighUsageTip. It also need adapter to populate app
list in dialog.
3. Add and update tests

Bug: 70570352
Test: RunSettingsRoboTests
Change-Id: Ie4c986172cfc73d8746abc7457d966c8600c6145
2018-01-09 17:33:19 -08:00
TreeHugger Robot
11c697fb2c Merge "Remove redundant assertion from test" 2018-01-10 00:57:49 +00:00
TreeHugger Robot
2d1bdd8de4 Merge "DND string fixes" 2018-01-10 00:45:24 +00:00
Malcolm Chen
c8a34adc18 Merge "Rename setDataEnabled to setUserDataEnabled." am: 43b1b97e3e am: 5e90d8ea7a
am: e99f20cd95  -s ours

Change-Id: I941272824a99adbbc86653c02551e2a93440f887
2018-01-10 00:19:49 +00:00
Malcolm Chen
e99f20cd95 Merge "Rename setDataEnabled to setUserDataEnabled." am: 43b1b97e3e
am: 5e90d8ea7a

Change-Id: I62b5c85e1737ef5ca23b2037b221a70e58121fe3
2018-01-10 00:07:09 +00:00
Malcolm Chen
5e90d8ea7a Merge "Rename setDataEnabled to setUserDataEnabled."
am: 43b1b97e3e

Change-Id: Ib11eca12b1331494972c86a18670c348abae3d2c
2018-01-09 23:56:14 +00:00
Treehugger Robot
43b1b97e3e Merge "Rename setDataEnabled to setUserDataEnabled." 2018-01-09 23:46:55 +00:00
TreeHugger Robot
463d33edf6 Merge "Tweak layouts for action button to match spec" 2018-01-09 23:32:43 +00:00
Fan Zhang
256ebf4245 Remove redundant assertion from test
It's already asserted in other tests, and is causing flakes.

Change-Id: I02ea5cf200e535410e7897a51caf1c98d1682068
Fixes: 70530199
Test: robotest
2018-01-09 15:22:19 -08:00
Antony Sargent
e2399b4ad1 Fix alignment in location requests screen
In Settings->Security & location->Location, the list of apps that have
recently requested location was moved up on the screen, and this made it
clear that the indentation of the app name was misaligned with the title
of Preference items that came after this. It turns out our custom layout
for AppPreference reserved a bit more space for icons than regular
Preference items.

While examining the layout file for location settings I also fixed a
small nit in a comment.

Fixes: 71056360

Test: Visual (go to Settings->Security & location->Location, and the app
names in the list should be indented at the same level as the Preference
items below)

Change-Id: I87e144c83cc2d13e322f65291415af037c405257
2018-01-09 15:20:28 -08:00
jackqdyulei
ca102facf0 Add high usage battery tip
1. Add both model and detector
2. Move the screen usage method to BatteryUtils
so we could reuse it.
3. Add and update the tests

Bug: 70570352
Test: RunSettingsRoboTests

Change-Id: I6a7248d9d48ee8cb6fc2c18c8c225210d49b6bc9
2018-01-09 15:00:41 -08:00
Beverly
02b81c137e DND string fixes
Bug: 63077372
Test: make ROBOTEST_FILTER=ZenModeRepeatCallersPreferenceControllerTest RunSettingsRoboTests -j40
Change-Id: Ib2002c75fe86e829bfbbca947affc28dc801cedd
2018-01-09 17:49:04 -05:00
TreeHugger Robot
5ff1df89fa Merge "Add wifi metered controls in wifi settings." 2018-01-09 22:16:10 +00:00
TreeHugger Robot
d32c43d012 Merge "Add smart battery page for battery settings" 2018-01-09 22:03:17 +00:00
Fan Zhang
88017c8451 Tweak layouts for action button to match spec
Change-Id: Ic59ee1f15f20dc431bc4a2c6df20b732842a6591
Fixes: 70903732
Test: visual
2018-01-09 13:44:06 -08:00
jackqdyulei
713fa6bee0 Hook up smart battery to Settings value.
Bug: 71502850
Test: RunSettingsRoboTests
Change-Id: Icbc99af8f681e67af54e3509b3eec40ac9d9668e
2018-01-09 13:15:03 -08:00
jackqdyulei
261c29c485 Add wifi metered controls in wifi settings.
1. Add it in wifi detail page
2. Add it in wifi dialog
2. Remove it in "Mobile network" page

Bug: 68030417
Test: RunSettingsRoboTests
Change-Id: I2e001c55f3c6c75a660e429732dfbece97b0ca9e
2018-01-09 12:44:51 -08:00
jackqdyulei
131d3b3c2f Add smart battery page for battery settings
This page contains prefs for smart battery and app restriction.

Bug: 71502850
Test: RunSettingsRoboTests

Change-Id: I194af30cbc7b2496b10098fcb67f1116e0722310
2018-01-09 12:05:36 -08:00
Jeff Sharkey
9798ae86bf Merge "Add reserved disk GID to critical component." 2018-01-09 19:27:40 +00:00
Beverly Tai
5c182d6d14 Merge "ZenModeBackend gets newest notification policy" 2018-01-09 19:18:36 +00:00
Emilian Peev
33b956d574 Settings: Enable laser sensor toggle for user builds
User builds should also have the camera lensor enable/disable
developer option.

Bug: 71702869
Test: Manual,
make ROBOTEST_FILTER=CameraLaserSensorPreferenceControllerTest
RunSettingsRoboTests -j40
Change-Id: Iaa1aadfee0351b9e5fcaa8282e4dcd7b16e9ebf4
2018-01-09 18:39:45 +00:00
TreeHugger Robot
0360957957 Merge "Improve messaging for enhanced notifications" 2018-01-09 03:16:26 +00:00
Malcolm Chen
3aaf94b518 Rename setDataEnabled to setUserDataEnabled.
Test: unittest
Bug: 69814555
Change-Id: I1d43dc1d2f720383a2f0be18560fc0fd4ff349fd
Merged-In: I1d43dc1d2f720383a2f0be18560fc0fd4ff349fd
2018-01-08 18:08:01 -08:00
Salvador Martinez
12e327608b Improve messaging for enhanced notifications
The message displayed in battery settings will now more accurately
reflect when an estimate is enhanced based on our updated
definition of what that means.

Test: robotests
Bug: 64833846
Change-Id: Id635d78d8f56d10253e22df2705af93f2693db70
2018-01-08 17:38:36 -08:00
TreeHugger Robot
87f7a1be1e Merge "Change title for advanced connected device page" 2018-01-08 23:02:13 +00:00
TreeHugger Robot
1a0d0ccfd9 Merge "Running services: Hide actionbar buttons in overflow menu" 2018-01-08 22:40:21 +00:00
TreeHugger Robot
176ce91de9 Merge "Whitelist security settings activity v2 for secondary users" 2018-01-08 21:51:27 +00:00
jackqdyulei
392c5cd53b Change title for advanced connected device page
Fixes: 70959154
Test: Screenshot
Change-Id: I8868d0c36f02ea7f4696854ab3371785d7bd64ec
2018-01-08 13:03:54 -08:00
Fan Zhang
5da84c7de0 Running services: Hide actionbar buttons in overflow menu
Change-Id: Ia3fe67c438613ef7df5bb4c1e44854666131d0bb
Fixes: 70972973
Test: visual
2018-01-08 12:55:50 -08:00