Commit Graph

12705 Commits

Author SHA1 Message Date
Shawn Lin
d459dc237c Merge "Add a new flag ALWAYS for layoutInDisplayCutoutMode" 2020-01-20 14:02:57 +00:00
Jorim Jaggi
0865f08f5a Merge "Migrate LAYOUT_STABLE in new insets world" 2020-01-20 13:33:26 +00:00
Jing Ji
e29afc9b7f Add support to send notification from Zygote to system_server
Zygote will send message to system_server on SIGCHILD now.

Bug: 136036078
Test: atest CtsWebkitTestCases
Test: atest CtsHostsideWebViewTests
Test: atest CtsAppTestCases
Change-Id: Ifb385d907018bbe76b2aa81eb09209a77ea9224d
2020-01-17 20:47:53 -08:00
Jorim Jaggi
7f7618748d Migrate LAYOUT_STABLE in new insets world
WindowInsets.getSystemInsets returns the stable insets if the
window has set SYSTEM_UI_FLAG_STABLE set.

Furthermore, consuming stable will also consume system insets, and
consuming system insets will consume stable. However, DecorView
will not longer consume stable.

Bug: 118118435
Test: InsetsStateTest, WindowInsetsTest
Change-Id: I232e90a6ec34036e830a53437cf32a2b794c5257
2020-01-17 22:42:02 +00:00
Automerger Merge Worker
fa5006b7eb Merge "Implement the ThreadPrioritySetter interface" am: 28aec752bd am: dc2aaef2e6 am: e6f0fa0b63
Change-Id: Ie2ea9aa627f2eb187b68af1226bf541458485455
2020-01-17 22:10:49 +00:00
Automerger Merge Worker
dc2aaef2e6 Merge "Implement the ThreadPrioritySetter interface" am: 28aec752bd
Change-Id: I5af163cfa65bd14cf5575d541ac84b84b4d78f23
2020-01-17 20:16:36 +00:00
Christian Wailes
c39334a805 Merge changes from topic "manual-zygote-snap"
am: 391bc94404

Change-Id: I068bfd198f2a3951fca07d623127c7cb1371b80f
2020-01-17 11:51:06 -08:00
Chris Wailes
c57c1c3356 Improved timekeeping logic for USAP Pool refill mechanism.
am: d8ef116993

Change-Id: I4754866a6740ec7dbe0ae46d4b2c463416f08155
2020-01-17 11:50:31 -08:00
Chris Wailes
0186924384 Resets the refill action/timing info after a pool fill event.
am: b28db4abbc

Change-Id: Iab655d93eabe1331d5166365a82dcb7c7e9275ca
2020-01-17 11:49:54 -08:00
Chris Wailes
d5c2d5d792 Make the USAP Pool refill delay configurable.
am: eabbf8720c

Change-Id: Ie07333bd97ba8cbd92744d68e17bbd2a84fe77a1
2020-01-17 11:49:06 -08:00
Chris Wailes
16d1a78e67 Re-adds a trace point that was accidentally removed.
am: 7e9f83e18a

Change-Id: I3a194f8adb2e35280e13c36baffaaa0c5f4c5f87
2020-01-17 11:48:16 -08:00
Chris Wailes
bbfa310ef2 Moved some thread priority changes.
am: 9091be3eb7

Change-Id: Id983d66927e51633742476776d23ce33978e01d1
2020-01-17 11:47:05 -08:00
Chris Wailes
13839cfe41 Adjust Java Language thread priority in new processes.
am: 80993a6e60

Change-Id: I9fc2a68681eb3f39980c45f707581c3a19cdf0d4
2020-01-17 11:45:03 -08:00
Katsiaryna Naliuka
66cd0568e6 Passing shared media URI along with the shared media type to the App Predictor. The URI can be used to generate app/direct share targets by the app prediction services.
Test: flashed locally, verified that Uri gets passed to the locally installed prediction service in the
intent filter; atest IntentTest

Bug: 147206065
:

Change-Id: I948d6a2e9d15dd3d9ab955571412c0f5922c1e23
2020-01-17 15:36:50 +01:00
Rick Yiu
28aec752bd Merge "Implement the ThreadPrioritySetter interface" 2020-01-17 13:32:54 +00:00
shawnlin
d0e23be2e7 Add a new flag ALWAYS for layoutInDisplayCutoutMode
In R, we will allow cutouts on long edges of a display.
We need to add a new flag for this.

Test: atest PhoneWindowTest
Bug: 146875740
Change-Id: Iebb5f14c0a693f8229fef67d80f2afc3029c3deb
2020-01-17 16:29:46 +08:00
Rhed Jao
18dcc695de Merge "Fix a11y shortcut failed to be disabled by the warning dialog." 2020-01-17 08:11:56 +00:00
Chris Wailes
119508293b Adjusts the USAP pool refill mechanism.
This patch adjusts the USAP pool refill mechanism so that it is less
disruptive to launching applications.  Refill events are now delayed
by several (3) seconds if delaying wouldn't cause the pool to be below
the minimum population size.

This patch also adjusts the process priorities for the USAPs and other
processes spawned from the Zygote so that they behave better in the
context they are spawned in.

Bug: 131362095
Bug: 146614089
Test: booted & launched apps & checked logs
Change-Id: I7328f304c9b744cfdbfbdbe522a5f9aeea5233bb
Merged-In: I7328f304c9b744cfdbfbdbe522a5f9aeea5233bb
2020-01-16 15:38:00 -08:00
Chris Wailes
67c2d6c0a9 Change USAP name to application name as soon as possible.
This patch changes the location where the process's name is changed to
that of the application being launched.  It also attempts to use the
package name if the "nice name" is missing.

Test: m & flash & boot
Bug: 146614089
Change-Id: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
Merged-In: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
2020-01-16 15:37:48 -08:00
Christian Wailes
391bc94404 Merge changes from topic "manual-zygote-snap"
* changes:
  Fixed an issue Zygote initialization.
  Improved timekeeping logic for USAP Pool refill mechanism.
  Resets the refill action/timing info after a pool fill event.
  Make the USAP Pool refill delay configurable.
  Re-adds a trace  point that was accidentally removed.
  Moved some thread priority changes.
  Adjust Java Language thread priority in new processes.
  Adjusts the USAP pool refill mechanism.
  Change USAP name to application name as soon as possible.
2020-01-16 19:00:00 +00:00
TreeHugger Robot
8da97bddbd Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master" into stage-aosp-master 2020-01-16 18:29:18 +00:00
PETER LIANG
75d45584a1 Merge "Multiple shortcut menu for android R (7/n)." 2020-01-16 12:05:58 +00:00
TreeHugger Robot
0ca2f2a8bc Merge "Update FLAG_DIR_BLOCK_TREE to FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE" 2020-01-16 09:49:02 +00:00
Peter_Liang
fdc7ecdddf Multiple shortcut menu for android R (7/n).
Support the legacy hardware shortcut can be deleted and
  software shortcut still keep be disabled.

Test: manual test
Change-Id: I0d2d48daa47a3b6f84e108966c8a4e5573cf06e9
2020-01-16 17:38:21 +08:00
Automerger Merge Worker
acc4f31393 Merge "Remove phoneId from ImsUceManager" am: 8478802be5 am: 9995982748 am: 2cd8af1d78
Change-Id: I8c0309448a8abb1a8094b4a82a11db812bfd3ff6
2020-01-16 01:57:01 +00:00
Automerger Merge Worker
2cd8af1d78 Merge "Remove phoneId from ImsUceManager" am: 8478802be5 am: 9995982748
Change-Id: I4f11280d7130d9185615e2ba2116eb06de92fd27
2020-01-16 01:44:39 +00:00
Treehugger Robot
8478802be5 Merge "Remove phoneId from ImsUceManager" 2020-01-16 01:33:03 +00:00
Automerger Merge Worker
a7a2825aeb Merge "Create an until function to check location permission" am: 948c4086af am: b896ed6e19
Change-Id: Ic868fbfa4d9b9199e754c5b6aacf97990245e95e
2020-01-16 01:14:53 +00:00
Treehugger Robot
948c4086af Merge "Create an until function to check location permission" 2020-01-16 00:30:39 +00:00
TreeHugger Robot
2b9e33d039 Merge "Adds a flag to force the Nav Bar handle to remain visible" 2020-01-16 00:25:44 +00:00
Chris Wailes
ce55f80e17 Fixed an issue Zygote initialization.
An assignment to a flag and a call to a function that uses that flag
were in the wrong order.

Bug: 146614089
Test: Treehugger
Change-Id: If046aa62084892b8dae10497f15cf4c685d226db
Merged-In: If046aa62084892b8dae10497f15cf4c685d226db
2020-01-15 16:20:45 -08:00
Chris Wailes
d8ef116993 Improved timekeeping logic for USAP Pool refill mechanism.
This patch makes two changes to increase the reliability of the USAP
pool refill mechanism.  The first is to change the storage type of the
result of an expression from int to long.  This will help avoid
potential overflow issues.

The second change mitigates the impact of the non-monotonic system clock
having its value changed.  If the clock goes backwards in time past when
the initial event triggered the refill delay, the delay will now be reset.

Bug: 146614089
Test: Treehugger
Change-Id: Ic6f65de51757803b5ba95975bab3b9322a91c837
Merged-In: Ic6f65de51757803b5ba95975bab3b9322a91c837
2020-01-15 16:20:36 -08:00
Chris Wailes
b28db4abbc Resets the refill action/timing info after a pool fill event.
Bug: 132794985
Bug: 146614089
Test: m & flash & launch more apps than USAPs in the pool
Change-Id: I9ee74d76692fa8aeba9c70765b3e8f98ea9105bc
Merged-In: I9ee74d76692fa8aeba9c70765b3e8f98ea9105bc
2020-01-15 16:20:29 -08:00
Chris Wailes
eabbf8720c Make the USAP Pool refill delay configurable.
This patch fetches the USAP pool refill delay value from device_config
instead of hardcoding it.

Bug: 131362095
Bug: 146614089
Test: Build and launch 10+ apps successfully
Change-Id: Idfeb30fa62fa296492da211b2b44902ff4f99b18
Merged-In: Idfeb30fa62fa296492da211b2b44902ff4f99b18
2020-01-15 16:20:23 -08:00
Chris Wailes
7e9f83e18a Re-adds a trace point that was accidentally removed.
Test: Built and collected a trace to verify slice ended
Bug: 146614089
Change-Id: Ic75d65fc7b2a417fc3a58c2df8ec9deb795fb418
Merged-In: Ic75d65fc7b2a417fc3a58c2df8ec9deb795fb418
2020-01-15 16:20:16 -08:00
Chris Wailes
9091be3eb7 Moved some thread priority changes.
The previous place I had moved these changes resulted in runtime threads
being created at the wrong priority.  This patch moves the calls to the
correct location.

Test: atest CtsJvmtiRunTest924HostTestCases
Bug: 146614089
Change-Id: Iad2e17cd137eab81c595cb6816608a36b009da8b
Merged-In: Iad2e17cd137eab81c595cb6816608a36b009da8b
2020-01-15 16:20:07 -08:00
Chris Wailes
80993a6e60 Adjust Java Language thread priority in new processes.
Previously init started the Zygote with -20 nice value and then
immediately switched it to 0 in ZygoteInit.main so that new applications
forked from the Zygote have the correct Java Language thread priority.
This patch delays this priority change so that it only affects the new
processes and not the priority of the Zygote.

Test: m & flash & check ps
Bug: 146614089
Change-Id: Id00d0cfd642f02640c40b6e7b2aa8933a320b60c
Merged-In: Id00d0cfd642f02640c40b6e7b2aa8933a320b60c
2020-01-15 16:20:00 -08:00
Chris Wailes
0b2fbfcf6f Adjusts the USAP pool refill mechanism.
This patch adjusts the USAP pool refill mechanism so that it is less
disruptive to launching applications.  Refill events are now delayed
by several (3) seconds if delaying wouldn't cause the pool to be below
the minimum population size.

This patch also adjusts the process priorities for the USAPs and other
processes spawned from the Zygote so that they behave better in the
context they are spawned in.

Bug: 131362095
Bug: 146614089
Test: booted & launched apps & checked logs
Change-Id: I7328f304c9b744cfdbfbdbe522a5f9aeea5233bb
Merged-In: I7328f304c9b744cfdbfbdbe522a5f9aeea5233bb
2020-01-15 16:19:53 -08:00
Chris Wailes
82cde3eaed Change USAP name to application name as soon as possible.
This patch changes the location where the process's name is changed to
that of the application being launched.  It also attempts to use the
package name if the "nice name" is missing.

Test: m & flash & boot
Bug: 146614089
Change-Id: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
Merged-In: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
2020-01-15 16:19:46 -08:00
Xin Li
e13851556b DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master
Bug: 146167222
Change-Id: Ifeb003ec9b3bf824f04d31a117aea65d517241fb
2020-01-15 16:15:41 -08:00
Nathan Harold
bbc2aaeaaa Merge changes from topic "barring-info"
* changes:
  Add a BARRING_TYPE_UNKNOWN for Unreported Barring
  Add Callback to notify changes of barring status
2020-01-16 00:06:07 +00:00
Qingxi Li
cd4a08fb4a Create an until function to check location permission
This util function will check whether the app has location permission
and whether the location mode is enabled for the users. This function
will be used by both connectivity service and wifi networks.

Bug: 142072839
Test: atest ConnectivityUtilTest
Change-Id: I5558ed04e5ef28033a1c649f5491f2f15aa63557
Merged-In: I5558ed04e5ef28033a1c649f5491f2f15aa63557
2020-01-15 15:24:01 -08:00
Brad Ebinger
bec99bade4 Remove phoneId from ImsUceManager
ImsUceManager does not need to be created per phoneId, since
the UCE service is created per subscription in RcsStackAdaptor.

Fixes: 147319232
Test: manual; bring up/down RcsService on a MSIM device
Change-Id: If9f89f8f083197c68900a6c1a51837ce0dd0b4a0
2020-01-15 22:21:10 +00:00
Govinda Wasserman
8b0454689e Adds a flag to force the Nav Bar handle to remain visible
Test: Tested locally
Change-Id: I74395aee1856a735b175af88ec87f12780ee9ff5
2020-01-15 17:12:35 -05:00
TreeHugger Robot
5988021002 Merge "Multiple shortcut menu for android R (6/n)." 2020-01-15 19:02:52 +00:00
Rhed Jao
f3fbcf5d43 Fix a11y shortcut failed to be disabled by the warning dialog.
Bug: 147330765
Test: atest AccessibilityShortcutControllerTest
Change-Id: I0eed04c7892a22be3721ca08562fb9121a257847
2020-01-15 21:44:22 +08:00
Peter_Liang
f11c17e0ec Multiple shortcut menu for android R (6/n).
Implementation for clicking the target item.

Change-Id: Ib91be1102791ea77768c5c69dbe00535cdc84baf
Fix: b/146969684
Test: manual test
2020-01-15 21:41:52 +08:00
Yuhan Zhao
03e46fd76a Merge "Intercepting activites that could cause lock task mode violation in ActivityStartInterceptor." 2020-01-15 08:23:47 +00:00
PETER LIANG
b85c3a8f88 Merge "Multiple shortcut menu for android R (5/n)." 2020-01-15 06:13:01 +00:00
Ivan Chiang
84b55928a1 Update FLAG_DIR_BLOCK_TREE to FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE
Test: m -j
Bug: 144764129
Change-Id: I0653fa1e16869db8a2ccc4425d368677c27873bc
2020-01-15 11:02:27 +08:00