Commit Graph

688171 Commits

Author SHA1 Message Date
Nikita Ioffe
c6c98bdf5c Add CtsShimPrivUpgrade to shim.v2_apk_in_apex_upgrades
The v2_apk_in_apex_upgrades APEX shim will be useful for testing fixes
for apk-in-apex caching bug.

Test: m com.android.apex.cts.shim.v2_apk_in_apex_upgrades
Bug: 225435110
Change-Id: I5d2270b8341c0405bf256c417acff4279c6b8754
2022-04-27 14:04:38 +01:00
Colin Cross
2a3aa26b06 Merge "Add UpsideDownCake to aapt2 codenames and android.os.Build" 2022-04-26 01:15:38 +00:00
Suren Baghdasaryan
75eb24817b Merge "Treat failure to create a process group as fatal" 2022-04-25 17:05:29 +00:00
Treehugger Robot
5ec8916af2 Merge "Advise use of InputDeviceListener when using pointer capture" 2022-04-25 16:01:08 +00:00
Prabir Pradhan
98e54bb941 Advise use of InputDeviceListener when using pointer capture
InputDevices can be reconfigured when pointer capture changes, but the
app will be notified via InputManager when the updated device
information is available. This races with the onPointerCaptureChange
callback, so advise the use of InputDeviceListener in the pointer
capture documentation for developers to get around this.

Bug: 226425883
Test: None
Change-Id: I7aeb23722dc40b8fd37cb9667a4f23a336e8b5f1
Merged-In: I7aeb23722dc40b8fd37cb9667a4f23a336e8b5f1
2022-04-25 11:53:49 +00:00
Treehugger Robot
8f721b9229 Merge "Fix KNOWN_CODENAMES javadoc to mention that all codenames are there." 2022-04-22 19:52:05 +00:00
Suren Baghdasaryan
d01f170598 Treat failure to create a process group as fatal
During process startup, system creates a process group and places the
new process in it. If process group creation fails for some reason, the
new child process will stay in its parent's group. This poses danger
when the child is being frozen because the whole group is affected and
its parent is being frozen as well. Considering that the parent of an
app is Zygote, freezing it leads to the device becoming unusable.
Fix this by treating group creation failure as a fatal error which would
prevent the app from starting. When system_server fails to create a
process group, it will throw an exception that's not caught and will
self-destruct.

Bug: 227395690
Test: fake group creation failure and confirm app failure to start
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ib34b4a100c65a9a2705aaef8e7e32322fbedc531
2022-04-22 16:51:02 +00:00
Jeff Sharkey
25976ab7be Merge "Add OWNERS coverage for dump methods for public USB classes" 2022-04-22 16:48:34 +00:00
Colin Cross
b0b0bb9882 Add UpsideDownCake to aapt2 codenames and android.os.Build
Bug: 219519679
Test: m checkbuild
Change-Id: I2b668d1cd875657b27a1d52bda21f238d7020862
Merged-In: I2b668d1cd875657b27a1d52bda21f238d7020862
(cherry picked from commit d27566da4c)
2022-04-22 09:17:01 -07:00
satayev
337762d9c6 Fix KNOWN_CODENAMES javadoc to mention that all codenames are there.
Bug: 220153433
Test: atest BuildTest
Change-Id: I93cade7cb11e34557445b74d1e1841508061d616
Merged-In: I93cade7cb11e34557445b74d1e1841508061d616
(cherry picked from commit 82d33f26f9)
2022-04-22 09:17:01 -07:00
Yi-yo Chiang
0f8d10381a Merge "DSU: Only try to install on sdcard if the filesystem in use is vfat" 2022-04-22 15:18:14 +00:00
Jay Aliomer
5b1ff7891b Merge "Dark Theme "TURN ON UNTIL SUNRISE" is not retained after reboot" 2022-04-22 15:14:57 +00:00
Aaron Huang
e441813c5f Merge "Have NetworkPolicyManagerService listen onLinkPropertiesChanged callback" 2022-04-22 15:06:34 +00:00
Songchun Fan
1a1ed211b6 Merge "Add the compile reason for the forceDexOpt method." 2022-04-22 13:40:24 +00:00
Sameer Zalke
3847d7ed9a Dark Theme "TURN ON UNTIL SUNRISE" is not retained after reboot
Dark theme "TURN ON UNTIL SUNRISE"/MODE_NIGHT_AUTO is not kept after
reboot. The reason is that TwilightState will takes time to update
so lastState will be null in updateConfigurationLocked().
This lead to a reset of mComputedNightMode and mOverrideNightModeOn.

This is a special bug for "TURN ON UNTIL SUNRISE"/MODE_NIGHT_AUTO,
the other ones work fine and should not be touched, if we do not
treat this as a special case we break the other ones.

Test: Select "TURN ON UNTIL SUNRISE" in Dark Theme and reboot.
Bug: 229228293
Change-Id: Ie32a6ddbbf03fa43ee6dd5e35b3c35ec03e58e0e
2022-04-22 11:15:12 +00:00
Lucas Lin
54a348cf84 Merge changes I7fd4b6da,Ia36d7944,If7eb7e0e
* changes:
  Modify javadoc for some extra values of VpnManager event
  Add toString() for VpnProfileState
  Move mSessionKey into Ikev2VpnRunner and make it to be a final var
2022-04-22 08:59:24 +00:00
Treehugger Robot
2abd02381f Merge "javaObjectForIBinder: warn rets global and local" 2022-04-22 01:30:45 +00:00
lucaslin
4b6b7987a1 Modify javadoc for some extra values of VpnManager event
The underlying network, NetworkCapabilities and LinkProperties
are not necessary to send to VPN app since the purpose of
CATEGORY_EVENT_DEACTIVATED_BY_USER and
CATEGORY_EVENT_ALWAYS_ON_STATE_CHANGED are to notify VPN
app that VPN is deactivated by the user or VPN always-on
status is changed.

Bug: 191413541
Test: Javadoc only changes.
Change-Id: I7fd4b6dad1a4363336f03c217e635fc45bcd0ab6
2022-04-22 09:28:28 +08:00
lucaslin
6a75e5a3c5 Add toString() for VpnProfileState
Sample log:
{State: DISCONNECTED, SessionId: null, Always-on: false,
Lockdown: false}
{State: CONNECTED, SessionId: d7913298-c07f-49de-b84e-304b5e26da89,
Always-on: true, Lockdown: false}

Bug: 225010642
Test: Add a log in Vpn.java and print it.
Change-Id: Ia36d794446114c0c2c27e725cba6a4dc1240ae38
2022-04-22 09:28:21 +08:00
lucaslin
1cb9f6181b Move mSessionKey into Ikev2VpnRunner and make it to be a final var
mSessionKey is initialized in the constructor of Ikev2VpnRunner,
move it into Ikev2VpnRunner and make it to be a final var can
make sure that mSessionKey is initialized before someone access
it.

Test: atest FrameworksNetTests:VpnTest
Change-Id: If7eb7e0ec8ab42b17a5636aeced65385e7849b6a
2022-04-22 09:28:05 +08:00
heqiang1008 thundersoft
1a0eb16cbe Add the compile reason for the forceDexOpt method.
Change-Id: I4f87b2e4d58ba288b454f4e15768ca84cf807c8c
Merged-In: Ic3cef72627985bb906e87b875c180a7dc32a295f
2022-04-21 22:50:03 +00:00
Mitch Phillips
a50c4137e3 Merge "[GWP-ASan] Use new GWP-ASan android_mallopt()" 2022-04-21 18:12:44 +00:00
Benedict Wong
59aeaf29c0 Merge "Add CarrierConfig to TelephonySubscriptionSnapshot" 2022-04-21 17:40:58 +00:00
Treehugger Robot
1c0277d78d Merge "fix API description on how to round average qp" 2022-04-21 17:32:29 +00:00
Seth Moore
d6dbf31c61 Merge "Make generateKey() return a status" 2022-04-21 17:23:11 +00:00
Treehugger Robot
64c920c24d Merge "Exclude flaky tests from CtsGraphicsTestCases" 2022-04-21 17:03:50 +00:00
Steven Moreland
a944ece068 javaObjectForIBinder: warn rets global and local
Trying to manually delete the result of this function as a local
ref is problematic.

Bug: 227719836
Test: N/A
Change-Id: Iea4509e08f935f268ee502825dab47caef8508a5
2022-04-21 16:26:03 +00:00
Lucas Dupin
62eda37789 Merge "Add Peter to OWNERS" 2022-04-21 15:30:26 +00:00
Miguel Aranda
e81851f57b Merge "Additional libcore benchmarks." 2022-04-21 13:08:19 +00:00
Miguel
4ca7bb87d7 Additional libcore benchmarks.
Test: atest {testName}
Bug: 210606618
Change-Id: I6ccb8870f5b1a2ec71570119b7b29b8ea38a14ab
2022-04-21 09:07:17 +00:00
Tim Zimmermann
c3bc2d9822 DSU: Only try to install on sdcard if the filesystem in use is vfat
IsExternalStoragePath() in gsid only allows vfat

Test: m; Install DSU on a device using exFAT for external sdcard

Change-Id: I6073b268ead79d684422e4ef1fa3873713dd602e
2022-04-21 08:09:15 +02:00
Benedict Wong
52629838cb Add CarrierConfig to TelephonySubscriptionSnapshot
This change ensures that carrier configs are saved as part of the
snapshot, allowing all entities in the VCN to query telephony
subscription information from the same source.

Test: atest FrameworksVcnTests
Change-Id: I31447d84fe98d6bd2cc78ead41746198728c400b
2022-04-21 01:09:36 +00:00
Treehugger Robot
6e5f312d6f Merge "Convert apct/managed_provisioning/presubmit_test to Test Mapping Suite." 2022-04-21 00:32:24 +00:00
Albert Wang
cf8d3b0789 Add OWNERS coverage for dump methods for public USB classes
Bug: 229706413
Test: manual

Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I25c6c649f8fa42fe6a0d3062aa3ab75a4310df37
2022-04-21 08:32:15 +08:00
Jon Eckenrode
29b6451cef Merge "Revised the API documentation for overloaded methods getRawX, getRawY, getX, and getY of MotionEvent." 2022-04-20 22:22:05 +00:00
Lucas Dupin
3bd5417bfe Add Peter to OWNERS
Change-Id: I7cbfd1173c2e28db41928fd49ca25c97ab5d127e
2022-04-20 21:58:19 +00:00
Max Bires
9510ef1aa2 Make generateKey() return a status
This change adds some integers to the AIDL interface in order to convey
status back to the caller of generateKey(). This will inform the caller
as to whether or not the errors that may occur during provisioning are
permanent, and if not, what to do with the transient error.

Bug: 227306369
Test: RemoteProvisionerUnitTests
Change-Id: I9202358a102b0fb0a104525632a005acb7355840
2022-04-20 14:31:54 -07:00
Hans Boehm
c3a27297c4 Merge "Don't preload into nonexistent zygote" 2022-04-20 19:14:16 +00:00
Makoto Onuki
f3265025d8 Merge "Update OWNERS for the content and sync subsystem" 2022-04-20 16:27:47 +00:00
Hans Boehm
265cc77219 Merge "Don't MAP_POPULATE native ZygoteCommandBuffer" 2022-04-20 14:58:49 +00:00
Aaron Huang
2e45e16ca5 Have NetworkPolicyManagerService listen onLinkPropertiesChanged callback
In current design, NPMS listens onThresholdReached() callback to
call updateNetworkRulesNL(), however, this callback mwill not be
called if data usage is not updated. Thus, it will cause to no
iptables rule for new metered interfaces.

Have NPMS listen onLinkProperitesChanged() callback and call
updateNetworkRulesNL() if interfaces has changed to add iptables
rules for new metered interfaces.

Bug: 225971066
Test: HostsideRestrictBackgroundNetworkTests
      HostsideRestrictBackgroundNetworkTests# \
      testDataAndBatterySaverModes_meteredNetwork \
      --iterations 100
Change-Id: I49f999efc3fbe0a6a325ec138a3f060c7285e6ad
2022-04-20 13:39:43 +08:00
easoncylee
e2be3244e8 Convert apct/managed_provisioning/presubmit_test to Test Mapping Suite.
This CL is to convert CF presubmit tests to run in Test Mapping suite.
It has been verified that the test coverage is the same as the original
ATP config.

Bug: 145165552
Bug: 145574049

Test: TreeHugger
      atest ManagedProvisioningTests
Merged-In: I8234cc5cadae2ed2162cb09ec8695c7262fcdb2e
Change-Id: I268448e682b7c45741a62fa3bc1157986f3827d1
2022-04-20 11:31:13 +08:00
Yushin Cho
71032c8d67 fix API description on how to round average qp
Average QP is rounded to the nearest integer value.

Test: cts
Bug: 229778486
Change-Id: I16fca81dcab26462b9493784368d29c6b7748fd5
2022-04-19 23:22:21 +00:00
Hans Boehm
7f3e096b70 Don't MAP_POPULATE native ZygoteCommandBuffer
Since we made it significantly larger, populating it will often waste
a bit of space.

Belated follow-up to aosp/2009575 .

Test: Build and boot AOSP.
Bug: 219763513
Change-Id: I5fdbd379942e92df52c079e52e35ebbee0429577
2022-04-19 15:05:13 -07:00
Hans Boehm
c8e95b9329 Don't preload into nonexistent zygote
We tried to access the first entry of Build.SUPPORTED_32_BIT_ABIS
even when there where none, causing an out of bounds array access.
The resulting exception was handled correctly, so this only
speeds things up a little and avoids log spam.

Bug: 228390898
Test: Build and boot master, Treehugger
Change-Id: I5827c6991065dd50d3f6e797930a9e6b7616de6e
2022-04-19 12:57:25 -07:00
Dan Shi
99476cf78c Exclude flaky tests from CtsGraphicsTestCases
Bug: 229142513
Test: none
Change-Id: I294431cb4c8d1b7d7d8d9e8320f2a4b9e01a28b8
2022-04-19 10:02:20 -07:00
Junyu Lai
70c3d35319 Merge "Fix NetworkTemplate generates non-metered carrier template" 2022-04-19 10:18:26 +00:00
Jing Ji
bf7ab279a6 Merge "[BugFix] acquireProvider maybe wait for timeout" 2022-04-19 04:31:57 +00:00
Jing Ji
a5ef7d7741 Merge "[AMS] Fix race condition in ProcessList." 2022-04-19 01:34:26 +00:00
Steven Moreland
6f7ec05bd0 Merge changes from topic "aidl-java-api-ci"
* changes:
  Implement getInterfaceHash/Version (omapi)
  Implement getInterfaceHash/Version (health)
2022-04-19 00:22:27 +00:00