Commit Graph

5892 Commits

Author SHA1 Message Date
Felipe Leme
3bf4ec139b Merge "Removed Settings.Global.LAST_ACTIVE_USER_ID." into rvc-dev 2020-06-04 19:13:20 +00:00
Jack Yu
dc9e545bd1 Merge "Store ETWS primary information in the database" into rvc-dev 2020-06-04 00:46:07 +00:00
Jack Yu
059be24240 Store ETWS primary information in the database
ETWS primary/secondary flag needs to be saved in the
database in order to perform duplicate check later. Used the
hardcoded database column name because Android R API freezes.
Will remove the hardcode in the next Android release.

Fix: 157699377
Test: CtsTelephonyTestCases & CellBroadcastServiceTests
Change-Id: Iedec92a1f435f60ceb9f36637a1718adbbd7e2ae
2020-06-03 21:18:54 +00:00
Felipe Leme
4bf9bc6ab0 Removed Settings.Global.LAST_ACTIVE_USER_ID.
This property was only used by Automotive and was added on frameworks/base
because it used be accessed by a class on frameworks/opt/services/car, but
it's now only accessed under packages/services/car (so it was moved to
CarSettings).

Test: atest SettingsBackupTest
Bug: 156567994

Change-Id: Idaff4a249600517c5250cd3821d75ce85fc9eeee
2020-06-03 12:34:07 -07:00
Julia Reynolds
e03aa8f751 Update conversation priority onboarding
And fix a bug with toggling priority I noticed while testing

Test: atest
Fixes: 157988478
Bug: 155490513
Change-Id: I8f5a6076ed2aa6c862a187bac15f3ad9af3cd141
2020-06-02 16:49:39 -04:00
Sarah Chin
8300a64490 Merge "Add Setting for NR screen off indications" into rvc-dev 2020-05-26 21:56:42 +00:00
Sarah Chin
6c28373913 Add Setting for NR screen off indications
Test: build
Bug: 154241884
Change-Id: Ifa485230f6d27eaa7a665a396e3eac33e00feadb
2020-05-14 15:45:16 -07:00
Song Pan
74b5e72f17 Change the timeout for integrity verification from 10 seconds to 30 seconds.
Context: https://buganizer.corp.google.com/issues/154486093#comment24

Bug: 154486093
Test: N/A
Change-Id: I4fae3401ad7323acfa9cc520aac0cbb6bdbf6ada
2020-05-13 20:27:40 +01:00
Kweku Adams
86a71e6e93 Merge "Add master switch to enable/disable RESTRICTED bucket." into rvc-dev 2020-05-08 15:01:03 +00:00
Kevin Chyn
73407d6559 Merge "Revert "Check Read permissions when getDocumentMetadata"" into pi-dev am: 3d599fd941 am: c1f5869518 am: 38691f7626
Change-Id: I2179cb6e443d25c859ab6c433b11aec63153f256
2020-05-07 01:28:25 +00:00
Kevin Chyn
38691f7626 Merge "Revert "Check Read permissions when getDocumentMetadata"" into pi-dev am: 3d599fd941 am: c1f5869518
Change-Id: I1ea9173d607acdcbd03de42aa793b018c23828e3
2020-05-07 01:15:56 +00:00
Kevin Chyn
c1f5869518 Merge "Revert "Check Read permissions when getDocumentMetadata"" into pi-dev am: 3d599fd941
Change-Id: I18eb6c4cd9c42f3cc1d1051b47aafeeffb6b0c16
2020-05-07 01:02:48 +00:00
Kevin Chyn
f21b907b1b Revert "Check Read permissions when getDocumentMetadata"
This reverts commit c94646177c.

Reason for revert: 155930637

Change-Id: Id452d316d1c1721fce715474df009ebe0fb719e8
2020-05-07 00:39:46 +00:00
Diksha Gohlyan
3bea45c642 Merge "Check Read permissions when getDocumentMetadata" into pi-dev am: 4371baafc1 am: ada451e47c
Change-Id: Id40f7456923144e3496df2028c771325ad1f480e
2020-05-06 23:16:07 +00:00
Diksha Gohlyan
ada451e47c Merge "Check Read permissions when getDocumentMetadata" into pi-dev am: 4371baafc1
Change-Id: Ib242d6ed7ff376a71f85a03aa06f2c0453638310
2020-05-06 23:05:34 +00:00
Marco Ballesio
ce9b47859d Merge changes from topic "developer option for app freezer" into rvc-dev
* changes:
  Resources and strings for freezer settings
  Settings option to enable/disable the app freezer
  ActivityManager API to check availability of app freezer
2020-05-06 16:35:44 +00:00
Kweku Adams
2d79ce5f50 Add master switch to enable/disable RESTRICTED bucket.
Adding a master on/off switch for the new bucket such that when it's off,
apps aren't be put into the bucket and any apps already in it are brought
out.

Bug: 155670438
Test: atest FrameworksServicesTests:AppIdleHistoryTests
Test: atest FrameworksServicesTests:AppStandbyControllerTests
Test: atest SettingsProviderTest:SettingsBackupTest
Change-Id: Iaeabefa14cbaa2d07a13555ecbc29e6fbf11a29c
2020-05-06 08:51:40 -07:00
Marco Ballesio
74f0159425 Settings option to enable/disable the app freezer
The new setting option allows for a local configuration to override the
Device Config flag. Device Config and experiments will be honored by
default.

Bug: 155465196
Change-Id: I978a7b6bd75d9daab3fafed58b7f3c6417e0adab
Test: the option is correctly read and written by the companion CLs
2020-05-05 15:22:56 -07:00
Diksha Gohlyan
c94646177c Check Read permissions when getDocumentMetadata
Test: manually tested
Bug: 151095863

Change-Id: I4f04f08f76d039196c2c67bac80d4a46ebec87f2
(cherry picked from commit 0e75809955)
2020-05-05 20:00:05 +00:00
Kevin Hufnagle
a18b3ea71b Merge "docs: Clarify class definition of Settings.Secure" into rvc-dev 2020-05-04 17:03:25 +00:00
Lucas Dupin
2d8266cdc4 Merge "Move media setting to a constant, disabling it" into rvc-dev 2020-05-04 03:59:28 +00:00
Andrew Sapperstein
8fe35e5f21 Fix broken @see tags in public documentation.
These were previously being suppressed by doclava but with this change,
all failures are fixed and the suppression logic has been removed.

To fix the issues, there were a few possible changes made:
- broken reference to a public API (such as incorrect parameters): fixed
- unnecessary @link inside an @see tag: fixed
- @see referring to an @hide or @SystemApi: reference removed
- broken references to inner class constructors
 - worked around by fully qualifying the constructor

Bug: 6963924
Test: make doc-comment-check-docs
Exempt-From-Owner-Approval: cherry-picked from master
Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
(cherry picked from commit e0624c7a40)
2020-05-01 18:25:32 +00:00
Lucas Dupin
fbe9117ed9 Move media setting to a constant, disabling it
Test: manual
Test: atest SettingsBackupTest
Bug: 155315021
Change-Id: I2f96b1df5e635f3362352ef929e09d7d1ff4be66
2020-05-01 10:48:58 -07:00
Chris Li
1ac23bbf92 Allow Overlay Display to take display flags
Before, CTS test used WindowManager#shouldShowSystemDecors() to set show
system decorations after overlay display launched, which wouldn't enable
system decorations without relaunching. Now, we can set those flag
before display launch similar to what VirtualDisplayHelper does.

Bug: 153624902
Bug: 154158053
Test: atest CtsWindowManagerDeviceTestCases:MultiDisplayClientTests
Test: atest CtsWindowManagerDeviceTestCases:MultiDisplaySystemDecorationTests
Change-Id: I83c21a74c722a23ac77141305a08d9f67c5bbcf0
2020-04-29 11:44:27 -07:00
TreeHugger Robot
2b49f81e7e Merge "Use POWER_MENU_LOCKED_SHOW_CONTENT in wallet" into rvc-dev 2020-04-29 18:08:23 +00:00
Julia Reynolds
ccd18a9d58 Remove unused development setting
Test: make, atest
Bug: 151821676
Change-Id: I74c2b7ac17d99f150c1c185f4b69b3b2e72d2575
2020-04-29 13:22:25 +00:00
Sean Pont
d3cfe6204e Use POWER_MENU_LOCKED_SHOW_CONTENT in wallet
Use POWER_MENU_LOCKED_SHOW_CONTENT to control lock screen behavior for
the Quick Access Wallet.
Do not provide Intents that will fail to start an Activity.
Update comments.

Bug:155232731
Bug:155186709
Test: manual
Test: atest CtsQuickAccessWalletTestCases

Change-Id: I78e5355a69d666aee6dd122389edabed170f07b2
2020-04-28 17:40:09 -07:00
Kevin Hufnagle
72aa131486 docs: Clarify class definition of Settings.Secure
Explain that all apps can read the Settings.Secure database, but only
system apps can write to this database

Test: make ds-docs -j32

Bug: 124360993
Change-Id: I79fadfe02dfedf403b2da0243f4f209431c9aa0a
2020-04-27 15:19:44 -07:00
TreeHugger Robot
77576fe964 Merge "CEC: Make HDMI CEC volume control configurable" into rvc-dev 2020-04-27 12:26:23 +00:00
Marvin Ramin
da665a67f1 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

Merged-In: I83ae9b423122b540b9adb156fb1c6f5964dd6105
Change-Id: I83ae9b423122b540b9adb156fb1c6f5964dd6105
2020-04-27 12:35:56 +02:00
Fabian Kozynski
2095c43a25 [DO NOT MERGE] 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:16:15 +00:00
TreeHugger Robot
35f960dff4 Merge "Add Multi Audio focus" into rvc-dev 2020-04-14 06:29:16 +00:00
Fabian Kozynski
a35a860c36 Merge "Added Settings intents" into rvc-dev 2020-04-09 17:58:44 +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
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
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
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
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
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
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
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