Commit Graph

5371 Commits

Author SHA1 Message Date
Long Ling
1961cf1cdc Move device config key high_refresh_rate_blacklist to display_manager
high_refresh_rate_blacklist belongs to smooth display feature. Move the
key from namespace window_manager to display_manager.

Bug: 139138964
Test: atest WmTests:HighRefreshRateBlacklistTest
Test: Manual adb shell device_config/dumpsys window
Change-Id: I3ae8ecce80ef97c4683a1c18ad81dc78456e9d57
2019-09-03 17:02:11 -07:00
Jeff Sharkey
80cdd27194 Merge "Ignore broken tests, fix flaky tests." 2019-08-30 18:53:09 +00:00
Mady Mellor
8c209679f5 Merge "qt-r1-bubbles-dev @ build 5835883" 2019-08-30 18:11:37 +00:00
Mady Mellor
06b770cf14 qt-r1-bubbles-dev @ build 5835883
Test: presubmit setup on source branch

Bug: 126945401
Bug: 128932906
Bug: 129158983
Bug: 130237686
Bug: 130250809
Bug: 130442248
Bug: 131267438
Bug: 131609280
Bug: 131692350
Bug: 131849856
Bug: 133444037
Bug: 134064116
Bug: 134064858
Bug: 134070807
Bug: 134077101
Bug: 134090085
Bug: 134155107
Bug: 134423445
Bug: 134512898
Bug: 134514210
Bug: 134514227
Bug: 134734945
Bug: 134960381
Bug: 134989736
Bug: 135214687
Bug: 135280077
Bug: 135472021
Bug: 135475155
Bug: 135487618
Bug: 135488406
Bug: 135518045
Bug: 135633218
Bug: 136034310
Bug: 136150954
Bug: 136199542
Bug: 136538998
Bug: 137201711
Bug: 137213469
Bug: 137214359
Bug: 137214536
Bug: 137233453
Bug: 137876221
Bug: 138301618
Bug: 138445026
Bug: 138659213
Bug: 138749133
Bug: 138799651
Bug: 138801505
Bug: 138941969
Bug: 139002444
Bug: 139025304
Bug: 139816141
Change-Id: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
2019-08-29 20:24:52 -07:00
Aurimas Liutikas
4d1699da48 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-29 17:15:44 -07:00
Jeff Sharkey
9857135126 Ignore broken tests, fix flaky tests.
Bug: 112545973
Test: atest --test-mapping frameworks/base/core/java/android/provider/
Change-Id: I0d7635b165826fda9e590b24d17f9bcffaab1cc8
2019-08-29 14:13:09 -06:00
Dave Mankoff
10b34a5a9c Merge "Use a testable version of DeviceConfig in the FalsingManager." 2019-08-29 19:58:37 +00:00
Al Sutton
d4299771ec Add test mappings to ensure settings backup tests run on appropriate changes.
In core/java/android/provider we want to run the tests which were being run
before they were moved into the SettingsProviderTest suite. To do this I've
followed the existing pattern of running tests marked with the @Presubmit
annotation.

In packages/SettingsProvider we want to run the whole suite on any changes,
which is why there is no filter on that change.

Bug: 139449903
Test: atest and manual verification the moved tests run
Change-Id: If7fd3978a96b979e1cf340803f5a36412de36f65
2019-08-29 07:13:57 +01:00
Dave Mankoff
186bd74665 Use a testable version of DeviceConfig in the FalsingManager.
Clean up the listeners in the test (and elswhere).

Bug: 139051615
Test: atest SystemUITests
Change-Id: I35fa49f9aeeac98da9e4dafa7ae50d67262b2a0b
2019-08-28 12:34:42 -04:00
Al Sutton
0833b2e6f8 Move the list of settings to backup out of the Settings class
Bug: 139449903
Test: atest SettingsProviderTest
Change-Id: Ia1636732e4b6458fd874a6748dddfcaf7d967545
2019-08-28 14:51:20 +01:00
Al Sutton
91f89d0a8b Move the validators out of the settings class
Currently the validators static initialiser gets triggered when the
relevant settings class is accessed. Moving them out to the
SettingsBackupAgent (which is the only place they're used) has two
main advantages;

1) All apps accessing the Settings classes no longer trigger the
static initialisers and so are faster.

2) Putting them in SettingsBackupAgent gets them off the
bootclasspath of all apps and makes the framework jars smaller.

Bug: 139449903
Test: atest SettingsProviderTest RunBackupFrameworksServicesRoboTests CtsBackupTestCases CtsBackupHostTestCases GtsBackupTestCases GtsBackupHostTestCases
Change-Id: Ie740c1ea25a01c715964175094677af2e3328732
2019-08-28 14:51:20 +01:00
Long Ling
119ed4506e Merge changes from topic "device_config_for_display_qpr1" into qt-qpr1-dev am: 30e9250f19
am: 7adf3f0109

Change-Id: Ia17a834fa382f31ca30a8df50063554dea0859b0
2019-08-26 23:16:39 -07:00
Long Ling
7adf3f0109 Merge changes from topic "device_config_for_display_qpr1" into qt-qpr1-dev
am: 30e9250f19

Change-Id: I6db03bb92b73c799944764014acb31ebc3038165
2019-08-26 21:59:12 -07:00
Long Ling
ba9b991d1e Merge "DeviceConfig: Add Name space and keys for Display Manager" 2019-08-26 21:59:22 +00:00
Long Ling
3b58effa1a DMD: Support minimum refresh rate
Bug: 139685237
Change-Id: Ib41dee351276d70733fffa18620455e4e6f9ddfc
2019-08-26 11:59:13 -07:00
Long Ling
7227ff19aa DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
am: dde6248065

Change-Id: Ic452fed2390fab0f69799a192ce86402b4c0cb7e
2019-08-23 06:24:30 -07:00
Long Ling
dde6248065 DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
Bug: 139138964
Change-Id: I077380583f0daf650b17832a6cec4919b41ac155
2019-08-23 13:00:53 +00:00
Jeff Sharkey
ec19e9b107 Public APIs for ID-specific Uris, misc items.
We have getContentUri() for entire collections of items, but we
only have ID-specific overloads for some of the MediaStore classes;
let's get them all added for consistency.

Remove primary/secondary directory logic, which was replaced by
new RELATIVE_PATH column before Q launched.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: trivial API refactoring
Change-Id: Iae4e7fe57adff071c35af459e31223a1fd05fef2
2019-08-22 14:43:24 -06:00
Long Ling
bc75c53d84 DO NOT MERGE DMD: Support minimum refresh rate
am: 86ce8f764b

Change-Id: I5f0fd5ea784013783fd2c53170406ee2a7f17560
2019-08-21 19:56:54 -07:00
TreeHugger Robot
dd32e3c0a8 Merge "Avoid using sListeners outside of synchronized block." 2019-08-21 20:49:25 +00:00
Long Ling
86ce8f764b DO NOT MERGE DMD: Support minimum refresh rate
Bug: 139685237
Change-Id: Ib41dee351276d70733fffa18620455e4e6f9ddfc
2019-08-21 13:42:03 -07:00
Long Ling
b6e7f1569f DO NOT MERGE Move device config key high_refresh_rate_blacklist to display_manager
am: 6f13f12213

Change-Id: I51153a17807bccd6dc4220dbdb053f01bc1eed3d
2019-08-21 12:56:10 -07:00
Raman Tenneti
120715a56b Merge "Wait until any background events are processed." into stage-aosp-master am: 0589325300
am: 8cf1cab8c4

Change-Id: I7648fba978a44d421021e4a7e4a821ebf3ef4b38
2019-08-21 12:31:17 -07:00
Raman Tenneti
8cf1cab8c4 Merge "Wait until any background events are processed." into stage-aosp-master
am: 0589325300

Change-Id: I198e5863a5f4f3e8b7dec0e5ae13be2548719285
2019-08-21 12:09:54 -07:00
Long Ling
6f13f12213 DO NOT MERGE Move device config key high_refresh_rate_blacklist to display_manager
high_refresh_rate_blacklist belongs to smooth display feature. Move the
key from namespace window_manager to display_manager.

Bug: 139138964
Test: atest WmTests:HighRefreshRateBlacklistTest
Test: Manual adb shell device_config/dumpsys window
Change-Id: I3ae8ecce80ef97c4683a1c18ad81dc78456e9d57
2019-08-21 10:45:29 -07:00
Long Ling
66e9298ac6 DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
Bug: 139138964
Change-Id: I077380583f0daf650b17832a6cec4919b41ac155
2019-08-21 10:45:22 -07:00
Long Ling
260c524f47 DeviceConfig: Add Name space and keys for Display Manager
Bug: 139138964
Change-Id: I077380583f0daf650b17832a6cec4919b41ac155
2019-08-20 23:03:15 -07:00
Jeff Sharkey
570926daef Merge "Migrate MediaScannerConnection to using call()." 2019-08-20 00:29:26 +00:00
Jeff Sharkey
9f6f8bedbc Wait until any background events are processed.
Some MediaProvider events (such as thumbnail invalidation) are
handled on a background thread.  To reduce flaky tests, wait until
all background events have been processed, which is more robust
than sleep.

Bug: 134879702
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ia032b19c1b0e5c0096c55bf3d46a5153525e89fa
(cherry picked from commit efad242f35)
2019-08-19 22:15:51 +00:00
Kevin Chyn
992624c900 Merge "Remove unused setting" into qt-r1-dev
am: 95a675ce91

Change-Id: Ibcda9ded65a44ea69a1c16c79d144e7514331b42
2019-08-19 15:10:39 -07:00
Kevin Chyn
709b0a4a74 Merge "Remove unused setting" into qt-r1-dev
am: 95a675ce91

Change-Id: Ia72e5c6625f8213c807966312550111bcbdcb767
2019-08-19 15:08:45 -07:00
Kevin Chyn
95a675ce91 Merge "Remove unused setting" into qt-r1-dev 2019-08-19 21:50:22 +00:00
Steven Liu
21078b6b27 Merge "Remove settings and resources about CarrierNetworkNotifier" 2019-08-19 21:24:11 +00:00
Jeff Sharkey
aac9878b43 Migrate MediaScannerConnection to using call().
As part of getting MediaProvider to compile against supported APIs,
we're moving to the call() method instead of IMediaScannerService.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Change-Id: Ie959daa7576214024150faf84b44cdba00119257
2019-08-19 14:14:28 -06:00
Al Sutton
b0067fb4ed Move validators out to their own package
Move the settings validators out to their own package so we can
reason about them more easily. This is the first step in a journey
which will end up with us not initialising them inside the Settings
object which, in turn, will reduce boot times.

Bug: 139449903
Test: atest RunBackupFrameworksServicesRoboTests CtsBackupTestCases CtsBackupHostTestCases GtsBackupTestCases GtsBackupHostTestCases
Change-Id: I611d9855fa91bbbbb6b0996e8ed6d765dca74717
2019-08-19 15:11:13 +01:00
Kevin Chyn
d806bc4c11 Remove unused setting
Bug: 139554930

Test: manual
Change-Id: I5c4af200b0c61efb9a0f76d00c2f047d4880d77b
Merged-In: I5c4af200b0c61efb9a0f76d00c2f047d4880d77b
2019-08-17 04:52:47 +00:00
Kevin Chyn
499ff8a5ca Remove unused setting
Bug: 139554930

Test: manual
Change-Id: I5c4af200b0c61efb9a0f76d00c2f047d4880d77b
2019-08-16 18:46:20 -07:00
Pavel Grafov
c2370735c4 Avoid using sListeners outside of synchronized block.
Bug: 139477863
Test: atest CtsDeviceConfigTestCases
Test: FrameworksCoreTests:DeviceConfigTest
Test: SettingsProviderTest:DeviceConfigServiceTest
Change-Id: Ifa42570205f00c6a3a280bb71d1b5681bc57e09b
2019-08-16 18:24:14 +01:00
David Su
3968643766 Removed WifiController deferred enable configurations
Bug: 71559473
Test: Compiles

Change-Id: Ifc19c9c8bc7c205fbfb13d18fc91b95eb2e42a75
2019-08-15 17:01:57 -07:00
Steven Liu
4172a85398 Remove settings and resources about CarrierNetworkNotifier
Bug: 139364643
Test: build, boot up; atest
Change-Id: I25c28689df5d2e016b9ae53b942494ef8ad577af
2019-08-15 13:58:40 -07:00
Jeff Sharkey
bd5453c279 Merge "Sprinkle in some TEST_MAPPING." 2019-08-13 22:49:43 +00:00
Jeff Sharkey
fdd1c1f002 Sprinkle in some TEST_MAPPING.
Bug: 112545973
Test: manual
Change-Id: Ie00ac10fe8f0f1e3a37f11fe5c0363b6748fd074
2019-08-13 11:09:50 -06:00
Al Sutton
0175dd803a Merge "Fix logic in validators" 2019-08-13 08:22:21 +00:00
Al Sutton
867ded271a Fix logic in validators
Fixes: 138953494
Test: atest SettingsValidatorsTest
Change-Id: I3c4387275f775ea9f9622bef8d8ca4b889b19c0b
2019-08-12 16:59:14 +01:00
Al Sutton
71dc8ff4e1 Backup device information
Adding the device information to the backup will allow us to restore
data which is device specific if it's appropriate to do so (e.g. device
density)

The device specific settings which will be backed up are;

Settings.Secure.DISPLAY_DENSITY_FORCED

Test: atest SettingsProviderTest SettingsBackupTest
Test: Manual - Density changes during SUW when setting is restored
Fixes: 28437818
Change-Id: Ibc3595cdece3f1ccb4fccaff8212c1c3cb5c9756
2019-08-12 13:55:47 +01:00
Jeff Sharkey
c08da86cb7 Merge "Wait until any background events are processed." 2019-08-09 22:13:33 +00:00
Kevin Hufnagle
7ab7ee8aa7 Merge "docs: Removed dates in obsolete field messages." into qt-dev am: 45855214b5 am: 3956d9606c am: 98fdc74e1c
am: 2d6db5ec0c

Change-Id: Id0daf5c83fa4011ee2829874f6154f41e8e0ec92
2019-08-07 15:56:20 -07:00
Kevin Hufnagle
efd12041a5 Merge "docs: Removed dates in obsolete field messages." into qt-dev am: 45855214b5
am: 3956d9606c

Change-Id: Ic98e6f761402f73c11639a44e961ee7cf5f14e4a
2019-08-07 15:34:30 -07:00
Kevin Hufnagle
98fdc74e1c Merge "docs: Removed dates in obsolete field messages." into qt-dev am: 45855214b5
am: 3956d9606c

Change-Id: I2171e3587c1f4394bc47b082b7723f9722bc054f
2019-08-07 15:34:29 -07:00
Kevin Hufnagle
66c6c0b5a1 Merge "docs: Removed dates in obsolete field messages." into qt-dev
am: 45855214b5

Change-Id: Ib60b83f6d0c372a7fc6b9069f8c5ddb20d10fd90
2019-08-07 15:23:41 -07:00