Commit Graph

6073 Commits

Author SHA1 Message Date
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
TreeHugger Robot
7b6275dd3e Merge "Fixed that data connections not tearing down when APN set id changes" into rvc-d1-dev am: 89749a90da am: be2ed83e02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12102524

Change-Id: I9946e5fa01da0c702a76b8cc47266fc39121fa75
2020-07-08 22:37:19 +00:00
TreeHugger Robot
6208d9f85d Merge "Fixed that data connections not tearing down when APN set id changes" into rvc-d1-dev am: 89749a90da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12102524

Change-Id: I89074c2299610d27aa1bcb6ee458f9fa9e24b89e
2020-07-08 22:27:57 +00:00
Jack Yu
715073fc69 Fixed that data connections not tearing down when APN set id changes
When APN set id changes (by changing the preferred APN in settings),
the existing data connections from previous APN set id should be
torn down. Fixed by checking the APN set id when building the
waiting APN list and tethering APN list.

Fix: 159761970
Test: DcTrackerTest
Change-Id: I626f871b64d50127feece80f018272e51ad1c66c
2020-07-07 17:21:17 -07:00
Jerry Chang
9de45c97b8 Add Settings keys definition for swipe bottom gesture
Add Settings keys definition for swipe bottom to expand notification
gesture and support user settings backup/restore.

Gesture settings toggle located at:
Settings > System > Gesture > Swipe for notification

Bug: 154080211
Test: manual check settings works properly
Change-Id: Ibfe3f57020c386a01407e1c579d64304d04d2537
2020-07-02 19:21:33 +08:00
Kweku Adams
2a365580c0 Merge "Disable restricted bucket." into rvc-dev am: 6cca001863 am: aea41aec2b am: ebba61330d am: 303ddce2ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11740346

Change-Id: I105331902d59d2f56f30ebbaaaf45680bdc72f20
2020-06-23 01:07:14 +00:00