Commit Graph

6118 Commits

Author SHA1 Message Date
Peiyong Lin
7b446ea75e Merge "Add global settings variables for ANGLE debug." 2020-09-30 02:10:59 +00:00
TreeHugger Robot
c747e87751 Merge "Expose spell checker settings for testing." 2020-09-29 23:08:01 +00:00
Flavio Fiszman
ea923db3c1 Create Settings.Global entry for People Space
People Space is a new feature in SysUI. This global settings entry
will determine whether a user will see the feature and it is not
user configurable, so it should not be backed up.

Test: build
Bug: 169410721
Change-Id: Iaaefaedbd8e17e09633478b44458713f3eae0362
2020-09-28 19:39:16 +00:00
Peiyong Lin
318ad33061 Add global settings variables for ANGLE debug.
Introduce angle.egl.features to assist ANGLE debugging. The input
contains lists for each opt-in apps. The format is each list of features
is separated by a comma, each feature in each list is separated by a
colon, e.g.  feature1:feature2:feature3,feature1:feature3:feature5

Bug: b/169156341
Test: use adb shell command to verify
Test: atest android.gputools.cts.CtsRootlessGpuDebugHostTest
Test: atest CtsAngleIntegrationHostTestCases
Change-Id: I752047df1c2567b4ebf900c3acb4a965e35dd6c2
2020-09-28 11:45:56 -07:00
Vishnu Nair
cf143d4408 Add BlastBufferQueue adapter in SurfaceView
Add support for submitting buffers in SurfaceView via BLAST using
BlastBufferQueue adapter.

Introduce a new config wm_use_blast_adapter_sv, that is disabled by
default to enable the adapter.

When enabled, the blast SC is created as a child of the main
SurfaceView SC and the main SC is set as a container layer. This layer
will continue to handle position, visibility and transforms while the
blast SC will handle buffer updates via the adapter.

Test: atest SurfaceViewBufferTests
Test: go/wm-smoke w/ & w/o adb shell adb shell settings set global use_blast_adapter_sv 1
Bug: b/168504870, b/168917217

Change-Id: I826eef39e03ea339df54400be0709eaba6c88797
2020-09-24 21:45:18 +00:00
TreeHugger Robot
21e884a4d5 Merge "Adds Assistant Handles learning state to backed up settings" 2020-09-23 05:12:46 +00:00
Govinda Wasserman
eec5673133 Adds Assistant Handles learning state to backed up settings
This solves the issue where the device would forget the learned state
when restoring from a backup.

Test: Tested locally
BUG: 159807978
Change-Id: Ia1d5926621c4b45402036aaf06cbab19c12869bd
2020-09-23 02:16:27 +00:00
Kohsuke Yatoh
b651d766db Expose spell checker settings for testing.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I97921baa5a8808f31ae9127df471038fe2b6094c
2020-09-23 00:09:34 +00:00
TreeHugger Robot
bcf255bf86 Merge "Rememeber the last dark mode before shutdown when in auto mode" 2020-09-22 17:52:57 +00:00
Jay Aliomer
7bddda48fc Rememeber the last dark mode before shutdown when in auto mode
Twilight mode is not available when the phone starts. So the last state
is rememebered until the phone screen turns off

Fixes: 160842085
Test: manual testing
Change-Id: I78a490c0f083e92022e1995b3e19dc7dd567a7c3
2020-09-22 15:43:52 +00:00
TreeHugger Robot
ccc1fb658c Merge "Migrate AlarmManager to DeviceConfig." 2020-09-21 19:30:45 +00:00
Amit Mahajan
5f99e1b8fd Merge "Data connection for carrier specific APN" into rvc-d1-dev-plus-aosp am: e2b212e94e am: e662938fdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12624999

Change-Id: I83ecb4caea6b66b8c3e08beda3fb70598132707e
2020-09-18 09:25:40 +00:00
Amit Mahajan
e662938fdf Merge "Data connection for carrier specific APN" into rvc-d1-dev-plus-aosp am: e2b212e94e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12624999

Change-Id: Id017dddb5ff8f10d8bacf9e55a8dbca515309a0f
2020-09-18 08:54:24 +00:00
Beth Thibodeau
48f5f05e91 [DO NOT MERGE] Revert "Allow user to block individual apps from resuming" am: f715910293
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12597796

Change-Id: Ib12f9d769f6273849216678f7749c72172f3e179
2020-09-17 19:12:14 +00:00
Beth Thibodeau
f715910293 [DO NOT MERGE] Revert "Allow user to block individual apps from resuming"
Revert "Allow user to block individual apps from resuming."

Revert submission 12392268-cherrypick-mediaappsettings-5fxuo164a2

Bug: 161813143

Reason for revert: no longer want change in QPR
Reverted Changes:
Id3de52419:Allow user to block individual apps from resuming....
I8c85bc937:Allow user to block individual apps from resuming

Change-Id: I888079abc77f5bc22aefa19c2f7523bb9db05bf8
2020-09-17 17:56:11 +00:00
Masaho Nishikawa
115e02818a Data connection for carrier specific APN
Implement the following features to support carrier network connection.
This commit is to define the carrier config for each features.

1. Sets default preferred APN
2. Uses dun APN when using Preset APN in roaming network

Also, fixed that to use only APNs with the same set id as preferred
APN.

Test: Manual
Bug: 147969062
Change-Id: If1e6d2bf58de39c22caa901fcd90fb11f104d900
(cherry picked from commit b9beb0d1afda6327b1c7645ac20a016f08e5744e)
2020-09-16 22:52:49 -07:00
TreeHugger Robot
445006fed6 Merge "Fix CONTENT_FILTER_URI documentation." 2020-09-15 22:14:05 +00:00
Jeff Sharkey
4b5b0174d0 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570 am: 487d394296
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: Id01f468b43fd5b2aada78608010625b392c1b647
2020-09-15 21:01:48 +00:00
Varun Shah
2434271486 Fix CONTENT_FILTER_URI documentation.
Fixes: 142457056
Test: n/a
Change-Id: I43c34429e7e38cb986c45bf7de27df7d125dc91b
2020-09-15 12:52:46 -07:00
Kweku Adams
1e7a69c6f8 Migrate AlarmManager to DeviceConfig.
This migrates flags inside AlarmManagerService to DeviceConfig.
DeviceConfig is the recommended way and using it means
that we only operate/parse the set of flags that changed instead of
every single flag whenever one of them changes.

Bug: 124466289
Bug: 159068048
Test: atest AlarmManagerServiceTest
Test: atest CtsAlarmManagerTestCases
Test: atest CtsBatterySavingTestCases:BatterySaverAlarmTest
Test: atest SettingsProviderTest:SettingsBackupTest
Test: atest com.android.server.cts.IncidentdTest
Change-Id: I21263f54f57bf2a59daafbc35fe6bdfbaf4f031b
2020-09-15 18:13:23 +00:00
Jeff Sharkey
487d394296 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I79488866c538bf9e76d0a6429e30262978f6fdab
2020-09-15 00:13:08 +00:00
Jeff Sharkey
da7478b570 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I9b79dbf3e9983523db11599d8ae289b05aabf80c
2020-09-14 23:42:34 +00:00
Jeff Sharkey
741c0a78cc Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I7da537200efe31e803234bd1a0236843064186c8
2020-09-14 23:10:42 +00:00
Jeff Sharkey
6516a83886 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Ifce5239991e3b78dd4757712e3b88093ad7161f0
2020-09-14 10:00:02 -06:00
Jeff Sharkey
705f6bec2d Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: I53003332717baf57dc088b2f6b969cdb1863f65e
2020-09-14 09:59:01 -06:00
Sally Yuen
4e8a7a8bcf Merge "Add Bold Text to Settings.Secure" 2020-09-10 03:09:06 +00:00
Sally
c712fc35d1 Add Bold Text to Settings.Secure
Bug: b/110991537
Test: n/a
Change-Id: I06228b6f06e9694221f8e7657cd34ba3bc8140fa
2020-09-09 16:42:34 +00:00
TreeHugger Robot
ca3895e4ac Merge "Migrate Doze flags to DeviceConfig." 2020-09-02 18:55:06 +00:00
Abhijeet Kaur
75f984bd32 Validate user-supplied URIs in DocumentsProvider calls
Some URIs are used without validating their authorities which can lead
to exploitation by malicious apps.

Bug: 157294893
Test: Manual using test app in b/157294893
Change-Id: I799509ed5ff7e69140e84d796fe7f96d9dbfd32f
2020-09-02 12:21:32 +01:00
Kweku Adams
1e55861ed4 Migrate Doze flags to DeviceConfig.
This migrates flags inside DeviceIdleController to DeviceConfig.
DeviceConfig is the recommended way and using it means
that we only operate/parse the set of flags that changed instead of
every single flag whenever one of them changes.

Bug: 124466289
Test: atest CtsHostsideNetworkTests
Test: atest FrameworksMockingServicesTests:DeviceIdleControllerTest
Test: atest SettingsProviderTest:SettingsBackupTest
Change-Id: I7fff451b641eee43a13e77df7b40db5b3af16d58
2020-09-01 14:22:25 -07:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
Grace Jia
e29957512c Merge "Allow empty tokens in strict grammar" am: bd03ae8b86 am: 618efc989b am: 61c321f4fb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1414388

Change-Id: If398a3b89bb6c11487d8ac2844bbf09cfb18b2b7
2020-08-28 16:56:14 +00:00
Grace Jia
61c321f4fb Merge "Allow empty tokens in strict grammar" am: bd03ae8b86 am: 618efc989b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1414388

Change-Id: Ib4db14d7344f84383decf914fbeedf3c69384875
2020-08-28 16:29:30 +00:00
Hall Liu
256c414bbb Allow empty tokens in strict grammar
Allow empty tokens in SQLiteQueryBuilder's strict grammar enforcement

Bug: 143230980
Test: atest SQLiteQueryBuilderTest, manual
Change-Id: Ie82dded77a3eaa75095333b0e77f10e21c9f7caf
Merged-In: Ie82dded77a3eaa75095333b0e77f10e21c9f7caf
2020-08-28 00:28:53 +00:00
Colin Cross
082aec6c84 Revert "Snap for 6793014 from bbbccc3c2b7fc7c5780f6c415c4223e1d0..."
Revert "Snap for 6793014 from 44725f06b7f7d6407b5ee82d989bdd6c7a..."

Revert "Snap for 6793014 from f22ad3164937a8f2e309965c102b6366d5..."

Revert "Snap for 6793014 from 11467102abddb6026aaa164c1361439c2d..."

Revert "Snap for 6793014 from 265280bf5cb4bc14e132c3a35ae5f7ae65..."

Revert "Snap for 6793014 from f2989f9c65556d5155dbd57f82f0c93a16..."

Revert "Snap for 6793014 from 8b8bf0a07b0521bbe8483fbbab1222ffd6..."

Revert "Snap for 6793014 from 3777d883a3857b1a1589181c436d9018d7..."

Revert "Snap for 6793014 from 3157b4ee4325286f0c2ab0f26528460c8b..."

Revert "Snap for 6793014 from a43295d1825da62af038d345a7a861ed7a..."

Revert "Snap for 6793014 from 2076be4d27078d6ebc0a6b5e5ceb386109..."

Revert "Snap for 6793014 from d0e31526c62b2aeb35c293ac96feb180fc..."

Revert "Snap for 6793014 from 7a3a8c6351d5167a6ae0b33bc376efabd2..."

Revert "Snap for 6793014 from 41471cb21bb16b5c3bcc92f84293b79684..."

Revert "Snap for 6793014 from 42e5cca3cfb829690c9d8c6aca57a8e7d5..."

Revert "Snap for 6793014 from 4f81304963d19f4511b1e8e7d0aad87a67..."

Revert "Snap for 6793014 from 07602cdacf5bcc835db41f7eaa24af9964..."

Revert "Snap for 6793014 from 14cb57e107a3abce8b14937b1f92c28d18..."

Revert "Snap for 6793014 from ab1e4a81d09a540a5f927059e5bc03a606..."

Revert "Snap for 6793014 from 8c65adad0bcdfb3acc561063b4048dca24..."

Revert "Snap for 6793014 from b3061942700265e2bf04af9997775dcbbb..."

Revert "Snap for 6793014 from 551c5953fc62e339e4ee884ec2cd0ac3be..."

Revert "Snap for 6793014 from 4919273b2ac5c6347a18e17c5ec70d8da6..."

Revert "Snap for 6793014 from 988d4244914e0c749655e8cb6db18ba44f..."

Revert submission 12465146-release-request-6b259cbc-1f45-4b05-bc7e-c9b893b79d68-for-git_main-busytown-release-6793014

Reason for revert: b/166531456
Reverted Changes:
I5ff7a6c0d:Snap for 6793014 from f2989f9c65556d5155dbd57f82f0...
I77bdff943:Snap for 6793014 from a43295d1825da62af038d345a7a8...
I2ac5c520a:Snap for 6793014 from c3f124cca05579acf0a6cb589ebd...
I023b9702f:Snap for 6793014 from 98756d6d3e2bb0ba28eb125caa7a...
Ibc7893d72:Snap for 6793014 from fd1ad6750ef332d3f50f218f4d5d...
Ic27847bee:Snap for 6793014 from 8c65adad0bcdfb3acc561063b404...
If20bc9352:Snap for 6793014 from 7a3a8c6351d5167a6ae0b33bc376...
I6542d17e8:Snap for 6793014 from 3777d883a3857b1a1589181c436d...
I66e6bb8a9:Snap for 6793014 from 8b8bf0a07b0521bbe8483fbbab12...
I3cd190b6b:Snap for 6793014 from 424180bdc4aa18249e678daebfd0...
If92db7402:Snap for 6793014 from ab1e4a81d09a540a5f927059e5bc...
Iaced03c87:Snap for 6793014 from d0e31526c62b2aeb35c293ac96fe...
I5d28c6b4b:Snap for 6793014 from 4f81304963d19f4511b1e8e7d0aa...
I30d07bea3:Snap for 6793014 from 7594ec6384c4da320726def34f47...
I473205f48:Snap for 6793014 from 551c5953fc62e339e4ee884ec2cd...
I0656b41af:Snap for 6793014 from 44725f06b7f7d6407b5ee82d989b...
I0f9796067:Snap for 6793014 from 4919273b2ac5c6347a18e17c5ec7...
I9a38cda8f:Snap for 6793014 from 2076be4d27078d6ebc0a6b5e5ceb...
I876a82f51:Snap for 6793014 from 11467102abddb6026aaa164c1361...
I749d7d023:Snap for 6793014 from 41471cb21bb16b5c3bcc92f84293...
I038daea41:Snap for 6793014 from 07602cdacf5bcc835db41f7eaa24...
I47aa3131c:Snap for 6793014 from 14cb57e107a3abce8b14937b1f92...
I32dba8a95:Snap for 6793014 from 3157b4ee4325286f0c2ab0f26528...
I2ebc9f9db:Snap for 6793014 from 988d4244914e0c749655e8cb6db1...
Iae7c3370f:Snap for 6793014 from 9ffb8852294e06e2d387dc1fb868...
I6467a7f1b:Snap for 6793014 from 42e5cca3cfb829690c9d8c6aca57...
I8c6375203:Snap for 6793014 from b3061942700265e2bf04af999777...
I843b2e1f3:Snap for 6793014 from 265280bf5cb4bc14e132c3a35ae5...
Ie254f7079:Snap for 6793014 from f22ad3164937a8f2e309965c102b...
I01e0974ed:Snap for 6793014 from bbbccc3c2b7fc7c5780f6c415c42...

Change-Id: I9160aa1ae5523d8e92c618ae1922576bb70a7ac8
2020-08-27 04:12:26 +00:00
TreeHugger Robot
9f60e77fd0 Merge "Validate user-supplied tree URIs in DocumentsProvider calls" 2020-08-26 17:12:43 +00:00
Abhijeet Kaur
b9f4fb7928 Validate user-supplied tree URIs in DocumentsProvider calls
Currently we only validate DocumentsContract.EXTRA_URI, this change
validates other URIs suchs as DocumentsContract.EXTRA_TARGET_URI and
DocumentsContract.EXTRA_PARENT_URI as well

Bug: 157320716
Test: Manually using the test app in b/157320716#comment1
Change-Id: I90fd1e62aa7dc333bf32eb80ccc5b181a1d54e41
2020-08-26 15:06:41 +01:00
Neil Fuller
1bb318e04e Merge "Implement user-scoped geolocation configuration" 2020-08-24 19:47:49 +00:00
TreeHugger Robot
8940f10402 Merge "Add a SettingsProvider key for Adaptive connectivity" into rvc-qpr-dev am: b0df580193
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12383606

Change-Id: I7421c1f07d89d1b7c5371c83ed8a94f7f4ae9c71
2020-08-24 16:05:11 +00:00
Neil Fuller
a223581eee Implement user-scoped geolocation configuration
Implement user-scoped geolocation configuration / behavior.

The main changes:

1) For simplicity, configuration change listener is no longer passed the
latest config. It is left to the listener to request the latest config.
This removes some of the previous complexity that required a SparseArray
to track listeners by userId.

2) The Callback implementation is now responsible for listening for
configuration / user changes and invoking a listener (which will invoke
other listeners). This is to try to have one class know all the various
settings that affect auto time / geolocation detection behavior, which
has become more complicated with the user-scoped geolocation config. The
TimeZoneDetectorInternal has some listener methods added in preparation
for later steps.

3) The new "geolocation detection enabled" setting is added. This allows
users to selectively disable geolocation time zone detection
independently of the location toggle.

4) The TimeZoneConfiguration now carries the ID of the user it is for,
since it now contains user-specific state.

5) Internally, the TimeZoneConfiguration is replaced by the
ConfigurationInternal class, which includes all properties (not just
user visible settings) that influence time zone behavior on the device.
The ConfigurationInternal generates the TimeZoneCapabilities and
TimeZoneConfiguration.

6) In a change from the initial behavior, any previously received
geolocation suggestion is cleared if geolocation detection is turned
off (or the current user switches to one that has it turned off), and
suggestions received when geolocation detection is off are ignored.
This is trying to be careful to avoid caching the geolocation timezone
if the user has signalled they don't want their device to use it.

Test: atest services/tests/servicestests/src/com/android/server/timezonedetector
Test: atest core/tests/coretests/src/android/app/timezonedetector
Bug: 149014708
Change-Id: Ieac9f8f646e16edcb8b6ea6c8749e45761898ac1
2020-08-24 15:42:00 +01:00
Arc Wang
d631c648b3 Add a SettingsProvider key for Adaptive connectivity
Adaptive connectivity is a feature to manage 5G connectivity
for better battery life.

Bug: 162871294
Test: compile
Change-Id: I719e44a29a54ee886e5d3a7180fd3ad9a7dff599
Merged-In: I719e44a29a54ee886e5d3a7180fd3ad9a7dff599
2020-08-24 20:26:16 +08:00
Kweku Adams
4d4ca713e8 Merge "Migrate initial set of flags to DeviceConfig." 2020-08-19 17:07:35 +00:00
Kweku Adams
1c086b48a0 Migrate initial set of flags to DeviceConfig.
This migrates the flags defined inside JobSchedulerService to
DeviceConfig. DeviceConfig is the recommended way and using it means
that we only operate/parse the set of flags that changed instead of
every single flag whenever one of them changes.

The flags inside QuotaController can be moved in here since only
individual flags are operated on now and we can do everything with
just one listener.

Bug: 124466289
Test: atest CtsJobSchedulerTestCases
Test: atest FrameworksMockingServicesTests:JobSchedulerServiceTest
Test: atest FrameworksServicesTests:MaxJobCountsTest
Test: atest SettingsProviderTest:SettingsBackupTest
Change-Id: I16b937df6a8eae338cfd77e72bcd4d264036db82
2020-08-18 14:49:34 -07:00
Kweku Adams
f3b99fa7cf Add battery discharge prediction APIs.
This CL adds an API to enable an external app to provide the system with
an estimate of how much time is remaining until the battery reaches 0%.
This information will be used in Settings and SysUI to display the
estimated time until the device is fully discharged.

Bug: 139413884
Test: atest android.os.cts.PowerManagerTest
Test: atest android.permission.cts.PowerManagerServicePermissionTest
Test: atest CtsPermission2TestCases
Test: atest SettingsProviderTest
Change-Id: I7073c521e392e9616111e5e80b92a11285ac6c91
2020-08-18 11:34:33 -07:00
Beth Thibodeau
865643a12d Merge "Allow user to block individual apps from resuming" into rvc-qpr-dev am: 3743d5526a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12391748

Change-Id: Ief6bfded76c4fe6d1636f9af1c67659b2b84ab63
2020-08-18 14:39:26 +00:00
TreeHugger Robot
bcda45e355 Merge "Add a SettingsProvider key for Adaptive connectivity" 2020-08-18 04:26:27 +00:00
TreeHugger Robot
f7c04c3abc Merge "Rename game driver to updatable driver." into rvc-dev-plus-aosp am: 377b7f318d am: f6d2c0abc5 am: 73f4897f80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12375470

Change-Id: Ie51f028e1f48448f76ae2efaa2cb6183ceb1a7d5
2020-08-17 20:40:17 +00:00
TreeHugger Robot
73f4897f80 Merge "Rename game driver to updatable driver." into rvc-dev-plus-aosp am: 377b7f318d am: f6d2c0abc5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12375470

Change-Id: Ib327facf7026ac4f406846128c84005478fd2d2c
2020-08-17 20:38:28 +00:00
TreeHugger Robot
f6d2c0abc5 Merge "Rename game driver to updatable driver." into rvc-dev-plus-aosp am: 377b7f318d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12375470

Change-Id: Ief345ee98cd8758baa1adde984abe01a753dce5c
2020-08-17 20:25:52 +00:00
Beth Thibodeau
70b5235a9d Allow user to block individual apps from resuming
This adds a setting which stores a list of packages that will be
prevented from persisting in QS as resumable media controls, even when
resumption is enabled. If the user adds a new package to this list when
it already has a resume control, that control will be removed.

Bug: 161813143
Test: manual, atest
Change-Id: I8c85bc937aeaf366954f2669eba8f6954640fe4c
Merged-In: I8c85bc937aeaf366954f2669eba8f6954640fe4c
2020-08-17 15:45:47 +00:00