Commit Graph

105515 Commits

Author SHA1 Message Date
Robert Horvath
29f3b49ad5 Merge "Add PackageInstaller#uninstallExistingPackage" into rvc-dev am: f424274d8e
Change-Id: I59addca2bb6765b142430a639bb8f2b12e04ee2c
2020-05-12 11:53:25 +00:00
Robert Horvath
f424274d8e Merge "Add PackageInstaller#uninstallExistingPackage" into rvc-dev 2020-05-12 11:40:10 +00:00
Riddle Hsu
2d42c72f14 Merge changes from topic "b147213487" into rvc-dev am: 8e726a2ef7
Change-Id: Ic8fbd04c2ae5bf57c76476639ad28dea1e560d27
2020-05-12 09:20:34 +00:00
Robert Horvath
77880fa860 Add PackageInstaller#uninstallExistingPackage
This new API allows an app to be uninstalled silently by any app holding
the DELETE_PACKAGES permission, as long as the app is installed in
another user so won't be fully removed from the device.

Bug: 149601842
Test: atest UninstallExistingPackageTest
Merged-In: I69fe4d1dd4e9da83574b431257f7be6d1ac8b2bb
Change-Id: I69fe4d1dd4e9da83574b431257f7be6d1ac8b2bb
2020-05-12 09:18:56 +00:00
Riddle Hsu
8e726a2ef7 Merge changes from topic "b147213487" into rvc-dev
* changes:
  Send fixed rotation adjustments to the associated client
  Add support to override display adjustments by token
  Add fixed rotation display adjustments
2020-05-12 09:05:17 +00:00
Hongwei Wang
65404c8253 Merge "Set mIsInMultiWindowMode in activity creation" into rvc-dev am: 954820b047
Change-Id: I881c754d12e8ec25897ad230b97994aae0fc046e
2020-05-12 05:39:31 +00:00
Hongwei Wang
954820b047 Merge "Set mIsInMultiWindowMode in activity creation" into rvc-dev 2020-05-12 05:29:38 +00:00
Adam Bookatz
e3b6e3dc62 Merge "Clarify UM.createUser javadoc" into rvc-dev am: 33ecd88317
Change-Id: Iae5957ef30deba9fc0fc242c3ec02d31c7ce16e0
2020-05-12 03:45:41 +00:00
Adam Bookatz
33ecd88317 Merge "Clarify UM.createUser javadoc" into rvc-dev 2020-05-12 03:26:35 +00:00
Hongwei Wang
f7e5a23106 Set mIsInMultiWindowMode in activity creation
When an Activity is launched directly into split-screen mode, there
won't be any onMultiWindowModeChanged callback. Upon activity creation,
the current windowing mode should be part of the configuration, use
the windowing mode from that as initial values for both
isInPictureInPictureMode and isInMultiWindowMode.

Bug: 155811896
Bug: 156204380
Test: launch activity to split-screen secondary and verify
      isInMultiWindowMode in dumpsys
Change-Id: I6061a2d5687b68a981abcf8b184bfb007cdcf501
2020-05-11 18:03:55 -07:00
Eugene Susla
3cb0fb2e07 Merge "No need for copying dump state for PC" into rvc-dev am: 0728a4fe50
Change-Id: Ica64e6aa84bded477a20ef3969f8e7d655853677
2020-05-12 00:43:37 +00:00
Eugene Susla
0728a4fe50 Merge "No need for copying dump state for PC" into rvc-dev 2020-05-12 00:38:05 +00:00
TreeHugger Robot
a5014e1435 Merge "Provide a fixed transform hint if the layer is in a fixed orientation 2/2" into rvc-dev am: db5201d3ab
Change-Id: I2f8cc902006808c78e635de9fb0b4a9143dab05b
2020-05-12 00:08:25 +00:00
TreeHugger Robot
db5201d3ab Merge "Provide a fixed transform hint if the layer is in a fixed orientation 2/2" into rvc-dev 2020-05-11 23:51:56 +00:00
Adam Bookatz
a88d4c09e4 Clarify UM.createUser javadoc
When creating admin users, default
UserRestrictions do indeed apply, so updating
the javadoc.

Test: N/A
Bug: 143491938
Change-Id: Id495599abd4ddee100ca2c761d3b420fff315482
2020-05-11 22:22:32 +00:00
Rob Carr
8fa7ea91ba Merge "BLASTBufferQueue: Fix two conditions leading to freeze." into rvc-dev am: 85c13cf111
Change-Id: Ice58ac34bc521ebed05ba23bc4ab7ae7bf8370da
2020-05-11 21:52:11 +00:00
Rob Carr
85c13cf111 Merge "BLASTBufferQueue: Fix two conditions leading to freeze." into rvc-dev 2020-05-11 21:46:19 +00:00
Philip P. Moltmann
1a4467816a No need for copying dump state for PC
Also
- enforce permission when dumping PC data

Bug: 155680199
Test: dumpsys permissionmgr
Change-Id: I2cacd6f9d8db0ea329de1d15c96bea9f2ae15dd1
2020-05-11 14:32:17 -07:00
Josh Tsuji
934882c88c Merge "Add TYPE_TRUSTED_APPLICATION_OVERLAY." into rvc-dev am: 6282ff9bc2
Change-Id: Iaeafccc40006695f9c3471c7c80b26a70e609372
2020-05-11 20:38:24 +00:00
Tim Murray
bc6fda94b2 Merge "fix app binder tracing on userdebug builds" into rvc-dev am: 52d70eaa12
Change-Id: Ib4f930c18eb434b698600dbdafc36daee79d98fc
2020-05-11 20:37:03 +00:00
Josh Tsuji
6282ff9bc2 Merge "Add TYPE_TRUSTED_APPLICATION_OVERLAY." into rvc-dev 2020-05-11 20:24:34 +00:00
Tim Murray
52d70eaa12 Merge "fix app binder tracing on userdebug builds" into rvc-dev 2020-05-11 20:20:03 +00:00
Vishnu Nair
eb53e52395 Provide a fixed transform hint if the layer is in a fixed orientation 2/2
The transform hint is used to prevent allocating a buffer of a
different size when a layer is rotated. The producer can choose to
consume the hint and allocate the buffer with the same size.

Provide the graphic producer a transform hint if the layer and its
children are in an orientation different from the display's
orientation. The caller is responsible for clearing this transform
hint if the layer is no longer in a fixed orientation.

Bug: 152919661
Test: atest VulkanPreTransformTest
Test: confirm with winscope trace, buffers are allocated taking into
account the transform hint in fixed orientation scenarios
Test: go/wm-smoke

Change-Id: I2ccc21ed8af015716e6cdfde1e3cec67c99f3339
2020-05-11 13:19:59 -07:00
Tim Murray
6d2b1bfe38 fix app binder tracing on userdebug builds
All apps are profileable on debuggable builds, so enable binder
tracing during app startup on debuggable builds if binder tracing has
already been enabled.

Test: binder tracing shows up for new apps on userdebug
Bug: 156259316
Change-Id: I8cc6c2f711943c21b54f346a23ba7089dc9c9180
2020-05-11 10:27:09 -07:00
Riddle Hsu
d490c57905 Send fixed rotation adjustments to the associated client
So the real information of display can be adjusted according
to the adjustments for the application started with fixed
rotation transform.

The enabling adjustments may be sent in different ways:
- Launch activity
  The information is bundled with LaunchActivityItem.
- Resume activity or update non-activity window
  Send a standalone FixedRotationAdjustmentsItem.

The disabling adjustments (null) are always sent by
FixedRotationAdjustmentsItem.

Bug: 147213487
Test: AppConfigurationTests#testRotatedInfoWithFixedRotationTransform
      TransactionParcelTests#testFixedRotationAdjustments

Change-Id: I5238888a5c8352db83fc12749f4de2bfabf46026
2020-05-11 22:17:03 +08:00
Charles Chen
8a1786f075 Merge "Add WindowMetricsHelper" into rvc-dev am: 5681f3e796
Change-Id: Ic4d54316e06b545d7a0467f412c89bd776ea7e89
2020-05-11 10:20:16 +00:00
Charles Chen
5681f3e796 Merge "Add WindowMetricsHelper" into rvc-dev 2020-05-11 10:17:37 +00:00
TreeHugger Robot
c215136282 Merge "Fix consumer closed input channel cause an error occurred (1/2)" into rvc-dev am: 488cd2c4ff
Change-Id: I57a987db0f5e89244cf03b009298c3a2050129f3
2020-05-11 06:11:09 +00:00
TreeHugger Robot
488cd2c4ff Merge "Fix consumer closed input channel cause an error occurred (1/2)" into rvc-dev 2020-05-11 05:56:35 +00:00
Riddle Hsu
e03b9669e3 Add support to override display adjustments by token
This is the bridge to link customized adjustments to an activity
or window token.

The DisplayAdjustments in ResourcesImpl is associated with
ResourcesKey. The new usage requires to associate with token.
That is why the new field is added in Resources.

Bug: 147213487
Test: atest ResourcesManagerTest#testOverrideDisplayAdjustments
Change-Id: Ie79c331654d564aee7af8c6ce98a4c72dd3132b1
2020-05-11 13:30:14 +08:00
Riddle Hsu
ca70b01302 Add fixed rotation display adjustments
If an activity is launched with fixed rotation transform,
its window layout and configuration will be rotated. But
if it gets real information from the display, the values
(getRotation, getRealSize, getRealMetric, getCutout) are
inconsistent with the actual appearance.

This change provides the basic information to adjust the
returned values.

Bug: 147213487
Test: atest DisplayAdjustmentsTests#testFixedRotationAdjustments
Change-Id: I864d5759f41209d5f93c4a9011b720675c25e765
2020-05-11 13:30:14 +08:00
TreeHugger Robot
3e24612818 Merge "Make sure AmbiguousGestureMultiplier could start from 1" into rvc-dev am: 47059f7654
Change-Id: Id0753f8fa42dac53b474d986ef8ac50d39213b95
2020-05-11 03:11:46 +00:00
TreeHugger Robot
47059f7654 Merge "Make sure AmbiguousGestureMultiplier could start from 1" into rvc-dev 2020-05-11 03:08:31 +00:00
Beverly Tai
3e2a0d2682 Merge "Add badge colors for dark theme" into rvc-dev am: 78a66d6c36
Change-Id: I7ad6f0991a78cfba9bcd77383309acb70a6fe89a
2020-05-10 18:19:47 +00:00
Beverly Tai
78a66d6c36 Merge "Add badge colors for dark theme" into rvc-dev 2020-05-10 18:10:15 +00:00
Jing Ji
793ee0ff16 Merge "Check the isInUse with the lock held in MessageQueue" into rvc-dev am: 04dc962d1d
Change-Id: Ie229f36fd62b3c971d268955c299e72200dc5d76
2020-05-10 05:21:01 +00:00
Alec Mouri
151365a461 Merge "Dispatch refresh rate callbacks from DMS" into rvc-dev am: 00f681a582
Change-Id: I193dfe7532893c3675d074aa00078ab0885095c3
2020-05-10 05:17:32 +00:00
Jing Ji
04dc962d1d Merge "Check the isInUse with the lock held in MessageQueue" into rvc-dev 2020-05-09 04:18:39 +00:00
Alec Mouri
00f681a582 Merge "Dispatch refresh rate callbacks from DMS" into rvc-dev 2020-05-08 23:54:17 +00:00
Jing Ji
baf2d6448e Check the isInUse with the lock held in MessageQueue
Fix a potential race condtion when the same message object
is being enqueued by two threads.

Bug: 150263007
Bug: 154867444
Test: atest android.os.cts.MessageQueueTest
Change-Id: Id79448ba8719479cbdb054f2cdd172fdcbe86d47
(cherry picked from commit 96a6fec4d6)
2020-05-08 21:14:23 +00:00
Nikita Ioffe
a3cc299609 Merge "PackageParser2: collect certificates if requested" into rvc-dev am: a23a9dc83b
Change-Id: Ic5abdcbecccb9ef4fc4c68e98633e6302a06dc11
2020-05-08 17:31:37 +00:00
Nikita Ioffe
a23a9dc83b Merge "PackageParser2: collect certificates if requested" into rvc-dev 2020-05-08 17:10:47 +00:00
Kweku Adams
158d28f122 Merge "Add master switch to enable/disable RESTRICTED bucket." into rvc-dev am: 86a71e6e93
Change-Id: I14fcd2b82452775fa3c905c0a56d01a4f929c97b
2020-05-08 15:12:50 +00:00
Kweku Adams
86a71e6e93 Merge "Add master switch to enable/disable RESTRICTED bucket." into rvc-dev 2020-05-08 15:01:03 +00:00
Tiger Huang
84e4c327db Merge "Prevent unnecessary updateRequestedState" into rvc-dev am: d8bb9b4dd8
Change-Id: Iee16e96691ac379546141542885807249367dfb5
2020-05-08 13:40:33 +00:00
Tiger Huang
d8bb9b4dd8 Merge "Prevent unnecessary updateRequestedState" into rvc-dev 2020-05-08 13:37:42 +00:00
Joanne Chung
aef6672fe9 Merge "Prevent crash when AutofillManager.isEnabled() is called" into rvc-dev am: cdbd09bbcf
Change-Id: I9482bc785396f514ee58e604226a7f606d05e5e3
2020-05-08 10:23:24 +00:00
Joanne Chung
cdbd09bbcf Merge "Prevent crash when AutofillManager.isEnabled() is called" into rvc-dev 2020-05-08 10:14:55 +00:00
Joanne Chung
ee55616ad3 Prevent crash when AutofillManager.isEnabled() is called
If we cannot get flag information from the AutofillManagerService
after the timeout, we should not crash the process, we need to
handle the enabled information properly.

Also fix NPE because of null component name while calling
AutofillManagerServiceImpl.isWhitelistedForAugmentedAutofillLocked().

Bug: 151273845
Test: atest CtsAutoFillServiceTestCases
Test: manual. Copy the text from Messenger and paste on search bar,
no crash occurred and can paste text correctly.

Change-Id: I8d7ca35226052944fd68fef60a013a65a7fb57c1
2020-05-08 16:48:52 +08:00
arthurhung
3a057251ac Make sure AmbiguousGestureMultiplier could start from 1
If a motion event classified CLASSIFICATION_AMBIGUOUS_GESTURE, it would
multiplied the AmbiguousGestureMultiplier from configuration for the
touch slop, we have to make sure this value should be start from 1 or
the touch slop could be zero and click action may fail.

Bug: 155160957
Test: manual
Change-Id: I61e1262b4f3de61214297b678956cc14fa2f24ef
2020-05-08 13:45:05 +08:00