Commit Graph

6772 Commits

Author SHA1 Message Date
Michael Groover
94fe3385b6 Merge "Update PM#checkSignatures by uid to support pre-key rotation behavior" into rvc-dev am: 3369bbd82a am: 958a368845
Change-Id: I54d3ab5f9eb8c9d2e027b92288e99c3a180e4ac9
2020-05-07 22:09:01 +00:00
Michael Groover
958a368845 Merge "Update PM#checkSignatures by uid to support pre-key rotation behavior" into rvc-dev am: 3369bbd82a
Change-Id: I7bde04186d954f9e1b41c837d1466fb74f95ae74
2020-05-07 21:53:44 +00:00
Michael Groover
3369bbd82a Merge "Update PM#checkSignatures by uid to support pre-key rotation behavior" into rvc-dev 2020-05-07 21:36:41 +00:00
Jorim Jaggi
356e907d3b Merge "Cancel existing animations when detaching View" into rvc-dev am: b3c02592e1 am: c20c5a5de1
Change-Id: I0565254b0398e71e789ed3229e480dbb86f0c6da
2020-05-07 12:10:13 +00:00
Jorim Jaggi
c20c5a5de1 Merge "Cancel existing animations when detaching View" into rvc-dev am: b3c02592e1
Change-Id: I5138c2ed3d2aa43e8c0cbe8ff5e5a88a3d47689c
2020-05-07 11:53:24 +00:00
Jorim Jaggi
c7336cdf18 Merge "Cancel existing animations when detaching View" into rvc-dev am: b3c02592e1
Change-Id: Ib19d28b5dd5ce4428f62bf5877881093ec6d49e2
2020-05-07 11:53:18 +00:00
Jorim Jaggi
b3c02592e1 Merge "Cancel existing animations when detaching View" into rvc-dev 2020-05-07 11:36:11 +00:00
Jorim Jaggi
31e5254daf Cancel existing animations when detaching View
Test: WindowInsetsAnimationSynchronicityTests#testShowAndHide_renderSynchronouslyBetweenImeWindowAndAppContent * 100 times
Fixes: 155602643
Change-Id: I6f736357f5a67c01a29b2c531026a3a76c321003
2020-05-06 20:36:08 +02:00
Michael Groover
fb2a524183 Update PM#checkSignatures by uid to support pre-key rotation behavior
ag/11054988 updated PackageManager#checkSignatures to support pre-key
rotation behavior when querying by package name; this commit applies
the same logic to the checkSignatures query by uid to check against
the oldest signer in the lineage if either of the requested packages
has been through a key rotation.

Bug: 153910385
Test: atest PackageManagerTests
Test: atest PackageManagerTest
Change-Id: If35c1cdefd06048dc5addc6bbd579d2316ab323b
2020-05-06 10:27:37 -07:00
Antoan Angelov
3141c97476 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev am: 950aca5795 am: 0675309da0
Change-Id: If39854f8e3e60c7982f46c7a23d1e74033459fd5
2020-05-06 14:53:30 +00:00
Antoan Angelov
20850b8a43 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev am: 950aca5795
Change-Id: I38f3868c44f792ec33a3d03079c788c24a61299b
2020-05-06 14:40:50 +00:00
Antoan Angelov
0675309da0 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev am: 950aca5795
Change-Id: I7c15da50c86392546a92af5605827692dfeb3a3d
2020-05-06 14:40:38 +00:00
Antoan Angelov
950aca5795 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev 2020-05-06 14:23:13 +00:00
TreeHugger Robot
9cd6c21c5b Merge "Migrate remaining parsePackage V1 to V2" into rvc-dev am: a83fad74b4 am: 6bc0cb3306
Change-Id: If712e3dc976342dd4ad5308b4b48ecbed854e87a
2020-05-06 04:23:33 +00:00
TreeHugger Robot
30de689af9 Merge "Migrate remaining parsePackage V1 to V2" into rvc-dev am: a83fad74b4
Change-Id: Ic2c575360d3356c21b54bdeebbc66ab0b4bd6d64
2020-05-06 04:11:34 +00:00
TreeHugger Robot
6bc0cb3306 Merge "Migrate remaining parsePackage V1 to V2" into rvc-dev am: a83fad74b4
Change-Id: I42bad76fde7dfe0470976c9ce4df36a7ca8548ff
2020-05-06 04:11:03 +00:00
Winson
3cb5610a99 Migrate remaining parsePackage V1 to V2
Uses ParsingPackageImpl to generate the PackageInfo for
PackageManager's getPackageArchiveInfo API.

This keeps the migration to v2 hidden and thus the API can
be shipped for this release and then deprecated entirely
if necessary.

Exempt-From-Owner-Approval: Has approval on previous patchsets,
    will need non-logic updates to resolve merge conflict and CP
    into rvc-dev properly

Bug: 135203078
Bug: 146575910
Bug: 153880854

Test: atest com.android.server.pm.parsing
Test: atest android.content.pm.PackageManagerTests

Merged-In: Ib21dbbdc556502144df8e3d7a26b7a9d33885cd9
Change-Id: Ib21dbbdc556502144df8e3d7a26b7a9d33885cd9
2020-05-05 16:35:34 -07:00
Darryl Johnson
9a8414e36b Merge "Don't override activity display adjustments with app config" into rvc-dev am: ceb2befc1b am: c7a318285d
Change-Id: Ib84b70f5ecf47c3d5d269ba9d83a73063ab2ecf4
2020-05-01 23:27:14 +00:00
Darryl Johnson
c7a318285d Merge "Don't override activity display adjustments with app config" into rvc-dev am: ceb2befc1b
Change-Id: I04aa93179712468a90c07b68ba2c72dc5dda7721
2020-05-01 23:26:24 +00:00
Darryl Johnson
ff6c2812a2 Merge "Don't override activity display adjustments with app config" into rvc-dev am: ceb2befc1b
Change-Id: Id837346ceb71c7c2b330e3bac639df83a5301808
2020-05-01 23:26:15 +00:00
Darryl Johnson
ceb2befc1b Merge "Don't override activity display adjustments with app config" into rvc-dev 2020-05-01 23:05:10 +00:00
arangelov
993d63b339 Use intent resolver strings for sharesheet when picking intent
Fixes: 154290625
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: Ibf28daaf42859df2d9093e871c102d0a327231f2
2020-05-01 15:32:57 +01:00
Abodunrinwa Toki
5eb7265785 Merge "Rewrite Icons from the TCS." into rvc-dev am: 1cf3ce8fde am: f58bd41b0e
Change-Id: Id6192fc8dd949482fd3dc76a19a0a6aa40c39432
2020-05-01 11:18:27 +00:00
Abodunrinwa Toki
1b15228e8a Merge "Rewrite Icons from the TCS." into rvc-dev am: 1cf3ce8fde
Change-Id: If75f84e06e5be0650e82ce07bc58a0d5c09b7dfe
2020-05-01 11:12:54 +00:00
Abodunrinwa Toki
f58bd41b0e Merge "Rewrite Icons from the TCS." into rvc-dev am: 1cf3ce8fde
Change-Id: I303a573a48661c9d222def2b46501ad1d81ab23c
2020-05-01 11:02:12 +00:00
Abodunrinwa Toki
1cf3ce8fde Merge "Rewrite Icons from the TCS." into rvc-dev 2020-05-01 10:52:43 +00:00
TreeHugger Robot
de871487f3 Merge "Update the documentation for inline suggestion APIs" into rvc-dev am: d725389a55 am: e27ed6a551
Change-Id: Ibbc9004b37e7b74252887e12252d85bb26719f82
2020-05-01 01:57:56 +00:00
TreeHugger Robot
f38d404868 Merge "Update the documentation for inline suggestion APIs" into rvc-dev am: d725389a55
Change-Id: I47dd473a8c5d0cfad600fd57c096b3de53cd58bd
2020-05-01 01:44:11 +00:00
TreeHugger Robot
e27ed6a551 Merge "Update the documentation for inline suggestion APIs" into rvc-dev am: d725389a55
Change-Id: If3100d8ecde9ebdb197243f3f263e82307e6cf13
2020-05-01 01:44:03 +00:00
TreeHugger Robot
d725389a55 Merge "Update the documentation for inline suggestion APIs" into rvc-dev 2020-05-01 01:42:05 +00:00
Hongwei Wang
2cf2b18cc2 Merge "Move PIP/MW mode callbacks to be on the client side" into rvc-dev am: 28c136e1cb am: 33e9c04263
Change-Id: Id7c50738ac561a8a716e0f53f10cbf430a889d73
2020-05-01 00:10:01 +00:00
Hongwei Wang
54b544b15f Merge "Move PIP/MW mode callbacks to be on the client side" into rvc-dev am: 28c136e1cb
Change-Id: I279cc746a099c9a35d88463105e8aaa5f0592707
2020-04-30 23:56:00 +00:00
Hongwei Wang
33e9c04263 Merge "Move PIP/MW mode callbacks to be on the client side" into rvc-dev am: 28c136e1cb
Change-Id: I71cd359316c2001d829dba3246854e91b8ed05e1
2020-04-30 23:55:51 +00:00
Hongwei Wang
28c136e1cb Merge "Move PIP/MW mode callbacks to be on the client side" into rvc-dev 2020-04-30 23:38:56 +00:00
Darryl L Johnson
e810bc539e Don't override activity display adjustments with app config
When process configuration was applied on the client side it
accidentally applied an override to display adjustments in resources
for all ResourceImpl objects. This resulted in resources of
activities having incorrect display adjustments and reporting
incorrect display size.

This change fixes the issue by applying the activity's override
configuration on top of the app config before updating the
display adjustments.

Note: This is a slight revert/rework of Ib3ee007bc

Fixes: 148639826

Test: ActivityThreadTest#testHandleConfigurationChanged_DoesntOverrideActivityConfig
Change-Id: I08a5bc29443fbdefbca791240aeaff8f138b8756
2020-04-30 13:44:38 -07:00
Tiger Huang
29ea59f79c Merge "Ensure the requested insets state is up to date" into rvc-dev am: b8ad491e6d am: 282a713b1a
Change-Id: I58dcab9f984b8998609b4ac6ada8b9a0f2a3e4f8
2020-04-30 18:23:18 +00:00
Tiger Huang
282a713b1a Merge "Ensure the requested insets state is up to date" into rvc-dev am: b8ad491e6d
Change-Id: I76a3e67aece7e28c3f410f11dad330591c2fe0ab
2020-04-30 18:10:56 +00:00
Tiger Huang
5bfc56f05c Merge "Ensure the requested insets state is up to date" into rvc-dev am: b8ad491e6d
Change-Id: I2fef89c2e1e20c17c51c20ccd5434ecc3b610b39
2020-04-30 18:10:25 +00:00
Tiger Huang
b8ad491e6d Merge "Ensure the requested insets state is up to date" into rvc-dev 2020-04-30 17:56:41 +00:00
Tiger Huang
173480f29d Ensure the requested insets state is up to date
Previously, the client won't send the modified insets state to window
manager if the dispatched state and the local state are the same. The
following case can make the requested insets state at the server side
stale:

1. Window A requests an insets source to be invisible while having
   the control.
2. Window A loses the control.
3. The new control target requests the insets source to be visible.
4. Window A receives the new insets state from server.
5. Window A also requests the insets source to be visible while not
   having the control.
6. Window A gain the control.
7. Window A won't send the new requested state (visible) to window
   manager because the local state and the dispatched state are the
   same.
8. Window manager keeps assuming that window A is requesting the insets
   source to be invisible which is incorrect.

This CL stores what insets state is sent to server, and updates/sends
the state to server while gaining the control if the requested state is
changed.

Fix: 146964271
Test: Manual.
Change-Id: I6ee533d9316c769faef539bfb980197c351ee8d1
2020-05-01 00:27:38 +08:00
Hongwei Wang
5711b8fdaf Move PIP/MW mode callbacks to be on the client side
We now infer the PIP/MW mode change from the new configuration.
Note also that both
- Activity#isInPictureInPictureMode
- Activity#isInMultiWindowMode
infer the current state from the configuration rather than querying
against the WM.

Also in this CL:
- When in removePinnedStackInSurfaceTransaction, keep the pinned stack
hidden till the windowing mode is set to fullscreen, this is to surpress
the attempt to set the activities to be started in reparenting
- When in ActivityRecord#shouldBeVisible, should take account the force
hidden flag, which is not actually in use before

Bug: 144097203
Bug: 142282126
Bug: 138329093
Test: atest ActivityLifecyclePipTests \
            ActivityLifecycleSplitScreenTests \
            ActivityLifecycleTopResumedStateTests \
            PinnedStackTests \
            SplitScreenTests \
            ActivityTaskManagerServiceTests \
            RecentsAnimationTest \
            AssistantStackTests \
            StartActivityTests \
            ActivityVisibilityTests \
            MultiDisplaySecurityTests \
            MultiDisplaySystemDecorationTests
Change-Id: Ibe032b5e50ba5c6d6bc44ebb54d07ac974ebe656
2020-04-30 08:48:09 -07:00
Yunfan Chen
846f8acda4 Merge "Report caption insets change when layout" into rvc-dev am: 9f804f7593 am: e1c304a615
Change-Id: If709132abfdf5bae121c612ecbe39a8f4ec84475
2020-04-30 05:04:51 +00:00
Yunfan Chen
3e87b4d891 Merge "Report caption insets change when layout" into rvc-dev am: 9f804f7593
Change-Id: If0cab89959f4f24d9f8cff1f0ea9c5835c7b4540
2020-04-30 04:52:42 +00:00
Yunfan Chen
e1c304a615 Merge "Report caption insets change when layout" into rvc-dev am: 9f804f7593
Change-Id: Ia8b4747c9ef657f7b8afb367807526ec7bd08024
2020-04-30 04:52:34 +00:00
Yunfan Chen
9f804f7593 Merge "Report caption insets change when layout" into rvc-dev 2020-04-30 04:43:47 +00:00
Rhed Jao
b94393bd9c Merge "Fixes failed tests in PackageManagerTests" into rvc-dev am: d827ec8bbd am: 93aa2412d1
Change-Id: Idfe2c600085b465c21c9ef846102fc3153408a90
2020-04-30 02:44:27 +00:00
Rhed Jao
0029ab057a Merge "Fixes failed tests in PackageManagerTests" into rvc-dev am: d827ec8bbd
Change-Id: Ibd11562bc56e8d2902a888ba4dee353e2097b79c
2020-04-30 02:27:15 +00:00
Rhed Jao
93aa2412d1 Merge "Fixes failed tests in PackageManagerTests" into rvc-dev am: d827ec8bbd
Change-Id: If69b407857b31ac534d353178597b709745e4ae0
2020-04-30 02:26:40 +00:00
Rhed Jao
d827ec8bbd Merge "Fixes failed tests in PackageManagerTests" into rvc-dev 2020-04-30 02:13:45 +00:00
Darryl Johnson
909c1f0431 Merge "Add test to ensure virtual display orientation doesn't change when device rotates." into rvc-dev am: 77fae23490 am: f0a128ba2b
Change-Id: I828e46db28febd6342c7fa7b7aac3ffe0f8b1a4b
2020-04-30 00:29:25 +00:00