Commit Graph

103889 Commits

Author SHA1 Message Date
TreeHugger Robot
fcd312d89b Merge "Parses package/provider with non-configuration strings" into rvc-dev am: 9b8965044c
Change-Id: Ib83d896a3f90ec95a333b03a7c07862c4fdbbb97
2020-04-23 21:06:34 +00:00
TreeHugger Robot
9b8965044c Merge "Parses package/provider with non-configuration strings" into rvc-dev 2020-04-23 20:55:02 +00:00
Fabian Kozynski
d8a4644530 [DO NOT MERGE] Add setting for power menu in lock screen privacy am: 2095c43a25
Change-Id: Ib72684c9043335bbc5ed5725285ae4a7172e3c68
2020-04-23 19:54:39 +00:00
Fabian Kozynski
eab14fca5d Merge "[DO NOT MERGE] Add setting for power menu in lock screen privacy" into rvc-dev 2020-04-23 19:38:05 +00:00
Patrick Baumann
3361f334d5 Parses package/provider with non-configuration strings
Fixes: 153658673
Test: AppEnumerationTests
Change-Id: I7fb09f2746f9ccf151d8675cc4ab1360eac1dcd6
2020-04-23 10:37:25 -07:00
TreeHugger Robot
9a2db61b88 Merge "Camera: Update physical camera request keys documentation" into rvc-dev am: 1a17016c70
Change-Id: I099e55d5d84d2dd92d81737a38830a77d5734fbe
2020-04-23 16:59:32 +00:00
Chavi Weingarten
cedb2e42ab Merge "Added onDisplayAreaChanged and unregister for DisplayAreaOrganizer" into rvc-dev am: cd220824de
Change-Id: I7d93eed9d52a5b9dfa0e6824bea90901d14fd88e
2020-04-23 16:57:43 +00:00
Chavi Weingarten
3ddd16c2f0 Merge "Add DisplayAreaInfo" into rvc-dev am: 74aa929f63
Change-Id: I15f5eb109eccdcf8d73212a56ee785ed3be07750
2020-04-23 16:56:32 +00:00
TreeHugger Robot
1a17016c70 Merge "Camera: Update physical camera request keys documentation" into rvc-dev 2020-04-23 16:39:11 +00:00
Chavi Weingarten
cd220824de Merge "Added onDisplayAreaChanged and unregister for DisplayAreaOrganizer" into rvc-dev 2020-04-23 15:56:29 +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
9d07e62689 Added onDisplayAreaChanged and unregister for DisplayAreaOrganizer
Notify DisplayAreaOrganzier when the registered DisplayArea has changed.

Also added the ability to unregister a DisplayAreaOrganizer

Test: DisplayAreaOrganizerTest
Bug: 152114574
Change-Id: I9e8c537f8fe6aa7f5b007ef73535294be62dd806
2020-04-22 15:43:56 -07: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
Emilian Peev
b30f4ef874 Camera: Update physical camera request keys documentation
Align physical camera request key documentation with the
camera service implementation. Specifically remove any
repeating request limitations.

Bug: 154673381
Test: Successful doc build
Change-Id: I563542e819ef57a99f762d7cfd653cced2423ebb
2020-04-22 09:11:01 -07:00
Fabian Kozynski
2095c43a25 [DO NOT MERGE] Add setting for power menu in lock screen privacy
Adds a new Setting for the user to show or hide power menu content
(cards & passes, controls) when the device is locked (secured). A value
of 0 (default) means hide content and a value of 1 means show.

The setting updates from the notification in the following way:
* If Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS is 1 AND
Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS is 1, the new setting is
set to 1 (the user has allowed sensitive content).
* If at least one of those settings is 0, the new setting is set to 0
(the user has not allowed sensitive content).
* If the settings are not set, the new setting is not set.

Test: build
Test: manual with adb
Bug: 152212779
Change-Id: If6d9436f633bc45330956372ea7f8a40ed22ed52
2020-04-22 13:16:15 +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