Commit Graph

7137 Commits

Author SHA1 Message Date
SongFerngWang
e747702879 [LE boradcast] save the data into ContentProvider
The settings and systemUI use the LocalBluetoothLeBroadcast and
they use different sharedPreferences since the context is different.
It causes the data are not consistent.

Solution: Add data into ContentProvider, and listen the data changed
by the ContentObserver.

Bug: 243107842
Test: build pass. manual test in local.
atest SettingsBackupTest
atest SettingsValidatorsTest

Change-Id: I5f8367f3eb8e2dafa2986004dd8540de41409192
Merged-In: I5f8367f3eb8e2dafa2986004dd8540de41409192
2022-09-12 17:19:39 +08:00
Lucas Silva
07cfa206f4 Cleanup dream complication setting to reflect single toggle users see in
Settings.

The original implementation was designed to allow users to individually
enable/disable certain complications. However, we have since decided to
simplify the complication controls around a single master toggle. This
fixes an issue where when new complications are added, we will no longer
switch the toggle to off in Settings.

Bug: 241469874
Test: atest ComplicationTypesUpdaterTest
Test: atest DreamBackendTest
Test: manually on device
Change-Id: I1bbfbbe2abd6398b74bcd0b9ba601583a1403bef
2022-08-23 12:06:04 -04:00
Michael Mikhail
e9a364e665 Add media on lock screen setting
Add a new setting that controls whether media on lock screen is enabled,
disregarding the notifications status. The new setting is available
under media and privacy settings.

Bug: 229915240
Test: atest MediaHierarchyManagerTest
Test: atest KeyguardMediaControllerTest
Change-Id: I6adaa00ead1660488e4114d303c4394751ff87e8
2022-08-19 18:45:24 +00:00
Richard Chang
62c2538016 Merge "Add DeviceConfig namespace for Vendor System Native Boot" into tm-qpr-dev 2022-08-18 13:58:18 +00:00
Richard Chang
2ccae742a9 Add DeviceConfig namespace for Vendor System Native Boot
Bug: 241730607
Test: Build
Change-Id: I568e5e98d1af602ce363962341c5655085aa2ab7
Merged-In: I8cd86f14d5aec72cdf93985217e501ad7d13a229
2022-08-12 17:35:01 +00:00
Ats Jenk
e03065a00c Core changes to support desktop mode option
Internal system setting for enabling desktop mode prototype behavior.
This setting is triggered initially by a developer tile.
WM Shell in SystemUI will be listening for changes to this setting and
update the windowing mode respectively.

Bug: 241944030
Test: atest SettingsBackupTest
Change-Id: Ie7172d602b55e079b1fac4c83886f00cbb9baa18
2022-08-11 08:55:35 -07:00
Mihir Patel
25192d7d0c Merge "Reporting the Autofill IDs and Positions of active views in list view" into tm-qpr-dev 2022-08-10 16:35:13 +00:00
Mihir Patel
a6e0f74c90 Reporting the Autofill IDs and Positions of active views in list view
Test: atest CtsContentCaptureServiceTestCases, observed events reported only once on scroll and stop as well as on fling
Bug: 211899037
Change-Id: Id67fcc360bf63fcab1d9f345c31d2bf7b9a173d6
2022-08-09 15:37:50 -07:00
Joshua Mccloskey
2ff2a64cfe Merge "SideFPS UX updates" into tm-qpr-dev 2022-07-26 20:34:50 +00:00
TreeHugger Robot
db8dacec8a Merge "Add dock charging state into stay awake feature (2/2)" into tm-qpr-dev 2022-07-26 15:42:36 +00:00
Wesley Wang
c7adaf6f0f Add a Settings.Secure value to store extra battery saver schedule
- To store extra battery saver schedule mode

Bug: 224899180
Bug: 236688783
Bug: 238841059
Test: Build pass and local access verify
Change-Id: I4a394de04fdb9020ce22377390b81bccfaec2090
2022-07-23 08:10:29 +00:00
Joshua McCloskey
2987c8b264 SideFPS UX updates
1. Added side fps auth delay on device entry/biometric
prompt to wait for power press.
2. Added tap to dismiss dialog for side fps enrollment.

Test: atest SideFpsEventHandlerTest
Bug: 233953696
Change-Id: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
Merged-In: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
2022-07-20 17:02:29 +00:00
wesleycwwang
9121f848db Add dock charging state into stay awake feature (2/2)
- Make dump proto method support dock charging state
 - Add dock charging into proto file and validators

Bug: 233704731
Test: atest FrameworksServicesTests
Change-Id: I8208414cc40a12f783749d2c7a9f71be6efab8d9
2022-07-20 06:09:02 +00:00
Chen Xu
a0da35749a Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206 am: 9570621986
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I525c8730501ef9569a3bad091787d10ef0eed5b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:44:14 +00:00
Shivakumar Neginal
8335fd51fb Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that
beyond S people can not access the DATA_ROAMING API from Settingss.Ideal
way to use this is from TelephonyManager.

Test: manual.
Bug: 172467621
Change-Id: I5bbdd886599ff0ecf66eb72beb78456adc4d632c
2022-06-01 06:51:43 +00:00
xuezaiyue
3ec8de2273 Define setting name ADAPTIVE_CHARGING_ENABLED.
Test: manual
Bug: 230386304
Change-Id: I65508f99b7754e152009c2d6f4cb868ccb46d4de
2022-05-27 14:31:08 +08:00
Kholoud Mohamed
38c1a79163 Merge "Add device policy manager namespace to public namespaces" into tm-dev am: 8293974f3a am: 1368e8a55d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18344246

Change-Id: I1dd8a8c3fdc9fccb3d24fca7746cd249ff50097c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 17:36:05 +00:00
kholoud mohamed
b03a00840f Add device policy manager namespace to public namespaces
Bug: 225178429
Test: manual
Change-Id: I5091ac4e4198b76bad5bc91341e3d32f60176090
2022-05-12 15:19:00 +01:00
Julia Reynolds
729eee42e5 Merge "Remove notification permission feature flag" into tm-dev am: af7982277b am: 1c7aab6735
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18164160

Change-Id: Ie439e1d17ace323879e1c7fa2ceeb0be866954ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-09 21:21:09 +00:00
Julia Reynolds
af7982277b Merge "Remove notification permission feature flag" into tm-dev 2022-05-09 20:16:09 +00:00
kholoud mohamed
96a994a924 RESTRICT AUTOMERGE Add namespace for DevicePolicyManager P/H experiments am: f90b1ac98d am: 3dea601114
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18164349

Change-Id: I2d65c9019d90e76f31f775cbbb31311c6d67b608
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-09 15:17:53 +00:00
kholoud mohamed
f90b1ac98d RESTRICT AUTOMERGE Add namespace for DevicePolicyManager P/H experiments
Bug: 225178429
Test: N/A
Change-Id: Ic4a57962a69a31daf498bf87888bae23246f60b6
2022-05-08 09:43:03 +00:00
Beverly Tai
8fb9cff35d Merge "Add additional toggleable active unlock settings" into tm-dev am: 0dd4d73142 am: 60903c5876
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18173162

Change-Id: Ibdbcb2ade800c49481d67251a582051954e57480
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-07 02:26:37 +00:00
Beverly Tai
0dd4d73142 Merge "Add additional toggleable active unlock settings" into tm-dev 2022-05-07 01:28:17 +00:00
Beverly
ba0f3d6da2 Add additional toggleable active unlock settings
Test: manual
Test: atest ActiveUnlockConfigTest
Fixes: 231391317
Fixes: 231390692
Fixes: 231390433
Change-Id: Icaf4c1e568e84ecf4d571537f30f7f9b0efb3e0c
2022-05-06 18:04:56 +00:00
Grace Jia
1e849171da Merge "Add USER_MISSED_NEVER_RANG to cover the case for call reported as miss even before it get the chance to ring." into tm-dev am: 28232fc90e am: 2888ffd052
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17968712

Change-Id: Iba4029219e356174a071a4f8007e21533ac517b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 15:45:00 +00:00
TreeHugger Robot
baf76a1173 Merge "Simplify dock setup state setting" into tm-qpr-dev 2022-05-05 17:46:04 +00:00
Grace Jia
28232fc90e Merge "Add USER_MISSED_NEVER_RANG to cover the case for call reported as miss even before it get the chance to ring." into tm-dev 2022-05-05 17:43:34 +00:00
Julia Reynolds
0be19ec3c5 Remove notification permission feature flag
And the related obsolete code.

Test: SystemUITests, framework services tests, NotificationManagerTest
Fixes: 231344755
Change-Id: Id14941f82305b0216f2a12221d4195f8afcc65ab
2022-05-04 17:59:02 -04:00
Kate Montgomery
2f80586e30 Merge "Revert "Update show system experiment behavior."" into tm-dev am: 7c4b55cc6c am: e0d552c3e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18030765

Change-Id: Iee6939a35e668314abed788d009fd78af08e64c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 15:51:12 +00:00
Lucas Silva
384bac3fc7 Simplify dock setup state setting
The resumed state is no longer necessary, as this has been merged with
the started state.

Bug: 227649823
Test: locally on device
Change-Id: If6229dac0f121011f872fda5f06380c9fd909c4a
2022-05-04 11:48:23 -04:00
Kate Montgomery
7c4b55cc6c Merge "Revert "Update show system experiment behavior."" into tm-dev 2022-05-04 14:52:56 +00:00
Grace Jia
747c85d54e Add USER_MISSED_NEVER_RANG to cover the case for call reported as miss
even before it get the chance to ring.

Bug: 230009891
Test: TelecomUnitTest
Change-Id: I9e6d69b7ee763ebc6a7a1693cb0bb54f5bde7b1b
2022-05-03 21:25:59 +00:00
Vadim Caen
d6518e5a53 Add developer option for back animation DO NOT MERGE am: 94f506aa2a am: d67d675344
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17619727

Change-Id: I6e59464cb0974b9dbce2b9de49aefa4e1fa7c135
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 14:43:48 +00:00
Vadim Caen
d67d675344 Add developer option for back animation DO NOT MERGE am: 94f506aa2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17619727

Change-Id: I18501722cd0083971ee9d6134900f7f0e36f299f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 14:17:39 +00:00
Vadim Caen
064b49a1a1 Merge "Add developer option for back animation DO NOT MERGE" into tm-dev 2022-05-03 14:13:57 +00:00
TreeHugger Robot
a3030c3f19 Merge "Add ActiveUnlock Settings" into tm-dev am: e6c8903e65 am: 775f991976
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18030064

Change-Id: I0e7f95e5b69e5900c7639da0904e8639eec6a60f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 22:38:01 +00:00
Vadim Caen
94f506aa2a Add developer option for back animation DO NOT MERGE
Bug: 228936326
Test: BackAnimationControllerTest#animationDisabledFromSettings
Change-Id: I857a480e7375cada9171712d737162c7876c087e
Merged-In: Ie7a3acc5674080a22ccdcd0fe31a158a30ee9040
2022-05-02 17:15:06 +02:00
Lucas Silva
7b31accbcc Merge "Add new setting to store the dock setup state." into tm-qpr-dev 2022-05-02 14:19:45 +00:00
Julia Reynolds
f04fcf89e2 Merge "Move REVIEW_PERMISSIONS_NOTIFICATION_STATE to Global from Secure" into tm-dev am: 9caec02cb7 am: b6ca97cef9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17872747

Change-Id: I0de54d65dffb664099f3f94c4e09752a5c72d694
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 21:07:49 +00:00
TreeHugger Robot
e6c8903e65 Merge "Add ActiveUnlock Settings" into tm-dev 2022-04-29 17:02:57 +00:00
Julia Reynolds
9caec02cb7 Merge "Move REVIEW_PERMISSIONS_NOTIFICATION_STATE to Global from Secure" into tm-dev 2022-04-29 05:11:26 +00:00
Kate Montgomery
ec2e1fae18 Revert "Update show system experiment behavior."
This reverts commit 321b621ee0.

Reason for revert: Experiment is completed and we do not want to leave the code in place as we would not want to accidentally run it on the public.

Change-Id: I24769b669a38ffafeb10e927e2785caa369faa90
2022-04-28 19:43:13 +00:00
Beverly
1dbc30a437 Add ActiveUnlock Settings
Test: manual
Bug: 230512326
Change-Id: Idbf2662a822f66947d0fc39a174b72987c100079
2022-04-28 18:48:22 +00:00
Lucas Silva
3913332552 Add new setting to store the dock setup state.
This is similar to the existing USER_PERSONALIZATION_SETUP_STATE
setting.

Bug: 227649823
Test: locally on device
Change-Id: I0075188fdbd864347d6a11c7ce9917e03843ca3a
2022-04-28 13:53:50 -04:00
Jenhao Chen
0797a5bd0b Merge "Add DeviceConfig namespace for Vendor System Native" into tm-dev am: 5a7dafba62 am: 8f856a17e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17473270

Change-Id: I2779e5e19048182f0e86452a277c45b965088e70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 05:21:06 +00:00
Yuri Lin
56774980c4 Move REVIEW_PERMISSIONS_NOTIFICATION_STATE to Global from Secure
This setting is going to be global across the device rather than per-user.

Bug: 225373531
Test: manual
Change-Id: Ibabad2192e50d8f495f9e9fcbc12ba93156bc3fa
2022-04-27 14:31:30 +00:00
Richard Chang
3bc8068ccc Add DeviceConfig namespace for Vendor System Native
Bug: 226456604
Test: Build
Change-Id: I33d31d92393cbe7433c4c73420ba56afed028c0c
2022-04-26 03:56:36 +00:00
TreeHugger Robot
8cd6ea2c44 Merge "[SettingsProvider] Add maxTargetSdk=S to ALWAYS_ON_VPN_LOCKDOWN_WHITELIST" into tm-dev am: 64b875e125 am: 66b67c6baf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17730032

Change-Id: I63d935be434e88048d6e73e03d09c26795d07485
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 17:38:22 +00:00
TreeHugger Robot
64b875e125 Merge "[SettingsProvider] Add maxTargetSdk=S to ALWAYS_ON_VPN_LOCKDOWN_WHITELIST" into tm-dev 2022-04-22 17:17:23 +00:00