Commit Graph

6619 Commits

Author SHA1 Message Date
TreeHugger Robot
63ba4d5720 Merge "Controls - Use new privacy setting" into sc-dev am: 20e75f17e5 am: e4bfa0943e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14548608

Change-Id: I0b3f1d5a945ed72a026c4d827671c0a6d64ffe09
2021-05-20 00:24:12 +00:00
Tom Natan
e5d224c438 Merge "Add @TestApi to NAMESPACE_CONSTRAIN_DISPLAY_APIS." into sc-dev am: 1d2868c45b am: d831d15831
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14594231

Change-Id: I757a53a4a03711913b1b3b7b82a116f2152c624e
2021-05-19 23:50:30 +00:00
TreeHugger Robot
0bab57f691 Merge "Add a secure settings to control game dashboard shortcut." into sc-dev am: 59d20a8fb0 am: 3dcbe5be38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14533076

Change-Id: I0a7c6040f580cbf459acb2ea272be123888baab4
2021-05-19 23:47:20 +00:00
TreeHugger Robot
d4aa927399 Merge "Intent to LockscreenSettings page on wallet overflow menu clicked." into sc-dev am: e265a992a6 am: 596e388a06
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550725

Change-Id: Idcad2b5d78bfaa207d5b323758ec589c2d5c150b
2021-05-19 23:20:57 +00:00
Neil Fuller
733f3dbed6 Merge "Add device_config cmds for disabling syncs" into sc-dev am: 9f47ce098b am: 081472b391
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14426683

Change-Id: Ia542ac632f2a78b86fc1742572e606bbbf009e4a
2021-05-19 22:52:54 +00:00
Yandry Perez Clemente
1530150778 Merge "Add a unique id to Perfetto trace and ANR dropbox header." into sc-dev am: c1b0d9ac23 am: 72eefed0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14344157

Change-Id: Ib8014149be29046767020dede79a9a01d98fce23
2021-05-19 22:52:31 +00:00
Matt Pietal
abc6e0c51b Controls - Use new privacy setting
Wallet/controls privacy setting has been moved and split into
two. Migrate the old setting if the user had previously used
controls. From the QS tile, launch the activity differently when on
the lock screen.

Fixes: 188175341
Test: atest DeviceControlsTileTest
Change-Id: If38ae1c3f0bcc8e0e75146dda09276c13a0604e9
2021-05-18 10:14:32 -04:00
Tom Natan
1d2868c45b Merge "Add @TestApi to NAMESPACE_CONSTRAIN_DISPLAY_APIS." into sc-dev 2021-05-18 08:25:45 +00:00
Peiyong Lin
6ea3ca56f5 Add a secure settings to control game dashboard shortcut.
Add a secure settings to control the game dashboard shortcut always on
option for all games.

Bug: b/185822999
Test: manual
Change-Id: I96b6ebd6c25230e8f12f3871ef1e78fcce9225e8
2021-05-18 00:19:39 +00:00
TreeHugger Robot
e265a992a6 Merge "Intent to LockscreenSettings page on wallet overflow menu clicked." into sc-dev 2021-05-17 17:48:18 +00:00
Neil Fuller
9f47ce098b Merge "Add device_config cmds for disabling syncs" into sc-dev 2021-05-17 16:17:12 +00:00
Yandry Perez Clemente
b19fc200dc Add a unique id to Perfetto trace and ANR dropbox header.
The unique id is added so that the trace and ANR can be easily linked
server side. Also moves the logging of the ANR atom before the ANR dump
takes place so that the Perfetto trace captures data closer to the point
in time when the ANR happens.

Bug: b/188122403
Test: Manual.
 1. Enabled the flag:

 adb shell device_config put perfetto_error_logger append_perfetto_uuid
 true

 2. Triggered an ANR using a test app. Logs from PerfettoTraceErrorLogger:

 adb logcat -s PerfettoTraceErrorLogger
 --------- beginning of main
 04-30 14:07:02.527 1782 12583 I PerfettoTraceErrorLogger: Pushing trace
 counter: 6c555dc6-3f46-4997-8844-706d91156600#PerfettoMonitoredCrash

 3. The UUID is present in the ANR dropbox headers:

 adb shell dumpsys dropbox data_app_anr --print | grep
 6c555dc6-3f46-4997-8844-706d91156600
 PerfettoUUID: 6c555dc6-3f46-4997-8844-706d91156600

Change-Id: If7110692cb0856e693f595e24b067ce1bc7d0a38
2021-05-17 11:35:29 +00:00
tomnatan
3d09726f29 Add @TestApi to NAMESPACE_CONSTRAIN_DISPLAY_APIS.
Bug: 187408243
Test: NA
Change-Id: I7e27118b5cc52cf325f936b454beb2b1995d2df9
2021-05-17 09:11:08 +00:00
Silin Huang
dbc335b1c1 Intent to LockscreenSettings page on wallet overflow menu clicked.
see demo:
https://drive.google.com/file/d/1qO2b5hS3tE8KQt1PtJBIeEJ8r_ti8PWw/view?usp=sharing&resourcekey=0-zZhi6fNdZGnveawEh3fxRA

Test: manual
Bug: 186496392
Change-Id: Id68faf3e2746f66e6633d5a25e64de3f0833d3ef
2021-05-17 02:57:30 +00:00
Neil Fuller
ad3d45a642 Add device_config cmds for disabling syncs
This adds a "sync disabled" mode which disables bulk updates to
device_config (AKA server flags). This is intended for use during
automated and manual tests that use device_config settings to set the
device into specific states for tests. Without this, devices can sync at
an arbitrary point during a test which can undo device_config changes
the tests have made and cause them to fail / flake.

This mechanism is independent of the mechanism used to sync, thereby
making it suitable for use in CTS or other AOSP tests, i.e. to disable
sync regardless of whether GMS core or an alternative is handling the
sync.

Test: atest core/tests/coretests/src/android/provider/DeviceConfigTest.java
Bug: 185786624
Change-Id: Icd0ce798642eb136dc8b9b1a58a4ecbc6212fdba
2021-05-14 11:26:13 +01:00
George Chang
e2417af788 Merge "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev am: c80d117764
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14442228

Change-Id: I177ab56e20e140f28b5154483519be2dc986e512
2021-05-12 16:14:39 +00:00
Tom Natan
b2d92ef7b0 Merge "Add CONSTRAIN_DISPLAY_APIS namespace." into sc-dev am: e68bdc6c8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14468602

Change-Id: I9b6fe188b616348021ef8c3f076e7ddf48aa0418
2021-05-12 16:14:12 +00:00
George Chang
c80d117764 Merge "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev 2021-05-12 16:09:17 +00:00
Tom Natan
e68bdc6c8b Merge "Add CONSTRAIN_DISPLAY_APIS namespace." into sc-dev 2021-05-12 15:56:01 +00:00
tomnatan
92084dc6ae Add CONSTRAIN_DISPLAY_APIS namespace.
Bug: 187408243
Test: manual
Change-Id: I62fc909eafec83a9da84b9f6b4897610ceaa07f5
2021-05-12 09:10:15 +00:00
PETER LIANG
46379dcec5 Merge changes from topic "a11y_floating_menu_migration_tooltip" into sc-dev am: 74a435858a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13990513

Change-Id: I3e009d9a5b9afe42ae37e8127ac2c92f89552146
2021-05-12 03:23:33 +00:00
PETER LIANG
74a435858a Merge changes from topic "a11y_floating_menu_migration_tooltip" into sc-dev
* changes:
  Add the new migration tooltip for accessibility floating menu.(2/n)
  Add the new migration tooltip for accessibility floating menu.(1/n)
  Add key ACCESSIBILITY_FLOATING_MENU_MIGRATION_TOOLTIP_PROMPT.
2021-05-12 02:59:10 +00:00
Haiping Yang
edbaedf568 Merge "Add global settings keys for sysui package and main activity" 2021-05-11 02:33:46 +00:00
John Li
cb5837ffb5 Merge "Add javadoc for Secure.UI_TRANSLATION_ENABLED" into sc-dev am: ebad1be9bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14484642

Change-Id: Ic908223838c34bad7394d79ba4dc67ede390e774
2021-05-11 00:51:06 +00:00
John Li
ebad1be9bb Merge "Add javadoc for Secure.UI_TRANSLATION_ENABLED" into sc-dev 2021-05-11 00:45:55 +00:00
haiping
41d20af652 Add global settings keys for sysui package and main activity
Test: manual
Bug: 155178776

Change-Id: I86eff7004b141a394bc5bcf209f67e63676e0e4f
2021-05-10 19:56:28 +00:00
John Li
9113ce63fa Add javadoc for Secure.UI_TRANSLATION_ENABLED
Bug: 186240729
Test: manual
Change-Id: I4b997e9958c2272019138ec25c87d021da241b4e
2021-05-10 19:06:36 +08:00
Songchun Fan
f1423369fb Merge "Remove @GuardedBy on a final, immutable field" into sc-dev am: 9dba9a6782
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14467996

Change-Id: If9d37e179ef9d2cb3ac9ed600e09bbfc6020d550
2021-05-07 17:20:54 +00:00
Neil Fuller
0541a04273 Remove @GuardedBy on a final, immutable field
Remove @GuardedBy on a final, immutable field as it is causing
errorprone warnings on a work-in-progress commit.

ContentProviderHolder.mUri is accessed in multiple places without
holding mLock, and it is final and documented as immutable so should be
safe to access without mLock. This commit should reduce ErrorProne
warnings now and in future.

Bug: 185786624
Test: build / treehugger only
Change-Id: Ic7fbe550ff6f538f336cfb859f66daa94844ca28
2021-05-07 10:56:01 +01:00
George Chang
c484b05bf2 [SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
BUG: 182283321
Test: atest CtsNfcTestCases
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.nfc
Change-Id: Ic01511201dc1e5e9009ecc41cd8611c503702f79
2021-05-06 16:16:20 +08:00
Peter_Liang
0c6aa86ea7 Add key ACCESSIBILITY_FLOATING_MENU_MIGRATION_TOOLTIP_PROMPT.
The key used to show the migration information related to
the accessibility floating menu.

Bug: 175365399
Test: atest SettingsProviderTest
Change-Id: Ifabc412b990c72ad345bab2d5d8539a57bd6ca5d
2021-05-05 19:24:30 +08:00
Bowgo Tsai
dbec8c1a96 Merge "Revert "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFA..."" into sc-dev am: d5b4a59bc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14341152

Change-Id: Ic69acb91e2c97373ce6314c10186c4984384d75d
2021-04-29 09:30:55 +00:00
Bowgo Tsai
d5b4a59bc0 Merge "Revert "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFA..."" into sc-dev 2021-04-29 09:29:50 +00:00
Bowgo Tsai
42c0359ff4 Revert "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFA..."
Revert "Add an exception for Settings.Secure.NFC_PAYMENT_DEFAULT..."

Revert submission 14326766-b/174151290

Reason for revert: potential test error for b/186717555
Reverted Changes:
I97fcd5550:[SettingsProvider] Remove @Readable for NFC_PAYMEN...
I6e55bef75:Add an exception for Settings.Secure.NFC_PAYMENT_D...

Bug: 186717555
Bug: 182283321
Bug: 174151290
Change-Id: Ib84c57b855ffe10870fda2568a7499746f0d2335
2021-04-29 07:44:33 +00:00
Bill Lin
eb4eb29fba Merge "1/ Add ONE_HANDED_MODE_ACTIVATED secure settings for shortcut" into sc-dev am: 9df0e2bdb3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14295085

Change-Id: I5b5a262b31691d3ed970562b17234c6947a52e73
2021-04-29 04:56:06 +00:00
Bill Lin
9df0e2bdb3 Merge "1/ Add ONE_HANDED_MODE_ACTIVATED secure settings for shortcut" into sc-dev 2021-04-29 04:49:42 +00:00
George Chang
3688bb0b32 Merge "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev am: 469c7c8343
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326766

Change-Id: Id5039abcc0173277589ba33a0d9b3526561b9d87
2021-04-29 00:16:02 +00:00
George Chang
469c7c8343 Merge "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev 2021-04-29 00:13:08 +00:00
George Chang
8347fb86d4 [SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
Bug: 182283321
Bug: 174151290
Test: atest CtsNfcTestCases
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.nfc
Change-Id: I97fcd555072740cb3c0d80c9bb38edab5087195c
2021-04-28 12:35:12 +00:00
Bill Lin
6b7167d88a 1/ Add ONE_HANDED_MODE_ACTIVATED secure settings for shortcut
A new requirement to add A11y shortcut for One Handed Mode feature

- The shortcut action is enter or exit one handed mode
- ONE_HANDED_MODE_ACTIVATED = 0 /* false */ : STATE_NONE
- ONE_HANDED_MODE_ACTIVATED = 1 /* true */  : STATE_ACTIVE

Compare to enabled or disabled (ONE_HANDED_MODE_ENABLED)
- ONE_HANDED_MODE_ENABLED = 0 /* false */ : Disable function
- ONE_HANDED_MODE_ENABLED = 1 /* true */  : Enabled function

Test: manual
Test: make
Bug: 182425480
Change-Id: Iee911631a6734af7eb742e1206d2b9b75b694969
2021-04-28 00:44:45 +00:00
TreeHugger Robot
6fb8a98958 Merge "[SettingsProvider] hide ALWAYS_ON_VPN_APP" into sc-dev am: cbfb5f4584
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14312825

Change-Id: I7b38121956f0cce3e79721a2fa338fdcde0d19b4
2021-04-27 16:12:47 +00:00
Songchun Fan
768b0f8b7a [SettingsProvider] hide ALWAYS_ON_VPN_APP
BUG: 177239818
Test: builds
Change-Id: I4ccbf8b567ea3a6ab2cfd3001a9781a4ba821416
2021-04-26 20:50:36 +00:00
Galia Peycheva
a98d434428 Merge "Use global setting instead of forceWindowBlurDisabled" into sc-dev am: 57ef720249
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14211749

Change-Id: Id25c5ce0b06c7356959f016877e80f16a05619e0
2021-04-26 11:52:34 +00:00
Galia Peycheva
57ef720249 Merge "Use global setting instead of forceWindowBlurDisabled" into sc-dev 2021-04-26 11:42:49 +00:00
Galia Peycheva
85bb3e4da0 Use global setting instead of forceWindowBlurDisabled
This CL removes the existing TestApi
WindowManager#setForceCrossWindowBlurDisabled and replaces it
with Settings.Global#ENABLE_WINDOW_BLURS.

Bug: 14186649
Test: m && atest BlurTests
Change-Id: Ia15b7932ea973a9ed195c507558cdc71f194b366
2021-04-23 11:13:43 +02:00
Haiping Yang
d1069b628b Merge "Revert "Add global settings keys for sysui package and main activity"" 2021-04-22 21:10:31 +00:00
Haiping Yang
dd5fc3b13e Revert "Add global settings keys for sysui package and main activity"
This reverts commit 85eda008b8.

Bug:185951726

Reason for revert: <it might have caused P0 https://b.corp.google.com/issues/185951726>

Change-Id: I420d55f59d92a97dba1b6c776103777c6ad9ed0e
2021-04-22 21:09:30 +00:00
Neil Fuller
7132352de6 Merge "Update settings for Date / Time / Zone" into sc-dev am: e1aaa7f9d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14250527

Change-Id: Ifbd97f4f9dc9f26b23f9ec036e9c2493fd35be99
2021-04-22 09:51:01 +00:00
Neil Fuller
e1aaa7f9d1 Merge "Update settings for Date / Time / Zone" into sc-dev 2021-04-22 09:31:08 +00:00
Neil Fuller
423dc732e1 Merge "Remove Settings.System.DATE_FORMAT" into sc-dev am: f41708d93d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14253105

Change-Id: Ic014d82249a9b0dd4b928339996c9556d65b5bef
2021-04-21 20:22:37 +00:00