Commit Graph

105707 Commits

Author SHA1 Message Date
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
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
Rambo Wang
58384beb21 Merge "Restrict match conditions of TelephonyNetworkSpecifier#canBeSatisfied" into rvc-dev am: 767b58716b am: 82c577767e
Change-Id: If62e7535d1417ceb0b2869007b87e37b34325972
2020-04-30 22:49:08 +00:00
Eino-Ville Talvala
b12cdffb49 Merge "Camera: Improve metadata access JNI performance" into rvc-dev am: 2a4de9cf21 am: 3f0603afe1
Change-Id: I1c85ce5ae765581590707738f4bcde3ccbae32fd
2020-04-30 22:48:30 +00:00
Rambo Wang
82c577767e Merge "Restrict match conditions of TelephonyNetworkSpecifier#canBeSatisfied" into rvc-dev am: 767b58716b
Change-Id: If7fb76656075d1b54320902b69882a8fd64bfc12
2020-04-30 22:39:37 +00:00
Eino-Ville Talvala
3f0603afe1 Merge "Camera: Improve metadata access JNI performance" into rvc-dev am: 2a4de9cf21
Change-Id: If37a5431dec6546ba1847e897de39de3306a9fb5
2020-04-30 22:38:13 +00:00
Rambo Wang
767b58716b Merge "Restrict match conditions of TelephonyNetworkSpecifier#canBeSatisfied" into rvc-dev 2020-04-30 22:23:13 +00:00
Eino-Ville Talvala
2a4de9cf21 Merge "Camera: Improve metadata access JNI performance" into rvc-dev 2020-04-30 22:19:13 +00:00
Mady Mellor
45da489dc9 Merge "Enable flagging shortcuts to launch properly in a bubble" into rvc-dev am: a0f44693f5 am: 706ab8953b
Change-Id: I596a4d31d997462923f99358eea40894fbd9a42e
2020-04-30 22:17:29 +00:00
Mady Mellor
706ab8953b Merge "Enable flagging shortcuts to launch properly in a bubble" into rvc-dev am: a0f44693f5
Change-Id: I6f29fc6f1ac554492ad3cce103f7253ebd19d12b
2020-04-30 22:02:48 +00:00
Mady Mellor
a0f44693f5 Merge "Enable flagging shortcuts to launch properly in a bubble" into rvc-dev 2020-04-30 21:52:11 +00:00
Brad Ebinger
e49de74ff1 Merge "Add clearAll method to RegistrantList for easier cleanup" into rvc-dev am: c4815d409c am: f5f8f67e7c
Change-Id: I939940a57c4fcc00994980ab6993b29aadbc9635
2020-04-30 20:11:08 +00:00
Brad Ebinger
f5f8f67e7c Merge "Add clearAll method to RegistrantList for easier cleanup" into rvc-dev am: c4815d409c
Change-Id: I9af83ebaaf358b3880293d30b2d19e0e9321d361
2020-04-30 20:09:31 +00:00
Brad Ebinger
43f1f637e7 Merge "Add clearAll method to RegistrantList for easier cleanup" into rvc-dev am: c4815d409c
Change-Id: I1d3decd181daeb72feb210b1103a87a871f4307a
2020-04-30 20:08:55 +00:00
Brad Ebinger
c4815d409c Merge "Add clearAll method to RegistrantList for easier cleanup" into rvc-dev 2020-04-30 20:07:31 +00:00
Eino-Ville Talvala
d95058f1cd Camera: Improve metadata access JNI performance
- Don't use reverse-JNI to access metadata ptr, pass it as an arg instead
- Use @FastNative since the calls are short and bounded in time

Performance improvement:
- On a 10-second trace of camera app running on sargo, percentage of
  time used in CameraMetadataNative.get went from 4.36% to 3.77%, a 15%
  reduction in time.

Test: atest CtsCameraTestCases
Bug: 150214459
Change-Id: I28d9428beaa7eada6292e24fe6ca1dbd9c2ff153
2020-04-30 12:59:06 -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
Benedict Wong
8994d9d736 Merge "Add filtering for IPsec algorithms in IKEv2 VPNs" into rvc-dev am: 449bd6fe45
Change-Id: I5c53eb9dcfc7d858e40f68cf20ddb684980ebaef
2020-04-30 17:40:55 +00:00
Benedict Wong
449bd6fe45 Merge "Add filtering for IPsec algorithms in IKEv2 VPNs" into rvc-dev 2020-04-30 17:29:29 +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
Adrian Roos
9978475dff Merge "WindowInsetsController: make available after addView" into rvc-dev am: 1cd9750aa4 am: 1e672d552d
Change-Id: I12f2f65bcfbadb3be31765c8f0ab7d8123a3c142
2020-04-30 15:52:56 +00:00
Rambo Wang
1bf141dae1 Merge "Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier" am: b86d989fce am: 9544c8a20b am: e4acbd16d6
Change-Id: I670338e67a45d90593aedad2ddf3a0983d4c1b26
2020-04-30 15:52:41 +00:00
Adrian Roos
1e672d552d Merge "WindowInsetsController: make available after addView" into rvc-dev am: 1cd9750aa4
Change-Id: I8e3988fa96be501caf3447dc258ed80cdb1339e7
2020-04-30 15:52:26 +00:00
Adrian Roos
f29d3197dc Merge "WindowInsetsController: make available after addView" into rvc-dev am: 1cd9750aa4
Change-Id: I27089fe330402045685303c97110c972df9987e7
2020-04-30 15:52:17 +00: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
Adrian Roos
1cd9750aa4 Merge "WindowInsetsController: make available after addView" into rvc-dev 2020-04-30 15:40:26 +00:00
Rambo Wang
e4acbd16d6 Merge "Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier" am: b86d989fce am: 9544c8a20b
Change-Id: I80164890061f1f3ba6900e6f5e73e3bc6fc04b5c
2020-04-30 15:31:31 +00:00
Rambo Wang
9544c8a20b Merge "Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier" am: b86d989fce
Change-Id: Ia4f99dcf6c86a356c1490b6500dd5e5016ff7257
2020-04-30 15:19:24 +00:00
Rambo Wang
b86d989fce Merge "Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier" 2020-04-30 15:07:18 +00:00
Rambo Wang
6fc5438dfd Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier
MatchAllNetworkSpecifier is a subclass of NetworkSpecifer. The method
satisfiedBy should be renamed to canBeSatisfiedBy together with other
subclass of NetworkSpecifer in b/152238712.

Add annotation @Overide for the method to make sure it will not get
ignored when refactor in the future.

Bug: 154956584
Test: atest android.net.MatchAllNetworkSpecifierTest
Change-Id: Ibe32fd50fae43aa635c1c0dad66eaea82011c8b7
2020-04-30 15:06:35 +00:00
Nikita Ioffe
a04d184c7a Merge "Teach PackageManager.getApplicationInfo about MATCH_APEX" into rvc-dev am: 0b7f9b9b99 am: e3462ee2bb
Change-Id: I76b18888c1c5f1f19f5289ebea37c591df1a419b
2020-04-30 11:17:42 +00:00
Nikita Ioffe
e3462ee2bb Merge "Teach PackageManager.getApplicationInfo about MATCH_APEX" into rvc-dev am: 0b7f9b9b99
Change-Id: I92bccfe2f9357f3717140a83cdb98b89016331df
2020-04-30 10:57:51 +00:00
Nikita Ioffe
7b6ddb59be Merge "Teach PackageManager.getApplicationInfo about MATCH_APEX" into rvc-dev am: 0b7f9b9b99
Change-Id: I2b88363a6fb3ed79a5889a041e473c8e8b6d20c2
2020-04-30 10:57:37 +00:00
Nikita Ioffe
0b7f9b9b99 Merge "Teach PackageManager.getApplicationInfo about MATCH_APEX" into rvc-dev 2020-04-30 10:49:37 +00:00
Chris Li
d50a2c92f6 Merge "Allow Overlay Display to take display flags" into rvc-dev am: 07fbb63884 am: 4eb1cc95db
Change-Id: If31fda957d1e57cf28512ca95df0691f27fe10be
2020-04-30 07:46:24 +00:00
Chris Li
40bd430c84 Merge "Allow Overlay Display to take display flags" into rvc-dev am: 07fbb63884
Change-Id: I5c1b261b6a48d042ad6d1b31954ee2eb599cff76
2020-04-30 07:24:16 +00:00
Chris Li
4eb1cc95db Merge "Allow Overlay Display to take display flags" into rvc-dev am: 07fbb63884
Change-Id: Id2955e98047e717ed6fc26ca952e1e52a99ba1c1
2020-04-30 07:24:10 +00:00
Chris Li
07fbb63884 Merge "Allow Overlay Display to take display flags" into rvc-dev 2020-04-30 07:12:12 +00:00
Benedict Wong
4fab295446 Add filtering for IPsec algorithms in IKEv2 VPNs
This commit adds support for validating and filtering IPsec algorithms.
Without a public API exposing IKEv2 algorithms (and their respective
public APIs), the allowedAlgorithms can only filter the proposals for
IPsec (Child) SA algorithms.

Additionally, this removes the HMAC_SHA1 from the IKE SA's integrity
algorithm proposals due to insecurity

Bug: 153701879
Test: FrameworksNetTests passing, new tests added
Change-Id: I7e61a1612692db275b751330af5bacbf86836a8c
Merged-In: I7e61a1612692db275b751330af5bacbf86836a8c
(cherry picked from commit 94e1c08a9a)
2020-04-29 23:05:35 -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
TreeHugger Robot
c8621cce48 Merge "Handle exceptions on attach" into rvc-dev am: d5a777965b am: a206357d45
Change-Id: Ie7997904bb8da85b4c3fd6a722e73a288803c10c
2020-04-30 01:20:04 +00:00
TreeHugger Robot
a206357d45 Merge "Handle exceptions on attach" into rvc-dev am: d5a777965b
Change-Id: Icbe7913740cd40e96ad82ccca0a873a6c2963328
2020-04-30 01:17:59 +00:00
TreeHugger Robot
7faf00a5a3 Merge "Handle exceptions on attach" into rvc-dev am: d5a777965b
Change-Id: Ie0e7879f27ca374816fc81774f972d452dbefef6
2020-04-30 01:17:59 +00:00