Commit Graph

761739 Commits

Author SHA1 Message Date
Elis Elliott
d38bf5adac Update the docs for the provisioning extra AllowOffline.
update to reflect the new usage of the extra in forcing platform side
provisioning.

Bug: 236597525

Test: n/a
Change-Id: Ie98e9aaa790d1c0bd4b2d5e2b85a81bd8e3c92e3
2022-06-20 12:34:11 +00:00
Miguel Aranda
12e599047c Merge "Merge "Fix ZipFilePerfTest issues by closing the file in each loop iteration." am: 90c3935195 am: 9c051367f8 am: 4c2143df58 am: 10eceff1b1 am: b90b509fc7" into tm-dev 2022-06-16 08:25:18 +00:00
TreeHugger Robot
2f8fc626c3 Merge "Update brightness nits to keep brightnessFloat same when RBC toggled" into tm-dev 2022-06-16 08:11:09 +00:00
TreeHugger Robot
bbecbbeeb0 Merge "Keep OEM defined DisplayAreaPolicy.Provider" into tm-dev 2022-06-16 02:05:54 +00:00
Beth Thibodeau
a2b34c4c21 Merge "Forward device updates when info changes" into tm-dev 2022-06-16 00:17:04 +00:00
Hai Zhang
b5a2fdd6ca [automerger skipped] Don't remove SYSTEM_FIXED for intentional fixed grants to critical apps. am: 74a6adb8e0 -s ours am: c39d9728d6 -s ours
am skip reason: Merged-In Iaf5e2a0d86259805a9ef03f8f1baa14dd8c58da0 with SHA-1 b0b2863467 is already in history

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

Change-Id: I06fb52192cd75431efc22b54cb4e3109a3728729
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 21:48:24 +00:00
Hai Zhang
c39d9728d6 [automerger skipped] Don't remove SYSTEM_FIXED for intentional fixed grants to critical apps. am: 74a6adb8e0 -s ours
am skip reason: Merged-In Iaf5e2a0d86259805a9ef03f8f1baa14dd8c58da0 with SHA-1 b0b2863467 is already in history

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

Change-Id: Icbdb2192ef3326a81dc712393a40c6469654eb67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 21:30:19 +00:00
Jayant Chowdhary
565f6d457f Merge "Add PREVIEW_STABILIZATION to StaticMetadata.java" into tm-dev 2022-06-15 18:38:03 +00:00
Ming-Shin Lu
016c6a7320 Merge "Fix the startingWindow may clipped during AR#transferStartingWindow" into tm-dev 2022-06-15 15:14:16 +00:00
Beth Thibodeau
f35cfddd03 Forward device updates when info changes
In some cases, the device/route name could change without also updating
the ID. This updates the check to include all fields of MediaDeviceData except
for the icon (which can change reference more frequently than is necessary
to reload). Now if the name, status, or intent has changed, listeners
will be updated to have the new info.

Bug: 235627592
Test: manual
Test: atest MediaDataManagerTest
Change-Id: Iefd7ce0e8859b89db2bc75c243b3a04a0cb3915d
Merged-In: Iefd7ce0e8859b89db2bc75c243b3a04a0cb3915d
2022-06-15 15:08:27 +00:00
Hawkwood Glazier
8b5e8952aa Merge "Media transition must crossfade when transitioning to transparent" into tm-dev 2022-06-15 14:59:32 +00:00
Rupesh Bansal
6764156fa1 Update brightness nits to keep brightnessFloat same when RBC toggled
Bug: 230563819
Test: Manually toggle RBC, and observe that brightness nits change, with
no change in the brightness percentage.

Change-Id: Icb2bff98479cc44aa773ab6e2a828bb281dedbc1
2022-06-15 14:24:10 +00:00
Jason Parks
4492604de8 Merge "Add method to check to see if the component is the supervison component." into tm-dev 2022-06-15 12:54:00 +00:00
Miguel Aranda
94fe3798f5 Merge "Fix ZipFilePerfTest issues by closing the file in each loop iteration." am: 90c3935195 am: 9c051367f8 am: 4c2143df58 am: 10eceff1b1 am: b90b509fc7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2096495

Change-Id: I5f7b1c7f88ae0340c52ebad56132ec0f1d042e20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
(cherry picked from commit a65e6fe7ef)
Bug: 231407205
2022-06-15 11:07:58 +00:00
Jeff DeCew
1a4f7b8bc3 Merge "Fix notifications disappearing when shade fully expands." into tm-dev 2022-06-15 10:15:44 +00:00
Louis Chang
909495e9d6 Merge "Make sure the relayoutWindow is called when Activity restarted" into tm-dev 2022-06-15 05:53:49 +00:00
Hai Zhang
74a6adb8e0 Don't remove SYSTEM_FIXED for intentional fixed grants to critical apps.
See b/208785537#comment11.

Bug: 208785537
Bug: 206556385
Bug: 183537857
Fixes: 203175819
Fixes: 229913295
Test: presubmit
Change-Id: Iaf5e2a0d86259805a9ef03f8f1baa14dd8c58da0
Merged-In: Iaf5e2a0d86259805a9ef03f8f1baa14dd8c58da0
(cherry picked from commit e6f07a4fb2)
(cherry picked from commit b0b2863467)
(cherry picked from commit 751b86257688210328f300bc3268b99f14ed1a73)
2022-06-15 05:31:44 +00:00
TreeHugger Robot
ce944699c6 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-06-15 05:25:34 +00:00
TreeHugger Robot
97eee9f04f Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-06-15 05:25:34 +00:00
TreeHugger Robot
54cabdde8f Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-06-15 05:25:34 +00:00
TreeHugger Robot
64bbf7fb8d Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-06-15 05:25:34 +00:00
TreeHugger Robot
57effef07f Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-06-15 05:25:34 +00:00
Chris Li
61339d80a2 Keep OEM defined DisplayAreaPolicy.Provider
Without this change, it may throw ClassNotFoundException when OEMs
define their own DisplayAreaPolicy.Provider.

Fix: 235942308
Test: verify with a customized provider
Change-Id: I397f4fc05ecd5732e3ebb417de3a66c280f678b3
2022-06-15 12:07:39 +08:00
Charles Chen
eb86759eec Merge "Respect minimum dimensions for embedded Activities" into tm-dev 2022-06-15 03:32:04 +00:00
Kenneth Ford
d10c6d8ae4 Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b am: a4924eb85c am: 3a2171f668 am: e813a20711 am: 1554a00af4 am: 393f58bfde am: a132abb4ca am: 5effd75fff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: I1ef00b509ccd637cf30efd2ad2be7d9d670bdfe7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 03:22:22 +00:00
Kenneth Ford
5effd75fff Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b am: a4924eb85c am: 3a2171f668 am: e813a20711 am: 1554a00af4 am: 393f58bfde am: a132abb4ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: I4f1d8c984a06f084a51f8f2ae2ae5a1ce465e970
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 03:06:08 +00:00
Kenneth Ford
a132abb4ca Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b am: a4924eb85c am: 3a2171f668 am: e813a20711 am: 1554a00af4 am: 393f58bfde
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: Ida57de216f484f4150ab3a4da8065a7c3169ca41
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 02:38:06 +00:00
Vadim Tryshev
ce4cf41cab Merge "Experiment with using "presubmit-sysui" TEST_MAPPING suite" into tm-dev 2022-06-15 02:13:33 +00:00
Kenneth Ford
393f58bfde Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b am: a4924eb85c am: 3a2171f668 am: e813a20711 am: 1554a00af4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: Iaac10e4fcea2638ae321beeaf1b4b2ef3351fcaa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 01:31:51 +00:00
Steve Elliott
5060905ae8 Merge "Add logging to KeyguardNotifVisProvider" into tm-dev 2022-06-15 01:11:28 +00:00
Kenneth Ford
1554a00af4 Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b am: a4924eb85c am: 3a2171f668 am: e813a20711
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: I2c4c7f6b37499f78192c138caa830d03a3377d77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 01:04:06 +00:00
Kenneth Ford
e813a20711 Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b am: a4924eb85c am: 3a2171f668
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: I9339317759418659c34ae10dcdb9a98ef7017290
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 00:38:39 +00:00
Kenneth Ford
3a2171f668 Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b am: a4924eb85c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: Ia735cd97a591faa63c344958b41e7c4feb7f2a89
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 22:57:41 +00:00
Kenneth Ford
a4924eb85c Ignore tests in RecoverableKeyStoreManagerTest am: 4220de4d5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18720703

Change-Id: I837accdc0d4f5bada34fe8da18075092dd295801
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 22:31:58 +00:00
TreeHugger Robot
48a2973fea Merge "Camera: Update the advanced extension version checks" into tm-dev 2022-06-14 22:28:09 +00:00
Wonsik Kim
84959301fb Merge "Revert "MediaCodec: don't cache buffers until requested"" into tm-dev 2022-06-14 21:48:41 +00:00
vadimt
a195fd05a7 Experiment with using "presubmit-sysui" TEST_MAPPING suite
We'll see if it helps with test isolation against the problem with slow broadcasts.

Bug: 202567877, 235268992
Test: various
Change-Id: I5c42ddc615fe0aed8322f5fa890c60bc8084f670
2022-06-14 20:50:47 +00:00
Wonsik Kim
bc7d1172e0 Revert "MediaCodec: don't cache buffers until requested"
This reverts commit d59a075f79.

Reason for revert: regression (see b/235925715)
Fixes: 235925715
Bug: 189889230
Test: manual

Change-Id: I2e52c3abdd13fa0547a510b3599e082e3bff0989
2022-06-14 20:01:22 +00:00
Hawkwood Glazier
d7d4af051c Media transition must crossfade when transitioning to transparent
When transitioning to a transparent or semi-transparent drawable,
TransitionDrawable.setCrossFade must be enabled so that the previous
album art transitions away as expected.

Bug: 235677371
Test: Manual
Change-Id: I4fac5f866354b7f05161b32621a030589b123958
2022-06-14 19:42:17 +00:00
Jeff DeCew
ef8d78874f Fix notifications disappearing when shade fully expands.
The notifications would disappear with the shade fully expands because the shade calculation uses the expanded state if it's not 0 or 1, so when expansion becomes 1 the 'fraction' falls back to using the doze amount, which is 1, causing notifications to disappear.  This was only happening because of a bug where the dozeAmount was left as 1.0 while the device was unlocked during the screen off animation.

The core fix here is to clear the dozeAmount when cancelling screen off.

Fixes: 234979264
Test: enable aod & rear/side fingerprint auth; go to launcher; tap power to turn screen off; unlock with finger during the animation; pull shade to see notifications
Change-Id: If781da0cf941d3560be8bd6b27429e1d94448576
2022-06-14 19:03:11 +00:00
Jason Parks
fb4a46067c Add method to check to see if the component is the supervison component.
Bug: 219025233
Test: manual && atest --no-bazel-mode FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: Icfa6ba0b7300261d49d62fc8b7840fbb964a255a
2022-06-14 17:15:37 +00:00
Winson Chiu
4ad09b9b9e Merge "Fix app links verification resetting user state" into tm-dev 2022-06-14 16:43:30 +00:00
Charles Chen
fa3f9ca94c Respect minimum dimensions for embedded Activities
Before this CL, minimum dimensions of Activity wasn't respected,
that said, an Activity could be embedded in a TaskFragment of which
bounds are smaller its minimum dimensions.
This CL add the minimum dimensions on several places:

WM core:
1. Verify minimum dimension requirement before adding an Activity to
   a TaskFragment. It'll be early return if the requirement is not
   satisfied.
2. Propagate the minimum dimensions to the client side through
   TaskFragmentInfo to notify the requirement.
3. If TaskFragmentOrganizer tries to shrink a TaskFragment to
   the bounds that smaller than minimum dimensions of its children
   Activity, switch to match the parent bounds.
AndroidX Window extensions:
1. Early return if TaskFragment is resized to the bounds that smaller
   than minimum dimensions which dispatched from the server side.
2. When organizer tries to show Activities side-by-side, verify if
   minimum dimensions requirement of the primary Activiy. If the
   requirement is not satisfied, show Activities in fullscreen
   instead.
TODO: Add an API to check if an Activity intent is allowed to embed
   in a TaskFragment.

Bug: 232871351
Test: atest TaskFragmentOrganizerControllerTest
Test: atest TaskFragmentOrganizerTest TaskFragmentOrganizerPolicyTest
Test: atest SplitActivityLifecycleTest
Test: atest CtsWindowManagerJetpackTestCases
Test: atest WmJetpackUnitTests

Merged-In: Ib46c2cec2a0735b9e3f3420f2cb94754801b86b9
Change-Id: Ib46c2cec2a0735b9e3f3420f2cb94754801b86b9
2022-06-15 00:32:34 +08:00
Josh Tsuji
bb6353beb0 Merge "Remove linkToDeath from KeyguardUnlockAnimationController." into tm-dev 2022-06-14 16:22:28 +00:00
Mady Mellor
13a28fff81 Merge "Fix an issue where tasks moving to front would collapse the stack." into tm-dev 2022-06-14 16:07:39 +00:00
Steve Elliott
d97b31f4e1 Add logging to KeyguardNotifVisProvider
Specifically, dump() the state tracked within the provider, and log when
the notif pipeline is invalidated due to a state change from the
provider (as well as what exactly changed).

Bug: 234824085
Test: manual
Change-Id: I608b857c9796ed37ba75ca51d8ab0d95df754fa4
Merged-In: I608b857c9796ed37ba75ca51d8ab0d95df754fa4
2022-06-14 14:48:25 +00:00
Ming-Shin Lu
79fd9aea20 Fix the startingWindow may clipped during AR#transferStartingWindow
Consider a transferStartingWindow use case that a trampoline activity
with unspecified orientation to start another activity with fixed
landcape orientation,

As AR#setInsetsFrozen(true) will be invoked when the trampoline activity
is leaving, and then calling AR#transferStartingWindow if the
trampoline activity is finishing. If we don't clear the frozen insets
state when transferring the starting window to the new target activity,

it may end up seeing a flicker that the starting window being clipped
because computeWindowFrames took the wrong frozen insets state and leads
to the starting window frame size wrong.

Ensure to call clearFrozenInsetsState for the starting window when
transfering to the new activity for fixing this flicker case.

Bug: 235440740
Test: atest ActivityRecordTests#\
    testTryTransferStartingWindowFromHiddenAboveToken
Change-Id: I78d59308c6353e841ca8ba2f60428063094c5d25
2022-06-14 22:40:21 +08:00
Winson Chung
87b7e43b14 Merge "Clear snapshot buffer preemptively if unused" into tm-dev 2022-06-14 13:56:10 +00:00
Bill Lin
bee318e35b Merge "Dismiss BiometricPrompt if window focus is lost" into tm-dev 2022-06-14 11:01:48 +00:00
Louis Chang
4b91fbf942 Make sure the relayoutWindow is called when Activity restarted
The host visibility was always invisible while making an Activity
window active because the host visibility was updated afterward
(in ActivityThread#handleStartActivity). Therefore, #relayoutWindow
could be skipped and not recreating Surface if the view visibility is
not changed since last traversal.

Bug: 226324982
Test: repro steps on the bug
Change-Id: Id677a375bc2f75b055a9d35c8b8488e97c24eae9
2022-06-14 17:23:42 +08:00