Commit Graph

4006 Commits

Author SHA1 Message Date
Ajay Nadathur
702fc647f3 Add setupwizard personalisation state to Settings
bug: 74396457
Test: Manually tested and verified
Change-Id: I84b8cf7c45818131f903743b6c42cfeffe1c7194
Merged-In: I84b8cf7c45818131f903743b6c42cfeffe1c7194
2018-03-17 02:20:22 +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
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
TreeHugger Robot
41b5ece135 Merge "incidentd: cleaning up settings.proto" into pi-dev 2018-03-14 21:31:32 +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
75431913ef Merge "Using zen duration preference" into pi-dev 2018-03-12 21:39:18 +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
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
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
TreeHugger Robot
fa63f6895b Merge "Add global setting for auto-battery saver threshold max" into pi-dev 2018-03-09 03:51:41 +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
Beverly
09da25f00d Using zen duration preference
Test: make ROBOTEST_FILTER=ZenDurationDialogTest RunSettingsLibRoboTests -j40
Bug: 73741459
Change-Id: Ide76ac8016b84f128c47ad3731eeced25dce8c73
2018-03-07 13:57:59 -05:00
TreeHugger Robot
5a169cf2f6 Merge "System sounds get its own dnd toggle" into pi-dev 2018-03-07 16:39:40 +00:00
jackqdyulei
3cd42a0a04 Add APP_AUTO_RESTRICTION_ENABLED
This config is used in aosp to auto restrict anomaly app.
Also add it to backup, dump and proto.

Bug: 73002171
Test: Build
Change-Id: I3d198e8856e2431f9ab7350a6dd897f1a6010002
Merged-In: I3d198e8856e2431f9ab7350a6dd897f1a6010002
(cherry picked from commit 1d9c0aa940)
2018-03-06 21:33:37 +00:00
Beverly
d696476fb3 System sounds get its own dnd toggle
- Added logic for streams to be muted by dnd (unassociated with ringer)

Test: runtest -x frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java
Bug: 73362490
Change-Id: I1101e67282f7331497e91eb510d2bf4f1ea6b4b1
2018-03-06 09:08:29 -05:00
yuanlu
b6b0495af3 Add the flag for only alowing wifi on charger/network request option
Bug: 72828389
Test: atest
frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Change-Id: I137e9cf4b9d5d9760bf05139bd6ead5973b13724
2018-03-03 04:27:12 +00:00
TreeHugger Robot
df7105a993 Merge "Re-enable cross-profile use of spell checker APIs" 2018-03-02 21:20:47 +00:00
Mathew Inwood
5518c752ba Add HIDDEN_API_BLACKLIST_EXEMPTIONS to @TestApi.
It's used by a CGTS test.

Bug: 64382372
Test: It builds
Change-Id: I4bde625a89896140b2e8bf585d16074d290c0fc9
2018-03-02 09:51:28 +00:00
Yohei Yukawa
3f8c568883 Re-enable cross-profile use of spell checker APIs
Recently we successfully removed the restriction that up to one
SpellCheckerService can be active at the same time [1].  This still
makes much sense at high level, but at the ecosystem level there are
still some products / components that depend on the previous behavior
that child profile users can use parent profile's spell checker
service, which was originally introduced as a stopgap solution for
Android N MR1 [2].

Our decision for Android P for now is to revert back to the previous
behavior only when the calling process is running under work
profile.

At the implementation level, we can summarize the new behavior as
follows:
 * When TextServicesManager APIs are called from work-profile
   processes, those API calls will be evaluated with parent-profile's
   user ID to match the previous behavior [2].
   * If the currently selected spell checker is not a pre-installed
     one, then API calls from work profile will fail to match the
     previous behavior [2].
 * When TextServicesManager APIs are called from non work-profile
   processes, those API calls will continue being evaluated with
   calling user ID, as we planned for Android P [1].
 * TextServicesData will not be created for child profile users.

 [1]: I06c27ef834203a21cc445dc126602c799384527b
      06a2624049
 [2]: Iae9045ba5baccd04ed68906e7afb9160677ec4a5
      095fa37164

Bug: 63041121
Bug: 64718412
Bug: 70922751
Bug: 73609140
Fix: 73862883
Test: atest FrameworksCoreTests:com.android.internal.textservice.LazyIntToIntMapTest
Test: Manually tested with Test DPC as follows:
      * When AOSP Spell Checker is pre-installed and the current spell
        checker, both main profile and work profile can use AOSP spell
        checker.
      * When SampleSpellCheckerService is side-loaded and the current
        spell checker, only main profile can use
        SampleSpellCheckerService.
Change-Id: Ic046f832f203115106409a53418a5746eb6d4939
2018-03-01 13:10:23 -08:00
Abodunrinwa Toki
fa6d6d963b Merge "Add TCM.getTextClassifier(int type)" 2018-03-01 06:38:24 +00:00
Abodunrinwa Toki
c7073a4b05 Add TCM.getTextClassifier(int type)
Bug: 72747726
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationConstantsTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: I0d6cb5eaf3f9baa0564672c4d4b680fb00f40a51
2018-03-01 00:00:16 +00:00
Damien Bargiacchi
50b611070f Add setting for off body, radio off feature
Bug: 72714112
Change-Id: I8a632983c6c60ae195afa5bd6bdb677719bc5044
2018-02-28 15:44:44 -08:00
Abodunrinwa Toki
db8fc314d2 Associate TCconstants with the TCM instead of TCImpl
Also updates flags list.

Bug: 72946306
Bug: 72946123
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationConstantsTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: I8af9d3d1da01836fbadcbbf6ce7c1c0db7456a05
2018-02-28 14:35:49 +00:00
TreeHugger Robot
3b8957714d Merge "Update the RTT features constant." 2018-02-28 00:02:59 +00:00
Jiuyu Sun
e23ece0212 Merge "Mark EUICC_PROVISIONED as @SystemApi." 2018-02-27 22:04:15 +00:00
Mike Digman
5075264b6d Add intro mode to rotate suggestion button
Ripples the button multiple times when in intro mode

Test: manual
Change-Id: I16ada6014077298aa393ca495db1cd2b275b90dd
2018-02-26 15:07:38 -08:00
Eric Erfanian
31612fde73 Update the RTT features constant.
The effect of this change is to properly set
the RTT constant to 32.

The constant was introduced in I3ed8ac5ad7300c44f87e2573d9409b3a92b98ab6
but accidentally overriden in Ib8d6ea48379a44951a4c2e46ee79b9d4c0bf30e7
fixed again in I09ea52720bf2439537e2f4ad32afb14f5df25f71 but
reverted again in I1ccc2c36b480f64c3a8b3df7eee73f80b7863722.

In a subsequent change, I will merge this change into public master.

Bug: 63934304
Test: TreeHugger
Change-Id: I828788e8d950687149d9094d0631171e2fd7212f
2018-02-26 08:36:23 -08:00
TreeHugger Robot
c73f954cc7 Merge "Revert "Add the assisted dialing carrier config."" 2018-02-26 16:02:34 +00:00
goneil
15f5a7ef45 Store carrier app name in global settings for SIM dialog/notification
Bug: 70042722
Test: Manual QA
Change-Id: If3e97e90a37ac4e585a64c21ddfe234259cd0813
2018-02-23 13:47:44 -08:00
Gil O'Neil
183a553273 Merge "Allow certificates to be stored in the carrier app whitelist" 2018-02-23 21:18:40 +00:00
TreeHugger Robot
fb83c73f37 Merge "STOPSHIP: Roll forward: Add UidCpuPower global setting" 2018-02-23 17:49:17 +00:00
Christine Franks
5649922b7c Merge "Support forced Night Display auto mode" 2018-02-23 17:39:21 +00:00
goneil
6db18a9bad Allow certificates to be stored in the carrier app whitelist
Use CARRIER_APP_WHITELIST to store app certificate mapped to package
name (instead of just package name as we had before).

Bug: 70042722
Test: SettingsBackupTest
Test: UiccProfileTest#testParseWhitelistMapFromString() for parsing map
Change-Id: Ia0c7c364cd8154272ef62cbbf412036b4eae1b21
2018-02-22 16:39:01 -08:00
Jan Althaus
0aacdb665c Make default entity lists flag configurable
Bug: 73277686
Test: bit CtsViewTestCases:android.view.textclassifier.cts
CtsTextTestCases:android.text.util.cts
FrameworksCoreTests:android.view.textclassifier
Change-Id: I84be54fb407088ee25c3ba2d4d62708a898621ad
2018-02-22 12:55:29 +01:00
Holly Jiuyu Sun
b85013a884 Mark EUICC_PROVISIONED as @SystemApi.
Bug: 35851809
Test: test on phone
Change-Id: I1627aeaf6846e889767fb4223c46fa278a751b23
2018-02-21 20:36:47 -08:00
Eric Erfanian
dd2db2f5a3 Revert "Add the assisted dialing carrier config."
This reverts commit af7b8c0a67.

Reason for revert: we're cutting the feature from P

Change-Id: I1ccc2c36b480f64c3a8b3df7eee73f80b7863722
Bug: 73727182
2018-02-21 19:48:50 +00:00
Christine Franks
8ad6f6d671 Support forced Night Display auto mode
Bug: 69973773
Test: make -j100

Change-Id: Ifc1cb5d35f5d5b4ad988b8add04008332cf37dbe
2018-02-21 10:51:57 -08:00
Jan Althaus
31efdc385c Adding logging for generateLinks
Bug: 67629726
Test: Added test and manually verified end-to-end
Change-Id: If5d20b7102b875a898a2fb897b624773554c9083
2018-02-21 09:35:31 +01:00
Marissa Wall
04e7a9b070 STOPSHIP: Roll forward: Add UidCpuPower global setting
This will help us run P/H experiments by controlling the
uid cpu power system property through P/H.

b/70517018
Test: adb shell settings put global sys_uidcpupower 1
      verify via getprop sys.uidcpupower

Change-Id: I8cf7365be885ef4910e37d3f993ba3079e15a37d
2018-02-20 14:25:27 -08:00
Bernardo Rufino
b331d1f1ef Merge "Add local transport parameters for transport flags GTS test" 2018-02-18 18:00:22 +00:00