Commit Graph

105308 Commits

Author SHA1 Message Date
Evan Rosky
199e0cf822 Merge "Give Divider back its touch-region" into rvc-dev am: 5a61909275
Change-Id: Ic1445358a89ea6cbac13da59e23667bcff0f2e93
2020-05-01 00:17:25 +00:00
Evan Rosky
5a61909275 Merge "Give Divider back its touch-region" into rvc-dev 2020-05-01 00:11:36 +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
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
2b79933004 Merge "Restrict match conditions of TelephonyNetworkSpecifier#canBeSatisfied" into rvc-dev am: 767b58716b
Change-Id: I84be6ef46eb2e99749a86f24304555bff51ebfe6
2020-04-30 22:40:29 +00:00
Eino-Ville Talvala
0b121c70c1 Merge "Camera: Improve metadata access JNI performance" into rvc-dev am: 2a4de9cf21
Change-Id: Ie4b090b6d233f6306a90735b5dd95d5d8e14ace0
2020-04-30 22:38:28 +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
6be27c51db Merge "Enable flagging shortcuts to launch properly in a bubble" into rvc-dev am: a0f44693f5
Change-Id: If931d7a06b39434a53ff28b8707bb6097dd75e84
2020-04-30 22:03:16 +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
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
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
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
b8ad491e6d Merge "Ensure the requested insets state is up to date" into rvc-dev 2020-04-30 17:56:41 +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
1e672d552d Merge "WindowInsetsController: make available after addView" into rvc-dev am: 1cd9750aa4
Change-Id: I8e3988fa96be501caf3447dc258ed80cdb1339e7
2020-04-30 15:52:26 +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
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
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
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
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
9f804f7593 Merge "Report caption insets change when layout" into rvc-dev 2020-04-30 04:43:47 +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
d5a777965b Merge "Handle exceptions on attach" into rvc-dev 2020-04-30 01:12:51 +00:00
Darryl Johnson
76b64efa38 Merge "Add test to ensure virtual display orientation doesn't change when device rotates." into rvc-dev am: 77fae23490
Change-Id: Ib14fb09532f4256d7ab5a2b8934b8af7b67d5ac8
2020-04-30 00:18:27 +00:00
Darryl Johnson
77fae23490 Merge "Add test to ensure virtual display orientation doesn't change when device rotates." into rvc-dev 2020-04-30 00:18:02 +00:00
Chavi Weingarten
6eae26b96f Merge "Remove getLeash from WindowContainerToken" into rvc-dev am: 5a4a5682a2
Change-Id: If2e767cc167267de8f2297194419e297cba53621
2020-04-30 00:18:00 +00:00
Ryan Mitchell
29e7f36b0c Merge "Allow pre-R apps to test compressed ARSC error" into rvc-dev am: e3c40062e6
Change-Id: Iec2d9a91e6794ab63bbc9b3f21b3b2ae8c4c7c16
2020-04-30 00:17:06 +00:00
Chavi Weingarten
5a4a5682a2 Merge "Remove getLeash from WindowContainerToken" into rvc-dev 2020-04-30 00:16:21 +00:00
Ryan Mitchell
e3c40062e6 Merge "Allow pre-R apps to test compressed ARSC error" into rvc-dev 2020-04-30 00:13:16 +00:00
Jeff Sharkey
eff0a9dfa2 Merge "Update more Parcelables to send Strings UTF-8." into rvc-dev am: 1eb3fcfb33
Change-Id: I6a6ae5a7dd47c56d7081d7c58fa93cf2567d30f5
2020-04-30 00:06:36 +00:00
Jeff Sharkey
1eb3fcfb33 Merge "Update more Parcelables to send Strings UTF-8." into rvc-dev 2020-04-29 23:55:03 +00:00
Chavi Weingarten
a4da2cdf3c Merge "Added featureId to DisplayAreaInfo" into rvc-dev am: 1e6ef9321a
Change-Id: Id953960a1495314d241fcff6f9c4e665e8d5cfcb
2020-04-29 23:24:50 +00:00
Chavi Weingarten
1e6ef9321a Merge "Added featureId to DisplayAreaInfo" into rvc-dev 2020-04-29 23:23:03 +00:00
Nikita Ioffe
69a3f399fe Teach PackageManager.getApplicationInfo about MATCH_APEX
Test: atest android.content.pm.cts.PackageManagerTest#testGetApplicationInfo_ApexSupported_MatchesApex
Bug: 155092136
Change-Id: I489e186242d4db4de4753a11e90ce23e35f2aa80
2020-04-30 00:10:50 +01:00
Todd Kennedy
6b653a348f Merge "Add documentation for OPSTR_LOADER_USAGE_STATS" into rvc-dev am: aeb383ec87
Change-Id: Ia6cd533255331dce5fa91058b9d9c8df6b562c4d
2020-04-29 22:35:08 +00:00
Todd Kennedy
aeb383ec87 Merge "Add documentation for OPSTR_LOADER_USAGE_STATS" into rvc-dev 2020-04-29 22:27:55 +00:00
Brad Ebinger
eb4355ae4e Add clearAll method to RegistrantList for easier cleanup
Bug: 155320231
Test: atest FrameworksTelephonyTests
Change-Id: I6f1896ae163e77cff30e89a5b01b41162fc58200
2020-04-29 15:19:52 -07:00
TreeHugger Robot
0c3f970784 Merge "Update public documentation." into rvc-dev am: 265622e3c7
Change-Id: I3eb9212b7bcbfe336afa872d1d920a1791ef1d38
2020-04-29 22:16:50 +00:00
TreeHugger Robot
265622e3c7 Merge "Update public documentation." into rvc-dev 2020-04-29 22:07:45 +00:00
Ytai Ben-Tsvi
b6f88a7af7 Handle exceptions on attach
attach() may throw various kinds of runtime exceptions, and since there
is no way to represent them in attach() other than returning null (it
is not supposed to throw), we should catch them here and log them.

Bug: 153332815
Change-Id: Icbb7643c3abf6c6b0edc9d1eb9a74c38c731acdf
2020-04-29 14:54:29 -07:00