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
Add entries for the files that the Android time team have to update
occasionally.
Bug: 218802673
Test: None
Change-Id: I1255ac04e91c37051bdf4f72acea5cae4aca99db
The method returns void, so we should use CallStaticVoidMethod.
Test: test_com.android.art
Bug: 218518604
Change-Id: I911b6b62cb00f52565a3a95b111b80115f4df3a1
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
getApplicationInfo can return null, so check return value before
access.
Fixes: 206007136
Test: N/A
Change-Id: Iaab7ba41f46b2d6caa7d43add4689228230d5901
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
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
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
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
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