Commit Graph

11947 Commits

Author SHA1 Message Date
Automerger Merge Worker
d465863e3d Merge "Disable heap pointer tagging on Q or earlier." am: 372a9b99e2
Change-Id: Id3705a9e0b5d9cc732aac405fa1164c65f7fd7ff
2020-01-24 00:39:03 +00:00
Evgenii Stepanov
372a9b99e2 Merge "Disable heap pointer tagging on Q or earlier." 2020-01-24 00:26:32 +00:00
Benedict Wong
1ebbd0bb6b Merge changes from topic "add-ikev2-vpn-types"
am: adb79e3b39

Change-Id: I205121bbd8ef8adbe5e7a5ea1c57bbcac0efae0e
2020-01-22 22:09:41 -08:00
Benedict Wong
50b147d827 Add additional fields to VpnProfile for profile-based IKEv2/IPsec VPNs
This commit adds the fields required to support IKEv2/IPsec VPNs. Other
fields will be reused where possible.

Bug: 143221465
Test: Compiles, new tests written for parcel/unparcel, encode/decode
Change-Id: I4c0e8fb934e75548424a15bbfb35c2ea9a3a57bc
2020-01-22 19:23:00 -08:00
Evgenii Stepanov
cba0c36535 Disable heap pointer tagging on Q or earlier.
For testing, this feature can be enabled per-application with
  adb shell am compat 135754954 <app.name>

Bug: 135754954
Bug: 147147490
Test: malloc() returns tagged pointer with the feature enabled

Change-Id: I067b4ba6f5fbfcb8287f0cc07d17978dbe708806
2020-01-22 15:20:54 -08:00
Jing Ji
07dc8cd0f8 Merge "DO NOT MERGE: Add support to send notification from Zygote to system_server"
am: 54469bf6ff

Change-Id: I19f300b76010be7113feea34156a7600e8f47429
2020-01-17 12:49:50 -08: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
Jing Ji
54469bf6ff Merge "DO NOT MERGE: Add support to send notification from Zygote to system_server" 2020-01-17 18:53:19 +00:00
Rick Yiu
28aec752bd Merge "Implement the ThreadPrioritySetter interface" 2020-01-17 13:32:54 +00:00
Jing Ji
82551f5e0e DO NOT MERGE: 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: I0ad2a3299f34344a12e2a3c153ca518aca6f6f11
Merged-In: Ifb385d907018bbe76b2aa81eb09209a77ea9224d
2020-01-16 17:24:40 -08: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
Treehugger Robot
8478802be5 Merge "Remove phoneId from ImsUceManager" 2020-01-16 01:33:03 +00:00
Treehugger Robot
948c4086af Merge "Create an until function to check location permission" 2020-01-16 00:30:39 +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
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
Treehugger Robot
c674b05757 Merge "Use new UnsupportedAppUsage annotation." 2020-01-14 13:50:12 +00:00
Brad Ebinger
70e9b70469 Merge "ims:rcs uce update" 2020-01-14 00:07:24 +00:00
Treehugger Robot
93db49faec Merge "Add Callback for Registration Failure" 2020-01-13 20:58:00 +00:00
Treehugger Robot
b2c3eaaf10 Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 14:27:29 +00:00
Treehugger Robot
70a89435e7 Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 13:04:48 +00:00
Nathan Harold
c41cb737ed Add Callback for Registration Failure
Add a callback to PhoneStateListener to indicate that
a registration procedure has failed.

Bug: 143187047
Test: make update-api && make
Merged-In: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
Change-Id: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
(cherry picked from commit 5e6e983cad)
2020-01-12 10:33:03 -08:00
Automerger Merge Worker
5bb34c7861 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." am: 7b511f0dd8 am: 1e62d2dd40
Change-Id: I9493491cecb3c2308d961e167c276204587a7ce6
2020-01-10 17:17:30 +00:00
Daulet Zhanguzin
7b511f0dd8 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." 2020-01-10 16:36:15 +00:00
Automerger Merge Worker
a6110193f8 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." am: 9bda007cb8 am: a881005317
Change-Id: I14834c28abb17cdc0397950470e45f4e73462dff
2020-01-10 04:46:53 +00:00
Artur Satayev
2a9f3b8811 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I8ffa1da1bcd43c25f4ff817575db77a33c0f3d31
Merged-In: I8ffa1da1bcd43c25f4ff817575db77a33c0f3d31
2020-01-09 15:20:16 +00:00
Artur Satayev
ae5bcf23b5 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I41e12e425284e74561c6b61663241df364ae54a1
Merged-In: I41e12e425284e74561c6b61663241df364ae54a1
2020-01-09 15:15:51 +00:00
Artur Satayev
54af4fc42a Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
Merged-In: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-09 13:52:18 +00:00
Rick Yiu
2c7729e516 Implement the ThreadPrioritySetter interface
Implement the ThreadPrioritySetter interface and register it in
runtime.

Bug: 139521784
Test: CtsLibcoreTestCases, device boot to home, thread priority set
      as expected.
Change-Id: Ib486b7229d5eb723fbb550ed73435fa24afe5190
2020-01-09 12:03:30 +00:00
Daulet Zhanguzin
9dd0f80341 Deprecate checkNotNull in favor of Objects.requireNonNull().
Remove one of unused overloads. The same change passed on master:
ag/10013392

Bug: 126528330

Test: Treehugger
Test: made equivalent change in internal branch to verify that removed method is not in use

Change-Id: I37c5b93e2ffbfa38a5b9feb4cae2062ef24acec5
2020-01-09 11:18:25 +00:00
Meng Wang
8af4d4ad78 Use Parcelable CellIdentity instead of CellLocation in AIDL.
Currently CellLocation is passed over AIDL by manually
marshalling/unmarshalling to/from Bundle, and type info
is not preserved in the process.

Bug: 146092124
Test: make
Merged-In: I6225f100953a2ad354acaa261a774989926393ce
Change-Id: I6225f100953a2ad354acaa261a774989926393ce
2020-01-08 20:29:27 -08:00