Commit Graph

4050 Commits

Author SHA1 Message Date
TreeHugger Robot
71ac2424f2 Merge "Add setupwizard personalisation state to Settings" 2018-03-19 19:04:28 +00:00
Roshan Pius
b58bfc11c8 Settings: Remove unused bg scan throttle settings
Bug: 68987915
Test: Compiles
(cherry-picked from d8fa3c3bdf7a66681986dc52e7ba4f8f75061c9b)

Change-Id: Id878daa0f782ddc751e726ee19cdc1c8e5ea1bc2
2018-03-19 03:00:32 +00:00
Michael Kwan
d1457eea49 Merge "Modify time only mode flag into set of values instead of just one." into pi-dev am: c5d0ed9f3c
am: 74d615f1ac

Change-Id: I98aaa71b0988e96d079ed1813dbb777565c3d655
2018-03-17 22:39:28 +00:00
Michael Kwan
74d615f1ac Merge "Modify time only mode flag into set of values instead of just one." into pi-dev
am: c5d0ed9f3c

Change-Id: I4721197b1329a14aa51f1b49a05bdade1fb71ef8
2018-03-17 22:22:33 +00:00
Anthony Stange
44b04655e5 Merge "Add scan background mode to Settings.Global." am: 3aa064897e am: 4061a9f348
am: 5dd917de9f

Change-Id: Ib7fa9d8bafc273b6d455a15dd4d5a685010979b3
2018-03-16 20:06:24 +00:00
Anthony Stange
5dd917de9f Merge "Add scan background mode to Settings.Global." am: 3aa064897e
am: 4061a9f348

Change-Id: Iac4d39cc4fcf0f0c8273cee7fbe9822251764068
2018-03-16 19:40:08 +00:00
Michael Kwan
5f5a0bf00d Modify time only mode flag into set of values instead of just one.
The time only mode flag has not been used yet, so the change should
be low impact.

Bug: 38259902
Test: m -j32
Change-Id: Ie01870633dbaaf51989a148f105a995f58f0da4e
2018-03-16 12:34:19 -07:00
Anthony Stange
8bde24cf53 Merge "Revert "Add scan background mode to Settings.Global."" 2018-03-16 17:49:12 +00:00
Anthony Stange
ac6e72bb07 Revert "Add scan background mode to Settings.Global."
This reverts commit bf9f70e146.

Reason for revert: aosp is automatically merged to the internal tree. Since this was submitted outside the tree too, it's causing problems it seems. https://android-build.googleplex.com/builds/branches/git_mirror-aosp-master-with-vendor/grid?head=4659773&tail=4659610

Change-Id: I086d636ce8c7b67b33904195e6977e6c333e08ba
2018-03-16 17:22:56 +00:00
Anthony Stange
ff54a35a0f Add scan background mode to Settings.Global.
This enables us to mess with the different scan intervals and shift
clients to a different scan mode in the background based on what scan
interval values we choose for the different power modes.

Bug: 71765044
Test: None. Just adding a key.
Change-Id: Id48ebc521dd3fe8a68c9c4c0bdb1018ea5b3743e
2018-03-16 16:07:45 +00:00
Annie Meng
d069a888cf DO NOT MERGE Create a setting for backup/restore agent timeouts
Part of push to make backup and restore agent timeouts configurable. Creates
a Global setting for the current static BackupManagerService timeouts so
that they can be overriden with P/H. We keep the current default values,
which will be updated once we investigate what more appropriate values are.

Remame the constants to better reflect what they're used
for. Next, we will update the framework to use these constants.

This depends on the refactor of how we observe changes to key value
backup settings (ag/3709997).

Bug: 70276070
Test: m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=BackupAgentTimeoutParametersTest
Change-Id: Id506314ce0c8bd5e4d1d8b4001b26cbad0056c99
2018-03-15 17:43:56 +00:00
Annie Meng
1e13e37401 Create a setting for backup/restore agent timeouts
Part of push to make backup and restore agent timeouts configurable. Creates
a Global setting for the current static BackupManagerService timeouts so
that they can be overriden with P/H. We keep the current default values,
which will be updated once we investigate what more appropriate values are.

Remame the constants to better reflect what they're used
for. Next, we will update the framework to use these constants.

This depends on the refactor of how we observe changes to key value
backup settings (ag/3709997).

Bug: 70276070
Test: m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=BackupAgentTimeoutParametersTest
Change-Id: Id506314ce0c8bd5e4d1d8b4001b26cbad0056c99
2018-03-15 12:59:13 +00:00
Primiano Tucci
d4b6c8c162 Merge "perfetto: Add setting to enable/disable traced" into pi-dev 2018-03-15 12:24:02 +00:00
Hector Dearman
cf92ca169b perfetto: Add setting to enable/disable traced
This will help us run P/H experiments by controlling the
whether traced runs through P/H.

This will allow to gradually roll out traced and, in an
emergency, remotely disable it.

Run:
$ adb shell 'ps -A | grep traced'
Should see traced.
$ adb shell 'settings put global sys_traced 0'
$ adb shell 'ps -A | grep traced'
Should no longer see traced.

Test: See above.
Bug: b/71737179
Bug: b/74383547
Change-Id: I1f564421d9abae14d7d80769e9517eb363dae33a
Merged-In: I1f564421d9abae14d7d80769e9517eb363dae33a
2018-03-15 12:23:03 +00:00
Kweku Adams
5ddc3fe039 Merge "incidentd: cleaning up settings.proto" into pi-dev am: 41b5ece135
am: 81b8e992ca

Change-Id: I16d72f114e5a34ea08564d9fa27361c65c8a7d91
2018-03-14 22:31:19 +00:00
TreeHugger Robot
41b5ece135 Merge "incidentd: cleaning up settings.proto" into pi-dev 2018-03-14 21:31:32 +00:00
Antony Sargent
8eafafded3 Merge "Update comment for HAPTIC_FEEDBACK_ENABLED setting" into pi-dev am: d357342a4a
am: 537e2d55e5

Change-Id: If065b6aad2c4864cbc728af8818bd94f1fc6a046
2018-03-14 18:24:33 +00:00
Ajay Nadathur
08bc0d04a4 Add setupwizard personalisation state to Settings
bug: 74396457
Test: Manually tested and verified
Change-Id: I84b8cf7c45818131f903743b6c42cfeffe1c7194
2018-03-13 23:16:38 +00:00
Kweku Adams
3699c36d24 incidentd: cleaning up settings.proto
This also fixes dumping of settings that use a prefix.

Since the proto isn't being used yet, I thought it would be nice to
clean it up so we start using it with a clean format.

Bug: 74611860
Test: flash device and check incident output.
Change-Id: Ib99ccab7929208cf8b4404715b0bd417852314c6
2018-03-13 13:36:05 -07:00
Antony Sargent
4457bb8e04 Update comment for HAPTIC_FEEDBACK_ENABLED setting
The current comment is a little confusing, and this ends up in the
public documentation here:

https://developer.android.com/reference/android/provider/Settings.System.html#HAPTIC_FEEDBACK_ENABLED

See b/22390263 entry for a link to at least one instance where an actual
developer was confused by this.

This CL changes the comment to match what we call the setting in the UI
of the Settings app. Note that it's possible this could become stale
someday (e.g. we used to label this "Vibrate on touch" and switched to
"Vibrate on tap" at some point), but this description will probably
still be ok and remain an improvement over what we have now.

Bug: 22390263
Test: N/A (comment only change)
Change-Id: I717a7c5a2f9ecc38cfe6f0c1c0379a868f810782
2018-03-13 16:42:32 +00:00
TreeHugger Robot
0dba1eecd8 Merge "Allow carrier-privileged apps to access voicemail provider." into pi-dev 2018-03-13 01:41:35 +00:00
Beverly Tai
30fd31daf4 Merge "Using zen duration preference" into pi-dev am: 75431913ef
am: 32cd38c699

Change-Id: I6419ffd80c8af484d77029cfe2bb43b69a5aacc6
2018-03-13 01:28:19 +00:00
Beverly Tai
75431913ef Merge "Using zen duration preference" into pi-dev 2018-03-12 21:39:18 +00:00
Felipe Leme
8a8651580d Merge "Moved urlBarResourceId from autofill service manifest to whitelist settings." into pi-dev am: 9e56800b6e
am: f31e8da93b

Change-Id: Ia74afca9bbe4ac0fb248eb368a747d7a321604ef
2018-03-12 21:20:21 +00:00
TreeHugger Robot
9e56800b6e Merge "Moved urlBarResourceId from autofill service manifest to whitelist settings." into pi-dev 2018-03-12 18:53:10 +00:00
Anthony Stange
5d9907e88e Merge "Add scan background mode to Settings.Global." 2018-03-12 17:49:55 +00:00
Felipe Leme
1c7eb0c8eb Moved urlBarResourceId from autofill service manifest to whitelist settings.
The manifest attribute is still public as it might have been used by autofill
services deployed against P DP1; it will be removed after the next developer
previs is branched out. We also need to assumie a default value for the buttons
if not specified by settings, but that will be done in a separate change so it
can be easily reverted.

Also implemented support for multiple buttons, and added unit tests.

Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest \
CtsAutoFillServiceTestCases:VirtualContainerActivityTest \
FrameworksServicesTests:AutofillManagerServiceTest

Bug: 74445943
Bug: 72811561
Fixes: 73786629

Change-Id: I066ecf40fde2c5318dd8633a659fca8b7af8aecd
2018-03-12 10:11:20 -07:00
Tyler Gunn
dd72cb529f Merge "Support enhanced call blocking function" into pi-dev 2018-03-12 15:16:04 +00:00
Anthony Stange
bf9f70e146 Add scan background mode to Settings.Global.
This enables us to mess with the different scan intervals and shift
clients to a different scan mode in the background based on what scan
interval values we choose for the different power modes.

Bug: 71765044
Test: None. Just adding a key.
Change-Id: Iebfc780e87c8e9545f24183f9b35f126f0e57d97
2018-03-12 14:53:43 +00:00
TreeHugger Robot
08d01b9e1a Merge "perfetto: Add setting to enable/disable traced" 2018-03-12 14:11:20 +00:00
Hector Dearman
c9342849e0 perfetto: Add setting to enable/disable traced
This will help us run P/H experiments by controlling the
whether traced runs through P/H.

This will allow to gradually roll out traced and, in an
emergency, remotely disable it.

Run:
$ adb shell 'ps -A | grep traced'
Should see traced.
$ adb shell 'settings put global sys_traced 0'
$ adb shell 'ps -A | grep traced'
Should no longer see traced.

Test: See above.
Bug: b/71737179
Change-Id: I1f564421d9abae14d7d80769e9517eb363dae33a
2018-03-12 11:27:04 +00:00
Phil Weaver
18ba6b80d8 Merge "Permit all daltonizer settings to be restored" into pi-dev am: 33975d7a3b
am: a3d986be78

Change-Id: Ie6477db0a0ea456085a99701836c8a57a3b3fb04
2018-03-10 07:00:18 +00:00
Marco Nelissen
95f468d032 Merge "Rework thumbnail cleanup" into oc-mr1-dev am: b20a329f4c am: 6db0f4dac8
am: 18001f79e5

Change-Id: Id348c43f719620070f4d26581d9c307f1827e609
2018-03-10 06:32:44 +00:00
Phil Weaver
a3d986be78 Merge "Permit all daltonizer settings to be restored" into pi-dev
am: 33975d7a3b

Change-Id: I7a92c24887c0b9f50c43d20b606c74e4f9a3079e
2018-03-10 02:55:34 +00:00
Marco Nelissen
18001f79e5 Merge "Rework thumbnail cleanup" into oc-mr1-dev am: b20a329f4c
am: 6db0f4dac8

Change-Id: I4f834d6c91255e7a59f608d8f28972ecfb8619fe
2018-03-10 02:28:49 +00:00
TreeHugger Robot
33975d7a3b Merge "Permit all daltonizer settings to be restored" into pi-dev 2018-03-09 23:55:50 +00:00
Marco Nelissen
6db0f4dac8 Merge "Rework thumbnail cleanup" into oc-mr1-dev
am: b20a329f4c

Change-Id: I17b77312edb4fa03af1e89543ed5c27f4501d51c
2018-03-09 23:00:20 +00:00
Tyler Gunn
48c570b09f Support enhanced call blocking function
- Add new carrier config to determine whether to enable
enhanced call blocking feature.
- Add new I/F to get/set the call blocking enabled status.
- Add new API to support checking whether a number is
block number with specific extras.

Bug: 28189985
Test: Manual
Merged-In: Ic89223cd31a4a8f3552360565b772315ec271902
Change-Id: Ic89223cd31a4a8f3552360565b772315ec271902
(cherry picked from commit 72e05c0382)
2018-03-09 20:44:44 +00:00
Jeff Davidson
d7a485b6e6 Allow carrier-privileged apps to access voicemail provider.
Bug: 70041899
Test: TreeHugger + tests in CL topic
Change-Id: I437695ca42e42c84a9a3027d9314a7f7175b978d
Merged-In: I437695ca42e42c84a9a3027d9314a7f7175b978d
(cherry picked from commit 5861cd588b)
2018-03-09 20:32:21 +00:00
Phil Weaver
7b8c8e2e1b Permit all daltonizer settings to be restored
Bug: 74434715
Test: make
Change-Id: I832e209ff96bf10084f409858d0fb46310fae4f4
2018-03-09 09:58:09 -08:00
Jeff Davidson
5861cd588b Allow carrier-privileged apps to access voicemail provider.
Bug: 70041899
Test: TreeHugger + tests in CL topic
Change-Id: I437695ca42e42c84a9a3027d9314a7f7175b978d
2018-03-09 09:53:37 -08:00
Makoto Onuki
6b635f0102 Merge "Add global setting for auto-battery saver threshold max" into pi-dev am: fa63f6895b
am: 03c48c3dab

Change-Id: I35ced83414a91ef6db9df2534f7e93ae200690c8
2018-03-09 09:17:47 +00:00
Makoto Onuki
03c48c3dab Merge "Add global setting for auto-battery saver threshold max" into pi-dev
am: fa63f6895b

Change-Id: Id4e36e3c2b1eb5ab57cd491f71f7ddd5f1736fe3
2018-03-09 06:45:00 +00:00
TreeHugger Robot
fa63f6895b Merge "Add global setting for auto-battery saver threshold max" into pi-dev 2018-03-09 03:51:41 +00:00
Tyler Gunn
72e05c0382 Merge "Support enhanced call blocking function" am: fdcdaee2d1 am: b70f2a1886
am: d66b8cf06c

Change-Id: Ic89223cd31a4a8f3552360565b772315ec271902
2018-03-09 02:33:22 +00:00
Tyler Gunn
d66b8cf06c Merge "Support enhanced call blocking function" am: fdcdaee2d1
am: b70f2a1886

Change-Id: I70820d0d46a6c54de10b03e129a4b4df97e84a1e
2018-03-09 01:27:39 +00:00
Rohan Shah
4b1b6afcfd Merge "[QS] Update Cellular/data usage tile" into pi-dev am: a24322afc6
am: 03a1c80d56

Change-Id: I9427b468d6fa221d7e57d7b4753e66958309c242
2018-03-08 23:01:23 +00:00
Marco Nelissen
6d2096f388 Rework thumbnail cleanup
Bug: 63766886
Test: ran CTS tests
Change-Id: I1f92bb014e275eafe3f42aef1f8c817f187c6608
2018-03-08 21:46:15 +00:00
Rohan Shah
53f3f15654 [QS] Update Cellular/data usage tile
Updated intent and API. We were using an explicit intent and there's
changes going on in the Settings team that change the activity name and
enabled states. Updating to an implicit event as with other parts of the
Settings app (e.g. Bluetooth).

Test: Visually
Bug: 73586207
Change-Id: Ifa5125b4770927521d9267569d487319efdb9f9f
2018-03-08 18:12:33 +00:00
Makoto Onuki
524b4dfe3a Add global setting for auto-battery saver threshold max
Bug: 74351418
Test: Manual test with "settings put global low_power_trigger_level_max 100"
Change-Id: I9a936facdca64915748f5d85c16edd553a3c6003
2018-03-08 08:07:29 -08:00