692799 Commits

Author SHA1 Message Date
Chris Wilson
36ea7d5a37 Merge "Revert "Reset stack guard after fork from Zygote"" 2022-06-17 23:04:30 +00:00
Chris Wilson
89301c44ef Revert "Reset stack guard after fork from Zygote"
Revert "Remove stack protector from some interpreter functions"

Revert submission 2099076-stack-protector-2022

Reason for revert: CTS failures b/236399082
Reverted Changes:
Id65d0d96b:Remove stack protector from some interpreter funct...
Ia68cd0bf5:Reset stack guard after fork from Zygote
Bug: 236399082
Change-Id: Icbd74a9b38c5331aec5d9f516d841e7ec779e342
2022-06-17 23:04:19 +00:00
Chavi Weingarten
3768beaf83 Updated OWNERS file
Test: N/A
Change-Id: I413016ac7d4a10c192009d30e3e0f74be986ffbb
2022-06-17 20:07:41 +00:00
Yan Yan
fdfdf95b15 Merge "Make VPN more testable and update NC during network change" 2022-06-17 17:53:59 +00:00
Chris Wailes
e05e1ffffe Add System Properties based settings for USAPs
This CL updates the configuration handling for USAP system properties.

Test: Build; flash; set property; check device state
Bug: 161725679
Change-Id: Ia1f6c4f4f7b8798d9c906953629bed61ce618f54
2022-06-17 10:49:17 -07:00
Chris Wailes
d291524686 Merge "Reset stack guard after fork from Zygote" 2022-06-17 17:11:34 +00:00
T.J. Mercier
df78fdc92f Revert "Freeze all package processes before killing"
This reverts commit a666f83b825d4017751bd2c6d1e81763d53690eb.

Reason for revert: b/236266655 zygote for a new process spawns in different process group before moving, which causes permanent freeze of all zygote processes.

Change-Id: I5eae2519e6bcb52e8ee4a7e0bf5dc8495258b732
2022-06-17 16:25:28 +00:00
Treehugger Robot
f80f2e450d Merge "Immediately notify VM of TOP process state" 2022-06-17 05:46:05 +00:00
Xin Li
4152749ca4 Merge SQ3A.220605.009
Bug: 236045730
Merged-In: I080df3547361aef1aa259dd2b3dc9bdb860a0193
Change-Id: I29d097b885d9392ffe5f845f74d1501f4dd834d7
2022-06-16 22:34:48 -07:00
Yan Yan
3491796336 Minor cleanups in VPN
This commit includes few minor cleanups in VPN for better readability
and maintainability. Specifically this commit:
- explicitly sets IPsec tunnel's underlying network when Child SA is
   created
- nulls out ScheduledFuture when the task is finished or cancelled
- validates the IKE Session token before executing the scheduled
  handleSessionLost call

Bug: 192077544
Test: atest VpnTest, IkeV2VpnTest
Change-Id: Ib3cbdbfa594c55c27b78dffc00a82d371ca7a749
2022-06-17 00:30:17 +00:00
Yan Yan
673162c642 Make VPN more testable and update NC during network change
This commit:
- Updates the NetworkCapabilities with new underlying network during
  IKE Session re-establishment
- Create wrapper classes for IkeSession
- Allow injecting executor and NetworkAgent with
  the Dependencies class

Bug: 192077544
Test: atest VpnTest(new tests)
Change-Id: Ic98e3906c2b02fa8b9f4a8e1366b1dd8a363bb47
2022-06-17 00:13:18 +00:00
Xin Li
195b02b570 Merge "Merge Android 12 QPR 3" 2022-06-16 18:51:54 +00:00
Jayant Chowdhary
8a289a650c s/get_interesting_hal_pids/get_interesting_pids.
Since pids can belong to non hal processes as well, in theory.

Bug: 233130219

Test: build

Merged-In: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4
Change-Id: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit d1ce457da1f7c467c11d74f6550f6918806744a9)
2022-06-16 18:15:48 +00:00
Shumao Hou
eecb54dfeb BatteryStatsImpl: Add parcel methods for DisplayBatteryStats.
DisplayBatteryStats didn't have parcel methods and the estimated
multidisplay screen power was always initialized from 0.
The estimated screen power of the app will become inaccurate
after rebooting.

Bug: 235321975
Test: manual test.
1. Unplug the device.
2. Use an app for a while and keep screen on.
3. Capture the first bug report.
4. Reboot the device.
5. Capture the second bug report.
The estimated screen power of the app shouldn't become lower after rebooting the device.

Change-Id: I5d6ad56aa7e1dcd07994b1e1832c19c94e316b72
Merged-In: If74e285102a7350c17c2fc40a205b2031e82f5f4
2022-06-16 17:45:53 +00:00
Eric Jeong
edf65126c9 Update OWNERS file under AAOS
Bug: 236005720
Test: build okay
Change-Id: I0bfceda39b4c23883be0fde7242680e94a87f3aa
2022-06-16 10:05:53 -07:00
Jared Duke
95a0e9ab7d Immediately notify VM of TOP process state
The delay was introduced to suppress JIT activity during startup.
However, ART no longer uses the expicit process state signal as an input
to informing JIT activity, so the delay can be removed.

By forwarding the process state immediately, ART can make more informed
decisions about activity based on process state, e.g., suppressing
madvise calls for less important (non-foreground) processes.

Bug: 235390330
Test: m + presubmit + boot tests
Change-Id: Ia95a76f86cf4c38bf89e56f954dbf59e0083ec50
2022-06-16 09:02:47 -07:00
Victor Chang
9c26b0b301 Add OWNERS file for frameworks/base/tools/localedata/extract_icu_data.py
This folder has only one script extract_icu_data.py.
The script parses the ICU data and generates a .cpp file.
Thus, add external/icu/OWNERS as the owner here.

Test: treehugger
Change-Id: I555e9785c576688e43e6362050180345c81d6c3e
2022-06-16 15:44:40 +01:00
desuo wang
a2461a3faa Recheck the condition before really killing
Since the kill is asynchronously scheduled in the Handler, logically,
before scheduling, the process may be operated by the user to the
foreground or raising to an important ADJ and then be killed abnormally.

Bug: 235565625
Change-Id: Ied40d3ad22caa4d6c89055fdf85affb905d44d23
2022-06-16 06:53:10 +00:00
Kyunglyul Hyun
5a1f9e675b Merge "Handle NPE from BluetoothRouteProvider" 2022-06-16 04:22:45 +00:00
Treehugger Robot
1a0d8de382 Merge "Store pending override config instead of creating ActivityClientRecord" 2022-06-16 03:57:43 +00:00
Jimmy Chen
1bf4072c78 Merge "p2p: add CONFIGURE_WIFI_DISPLAY permssion for P2P test" 2022-06-16 00:26:38 +00:00
Dmitri Plotnikov
4f3aaab684 Merge "Add OWNERS file to services/core/java/com/android/server/power/stats" 2022-06-15 22:36:57 +00:00
Dmitri Plotnikov
79fb181524 Add OWNERS file to services/core/java/com/android/server/power/stats
Bug: 235635119
Test: N/A
Change-Id: Ib39f7d90bb463f6a13e29b815ab6552039ffbfd8
2022-06-15 13:58:56 -07:00
Chilun
3be8e11bdc Store pending override config instead of creating ActivityClientRecord
Create ActivityClientRecord early in preExecute may cause
NullPointerException. If two LaunchActivityItem using the same token
and the 1st postExecute() comes after 2nd preExecute(), the
corresponding launching activity will be removed and cause 2nd
execute() get NullPointerException.

Since the only use case to get ActivityClientRecord in preExecute() is
just to use it to store the pending override config. We can directly
store the latest pending override config from preExecute() in
ActivityThread instead of creating ActivityClientRecord.

Bug: 201668069
Test: atest TransactionExecutorTests
      atest ActivityThreadTest
Merged-In: If350e942254e54c9ec90bc63a6e50eb67d038183
Change-Id: If350e942254e54c9ec90bc63a6e50eb67d038183
2022-06-15 13:01:33 -07:00
Vinh Tran
892f6a9314 Merge "Remove uses of depfile in gensrcs modules" 2022-06-15 18:03:25 +00:00
Vinh Tran
61e69fabe1 Remove uses of depfile in gensrcs modules
The depfile concept in Soong and Ninja isn't applicable in Bazel because Bazel requires listing the deps explicitly.

This CL removes the uses of depfile property and explictly declare the implicit deps in tool_files. The motivation behind this change is to eventually deprecate depfile (aosp/2120835) in gensrcs to ensure all gensrcs modules are convertable to Bazel.

Test: CI
Test: m framework-cppstream-protos && m framework-javastream-protos
Bug: 179452413
Change-Id: Iec6b61b4194d3f1e728449ee63b879818d9c958a
2022-06-15 11:27:46 -04:00
Treehugger Robot
7b1d883876 Merge "Update the OWNERS file of app integrity manager to remove Googlers who left the company." 2022-06-15 15:18:07 +00:00
Ömer Yaveroğlu
f35dd81bee Update the OWNERS file of app integrity manager to remove Googlers who left the company.
B: 236035697
Test: manual:only updates an owner file
Change-Id: I6b0b6d08bcfb3af3e73a11ac4c635ff0257a3692
2022-06-15 14:48:40 +01:00
Victor Chang
73caeda3ad Merge "Remove the *byteShort string resources from the frameworks" 2022-06-15 10:41:23 +00:00
Hani Kazmi
34b061c00a Merge "BaseBundle.java: Recycle underlying parcel when bundle is cleared." 2022-06-15 09:51:53 +00:00
Treehugger Robot
6e64c643cf Merge "Revert "Add NR bands to service state."" 2022-06-15 06:05:27 +00:00
Chris Li
76c76a86c4 Merge "Fix the problem that the turn_screen_on Activity does not draw." 2022-06-15 02:17:06 +00:00
Jooyung Han
a4d51305f7 Merge "Unhide Parcel.writeTypedList() with additional flag" 2022-06-15 01:02:07 +00:00
Cheng Shi
3ff201a713 Fix the problem that the turn_screen_on Activity does not draw.
A phone call came when the screen was off, displayState may change from Display.STATE_OFF to STATE_ON before registerDisplayListener, which causes ViewRootImpl.mAttachInfo.mDisplayState of InCallActivity to remain Display.STATE_OFF, which causes performDraw to return directly. So we should update ViewRootImpl.mAttachInfo.mDisplayState after registerDisplayListener.

Bug: 235446909

Change-Id: I60b2da453da0ac5c4df6e5a1040defe4bfe726ec
Merged-In: I60b2da453da0ac5c4df6e5a1040defe4bfe726ec
2022-06-15 01:01:28 +00:00
Treehugger Robot
51e6e8a0e1 Merge "statemachine migration from base to modules-utils" 2022-06-14 23:52:11 +00:00
Xin Li
6811cf790c Merge Android 12 QPR 3
Bug: 236045730
Merged-In: Ia6e09648c74410ce5d14dd6b2032e59466034cb5
Change-Id: Ib3c2374b1598b579299cf8fc2f0949f0d5d73ac5
2022-06-14 16:48:09 -07:00
Treehugger Robot
0a3e8a46af Merge "Add runtime crash information to sysprops" am: 68f657619c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2107991

Change-Id: Ia6e09648c74410ce5d14dd6b2032e59466034cb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 22:58:00 +00:00
Treehugger Robot
68f657619c Merge "Add runtime crash information to sysprops" 2022-06-14 22:28:58 +00:00
Rafael Higuera Silva
e0ab5e1750 Revert "Add NR bands to service state."
Revert "Add NR bands to service state."

Revert submission 2124634-nrBands

Reason for revert: Wrong conversions. 
Reverted Changes:
I493e574e5:Add NR bands to service state.
I25ec415e6:Add NR bands to service state.

Change-Id: I265f2b1a073cf0fbc5ec5654d9b369e658713f2f
2022-06-14 15:17:24 +00:00
Hani Kazmi
1b74a666d3 BaseBundle.java: Recycle underlying parcel when bundle is cleared.
Lazy Bundles, (aosp/1787847), introduced a change in behavior where a Parcel
created as part of initializing a Bundle is dependent on the next ART GC run to be
recycled, causing a short term memory-leak.

To land this in T, we are making the change targetted and allowing
consumers to opt into the parcel being immediately cleared by calling
.clear() on the bundle.

As part of the unparcel() in clear(), mParcelledData is set to null, and
mMap may or may not still contain references through lazy values,
depending on if the lazy valyes have been unmarshalled.  As
such, we keep a weak reference to mParcelledData we can use to recycle it.

The mParcelledData reference could have been copied to other bundles in
a few operations:
new Bundle(Bundle o)
bundle.deepCopy()
bundle.putAll()

In this case we can not recycle the parcel yet as other bundles may
still require it. If so, we will skip the recycle and rely on the later GC pass

Bug: 233216232
Test: Reproduced linked bug on-device
Test: atest android.os.cts.ParcelTest android.os.cts.BundleTest android.os.BundleTest android.os.ParcelTest
Change-Id: Ic26eceaa1c11da67866af0963f760423d41d54bc
Merged-In: Ic26eceaa1c11da67866af0963f760423d41d54bc
2022-06-14 12:20:33 +00:00
Jooyung Han
245796b8a2 Remove android.media.audio.common.types from VNDK
It's still available from vendor.

Bug: 234181591
Test: m
Merged-In: I8e177d32852b548645a8bd1d7b7bb8a128c7b0bc
Change-Id: I8e177d32852b548645a8bd1d7b7bb8a128c7b0bc
2022-06-14 16:43:15 +09:00
Kyunglyul Hyun
c376e8c112 Handle NPE from BluetoothRouteProvider
NPE could be thrown if ACTION_ACTIVE_DEVICE_CHANGED
is sent before ACTION_CONNECTION_STATE_CHANGED (connected)
is sent.
This CL handles the case by creating a new bluetooth route.
If ACTION_CONNECTION_STATE_CHANGED is followed, connectedProfiles
of the route will be managed.

Bug: 235311641
Test: build successful
Change-Id: I931b3eb38704f23b96c80d70d121c27bef297c7b
2022-06-14 15:33:09 +09:00
Treehugger Robot
73d96f6eae Merge "Add NR bands to service state." am: 47ecbaf0ad
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2124257

Change-Id: I6054e131943f0e5403fb31df7e4955dc3f1a3dcf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 02:07:27 +00:00
Treehugger Robot
47ecbaf0ad Merge "Add NR bands to service state." 2022-06-14 01:45:34 +00:00
Treehugger Robot
bcd8292f8a Merge "Add OWNERS file" am: c70e0d3b5c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2124353

Change-Id: Ic748f9c38f706e00b77e21d8d012eea33c494075
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 00:36:45 +00:00
Treehugger Robot
c70e0d3b5c Merge "Add OWNERS file" 2022-06-14 00:12:13 +00:00
Dmitri Plotnikov
9fa7eeb5d9 Add OWNERS file
Bug: 235635119
Test: N/A
Change-Id: Ie7b96c008bf53bccfeb12da2163d2d91497ac5ed
2022-06-13 15:25:14 -07:00
Rafael Higuera Silva
f081b35137 Add NR bands to service state.
Bug: 231523547
Test: make
Change-Id: I25ec415e603208cb857c912d3aa3c7e1900613b3
Merged-In: I25ec415e603208cb857c912d3aa3c7e1900613b3
2022-06-13 22:20:08 +00:00
Yan Yan
e1592a845e Merge "Revert "Make VPN more testable and update NC during network change"" am: a625dad32f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2124452

Change-Id: Ie59bc5ba729ff156ec76ae31766de75d0b2090e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 21:24:55 +00:00
Yan Yan
a625dad32f Merge "Revert "Make VPN more testable and update NC during network change"" 2022-06-13 20:30:58 +00:00