661194 Commits

Author SHA1 Message Date
Jared Duke
ea03d1067b Restrict optional system_server optimizations to shrinking
For the initial rollout of system_server R8 optimizations, we will
only apply code shrinking. This avoids the need for retracing in core
developer workflows, while providing modest benefits through code
shrinking.

Shrinking is still enabled in an opt-in basis for specific devices
via `SYSTEM_OPTIMIZE_JAVA=true`.

Bug: 210510433
Test: m SYSTEM_OPTIMIZE_JAVA=true
Change-Id: Ie9fb8138afd0cc60799e3154c709630a947968c0
2022-02-15 13:57:06 -08:00
Treehugger Robot
66660a1a4e Merge "Explicitly mark receivers as RECEIVER_NOT_EXPORTED" 2022-02-15 18:30:42 +00:00
Treehugger Robot
e1ce0243a3 Merge "Fix registerListener documentation bug in which the notice does not contain the notice contents." 2022-02-15 15:20:12 +00:00
Dereck Bridie
a24c4e8072 Fix registerListener documentation bug in which the notice does not contain the notice contents.
Change-Id: Ia123d583c0f4464b935751e1f389b3998a60d006
2022-02-15 09:34:19 +00:00
Eric Zhang
5a700f759d Merge "Change ownership of resumeonreboot module." 2022-02-15 06:42:46 +00:00
Bob Badour
d52dd08acb Merge "Declare license metadata for copied files." 2022-02-15 05:13:49 +00:00
Treehugger Robot
e93cdcd163 Merge "Move permissions allowlist for Tethering" 2022-02-15 04:43:27 +00:00
Hyunho Shin
cb2d34eeef Merge "Add entity uri field to Eab provider" 2022-02-15 00:35:58 +00:00
Bob Badour
c92e5a22db Declare license metadata for copied files.
Bug: 151177513

Test: m all dist reportmissinglicenses

Change-Id: I1ca40c2f26633f23583ac4af10437503f458c4d2
2022-02-14 12:42:52 -08:00
Eric Zhang
3e56fc6c5e Change ownership of resumeonreboot module.
Bug: N/A
Test: N/A
Change-Id: I014452eebfd73767549bb233ccace0655adc57dd
2022-02-14 20:20:50 +00:00
Rambo Wang
7013bca07a Merge "Protect SID and NID in ServiceState with coarse location permission" 2022-02-14 20:03:48 +00:00
Treehugger Robot
5a3337e077 Merge "OWNERS for widget coretests" 2022-02-14 17:09:18 +00:00
Treehugger Robot
d78c0842df Merge "Fix cert-dcl16-c warnings" 2022-02-14 16:37:57 +00:00
Treehugger Robot
5ec4a12947 Merge "Add OWNERS entries for Android time team" 2022-02-14 15:01:49 +00:00
Treehugger Robot
56d6691e8e Merge "Add null check after getApplicationInfo in InstantAppNotifier" 2022-02-14 14:04:08 +00:00
Nicolas Geoffray
e032bc4139 Merge "Call the right JNI helper." 2022-02-14 12:17:37 +00:00
Artur Satayev
19c5ee8bf1 Merge "Use ro.build.version.known_codenames sysprop for KNOWN_CODENAMES." 2022-02-14 12:08:04 +00:00
Neil Fuller
e41149620d Add OWNERS entries for Android time team
Add entries for the files that the Android time team have to update
occasionally.

Bug: 218802673
Test: None
Change-Id: I1255ac04e91c37051bdf4f72acea5cae4aca99db
2022-02-14 10:17:34 +00:00
Ahaan Ugale
ff6ec88858 OWNERS for widget coretests
Change-Id: Ie0c71086d002f21c4cbe8758cb151e73d439d446
2022-02-14 10:02:25 +00:00
Nicolas Geoffray
d07f5d926a Call the right JNI helper.
The method returns void, so we should use CallStaticVoidMethod.

Test: test_com.android.art
Bug: 218518604
Change-Id: I911b6b62cb00f52565a3a95b111b80115f4df3a1
2022-02-14 08:29:19 +00:00
Treehugger Robot
49665e8d49 Merge "Add a benchmark test for Resources.getIdentifier" 2022-02-14 08:06:43 +00:00
Felka Chang
ccb8c015b7 Add a benchmark test for Resources.getIdentifier
In order to prevent unstable benchmark results because of cache,
a random resource name with an expected value comes from
Random.nextInt(10001).The range is from 0 to 10000.

This patch creates 10001 color resources with the prefix
"i_am_color_%x".  The range is from "i_am_color_0" to
"i_am_color_2710". The benchmark measures randomly accessing any
of those resources.

Test: atest --request-upload-result \
    CorePerfTests:android.app.ResourcesPerfTest#getIdentifier

Bug: 191487225
Change-Id: I357b43fda77e31b6d234233fd902eb8e4696301e
2022-02-14 13:08:39 +08:00
Håkan Kvist
c0bb7ecc72 Add null check after getApplicationInfo in InstantAppNotifier
getApplicationInfo can return null, so check return value before
access.

Fixes: 206007136
Test: N/A
Change-Id: Iaab7ba41f46b2d6caa7d43add4689228230d5901
2022-02-13 21:08:31 +00:00
Treehugger Robot
a83857b9e2 Merge "API Changes needed for Blueooth apex to build" 2022-02-12 12:09:15 +00:00
Treehugger Robot
d54fb9484d Merge "Carrier config for opportunistic eSIM download only over WiFi" 2022-02-12 06:18:55 +00:00
Lorenzo Colitti
212e17e6ac Merge "Expose EthernetManager state and control APIs." 2022-02-12 04:38:33 +00:00
Treehugger Robot
7258ba537d Merge "Fix StageCoordinator unexpected onDisplayAreaVanished" 2022-02-12 02:45:13 +00:00
Yuntao Xu
17da00b993 Merge "Convert CanvasCompare/Android.mk to Android.bp" 2022-02-11 23:51:34 +00:00
Yuntao Xu
2cd74cf430 Merge "Convert SimpleCamera/Android.mk to Android.bp" 2022-02-11 23:04:42 +00:00
Maciej Żenczykowski
26712e3c89 Merge "remove libbpf_android from libandroid_runtime" 2022-02-11 19:15:57 +00:00
Treehugger Robot
78abed41f6 Merge "Fix the empty selection issue when onCreateActionMode returns false" 2022-02-11 19:11:05 +00:00
Treehugger Robot
97a6167d1b Merge "Define separate OWNERS file for Input" 2022-02-11 18:38:03 +00:00
Treehugger Robot
74dd849791 Merge "Handle setAllowedCarriers() with empty list of carriers" 2022-02-11 18:20:43 +00:00
Treehugger Robot
a05c4bb1bd Merge "OWNERS for ViewStructure" 2022-02-11 17:58:26 +00:00
Rahul Sabnis
111303d2ac Merge "Update path to Bluetooth OWNERS file after repo migration" 2022-02-11 17:51:54 +00:00
Prabir Pradhan
c3bd27ed9e Define separate OWNERS file for Input
Bug: None
Test: None
Change-Id: I0ee0f24c51db003b323f76855d3cfd8fddb44c1a
2022-02-11 09:06:35 -08:00
Avinash Malipatil
c179ec3e86 Carrier config for opportunistic eSIM download only over WiFi
Carrier configuration KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY
added to control if eSIM should be downloaded via only WiFi or use
both WiFi/Data. True will download esim only via WiFi and false will
use both WiFi and Data connection.

Bug: 217378657
Test: make
Change-Id: I01c0c16293f4e490a1c4c7f521fd454cc045296f
2022-02-11 16:55:46 +00:00
Maciej Żenczykowski
10120266d6 remove libbpf_android from libandroid_runtime
since it's not actually ever used at runtime,
it's only meant to be part of the bpfloader boot time one shot binary.

(all non-bpfloader bpf implementation is in .h files only)

Test: TreeHugger, m libandroid_runtime
Bug: 218882781
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8d3b8ac80ffdbe293221150f7272f7def80fc1c4
Merged-In: I8d3b8ac80ffdbe293221150f7272f7def80fc1c4
2022-02-11 16:53:03 +00:00
Treehugger Robot
da6c7062c6 Merge "tracing: add instrumentation for tracing service reports" 2022-02-11 14:38:36 +00:00
William Escande
f185c9bcd9 API Changes needed for Blueooth apex to build
Bug: 216476895
Test: Compile
Tag: #refactor
Merged-In: Ia7741309719e1f46c8c18c81b65c8862bca814e1
Change-Id: Ia7741309719e1f46c8c18c81b65c8862bca814e1
2022-02-11 13:49:15 +01:00
ot903107
011e10f275 Fix StageCoordinator unexpected onDisplayAreaVanished
Seems already call Binder unlinkToDeath while registerOrganizer
but still received binderDied in DAOC, dead organizer already
been replaced by newer organizer with same featureId and will
remove the newer organizer.

Add a judge to make sure same organizer obecjt and old organizer
binder isn't alive while DAOC received binderDied.

Bug: 208552581
Test: run autotest pass

Change-Id: I555d2fdedb7be7b7d0e5b10fbc617a9cce66c4b5
2022-02-11 18:07:25 +08:00
Xiao Ma
147f287169 Expose EthernetManager state and control APIs.
This CL exposes EthernetManager APIs that settings and other
system components can use to modify and monitor Ethernet state.
The new APIs are similar to the existing @hide methods but
pass on more information and meet API guidelines:

1. Add an InterfaceStateListener interface, and
   addInterfaceStateListener and removeInterfaceStateListener
   methods that meet API guidelines (e.g., take Executor, take
   SAM parameter last, etc.) This new listener passes interface
   state (absent, up, down), role (client or server) and IP
   configuration.
2. Implement the legacy Listener type as a subinterface of the
   new interface. Hopefully existing callers should be able to
   use it unchanged.
3. Expose setIncludeTestInterfaces as module-lib api instead of
   TestApi, since modules cannot expose TestApi methods.

Bug: 210586283
Test: m
Test: atest EthernetServiceTests
Test: atest EthernetTetheringTest
Change-Id: I88240a546ab51d128ed83775499f2bcabab74db0
Merged-In: I88240a546ab51d128ed83775499f2bcabab74db0
2022-02-11 18:50:04 +09:00
Treehugger Robot
4ff7b1d723 Merge "Expand javadoc for Build.VERSION.KNOWN_CODENAMES." 2022-02-11 09:29:41 +00:00
Ahaan Ugale
8301da241b OWNERS for ViewStructure
Change-Id: I135bfa1a5e15d3b9658028b4e430c847280d7654
Test: n/a
Fix: 218966221
2022-02-11 05:49:36 +00:00
Treehugger Robot
c4a8259f78 Merge "Fix potential exception while pressing volume up and volume down" 2022-02-11 02:06:44 +00:00
Hyundo Moon
b5996b0b46 Merge "Show volume bar when BLE device's volume is changed" 2022-02-11 01:59:27 +00:00
Rahul Sabnis
c38e51f6f2 Update path to Bluetooth OWNERS file after repo migration
Bug: 218339548
Test: Manual
Change-Id: I6906c398a657a2bc155126d74b55885063f422c2
2022-02-10 17:47:41 -08:00
Treehugger Robot
5aba7d9d19 Merge "convert StreamingProtoTest to stream proto type" 2022-02-11 01:19:31 +00:00
Bob Badour
11f3b36c61 Merge "Add support for library names." 2022-02-10 23:44:51 +00:00
Robert Horvath
2e0cba87dd Explicitly mark receivers as RECEIVER_NOT_EXPORTED
The intent actions registered for here are only marked as protected
broadcasts if the telephony package is present. In its absence,
receivers *must* specify either RECEIVER_EXPORTED or
RECEIVER_NOT_EXPORTED.

Since these Intents are sent from Telephony, which runs with a system
UID less than the first application UID (10000), the system_server can
receive these broadcasts without exporting the receivers.

Bug: 218831939
Test: build & run on ATV device
Test: atest TelephonySubscriptionTrackerTest
Change-Id: I3fed2a1772fccea611f68e9425755b0c9aa9051e
2022-02-10 22:57:32 +00:00