Commit Graph

6078 Commits

Author SHA1 Message Date
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
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
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
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
Arc Wang
7565104296 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: Ibe99fc7c98041e81ed4988edd36489ce10ef9057
2020-08-17 14:19:21 +08:00
TreeHugger Robot
cdaef02667 Merge "Create settings key for panic button (emergency sos) sound." 2020-08-14 21:06:17 +00:00
Peiyong Lin
b18a2fccc3 Rename game driver to updatable driver.
Game driver is considered a production name. We should use the term
updatable driver instead of the production name.

Bug: b/164449016
Test: build
Change-Id: I787f97b4801dcc7b5ec2acd569a7ce284c9a1f18
2020-08-14 10:44:59 -07:00
Fan Zhang
692d692b6b Create settings key for panic button (emergency sos) sound.
This setting will control enable/disable sound when user uses
panic button in case user wants to take discreet actions during
panic/distress moments.

Bug: 161394591
Test: manually reflashed device
Change-Id: I5e6a9e3e1d6604d6f7224b4e532b13b4d4079a14
2020-08-13 15:53:24 -07:00
Beth Thibodeau
9e4876983e Merge "Allow user to block individual apps from resuming" 2020-08-13 17:00:45 +00:00
Beth Thibodeau
a26e51bcca 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
2020-08-10 14:01:40 -04:00
Jason Chang
2fb5976cb8 Merge "Implement Tutorial messages only need to be shown twice instead of always shown" 2020-08-06 13:20:12 +00:00
Jason Chang
b7a3c29491 Implement Tutorial messages only need to be shown twice
instead of always shown

Add a mechanism to limit Tutorial only show twice in one-handed mode.

Bug: 161869984

Test: manual
Test: atest SystemUITests
Change-Id: I1ad7fbe145068e83a0332e380362c3f2747c26f6
2020-08-06 17:09:04 +08:00
Alex Mang
570fc4b20a Merge "Cache Feedback Enabled Setting in Controller" 2020-08-03 17:23:04 +00:00
Peiyong Lin
78ea35bef3 Merge "Use more inclusive terms." into rvc-dev-plus-aosp am: 094c85c93a am: 8d7604a4cb am: a5220103f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12272621

Change-Id: I389a17b987a5a3bc40e2ecc70f348f4cec045245
2020-08-01 07:28:43 +00:00
Peiyong Lin
a5220103f1 Merge "Use more inclusive terms." into rvc-dev-plus-aosp am: 094c85c93a am: 8d7604a4cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12272621

Change-Id: I4bbdb5252dcf1e73bdd0b05e382bb8a6482bd8df
2020-08-01 07:01:51 +00:00
Peiyong Lin
8d7604a4cb Merge "Use more inclusive terms." into rvc-dev-plus-aosp am: 094c85c93a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12272621

Change-Id: I4caee590c4fdd4f0d595ae091332555dff3654a8
2020-08-01 06:40:51 +00:00
Alex Mang
9b421ee9da Cache Feedback Enabled Setting in Controller
AssistantFeedbackController#isFeedbackEnabled was making a binder call every time.  We are caching this state in the feedback controller now and listening to changes in the setting.
This change also moves the NOTIFICATION_FEEDBACK_ENABLED setting to Settings.Global.

Bug: 161512521
Test: atest AssistantFeedbackControllerTest
Change-Id: I79526f36577de2b170b703e3cbc89a29dbb0649b
2020-07-31 13:03:15 -07:00
Blake Kragten
02a3a455bf Merge "Remove Enhanced Connectivity Dev Option" into rvc-d1-dev am: f4c4ca2327 am: 44d92fce4d am: 7766abe213
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174522

Change-Id: I71559142500e3e727a43878555e6a9b69dfc74d5
2020-07-30 00:06:55 +00:00
Blake Kragten
7766abe213 Merge "Remove Enhanced Connectivity Dev Option" into rvc-d1-dev am: f4c4ca2327 am: 44d92fce4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174522

Change-Id: Ibdbe411dddcdae75effcffc20790047a5efe5bcd
2020-07-29 23:45:51 +00:00
Blake Kragten
44d92fce4d Merge "Remove Enhanced Connectivity Dev Option" into rvc-d1-dev am: f4c4ca2327
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174522

Change-Id: I09d21b8405050e4ef1474444ca5ec0b7f71406be
2020-07-29 23:27:51 +00:00
Blake Kragten
9c50208f54 Merge "Remove Enhanced Connectivity Dev Option" into rvc-d1-dev am: f4c4ca2327
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174522

Change-Id: Ibed4b20e1ebe8c0c464a0f068ffaa3dc46ad1764
2020-07-29 23:26:26 +00:00
Peiyong Lin
7bc64bdf00 Use more inclusive terms.
BUG: b/162288333
Test: N/A
Change-Id: Icd58adb5eb19395548f20bd9349639e84a0cce88
2020-07-29 16:23:28 -07:00
Nathalie Le Clair
6117d617e9 Merge "CEC Standby messages when going to sleep" 2020-07-29 08:07:46 +00:00
Blake Kragten
c09d09906a Remove Enhanced Connectivity Dev Option
Applying to d1-dev as this change will be propagated to qpr branch.

Remove Developer Option Enhanced Connectivity. Remove controller and
layout variables/tests.

Bug: 162231796
Test: On Device Custom Build. Testing BSM trigger. Developer Option does
not appear anymore.

Change-Id: I58938faa299e30d4f357ed4e094b8548964b9dcc
2020-07-28 22:44:27 +00:00
Peiyong Lin
3ac9212130 Merge "Use more inclusive terms inside GraphicsEnvironment." into rvc-dev-plus-aosp am: adda6254d8 am: 057d3ace10 am: e5133fac3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12245299

Change-Id: Ia1bfa28ad6254ac2b36f8037e2480903022bc632
2020-07-28 19:33:29 +00:00
Peiyong Lin
e5133fac3a Merge "Use more inclusive terms inside GraphicsEnvironment." into rvc-dev-plus-aosp am: adda6254d8 am: 057d3ace10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12245299

Change-Id: If6852756f543023a23b10a2070962c297f8d81cd
2020-07-28 19:11:05 +00:00
Peiyong Lin
057d3ace10 Merge "Use more inclusive terms inside GraphicsEnvironment." into rvc-dev-plus-aosp am: adda6254d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12245299

Change-Id: Ibccd82b97a3baf95aee0407eedc6da428237e2ca
2020-07-28 18:57:07 +00:00
Peiyong Lin
b967a4c381 Use more inclusive terms inside GraphicsEnvironment.
Bug: b/162288333
Test: N/A
Change-Id: I2f1f13a892be0c8ff3f89e0ceabe39058390727d
2020-07-27 23:57:50 -07:00
Nathalie Le Clair
348f498252 CEC Standby messages when going to sleep
Setting the target audience of the CEC <Standby> message when going to sleep

Before this change: sent to the TV only
After this change: a setting initialized by a system property determines whether to send it to the TV only (default), all devices or not at all

Test: atest HdmiCecLocalDevicePlaybackTest and manually tested that system property takes effect.

Bug: 161205654
Change-Id: I3a3ba3d40acbb4f6bf65e402c446b0683500b4dc
2020-07-24 14:56:56 +02:00
Sergey Nikolaienkov
4d8d93b55c Merge "Make ANR dialog settings visible to tests" 2020-07-22 12:14:40 +00:00
TreeHugger Robot
dc91aaab2d Merge "Remove TimeController constants." 2020-07-20 12:11:10 +00:00
Treehugger Robot
3ec3713a1d Merge "Show subId info for getMessagesFromIntent log if it available only" am: 6478559721 am: 83b308025a am: 40b66a14d8 am: d2d9f54da1 am: f386456e8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1318274

Change-Id: Id86689a868d3d1c0244d95891d87d4a27ee967ea
2020-07-16 02:04:24 +00:00
Treehugger Robot
f386456e8c Merge "Show subId info for getMessagesFromIntent log if it available only" am: 6478559721 am: 83b308025a am: 40b66a14d8 am: d2d9f54da1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1318274

Change-Id: Ib2c6beaf4782b2014c65914647270af7d660e2cf
2020-07-16 01:53:34 +00:00
Treehugger Robot
d2d9f54da1 Merge "Show subId info for getMessagesFromIntent log if it available only" am: 6478559721 am: 83b308025a am: 40b66a14d8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1318274

Change-Id: I5a4a4454d4e0ee958e3b2fdab0e456f942ec5b6b
2020-07-16 01:33:36 +00:00
Treehugger Robot
40b66a14d8 Merge "Show subId info for getMessagesFromIntent log if it available only" am: 6478559721 am: 83b308025a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1318274

Change-Id: I07a163cbfaf5e76f94d758953fed8d48c6cc66d8
2020-07-16 01:18:14 +00:00
Hall Liu
b637852572 Merge "Allow empty tokens in strict grammar" into rvc-qpr-dev am: b5954fba49
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12150923

Change-Id: I73f2188ffd12e3018849c1f2672f6c7d64bf1f43
2020-07-15 16:24:10 +00:00
Hall Liu
a3986a5def 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-07-14 20:42:25 +00:00
Kweku Adams
917235f045 Remove TimeController constants.
The only flag in TimeController constants is no longer needed, so we
don't need the constants infrastructure here. Any new constants we need
can make use of the DeviceConfig infrastructure we're adding.

Bug: 124466289
Bug: 141645789
Test: atest com.android.server.job.controllers.TimeControllerTest
Test: atest CtsJobSchedulerTestCases
Test: atest SettingsProviderTest:SettingsBackupTest
Change-Id: I15e99617a8afee446839a4212377aa5543776422
2020-07-14 11:30:01 -07:00
Taesu Lee
7e26fe7ce3 Show subId info for getMessagesFromIntent log if it available only
getMessagesFromIntent with default SMS subId log is shown from
AppSmsManager for MT SMS always since an intent without subId info is
delivered to AppSmsManager first.
It might be confusing when checking MT SMS log for multi-sim devices.

Bug: 161156506
Test: MT SMS and Check log

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I66da0d5d9802c4427572cb1674be452582066450
2020-07-14 12:14:07 +09:00
Fan Zhang
f9a9fcf7bb Create settings key for panic button (emergency sos).
This setting will control enable/disable panic button gesture, which triggers launching a UI flow that calls emergency services via emergency dialer.

Test: manually flashed device
Change-Id: Id6c2dde85e0a4a8343e4473d7baaa66dd7210e5f
2020-07-13 23:12:27 +00:00
Nikolas Havrikov
79331e77f1 Make ANR dialog settings visible to tests
Bug: 159443507
Test: atest CtsWindowManagerDeviceTestCases:UnsupportedDialogTests on local device

Change-Id: I837ecd008fec7d31fd348f1529148afa5b7aa231
2020-07-09 12:50:35 +00:00
TreeHugger Robot
f8307e008e Merge "Fixed that data connections not tearing down when APN set id changes" into rvc-d1-dev am: 89749a90da am: be2ed83e02 am: 7b6275dd3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12102524

Change-Id: I82af7aa849467333091893057cfb24b66e4810b6
2020-07-08 22:50:25 +00:00