Commit Graph

5346 Commits

Author SHA1 Message Date
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
TreeHugger Robot
dd32e3c0a8 Merge "Avoid using sListeners outside of synchronized block." 2019-08-21 20:49:25 +00: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
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
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
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
Kevin Hufnagle
3956d9606c Merge "docs: Removed dates in obsolete field messages." into qt-dev
am: 45855214b5

Change-Id: I549026ea364645a8d60a1a06df9b20886a6df97a
2019-08-07 15:23:39 -07:00
Kevin Hufnagle
6f809e2f7c docs: Removed dates in obsolete field messages.
Notices about obsolete fields and methods now mention the publish
location (Google Play Store) or Android version (Q and higher).

Test: make ds-docs

Bug: 122482744
Change-Id: Idb60fef711401d43af8eb71343f157590c311571
2019-08-06 18:21:18 -07:00
Adrian Roos
304f75603b GestureNav: Log exclusion rect heights am: 5f2c9a14f5 am: fde134f106
am: e4b2440287

Change-Id: If3f626a85dcf93482ad580e93c1c5b49299fd78f
2019-08-05 14:43:57 -07:00
Adrian Roos
fde134f106 GestureNav: Log exclusion rect heights
am: 5f2c9a14f5

Change-Id: I6b72f4b68773a21575296601f5545746d012524e
2019-08-05 14:17:15 -07:00
Adrian Roos
5f2c9a14f5 GestureNav: Log exclusion rect heights
Logs the rejected and requested exclusion rect heights.

Test: adb shell device_config put android:window_manager key_system_gesture_exclusion_log_debounce_millis 1000
Bug: 135152789
Change-Id: Ie12640f4bf0a8b40b666e604188a0bedd85e8981
Exempt-From-Owner-Approval: DeviceConfig.java: Adding constant to WindowManager namespace.
2019-08-05 21:19:40 +02:00
Jonathan Scott
fb77e63aa5 Add MANAGED_PROVISIONING_DPC_DOWNLOADED.
Test: Just adding a constant
Bug: 132261064
Change-Id: I2bce277ff8f2de4614e19d5385fe6712b076f9c9
2019-08-02 13:14:27 +00:00
Neil Fuller
cac13d44ab Merge "Convert some users of Time.format() to an alt." 2019-07-23 07:49:41 +00:00
Neil Fuller
9aa7b74a7a Convert some users of Time.format() to an alt.
Convert some frameworks/base/ users of android.text.format.Time.format()
to use calculations based on java.time instead. This avoids future
Y2038 issues associated with Time. A TimeMigrationUtils method is
added that has similar localization behavior to Time's format() method.

This commit only contains a replacement for basic formatting usecases.
Later commits can handle more complex usecases.

The only case that modifies the format is the changes to
CalendarContract.java: the pattern used there was unusual and only
used in logging/debug logic which was switched off by default.

Bug: 16550209
Test: build / boot / treehugger
Test: atest FrameworksCoreTests:android.text.format.TimeMigrationUtilsTest
Change-Id: Ib142979858012bb766b4c107d41a21b0324de506
2019-07-19 16:30:30 +01:00
Michael Wright
d6bd615920 Merge "Read the high refresh rate blacklist from DeviceConfig." into qt-r1-dev
am: 6173ba7475

Change-Id: Ifcbac79c98889f3b0f1463537f5e179164e8075a
2019-07-11 20:52:21 -07:00
Michael Wright
6a51b35a7d Read the high refresh rate blacklist from DeviceConfig.
When available, we should read the high refresh rate blacklist from
DeviceConfig, and use the device's configured list as a default /
fallback. This lets us change the blacklist in the field in case we find
additional compatibility issues, or one of the developers fixes their
app and asks us to remove them from the blacklist.

Fixes: 132338514
Test: atest WmTests:HighRefreshRateBlacklistTest
Exempt-From-Owner-Approval: TBR
Merged-In: I984dab60eeafff01758ac38c3db6056b33f662a6
Change-Id: I984dab60eeafff01758ac38c3db6056b33f662a6
2019-07-11 16:26:35 +02:00
Tarandeep Singh
ff0d28905f Merge "Remove PER_PROFILE_IME_ENABLED property" 2019-07-10 18:06:39 +00:00
Michael Wright
f40ed275ef Read the high refresh rate blacklist from DeviceConfig.
When available, we should read the high refresh rate blacklist from
DeviceConfig, and use the device's configured list as a default /
fallback. This lets us change the blacklist in the field in case we find
additional compatibility issues, or one of the developers fixes their
app and asks us to remove them from the blacklist.

Fixes: 132338514
Test: atest WmTests:HighRefreshRateBlacklistTest
Exempt-From-Owner-Approval: TBR
Change-Id: I984dab60eeafff01758ac38c3db6056b33f662a6
2019-07-10 01:26:51 +01:00
Tarandeep Singh
cf5ff82fca Remove PER_PROFILE_IME_ENABLED property
PER_PROFILE_IME_ENABLED is default enabled in Q. We no longer need this
property.

Bug: 135775619
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: Ia957118fabc2dd794cb4f5018692b8548b85233a
2019-07-09 14:53:48 -07:00
Adrian Roos
0cb00861f6 Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev am: 8ef731c232 am: bee24f79f7
am: ace63f135b

Change-Id: Ie7931e951e63f4a5d53618b5f19a75a733710620
2019-07-04 08:30:19 -07:00
Adrian Roos
ace63f135b Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev am: 8ef731c232
am: bee24f79f7

Change-Id: Ic14aaff3851fe0d71100c6f65c8ee46d08ece432
2019-07-04 08:21:20 -07:00
Adrian Roos
7ca3a9c19f Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev
am: 8ef731c232

Change-Id: I38453506b3801252c44289a988998261ad97d70b
2019-07-04 08:07:23 -07:00
Adrian Roos
bee24f79f7 Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev
am: 8ef731c232

Change-Id: Ie23184e62d410cff170232d15720b22d53f7e6df
2019-07-04 08:07:23 -07:00
Adrian Roos
019a52b4ad WM: implicitly exclude all edges for pre-Q immersive sticky apps
Bug: 135522625
Test: atest DisplayContentTests
Change-Id: Ibe6c2c6d269b15c2e79ac0241b93e42c44a167c9
Exempt-From-Owner-Approval: TBR
2019-07-04 14:35:34 +00:00