Commit Graph

42276 Commits

Author SHA1 Message Date
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
TreeHugger Robot
de4bef0243 Merge "Remove toggles in battery settings." 2018-01-05 22:47:31 +00:00
jackqdyulei
fd69cd4c33 Add help info at the bottom of the dialog
It contains a link to help center

Bug: 68030013
Test: RunSettingsRoboTest
Change-Id: I79260eff35e604fa97cf21c62f58c02f3bbe5cfb
2018-01-05 14:39:16 -08:00
TreeHugger Robot
6bc03f9550 Merge "Add developer menu to select max number of connected audio devices" 2018-01-05 22:11:56 +00:00
Ajay Nadathur
a63075f0eb Merge "Show 'screen lock options' on all lock screen types" 2018-01-05 21:19:14 +00:00
TreeHugger Robot
6ee11a6178 Merge "Use proper DashboardFragment APIs for SecuritySettingsV2" 2018-01-05 21:18:17 +00:00
Treehugger Robot
80c0656ca6 Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable"" 2018-01-05 20:41:01 +00:00
Hansong Zhang
b2730b7b10 Add developer menu to select max number of connected audio devices
The new developer option modifies the system property
"persist.bluetooth.maxconnectedaudiodevices"; it allows testing
multiple connected devices for A2DP, AVRCP, HFP.

Bug: 71603731
Test: Robolectric test
Change-Id: Ie7887065f98193f4f34e0ff4a29959694e417124
2018-01-05 12:28:20 -08:00
Fan Zhang
361e55bb4c Use proper DashboardFragment APIs for SecuritySettingsV2
Next CL will add tests.

Bug: 32953042
Test: TODO
Change-Id: I0cb0e4eb216d3e9408675486f1cd73ba82d8ca36
2018-01-05 11:20:59 -08:00
Ajay Nadathur
a1314df69c Show 'screen lock options' on all lock screen types
bug: 66239135
Test: Manually tested and verified, robo tests updated
Change-Id: I42ae63661b5d5061fea848e2c1e8a0c8943864e4
2018-01-05 11:03:31 -08:00
Ben Lin
69084b3a8d Add ability to show/hide assist_and_voice_input preference.
This adds a new boolean flag, config_show_assist_and_voice_input, which
when set to false will hide the assist_and_voice_input preference item.

Bug: 62379282
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=DefaultAssistPreferenceControllerTest
Change-Id: I3bfc84f0fba07cd52679269daadbdcfccd205ff1
2018-01-05 10:03:17 -08:00
Victor Chang
03358c0cdf Revert "Don't use framework strings for formatting file sizes"
The previous revert ag/3403198/ is incomplete.

I just learned that "git revert" has memory.
"git revert" re-applied my previous incorrect merge conflict resolution
when I reverted the same change again.

Test: adb shell am instrument -w -e class
com.android.settings.utils.FileSizeFormatterTest
com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner
Test: make -j RunSettingsRoboTests
Test: manual. GB is shown in Settings > Network > data usage > tap at top
Bug: 70050030
Bug: 70005649
Bug: 36994779
Change-Id: Ia56f8aaf9b5048c102b4e480da0e84e90ee51360
2018-01-05 12:32:51 +00:00
jackqdyulei
5c56588d59 Remove toggles in battery settings.
In Android P, we only show "Battery saver" and "Power management"
in battery settings. So we need to remove other preferences.

Keep "Battery percentage" toggle for now because it is not
cross-listed in other places.

Bug: 71502850
Test: Screenshot
Change-Id: Ia3c919f61239ff71f9343f2bce961aa4b89533c0
2018-01-04 19:54:06 -08:00
Mike Ma
e98c54dd69 Fix FakeUid implementation
Test: local build
Change-Id: Ia1d7ac98e9f1abd12e483b101b45fefab34eb235
2018-01-04 18:35:03 -08:00
TreeHugger Robot
ac870bed2f Merge "Add a new widget MasterCheckBoxPreference." 2018-01-05 02:11:09 +00:00
TreeHugger Robot
5aaa8c5637 Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable"" 2018-01-05 01:45:14 +00:00
Jack He
7d563bd1de Bluetooth: Use "Disable" in-band ringing instead of "Enable"
* Given that in-band ringing is enabled by default on supported devices,
  the corresponding development settings should be rephrased from
  "Enable in-band ringing" to "Disable in-band ringing" to hint that it
  is enabled by default
* This also gets rid of special logic to check that option in
  initialization
* Add strings to reflect this change as well

Bug: 65383086
Test: make, try toggling the preference and verify whether in-band
ringing works or not

Change-Id: I29f91c7d12c725b12452ec163b75051ff28f500d
Merged-In: I29f91c7d12c725b12452ec163b75051ff28f500d
2018-01-04 17:23:57 -08:00
TreeHugger Robot
b8b9b283fe Merge "Merge sub pages for lock/unlock into 1 xml." 2018-01-05 00:36:17 +00:00
Doris Ling
c7f8bd49eb Add a new widget MasterCheckBoxPreference.
This is similar to the master switch preference, but instead of the
toggle button, it provides a checkbox as the preference widget.

Change-Id: Ic2392f6a828298ab85494e7dd127fd2d787ce121
Fixes: 71603100
Test: make RunSettingsRoboTests
2018-01-04 16:31:07 -08:00
TreeHugger Robot
2c3c8c8537 Merge "Support getDynamicSummary in BasePreferenceController" 2018-01-05 00:02:48 +00:00