Commit Graph

615375 Commits

Author SHA1 Message Date
Fabian Kozynski
2e81da64f7 Merge "Do not close QS on security footer dialog" 2020-12-08 20:33:43 +00:00
jorgegil@google.com
2c0e01b240 Don't save the default size as reentry state
Fixes issue where the "default" bounds of PIP can be calculated
differently even though the PIP has never been resized. This is
caused by a combination of changing the aspect ratio of PIP and
trying to restore the "reentry" state that is just the default
state.

Instead, we'll only calculate the PIP bounds using the reentry
size if the size was actually changed by the user, otherwise
we'll always calculate using the default size.

Bug: 169379707
Test: atest com.android.wm.shell.pip
Change-Id: I724b167870407f7f37eb9c8a587a98c7972441a4
2020-12-08 12:27:49 -08:00
Cody Kesting
8e3ec4343d [automerger skipped] Merge "Allow the System UID to unregister ConnDiags CBs." into rvc-qpr-dev am: 07dd48319d -s ours am: 6fc2b58db2 -s ours
am skip reason: Change-Id I20d0cad5f902708d366aa703c2893b0ea3e55052 with SHA-1 4248f22f18 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13169565

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I766b99d3fdba7eb7a556adf808e5041ad70a7a51
2020-12-08 20:09:37 +00:00
Adam He
6e95425270 Unify and clarify divergent flows e.g. where augmented autofill or
inline autofill is triggered.

Bug: 171351158
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ifc5db4f6c59ffa1cc7b55e1a61c956e758d15ebc
2020-12-08 12:09:10 -08:00
Adam Bookatz
cbb8ec9e22 Merge "OWNERS file update for UserManagerInternal" am: 3a7861281b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519214

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id316389aa3d71182fbcd15e76322beadbd30048f
2020-12-08 19:59:24 +00:00
Cody Kesting
6fc2b58db2 [automerger skipped] Merge "Allow the System UID to unregister ConnDiags CBs." into rvc-qpr-dev am: 07dd48319d -s ours
am skip reason: Change-Id I20d0cad5f902708d366aa703c2893b0ea3e55052 with SHA-1 4248f22f18 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13169565

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9cdd7edda3f94d66aa7e0bdc6daaaf5a08b360c0
2020-12-08 19:52:11 +00:00
Jayant Chowdhary
f3b7a85fe8 camera2: Mark onCameraOpened/Closed callbacks @SystemApi.
This is so that regular apps don't get to know when camera devices
are opened / closed (as oppsed to being available / unavailable), in addition to not knowing the
package names of the processes that open / close the devices.

Bug: 147710835
Bug: 170870941

Test: builds
Test: atest CameraManagerTest#testCameraManagerListenerCallbacks

Change-Id: I5cad3cb5dd70775d74c5be20d7adf434fd37bfa7
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-12-08 11:45:02 -08:00
Adam Bookatz
3a7861281b Merge "OWNERS file update for UserManagerInternal" 2020-12-08 19:39:22 +00:00
Cody Kesting
07dd48319d Merge "Allow the System UID to unregister ConnDiags CBs." into rvc-qpr-dev 2020-12-08 19:31:46 +00:00
Benedict Wong
348ffe4474 Add VcnManagementService owners
Test: No code changes
Change-Id: I3c1ff347dbddb2a41c186ea8d18133990e39f7c4
2020-12-08 11:27:03 -08:00
Amy Zhang
e0baa92030 Merge "Rename couldHandleDiseqcRxMessage to canHandleDiseqcRxMessage" 2020-12-08 19:24:14 +00:00
Felipe Leme
37657342d8 Minor refactoring on String formatting.
Test: manual verification using KitchenSink on automotive
Bug: 174675990

Change-Id: Ia9175272d1ee504363e317f2adf0c201f17f3923
2020-12-08 11:11:46 -08:00
Ytai Ben-Tsvi
5bc8f0e178 Reset mServiceDisabled when service dies
When we don't reset the state, if the service died while it was
disabled, future attempts to load models would fail.

Fixes: 171953855
Test: Verified basic sound trigger cases as well as recovery from
      STHAL and audioserver crashes.
Change-Id: I32929123aa936cbee3101ec0ef65c52dd28b240b
2020-12-08 10:48:14 -08:00
Felipe Leme
cd413cf83a Merge "Allow DPM.wipeData() to be called by apps holding MASTER_CLEAR." 2020-12-08 18:38:05 +00:00
Felipe Leme
42eb380d04 Allow DPM.wipeData() to be called by apps holding MASTER_CLEAR.
Test: manual verification using KitchenSink on automotive, which has the
      permission and calls DevicePolicyManager.wipeData() without being
      a DPC.

Fixes: 174675990
Bug: 171803907

Change-Id: I01926fc108254a37febf630611234235074e9247
2020-12-08 18:25:19 +00:00
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8 to master
Bug: 174932174
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08 11:01:05 -07:00
Jeff Sharkey
0ace970e19 Temporarily replace "android.com" accounts.
We're temporarily blocked on internal Gerrit tooling to support
relaxed OWNERS validation, so this change temporarily replaces all
"android.com" accounts with "google.com" equivalents.

Bug: 174932174,175111824
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I114f2a40cee1b65e21250da7372e11c18cd73e25
2020-12-08 17:54:13 +00:00
Hongwei Wang
f1de2b6e76 Cleanup IPinnedStackController and IPinnedStackListener 2/N
Deprecates the following
- IPinnedStackListener#onConfigurationChanged, switched to use
  onConfigurationChanged callback in WMShell
- IPinnedStackListener#onDisplayInfoChanged, switched to use
  DisplayChangeController

Bug: 174702196
Test: atest WMShellUnitTests
Change-Id: Id2161883bd520c99888a561ae058154da06ecb51
2020-12-08 09:44:53 -08:00
Ludvig Hansson
c138fa64ec Make hardware buttons just wake up device
Refrain from propagating hardware button events
to applications when in non-interactive state.

Bug: 159070675
Bug: 151278668
Change-Id: Ifa8c2702084430b1ce81ff41aab4bfef9bb54d9f
(cherry picked from commit 6c139702f6feb783ea93651a2a3ebd7712d71d9d)
(cherry picked from commit ffae2f6b750b3db835404fcdbe37b9e3d94b125a)
2020-12-08 17:31:10 +00:00
Ryan Mitchell
a45506e6f6 Revert^2 "Cache resolved theme values"
6ca48473e5

Change-Id: Icb295186b85e1edcdcebc1d746f7ff0d6ef66829
Merged-In: Icb295186b85e1edcdcebc1d746f7ff0d6ef66829
2020-12-08 16:59:06 +00:00
Ryan Mitchell
e7ab62723a Set resource id correctly when resolve fails
If for some reason the resource id cannot be resolved to a value
(there is no configuration that matches the AssetManager configuration
or some error occurs), set the resource id of the SelectedValue to the
resource id that could not be resolved. This was the behavior before
the AssetManager IncFs hardening refactor.

Bug: 173203252
Test: atest com.google.android.config.pts.PreinstalledAppsTestCase
Test: Chrome icon appears on launcher
Change-Id: Iad1760c0e246da1a4bf64d1c2ec60bb08da32d06
Merged-In: Iad1760c0e246da1a4bf64d1c2ec60bb08da32d06
2020-12-08 16:58:42 +00:00
Ryan Mitchell
80094e39f9 Revert^2 "libandroidfw hardening for IncFs"
55ef6167a2

Change-Id: I02d4890d181655dfd0a14c188468db512559d27b
Merged-In: I02d4890d181655dfd0a14c188468db512559d27b
2020-12-08 16:58:12 +00:00
Mårten Kongstad
ec7e7f5622 idmap2: remove call to obsolete 'idmap2 verify' from valgrind.sh
The 'verify' command was removed as part of a707013b78. Update
valgrind.sh accordingly.

Test: frameworks/base/cmds/idmap2/valgrind.sh
Change-Id: I571cb46bb2ca09a244dc7b609a8bb0ffe01a6e2a
Merged-In: I571cb46bb2ca09a244dc7b609a8bb0ffe01a6e2a
2020-12-08 16:57:07 +00:00
Mårten Kongstad
6532483950 idmap2: remove the 'scan' command
The 'scan' command has been replaced by 'create-multiple'. Remove the
unused code.

Also remove unused functions and #includes from FileUtils, and the
obsolete JNI plumbing.

Test: atest idmap2_tests OverlayDeviceTests OverlayHostTests
Change-Id: Iae073c13ce64b5db48f22f7e723bc8c0c5fcd2c9
Merged-In: Iae073c13ce64b5db48f22f7e723bc8c0c5fcd2c9
2020-12-08 16:54:51 +00:00
Eric Laurent
ac132b65e9 Merge "AudioService: increase audio mode timeout." 2020-12-08 16:44:03 +00:00
Jeff Sharkey
358f0d4fc8 Merge changes from topic "dec5" am: c2793cf12b am: 9af6ac78b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2776a545a24f007ccb4b9ee14705978571265ef3
2020-12-08 16:43:19 +00:00
Jeff Sharkey
24d251403b Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c am: c7c4a74a78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5120a3701af3564f363900b20bca75f3ad2a854c
2020-12-08 16:43:17 +00:00
Jeff Sharkey
592e8816ef Improve OWNERS coverage across frameworks/base/. am: 061c2ec3b6 am: b84eaab331
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7f2d3439880f448dc13b94541880c779e69d3be4
2020-12-08 16:43:14 +00:00
Jean-Michel Trivi
4e6dcbd017 Merge "AAudio player type." 2020-12-08 16:27:51 +00:00
Treehugger Robot
5b0f6c5b26 [automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" am: a021ce9c2f -s ours am: 5d775cd034 -s ours am: 990ee68789 -s ours
am skip reason: Change-Id Ifee35a00de64e194abb80af5d85e34732244f509 with SHA-1 3001a82d2c is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1518642

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I18f3749c9b6e2223acb04a8edc1386a294e859bb
2020-12-08 16:24:40 +00:00
Jeff Sharkey
9af6ac78b0 Merge changes from topic "dec5" am: c2793cf12b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifdc390f5ae046c515a30158f3f55b831be147547
2020-12-08 16:05:11 +00:00
Jeff Sharkey
c7c4a74a78 Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08 16:01:16 +00:00
Jeff Sharkey
b84eaab331 Improve OWNERS coverage across frameworks/base/. am: 061c2ec3b6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1218107820d89a570b55768ed6f9b223cd0db5fc
2020-12-08 15:57:15 +00:00
Treehugger Robot
990ee68789 [automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" am: a021ce9c2f -s ours am: 5d775cd034 -s ours
am skip reason: Change-Id Ifee35a00de64e194abb80af5d85e34732244f509 with SHA-1 a73e594013 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1518642

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaedcd90d877529b37890470f01a0efad9253e2e6
2020-12-08 15:50:06 +00:00
Jeff Sharkey
c2793cf12b Merge changes from topic "dec5"
* changes:
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
2020-12-08 15:39:59 +00:00
Jeff Sharkey
52b9862f87 Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script that
identifies relevant "include" directives.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
2020-12-08 08:36:28 -07:00
Jeff Sharkey
fab0ab3c9c Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script from
detailed ownership information confirmed by team leads.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba
Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-08 08:36:27 -07:00
Jeff Sharkey
061c2ec3b6 Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change begins defining top-level OWNERS lists,
including a general catch-all for string translations.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: Ie7ac3302d40a717fa048115cca2ea4359de64959
2020-12-08 08:36:27 -07:00
Treehugger Robot
5d775cd034 [automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" am: a021ce9c2f -s ours
am skip reason: Change-Id Ifee35a00de64e194abb80af5d85e34732244f509 with SHA-1 a73e594013 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1518642

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I06b1f93fb18719b6e9c7040f115b877d664b207c
2020-12-08 15:30:08 +00:00
Julia Reynolds
e61adb126e Update Settings version
Test: atest
Fixes: 175084979
Fixes: 175085402
Fixes: 175088017
Change-Id: I1243af2dcbc58e4ee77c758ddf2b19e471308dc2
2020-12-08 15:19:06 +00:00
Automerger Merge Worker
b015edad2f Merge "[automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into mainline-prod am: 1494354af4 -s ours" 2020-12-08 14:58:38 +00:00
Baligh Uddin
fd99c7cbde [automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into mainline-prod am: 1494354af4 -s ours
am skip reason: Change-Id Ifee35a00de64e194abb80af5d85e34732244f509 with SHA-1 3001a82d2c is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13178593

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia2f569c455f133e5bd1b984c9efc6ee69e7f8b8f
2020-12-08 14:58:23 +00:00
Ming-Shin Lu
da2f5662ae Merge "Revert "Ignore to show splash screen if the decorView is not opaque"" into rvc-qpr-dev am: 132a346318 am: 9dce71fe0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13178636

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1220d3d5e184e5701d9fe8e4e978d3aa2955bb8
2020-12-08 14:58:16 +00:00
Treehugger Robot
a021ce9c2f Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" 2020-12-08 14:49:59 +00:00
Nicolas Geoffray
17069e403b Make Class.getPackageName public.
Test: m
Change-Id: I358db3d7e95c0ae700f9a7b2820e5324de2258d8
2020-12-08 14:29:02 +00:00
Ming-Shin Lu
9dce71fe0a Merge "Revert "Ignore to show splash screen if the decorView is not opaque"" into rvc-qpr-dev am: 132a346318
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13178636

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I157db4fa729821a059489ca07208b21d12857315
2020-12-08 14:24:22 +00:00
Baligh Uddin
1494354af4 Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into mainline-prod 2020-12-08 14:23:51 +00:00
Baligh Uddin
709503fb95 Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" 2020-12-08 14:17:13 +00:00
Ming-Shin Lu
132a346318 Merge "Revert "Ignore to show splash screen if the decorView is not opaque"" into rvc-qpr-dev 2020-12-08 14:08:54 +00:00
Eran Messeri
8e30a29e10 Merge "Enforce complexity for adb set-password etc" 2020-12-08 12:36:03 +00:00