Commit Graph

5899 Commits

Author SHA1 Message Date
TreeHugger Robot
8f1f941d3c Merge "CEC: Make HDMI CEC volume control configurable" 2020-04-24 17:53:43 +00:00
Marvin Ramin
309efbc770 CEC: Make HDMI CEC volume control configurable
Add API (backed by Setting) to enable/disable volume changes via HDMI
CEC for HDMI CEC source devices.
This state is persisted via Settings.

If volume control is disabled, no incoming HDMI CEC commands related to
volume will be processed. If disabled, no HDMI CEC volume control
messages will be sent by the device.

Test: atest com.android.server.hdmi
Bug: 149800547

Change-Id: I83ae9b423122b540b9adb156fb1c6f5964dd6105
2020-04-24 16:14:23 +02:00
Fabian Kozynski
ac881ab149 Merge "Add setting for power menu in lock screen privacy" 2020-04-23 19:38:05 +00:00
Fabian Kozynski
1733d49bb8 Add setting for power menu in lock screen privacy
Adds a new Setting for the user to show or hide power menu content
(cards & passes, controls) when the device is locked (secured). A value
of 0 (default) means hide content and a value of 1 means show.

The setting updates from the notification in the following way:
* If Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS is 1 AND
Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS is 1, the new setting is
set to 1 (the user has allowed sensitive content).
* If at least one of those settings is 0, the new setting is set to 0
(the user has not allowed sensitive content).
* If the settings are not set, the new setting is not set.

Test: build
Test: manual with adb
Bug: 152212779
Change-Id: If6d9436f633bc45330956372ea7f8a40ed22ed52
2020-04-22 13:17:40 +00:00
Philip P. Moltmann
01628ba180 Set attributionTag for noteOp(WRITE_SETTINGS) calls
Test: atest FrameworksNetTests
Bug: 136595429
Change-Id: I33f787644c44d7b0e5ce17a433820cfcd985cdfb
Exempt-From-Owner-Approval: Merge from AOSP
2020-04-21 21:46:34 +00:00
TreeHugger Robot
96a9c04c34 Merge "Add Multi Audio focus" into rvc-dev am: 35f960dff4 am: aa2e331b72 am: 3ca29f07e3 am: 6b3f2b14b4
Change-Id: I0440c96948cb8e35b0911fd45ccca6b744feeda8
2020-04-14 08:11:18 +00:00
TreeHugger Robot
35f960dff4 Merge "Add Multi Audio focus" into rvc-dev 2020-04-14 06:29:16 +00:00
Fabian Kozynski
2095a98e9e Merge "Added Settings intents" into rvc-dev am: a35a860c36 am: 84c3b35b94 am: 668f4ab634 am: 2fdfb817c0
Change-Id: Ib5c3206fdf25fdfaf7086e321e4ca56729a0c0d8
2020-04-09 18:12:14 +00:00
Fabian Kozynski
a35a860c36 Merge "Added Settings intents" into rvc-dev 2020-04-09 17:58:44 +00:00
TreeHugger Robot
034b7106c4 Merge "Store conversation requirement in a setting" into rvc-dev am: 5eb9c8fada am: fb7f470b5a am: a2ce73bd87 am: 958fd97525
Change-Id: I7daa6a63311bc1fd03f937abe031bd1ed8e9cee0
2020-04-07 04:48:36 +00:00
TreeHugger Robot
5eb9c8fada Merge "Store conversation requirement in a setting" into rvc-dev 2020-04-07 03:47:02 +00:00
Fabian Kozynski
b5fe4900ea Added Settings intents
And settings enums

Test: manual
Bug: 152212779

Change-Id: I6f3d145c482364c4796d69ba5d1c4bd3736094d7
2020-04-06 13:05:35 -04:00
hjin81.lee
4e984e5503 Add Multi Audio focus
Allows the multiple audio focus that requested with AUDIOFOCUS_GAIN.

Test: atest SettingsProviderTest
Test: Manual - play music on A app
Test: play music on B app    // play music on A app and B app
Test: receive a call         // stop music
Test: end a call             // play music on A app and B app
Test: receive a notification // ducking all music

Bug: b/135749683
Change-Id: I4bdd2cdc5e543674f331fc000bd24fd30499bdc3
2020-04-06 15:33:34 +00:00
Raff Tsai
a5cd600f86 Merge "Add name space settings_stats" into rvc-dev am: 6944511300 am: efe044ca65 am: 9f5e5de863 am: 5a4880156c
Change-Id: I1c510f2148e6e6d5588488cb11267537e431584f
2020-04-04 04:35:35 +00:00
Raff Tsai
6944511300 Merge "Add name space settings_stats" into rvc-dev 2020-04-04 03:18:04 +00:00
Raff Tsai
a0756cd60f Add name space settings_stats
settings_stats name space contains whitelist keys which is needed
for logging.

Design doc: https://docs.google.com/document/d/1OijtO3QfFxYiIUyNbVm7pGzZ8zx2xV-1CrLYQEIGDTI/edit
Bug: 142941011
Test: rebuild

Change-Id: Ib6cb2b1203dbc0f5c575099e91dd0a40a3e17ca9
2020-04-03 17:58:16 +08:00
Diksha Gohlyan
1e8cd047a7 Merge "Check Read permissions when getDocumentMetadata" into rvc-dev am: ffc3e741d2 am: 8ed5a46eb6 am: e97cc6fb55 am: 26eeef9ed8
Change-Id: I830b306ebda9ab57e2097ba8986cc9df01cd5ae9
2020-04-03 06:48:31 +00:00
Julia Reynolds
e24faa2c86 Store conversation requirement in a setting
So we can show it in developer options. Also fix a bug
where the setting wasn't being respected in systemui.

Test: atest
Bug: 152907434
Change-Id: I1eaed93a0c8a1ec4486c7072972e2f924402bb94
2020-04-02 16:28:40 -04:00
Diksha Gohlyan
0e75809955 Check Read permissions when getDocumentMetadata
Test: not tested
Bug: 151095863

Change-Id: I4f04f08f76d039196c2c67bac80d4a46ebec87f2
2020-04-02 04:30:53 +00:00
Jason Chang
e296f7e6f4 Merge "Add One-Handed mode features 1. Settings keys definition. 2. Support Backup/Restore for user settings." 2020-03-31 05:58:39 +00:00
Eugene Susla
0472e3b7da Merge "Introduce a Setting for auto revoke teamfood settings" into rvc-dev am: e7181b197c am: 801e293cba am: e008670531 am: 0b9233ebdb
Change-Id: I71cc2c3c818e534e6c45e8c1e24deee3cebb80a3
2020-03-31 05:56:52 +00:00
Eugene Susla
e7181b197c Merge "Introduce a Setting for auto revoke teamfood settings" into rvc-dev 2020-03-30 21:58:40 +00:00
Eugene Susla
c6909ffe20 Introduce a Setting for auto revoke teamfood settings
Test: presubmit
Bug: 146513245
Change-Id: I57e20694528e6e2e94957e66d03cbf292c305f0d
2020-03-30 12:29:26 -07:00
Soonil Nagarkar
39766392a7 DO NOT MERGE Refactor appops across location
-Add a new app ops helper to make testing easier.
-Consolidate app identity within CallerIdentity class.
-Remove location age restriction for coarse locations, was a bit
arbitrary.
-Remove listener identifiers from LM. These were not being properly
propagated and add a lot of binder overhead with what appears to be
little benefit since we have featureIds, which contain much better
information.
-Remove appops checks from some GNSS APIs that shouldn't require it.
-Move location fudger into location providers and reset them after mock
providers are used so that offset information cannot be leaked.

Bug: 149375028
Test: presubmits + manual
(cherry picked from commit 6033344baa)
Change-Id: I18e2cf3c39836f31d28180e1a4613df4ad675ab7
2020-03-28 13:59:26 -07:00
Yurii Zubrytskyi
0788f77908 Merge "[settings] Add a knob to turn off incremental default" into rvc-dev am: 95955373b8 am: eb8307f2c3 am: 85d86b3ab6 am: 3a56fd3576
Change-Id: If2de8a85557bbc4ecfef21694af41a808b7d19af
2020-03-28 09:24:56 +00:00
TreeHugger Robot
e3353af044 Merge "Remove permission requirement for SMS_DB_LOST intent." into rvc-dev am: 32a316ddfe am: 6e7f9c4296 am: 1ab9403c2e am: bfb736f21e
Change-Id: Id24f79176a35895482c73cc95501c146daacd58a
2020-03-28 08:48:41 +00:00
Yurii Zubrytskyi
95955373b8 Merge "[settings] Add a knob to turn off incremental default" into rvc-dev 2020-03-28 08:34:55 +00:00
TreeHugger Robot
32a316ddfe Merge "Remove permission requirement for SMS_DB_LOST intent." into rvc-dev 2020-03-28 07:31:35 +00:00
Jason Chang
a02d42dda1 Add One-Handed mode features
1. Settings keys definition.
2. Support Backup/Restore for user settings.

Add Settings keys definition for toggles.

Toggles in Settings location:
Settings > System > Gesture > One-Handed

Bug: 146908717
Bug: 151130376

Test: manual
Change-Id: Ia329e39a7f1912620ba8ba5b47619236fb872509
2020-03-28 15:08:01 +08:00
Yurii Zubrytskyi
4a90c80aa9 [settings] Add a knob to turn off incremental default
A new value in global settings for the adb to determine if the
device allows using incremental installations by default.

Bug: 150183149
Test: builds
Change-Id: I64e8fafcacbb790fa469629136a7dacbfd34e800
2020-03-27 23:25:35 -07:00
Amit Mahajan
6eb456615f Remove permission requirement for SMS_DB_LOST intent.
So that messaging app can listen to it for debuggability.

Test: basic sanity
Bug: 152559647
Change-Id: Ie1b980a6bfbbc7887948cfc41e4928e9f160da98
2020-03-27 16:58:12 -07:00
Fabian Kozynski
194827e54e Merge "Add Secure Setting for Controls" into rvc-dev am: 1f8d91de8c am: efe1971995 am: 48e3746dcd am: 472c0b8e35
Change-Id: I27f4db15a9d415d2a27310b3d68d5aaacdf079b9
2020-03-27 18:23:24 +00:00
Fabian Kozynski
1f8d91de8c Merge "Add Secure Setting for Controls" into rvc-dev 2020-03-27 17:16:48 +00:00
Rhed Jao
dba485be4c Merge "A new setting key to hold targets of the a11y button" into rvc-dev 2020-03-27 06:37:05 +00:00
Rhed Jao
39f4101502 Merge "A new setting key to hold targets of the a11y button" 2020-03-27 02:06:40 +00:00
Menghan Li
ec65a6a138 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)" into rvc-dev am: fea8d184c2 am: 5664cb5315 am: 21f36c7bfb am: b10fbb7a4e
Change-Id: I995d4e7e20d12235d6fd57c8e8d437c8cb727fb6
2020-03-26 01:27:47 +00:00
Menghan Li
fea8d184c2 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)" into rvc-dev 2020-03-26 00:21:50 +00:00
Fabian Kozynski
bcaf0efea3 Add Secure Setting for Controls
Also:
* added to backed up settings.
* fixed imports

Test: build
Test: change setting through adb.
Bug: 152212779
Change-Id: Ia6cc7e9fb7f93842cfbf248f3e88c1d964656409
2020-03-25 09:30:13 -04:00
Rhed Jao
10e4b5f0b0 A new setting key to hold targets of the a11y button
Roll back the changes of ACCESSIBILITY_BUTTON_TARGET_COMPONENT to
support previous behavior of the a11y button. Also, create another
setting key to hold shortcut targets of the a11y button which is
assigned by the user from the settings app.

Bug: 152263232
Test: atest SettingsProviderTest
Change-Id: I7a70e8c8495cefe6632efddbb322a323aa1168c7
Merged-in: I7a70e8c8495cefe6632efddbb322a323aa1168c7
2020-03-25 04:10:08 +00:00
Rhed Jao
69b897ad07 A new setting key to hold targets of the a11y button
Roll back the changes of ACCESSIBILITY_BUTTON_TARGET_COMPONENT to
support previous behavior of the a11y button. Also, create another
setting key to hold shortcut targets of the a11y button which is
assigned by the user from the settings app.

Bug: 152263232
Test: atest SettingsProviderTest
Change-Id: I7a70e8c8495cefe6632efddbb322a323aa1168c7
2020-03-25 11:37:04 +08:00
menghanli
390f8f9be9 Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)
- Target to fix migration issue to support a user revoked the accessibility shortcut before upgrading to R, but wants to to apply new hardware shortcut design in R.
- The switchbar of accessibility_shortcut_enabled was removed in (1/n), so we should also remove related checker in controller.

Bug: 142529032
Test: atest AccessibilityShortcutControllerTest
Change-Id: I48f8d88c4192e894b9e210221e5dc7e701344623
2020-03-25 07:46:41 +08:00
Roshan Pius
b21c55516c Merge "Settings: Add a javadoc note for WIFI_MIGRATION_COMPLETED" into rvc-dev am: 198e8c3629 am: 897f273301 am: 7dff45e29c am: 18a585ef8e
Change-Id: I36cceed71651c9ac68d60a4e14e5d445de8442bd
2020-03-24 18:11:47 +00:00
Roshan Pius
d0d5fc222e Settings: Add a javadoc note for WIFI_MIGRATION_COMPLETED
Addressing previous CL comment.

Bug: 151888061
Test: Compiles
Change-Id: I4c740134b08bae9f40531c4a0d4133336d1a88d1
2020-03-24 15:16:44 +00:00
Roshan Pius
988712df08 Merge "WifiMigration: Add a settings key to indicate migration is complete" into rvc-dev am: 5f176bf91e am: cecebfae5a am: 3721e105fd am: b64acacd04
Change-Id: I8c58998a68bf0352428ef809b566b86361ddf0f1
2020-03-24 06:00:00 +00:00
Roshan Pius
849a6f78a5 WifiMigration: Add a settings key to indicate migration is complete
Bug: 151888061
Test: Manual verification (ensured that this method returns null after
first reboot)

Change-Id: Ie8ad397c7b68e35cfa7b696ef22d84f376cf3fe7
2020-03-23 18:48:28 -07:00
TreeHugger Robot
583c366ffe Merge "Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API" into rvc-dev am: 243f8b00ae am: e00f314d28 am: d1fba81d56 am: acdb2c06f7
Change-Id: Iee78c617f45c6efa6bcb42cdf75ef10296ecb981
2020-03-20 17:38:47 +00:00
TreeHugger Robot
243f8b00ae Merge "Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API" into rvc-dev 2020-03-20 17:11:08 +00:00
Automerger Merge Worker
f247cfacac Merge "Merge "[API Review] APIs in SubscriptionManager" into rvc-dev am: 77bdf2a0c0 am: 74d9a49dc2 am: 2e7d8d9baa" into rvc-qpr-dev-plus-aosp am: 6ce92aed8a
Change-Id: I5a66b522ed2ad8c9581767d33b854ccc6f7375da
2020-03-19 20:49:45 +00:00
Robert Carr
8d98856760 Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API
This way tests which capture the screen can disable the confirmation.

Bug: 150305764
Test: SurfaceControlTests ASurfaceControlTests
Change-Id: I730a78b82be47eb61fe758f2f9c4ff0073754b50
2020-03-19 13:21:34 -07:00
Peter Wang
77bdf2a0c0 Merge "[API Review] APIs in SubscriptionManager" into rvc-dev 2020-03-19 20:07:38 +00:00