661194 Commits

Author SHA1 Message Date
Joonhun Shin
88f4093982 Merge "Correct Typo in CarrierConfigManager introduced in b/197992603" 2022-02-10 22:48:15 +00:00
Treehugger Robot
5650969402 Merge "Add OWNERS for SyncFence JNI" 2022-02-10 22:43:38 +00:00
James Mattis
d13094cef4 Merge "Making EthernetNetworkSpecifier public" 2022-02-10 22:26:06 +00:00
Treehugger Robot
dae8e486bf Merge "BootReceiver: drop code processing dmesg, employ dmesgd" 2022-02-10 21:00:56 +00:00
Treehugger Robot
f2d6b0a31d Merge "Added a VTS test to validate the schema of uuid config xml" 2022-02-10 20:19:30 +00:00
Tony Mak
cfa26a0ae7 Fix the empty selection issue when onCreateActionMode returns false
One of the optimizations ag/12911059 did was calling
SelectionModifierCursorController.show() before
startActionModeInternal(). The rationale was that if we start the action
mode first, SelectionModifierCursorController.show() would end up
invalidating the action mode twice unnecessarily, once for each handle.

However, with this optimization, we are calling
SelectionModifierCursorController.show() even when onCreateActionMode
returns false.

Reverted this particular optimization to fix the issue.

Added a test which was failing without this fix but passing with it.

Fixes: 199380016
Fixes: 214341747
Test: atest TextViewActivityTest

Merged-In: I793f76a23978cbbbbde2d16e8a522615174bcdd5
Change-Id: I793f76a23978cbbbbde2d16e8a522615174bcdd5
(cherry picked from commit 11bd64482249c9257ee22390de15f69f9c834247)
2022-02-10 20:09:46 +00:00
Treehugger Robot
027b7e9604 Merge "Remove @hide usage and fix NetworkPolicy backup" 2022-02-10 19:37:14 +00:00
John Reck
5aad4e47a0 Add OWNERS for SyncFence JNI
Test: N/A
Change-Id: Iebf27d5ed614d91d8b6a885bc87396307c9ddd0f
2022-02-10 14:36:53 -05:00
James Mattis
4e9686f9d8 Making EthernetNetworkSpecifier public
Bug: 210485380
Test: atest EthernetServiceTests
atest CtsNetTestCasesLatestSdk

Change-Id: Ic0b7a3360745632eb024a97692e49f6c8dafa3ee
Merged-In: Ic0b7a3360745632eb024a97692e49f6c8dafa3ee
2022-02-10 11:25:18 -08:00
Kevin Jeon
adab5c6662 Merge "Remove unnecessary permissions from Traceur" 2022-02-10 19:09:46 +00:00
Treehugger Robot
8fb341c41f Merge "Don't suggest top-level owners for changes in apex/." 2022-02-10 18:13:58 +00:00
Lalit Maganti
b05e382d00 Merge "base: add perfetto owners to tracing directory in base" 2022-02-10 18:08:26 +00:00
Treehugger Robot
8bbb5be10e Merge "[MS70] Have BatteryStatsImpl use the public NetworkStats API" 2022-02-10 18:04:39 +00:00
Lalit Maganti
0e02392d09 base: add perfetto owners to tracing directory in base
Change-Id: Id7d8e602c62dd72f3ac09d7a398bcc59ea0bf0ff
2022-02-10 18:01:38 +00:00
Kevin Jeon
eabd21201e Remove unnecessary permissions from Traceur
This change removes the privapp allowlist from Traceur, which had
previously explicitly granted the DUMP, QUERY_ALL_PACKAGES,
START_FOREGROUND_SERVICES_FROM_BACKGROUND, and STATUS_BAR permissions.
These permissions no longer need to be granted because Traceur is now a
platform app.

Bug: 209476712
Test: - Checked that Traceur can still take normal and long traces on
        AOSP userdebug and internal user/userdebug.
      - Checked that bugreports will stop ongoing traces.
      - Checked that the quick settings tile still stops/starts traces.
Change-Id: I33cd317f9fe00e2e08ae205a832237bfe0df044a
Merged-In: I33cd317f9fe00e2e08ae205a832237bfe0df044a
2022-02-10 17:51:10 +00:00
Alexander Potapenko
7176306861 BootReceiver: drop code processing dmesg, employ dmesgd
To remove the need of giving system_server the syslog_read permission,
we are introducing dmesgd, a service that will be launched by init and
perform dmesg output parsing and collection of kernel error reports.

In order to trigger the service, BootReceiver just needs to set the
dmesgd.start property to 1.

Bug: 215095687
Test: run on a user device with injected KFENCE bugs
Change-Id: Ifcfe83ad559633558bba623fb514d7b27d97f6af
2022-02-10 17:41:41 +00:00
Lalit Maganti
788b5b8c08 tracing: add instrumentation for tracing service reports
This allows us to monitor any failed reports using
go/perfetto-monitoring.

Bug: 205892741
Test: New CTS test PerfettoTests#testSkipReportAtoms and
      PerfettoTest#testReportAtoms
Change-Id: Idf72bc693c1730fcb522b7a9ecfdf3c9db8b0777
2022-02-10 17:41:37 +00:00
satayev
c5dafe7ea4 Expand javadoc for Build.VERSION.KNOWN_CODENAMES.
Bug: 211747008
Test: N/A
Change-Id: I030076caae7b76a09a43aa5cd5fdf5671c09a832
2022-02-10 17:11:50 +00:00
Treehugger Robot
d8f74421fb Merge "Adjust base/native/android OWNERs" 2022-02-10 16:48:22 +00:00
satayev
a4f2700eba Don't suggest top-level owners for changes in apex/.
Individual folders have their own specific OWNERS already.

Bug: N/A
Test: presubmit
Change-Id: I23d77901245c187c9f6a8642755b6137a6051389
2022-02-10 15:56:01 +00:00
Treehugger Robot
e82d94fde0 Merge "Expose VpnManager events API" 2022-02-10 12:36:37 +00:00
Treehugger Robot
5edd77be5c Merge "Split out the ipsec API surface and use framework-connectivity-tiramisu" 2022-02-10 11:45:21 +00:00
Robert Horvath
932104e096 Merge "Add Low Power Standby firewall chain" 2022-02-10 11:17:44 +00:00
Aaron Huang
794d210854 Split out the ipsec API surface and use framework-connectivity-tiramisu
(cherry picked from commit 1dad7aa006492035293e68080aeaf606df02618a)
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
Merged-In: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-10 19:01:00 +09:00
Paul Duffin
e04ce88a46 Merge "Remove repackaged.android.test... libraries" 2022-02-10 09:36:01 +00:00
Junyu Lai
fd3fc5ff82 Merge "Allow core tests to use hidden connectivity API" 2022-02-10 09:23:57 +00:00
Hakjun Choi
6f55afd4e7 Correct Typo in CarrierConfigManager introduced in b/197992603
1) Keyname should not be including key_
2) This is bundle type not to be used as int array

Bug: b/216365058
Test: atest
Change-Id: Ia2db386e7394fd09194477e529fc6e8c752623c2
Merged-In: Ia2db386e7394fd09194477e529fc6e8c752623c2
2022-02-10 07:39:03 +00:00
Treehugger Robot
4033b9b412 Merge "Refine system-server Proguard config for shrinking" 2022-02-10 06:48:28 +00:00
Chalard Jean
b76721bb52 Expose VpnManager events API
Test: atest FrameworksNetTests:VpnTest
Change-Id: I66ed1ca69777ff8d8b0d2438e580282cfd30c9d6
2022-02-10 14:29:36 +09:00
Treehugger Robot
192941ea6b Merge "[MS55.1] Move NetworkStateSnapshot into module folder" 2022-02-10 05:02:45 +00:00
subrahmanyaman
6ed8558bdb Added a VTS test to validate the schema of uuid config xml
A new VTS test is added to the OMAPI VTS to validate the schema of the
hal_uuid_map_config.xml file.

Bug: b/180640274
Test: atest --rebuild-module-info VtsHalOmapiSeServiceV1_TargetTest
Change-Id: Ib1ae39c0c33c066973ddc3fcb0b0c37535fa515e
2022-02-10 04:36:12 +00:00
Charles Chen
f690faccf0 Merge "Add OWNERS file for ContextWrapperTest" 2022-02-10 03:28:59 +00:00
Remi NGUYEN VAN
2f37fabe8c Remove @hide usage and fix NetworkPolicy backup
Remove usage of hidden symbols for network stats APIs, replacing them
with public API alternatives.

Also fix backup of NetworkPolicy when the set of subscriber IDs is
empty. This as not caught because the test used a hidden API builder
that creates a non-empty set containing null.

Bug: 197717846
Test: atest FrameworksCoreTests
  (cherry-picked and fixed merged conflict from ag/16781267)
Change-Id: I45a98795c571ac97bd6025988da156bd06d57e45
Merged-In: I45a98795c571ac97bd6025988da156bd06d57e45
2022-02-10 10:11:35 +08:00
Yan Yan
59f6394516 Merge "Un-finalize IpSecManager" 2022-02-10 01:37:09 +00:00
Chiachang Wang
4123af09c9 Merge "Address API review feedback" 2022-02-10 00:50:30 +00:00
Rambo Wang
861c7e5da8 Protect SID and NID in ServiceState with coarse location permission
While SystemId/NetworkId in 3gpp2 network are not a one to one match
of MCC/MNC in 3gpp network, they servie the similar purpose and
should have same level of privacy protection.

To have a consistent privacy protection policy, SID/NID are also
redacted when calling app has no location permission.

Bug: 188061647
Test: atest ServiceStateTest ServiceStateProviderTest
Change-Id: Ibf068f950c82270f59aa40e8bb6721f8b9c989bf
2022-02-09 16:20:18 -08:00
Michele Berionne
47ceccd912 Handle setAllowedCarriers() with empty list of carriers
Bug: 204136145
Test: unit testing
Merged-In: I9779180ff1c3e926f97e010ca6026c5fb950046d
Change-Id: I9779180ff1c3e926f97e010ca6026c5fb950046d
(cherry picked from commit 898e2b53a7d095ed5b0fd5a17f4557021ed56e31)
2022-02-10 00:12:38 +00:00
Chih-Hung Hsieh
623cf543a8 Fix cert-dcl16-c warnings
Bug: 120614316
Test: make tidy-frameworks-base_subset
Change-Id: Ie71c06e02fcb9a2f90508c37d926a79e0b591c5a
2022-02-09 15:30:51 -08:00
satayev
0a1100e6bc Use ro.build.version.known_codenames sysprop for KNOWN_CODENAMES.
The sysprop is needed to avoid JNI when accessing KNOWN_CODENAMES
from native code.

Bug: 211747008
Test:  atest android.os.cts.BuildTest#testBuildCodenameConstants
Change-Id: I713a122655f5f8a6a2fed5cee61bbe4094acbeb8
2022-02-09 22:07:20 +00:00
Treehugger Robot
a31dc6da2a Merge "Fix typo" 2022-02-09 20:21:35 +00:00
Treehugger Robot
3adaac8b39 Merge "Fix OOM cache app optimizer flaky test." 2022-02-09 20:17:35 +00:00
Robert Horvath
472ba5c869 Add Low Power Standby firewall chain
Bug: 190822356
Test: atest FrameworksNetTests
Change-Id: If5a61bbd0603c1385ecd2e8e25c8b91e4c6b315f
2022-02-09 21:04:42 +01:00
Eric Laurent
26d7800efa Merge "audio: add Bluetooth LE Audio broadcast device" 2022-02-09 18:11:51 +00:00
Yabin Cui
0a57fb2b79 Merge "profcollectd: register callback to wait until ETM is ready." 2022-02-09 18:09:59 +00:00
Bob Badour
cd5953fad0 Add support for library names.
The new xmlnotice utility includes library names in the xml notice.

Supports both the new and the old schema and allows mixing new and old.

Bug: 151177513
Bug: 210912771

Test: m all dist
Test: flash; About Phone -> Legal Information -> Third-party licenses

Change-Id: I69c294a62d1653e9a0ff487e25b1d2eda0b777d3
2022-02-09 10:06:29 -08:00
John Reck
6434804c00 Merge "Fix full draw power usage increase issue" 2022-02-09 17:37:12 +00:00
Steven Moreland
8f2b0737ac Merge "HwRemoteBinder: fix race for concurrent binderDied" 2022-02-09 16:47:35 +00:00
Darwin Huang
234748cd64 Merge "Fix misspelling in SurfaceTexture#attachToGLContext javadoc" 2022-02-09 16:17:27 +00:00
John Reck
f91696e2c3 Adjust base/native/android OWNERs
Test: N/A
Change-Id: Ieb263e6b57b5e4495d45e6c22ac1f97cb1ca7913
2022-02-09 10:11:56 -05:00
Jiang Tian
0815ba23ff Fix full draw power usage increase issue
Full draw will be happened on HWUI under 90/120Hz device,there are
more draw commands under renderFrameImpl than in the 60Hz fps device,
frame.bufferAge() > (int)mSwapHistory.size() resulting in an increase
in power usage.

So need to increase (int)mSwapHistory.size() to 8, set mSwapHistory
add to 7.

Bug: 209371516
Test: Manual

Change-Id: Ic6f21e7b9dc5e7c8f36d03c57b01fa7210cff86f
Merged-In: Ic6f21e7b9dc5e7c8f36d03c57b01fa7210cff86f
2022-02-09 14:57:43 +00:00