Commit Graph

103877 Commits

Author SHA1 Message Date
Chavi Weingarten
3ddd16c2f0 Merge "Add DisplayAreaInfo" into rvc-dev am: 74aa929f63
Change-Id: I15f5eb109eccdcf8d73212a56ee785ed3be07750
2020-04-23 16:56:32 +00:00
Chavi Weingarten
74aa929f63 Merge "Add DisplayAreaInfo" into rvc-dev 2020-04-23 15:55:20 +00:00
Kholoud Mohamed
baa8bb61c3 Merge "Fix javadoc for CrossProfileApps#canRequestInteractAcrossProfiles" into rvc-dev am: 4bf358fe39
Change-Id: I5437852b2d1892adaa17bab9fd96b6b2b6231675
2020-04-23 10:30:50 +00:00
Kholoud Mohamed
4bf358fe39 Merge "Fix javadoc for CrossProfileApps#canRequestInteractAcrossProfiles" into rvc-dev 2020-04-23 10:12:36 +00:00
Charles Chen
20f72281dd Merge "Limit number of window context without any window" into rvc-dev am: 1e52a093ae
Change-Id: I418494d968855b650ab15edc92f8d9fbf08cff67
2020-04-23 03:43:27 +00:00
Charles Chen
1e52a093ae Merge "Limit number of window context without any window" into rvc-dev 2020-04-23 03:34:37 +00:00
TreeHugger Robot
eb9484cc55 Merge "Process numpad enter key along with enter key." into rvc-dev am: b22931a0fb
Change-Id: If26402134c679ff2f8193c79b4f63a113ac440a2
2020-04-23 01:26:59 +00:00
Jacky Kao
b6ce1cf0d6 Merge "Makes AccessibilityNodeInfo#getSourceNodeId as test API" into rvc-dev am: f6f8deea32
Change-Id: Idc16987429e6ab6ced909d5e2d9007bff0bb0115
2020-04-23 01:26:01 +00:00
TreeHugger Robot
b22931a0fb Merge "Process numpad enter key along with enter key." into rvc-dev 2020-04-23 01:12:52 +00:00
Jacky Kao
f6f8deea32 Merge "Makes AccessibilityNodeInfo#getSourceNodeId as test API" into rvc-dev 2020-04-23 01:08:46 +00:00
Winson Chiu
bd1ad2453d Merge "Calculate oldPaths for out of date LoadedApks" into rvc-dev am: c023f4474b
Change-Id: I2b395dcfc1c7159446edf3f9151b500a50d76eda
2020-04-23 01:01:28 +00:00
Winson Chiu
c023f4474b Merge "Calculate oldPaths for out of date LoadedApks" into rvc-dev 2020-04-23 00:44:57 +00:00
chaviw
d1a2393f6c Add DisplayAreaInfo
Pass DisplayAreaInfo to the client to communicate information about a
specific DisplayArea.

Test: Builds
Bug: 152114574
Change-Id: Iec53ec57d1e5e892d66a1da0bd48b75f91965d20
2020-04-22 14:29:18 -07:00
Tiger Huang
5c893d3662 Merge "Do not dispatch leashes if they are not ready" into rvc-dev am: 75485cf52e
Change-Id: Ic8013d640e572fac0f5fb4c91f4566abe738c66f
2020-04-22 19:29:15 +00:00
Tiger Huang
75485cf52e Merge "Do not dispatch leashes if they are not ready" into rvc-dev 2020-04-22 19:25:24 +00:00
Lucas Dupin
7a69c08004 Merge "Translate text by top" into rvc-dev am: 9d3b2a446e
Change-Id: I4111f33abd4e3d013f75cf3b1a936d91300a8ff7
2020-04-22 18:46:45 +00:00
Yurii Zubrytskyi
c95191f0a1 Merge changes I227d8e0c,Ided4415a into rvc-dev am: f3d4495df9
Change-Id: If2b6a56e0756210c478aaff3dcc7b0514f0c59b5
2020-04-22 18:43:33 +00:00
Lucas Dupin
9d3b2a446e Merge "Translate text by top" into rvc-dev 2020-04-22 18:42:42 +00:00
Yurii Zubrytskyi
5899bac92e Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc
Change-Id: I84291455456752ba3297d1cdf6d2a643f59365e3
2020-04-22 18:42:16 +00:00
Yurii Zubrytskyi
f3d4495df9 Merge changes I227d8e0c,Ided4415a into rvc-dev
* changes:
  [incfs] Small cleanup in staging -> final dir rename
  [incfs] Use MountRegistry to import existing mounts on start
2020-04-22 18:26:15 +00:00
Yurii Zubrytskyi
930f1d10bc Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev
* changes:
  [incfs] Cleanup storage creation and don't use temp directory
  [incfs] Notify IncrementalService about system startup later
  [incfs] Fix bad path::join() path preparation
2020-04-22 18:25:49 +00:00
Alex Buynytskyy
cd800931a2 Merge "Packages on IncrementalFS can't have oat dir." into rvc-dev am: d48ca975b6
Change-Id: I16d72e84bf6569a0c13879d710af6a68001c1547
2020-04-22 17:14:22 +00:00
kholoud mohamed
716cf78bfe Fix javadoc for CrossProfileApps#canRequestInteractAcrossProfiles
Remove the app being whitelisted requirement from
the javadoc.

Fixes: 154712757
Test: N/A
Change-Id: Ib476d0b19717e901d26039194d33f8c43f7e3f74
2020-04-22 17:03:21 +00:00
Alex Buynytskyy
d48ca975b6 Merge "Packages on IncrementalFS can't have oat dir." into rvc-dev 2020-04-22 17:01:00 +00:00
Tiger Huang
e480e5f49c Do not dispatch leashes if they are not ready
The previous solution used a different transaction from the one used in
SeamlessRotator#finish. So the transaction might be applied in an
unexpected order between here and there when the target frame number is
reached.

This CL reverted the previous solution. Instead, we don't dispatch the
leash if it is not ready. For the client, it won't play the animation
until obtaining the leash.

Fix: 154195854
Test: Rotate device to change the orientation in Camera, and see if
      navigation bar stays visible.
Test: Check if transient bar can be shown/hidden/aborted as expected.
Test: Make sure b/153104643 stay fixed.
Test: atest InsetsPolicyTest
Change-Id: I29f80f1c77615b0a3cde38df265220f48d66f117
2020-04-22 20:23:18 +08:00
Charles Chen
2622d3ef7e Limit number of window context without any window
This change is to prevent misuse of window context from app
and leads to performance drop on system by limit the numer of window
context an app can use. Code snippet below is a sample to cause
this issue:
```
Rect getBounds() {
    Context windowContext = context.createWindowContext(...);
    return windowContext.getSystemService(WindowManager.class)
            .getCuttentWindowMetrics().getBounds()
}
```
This method could be invoked dozens of times and produce dozens of window
tokens. It would slow down the speed of window traversalling. These
token won't be removed until system server has been GC'd.

Test: atest WindowContextTests WindowContextPolicyTests
fixes: 152934797
Bug: 153369119

Change-Id: I927e85a45c05c4d90b51a624ea408ff3a3ffce93
2020-04-22 18:16:56 +08:00
Yurii Zubrytskyi
08a4c7f70b [incfs] Small cleanup in staging -> final dir rename
Bug: 153704006
Test: atest PackageManagerShellCommandTest \
  PackageManagerShellCommandIncrementalTest \
  IncrementalServiceTest
Change-Id: I227d8e0cba6554bf8cf58a16598f34ccbf3d21c0
2020-04-22 00:49:05 -07:00
Jacky Kao
ec8733e497 Makes AccessibilityNodeInfo#getSourceNodeId as test API
For testing the accessibilityNodeInfo constructor methods, making this
method, AccessibilityNodeInfo#getSourceNodeId, to become a testing API.

Bug: 154163930
Bug: 154163953
Test: a11y CTS & unit tests
Change-Id: I9a2ff665996e28d6d5770723d98b49f96eab1f50
2020-04-22 15:43:27 +08:00
Yurii Zubrytskyi
360bbdc720 [incfs] Cleanup storage creation and don't use temp directory
Bug: 153704006
Test: atest PackageManagerShellCommandTest \
  PackageManagerShellCommandIncrementalTest \
  IncrementalServiceTest
Change-Id: I8942a2db766cfdb7c119112cc9b58ee0287f1767
2020-04-22 00:39:44 -07:00
TreeHugger Robot
8b6ddea26e Merge "Avoid reporting unhandled config changes to activity" into rvc-dev am: 5ff2b3ce04
Change-Id: I8bcab5186c879a71b72a1a4033f5e87e863fd835
2020-04-22 03:54:20 +00:00
TreeHugger Robot
5ff2b3ce04 Merge "Avoid reporting unhandled config changes to activity" into rvc-dev 2020-04-22 03:40:26 +00:00
Jacky Kao
b3e6862444 Merge "Obtain correct screenshot based on device orientation" into rvc-dev am: 538ee89f2b
Change-Id: I2651fdaf9473c0a3dfe767cd3320bf311305983a
2020-04-22 00:28:55 +00:00
Jacky Kao
538ee89f2b Merge "Obtain correct screenshot based on device orientation" into rvc-dev 2020-04-22 00:19:35 +00:00
Jacky Kao
333de4e7c3 Obtain correct screenshot based on device orientation
When taking the screenshot, passing the width and height
of the display, and the rotation according to the current
device orientation.

Bug: 153173726
Test: a11y CTS & unit tests
Test: manual test
Change-Id: I19eea2046da282155719b1dfdf9a3f53ad95e13b
2020-04-22 00:19:12 +00:00
Lucas Dupin
798562bfbd Translate text by top
We were centralizing without considering that there could be some
additional translation passed to DynamicDrawableSpan#draw

Test: atest DynamicDrawableSpanTest
Fixes: 154489406
Change-Id: I9615f478d1962b2d6fd54123fc391554073f5bf1
2020-04-21 16:42:27 -07:00
Alex Buynytskyy
d29a2ccced Packages on IncrementalFS can't have oat dir.
Bug: b/154535403
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: I7428f3c0a28cc300586ad083cc4ab12082d67e72
2020-04-21 16:39:38 -07:00
Jeff Sharkey
ed91f7aabf Merge changes from topic "apr19" into rvc-dev am: b67e70aa40
Change-Id: Id459d6991890200bcb2fe5d1f8ef1db707ad9369
2020-04-21 23:00:05 +00:00
Jeff Sharkey
b67e70aa40 Merge changes from topic "apr19" into rvc-dev
* changes:
  Update some Parcelables to send Strings UTF-8.
  Offer to write Strings through Parcels as UTF-8.
2020-04-21 22:59:40 +00:00
Jeff Sharkey
0223df096c Update some Parcelables to send Strings UTF-8.
An earlier CL with benchmarks has shown that sending strings as UTF-8
is 50% faster for US-ASCII strings, and still 68% faster for complex
strings referencing higher Unicode planes.  (So an improvement in
both cases!)

Since code across the OS still makes heavy assumptions about Parcel
strings typically being UTF-16, we need to carefully migrate
Parcelables by hand, which is what this CLs begins doing.

This is a purely mechanical refactoring with no functional changes.

Bug: 154436100
Test: manual
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Ia9e581efd7c40269342b7528ca07363deb843c0f
2020-04-21 22:59:26 +00:00
TreeHugger Robot
c036152905 Merge "DataLoader statuses, explained." into rvc-dev am: 2f14c3a752
Change-Id: Iaa9334484b32c99492d302e1ce618148e16ab7ea
2020-04-21 22:51:07 +00:00
TreeHugger Robot
2f14c3a752 Merge "DataLoader statuses, explained." into rvc-dev 2020-04-21 22:44:40 +00:00
Mady Mellor
8bb2374fc9 Merge "Make bubble channel setting 3 state with unset / on / off" into rvc-dev am: 582784757d
Change-Id: Ia1517e22b8319e1982edc84918f3029643913920
2020-04-21 22:36:49 +00:00
Mady Mellor
582784757d Merge "Make bubble channel setting 3 state with unset / on / off" into rvc-dev 2020-04-21 22:30:28 +00:00
TreeHugger Robot
f37ded68ae Merge "Ignore exceptions when investigating failure reasons" into rvc-dev am: d907c49479
Change-Id: I4ea325edd241df77ad3c8b5a16962747c9fad966
2020-04-21 22:27:47 +00:00
TreeHugger Robot
d907c49479 Merge "Ignore exceptions when investigating failure reasons" into rvc-dev 2020-04-21 22:22:37 +00:00
Wale Ogunwale
ef931eee02 Merge "Allow CTS test to control organized tasks" into rvc-dev am: 201af5078f
Change-Id: I379c4fd14c2b3ffb71bed90eab2aa68bc641cc9f
2020-04-21 22:15:22 +00:00
Wale Ogunwale
201af5078f Merge "Allow CTS test to control organized tasks" into rvc-dev 2020-04-21 22:01:40 +00:00
Alex Buynytskyy
785957d352 DataLoader statuses, explained.
Bug: b/153874006
Test: comment-only change
Change-Id: I6c85c1c6fc5c922e9d789b3ecd31a94c812dc3a1
2020-04-21 13:36:19 -07:00
Makoto Onuki
5890360562 Ignore exceptions when investigating failure reasons
Fix: 154428500
Test: boot
Test: code inspection
Change-Id: I2a69a58aaa43617f40bc52fd06cba730faa93672
2020-04-21 13:19:41 -07:00
Taran Singh
52a855432a Merge "Fix Ime consumer isRequestedVisible" into rvc-dev am: 8386c222c9
Change-Id: I694fb0eb7b4ed8388b758f83249bade5a7c54fa0
2020-04-21 20:13:13 +00:00