Commit Graph

42194 Commits

Author SHA1 Message Date
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
Jack He
3e8132ab57 Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable"" am: 80c0656ca6 am: e34375b88c
am: dc9b879ef9  -s ours

Change-Id: I7faaf5fb7e1647e13e0c9539c4bfd9580497c9f5
2018-01-08 20:34:53 +00:00
Jack He
dc9b879ef9 Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable"" am: 80c0656ca6
am: e34375b88c

Change-Id: Ie9a167aa6310643465238510831eee8cfab34965
2018-01-08 20:20:47 +00:00
Fan Zhang
ea34e3eb3c Whitelist security settings activity v2 for secondary users
Change-Id: Ifb555d83d4815eaff7096d9bd368b09f03845b0d
Fixes: 71708028
Test: robotest
2018-01-08 12:16:27 -08:00
TreeHugger Robot
bd261ff8b1 Merge "Remove support v1" 2018-01-08 18:29:18 +00:00
Victor Chang
b4076cb477 Merge "Revert "Don't use framework strings for formatting file sizes"" 2018-01-08 11:24:09 +00:00
Jeff Sharkey
d94033624a Add reserved disk GID to critical component.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

Test: builds, boots
Bug: 62024591
Change-Id: I4aff50c26878fceace5692252cac66e56a3aea6d
2018-01-07 19:28:30 -07:00
Jack He
e34375b88c Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable""
am: 80c0656ca6

Change-Id: Ifab1cde7af9421ce140c298df295c75e5e9055ed
2018-01-06 17:33:02 +00:00
TreeHugger Robot
7937798b9d Merge "Bluetooth MaxConnectedAudioDevices show correct number" 2018-01-06 05:57:23 +00:00
TreeHugger Robot
f3fa890bd6 Merge "Add tests for some security setting controllers" 2018-01-06 03:31:24 +00:00
Salvador Martinez
616397d28c Remove support v1
Support v1 is no longer used and we want to keep the codebase clean.

Test: robotests still pass
Bug: 70620533
Change-Id: Ic8af0f34aab510a533bd7a7ec5c059834395baf5
2018-01-05 16:34:33 -08:00
TreeHugger Robot
39e6bc2356 Merge "Add help info at the bottom of the dialog" 2018-01-06 00:15:43 +00:00
Hansong Zhang
de2855abdf Bluetooth MaxConnectedAudioDevices show correct number
* When the preference is changed by the user, it will update the UI
* When the Developer options is enabled, it will set the system property
to default number
* Change string "Maximum number of connected Bluetooth audio devices" to
"Maximum connected Bluetooth audio devices" per discussion with Lindsay

Bug: 71603731
Test: m
ROBOTEST_FILTER="BluetoothMaxConnectedAudioDevicesPreferenceControllerTest"
RunSettingsRoboTests -j40
Change-Id: I3e59534585065c84530da73ffded21894c845ce9
2018-01-05 16:12:00 -08:00
Fan Zhang
cf97f0b643 Add tests for some security setting controllers
Bug: 32953042
Test: robotests
Change-Id: Ieab4e6434bbb80313f6d1b25ff1cdea5713038f0
2018-01-05 15:45:53 -08:00