Commit Graph

566148 Commits

Author SHA1 Message Date
Paul Hu
7cd588e210 Merge "Remove unused method checkUidNetworkingBlocked" 2021-04-06 01:49:57 +00:00
Benedict Wong
e253ce3463 Merge changes Icf32cb46,I43434c80,I59dc46dc,I7df3f14b,I50f2c0e9
* changes:
  Don't process dup unwanted() when unregistering NetworkAgent
  Add/remove internal addresses from IpSecTunnelInterface
  Populate legacy type in VCN NetworkAgentConfig
  Add TRANSPORT_CELLULAR to VCN filter
  Allow soft-start and opportunistic safe mode
2021-04-06 01:19:23 +00:00
Max Bires
caa4617084 Merge "Fixing array cast." 2021-04-06 01:17:24 +00:00
Jay Patel
0925c74679 Merge "Add 8k bitmap render support" 2021-04-06 00:50:00 +00:00
mk.lee
05dc4e920d Add 8k bitmap render support
Support vendor configure max bitmap size, because of
8k bitmap was over 100M

[Test Report]
1. AC on/off PASS
2. boot to launcher PASS
3. VTS/CTS command
   run cts -m MediatekCtsMtkImageDecoderTest -t
android.mtk.cts.ImageDecoderTest#testDecoder8KPerformance
-l VERBOSE
4. CTS report
004_Release > C5_temp > QSC_Result > MM_Result_Report
cts_imagedecoderplugin_test.rar

Bug: 178353420

Change-Id: I582883cca51d42505ec8a81044e471998b88854b
Merged-In: I582883cca51d42505ec8a81044e471998b88854b
2021-04-06 00:49:51 +00:00
Benedict Wong
0906d6bc1b Don't process dup unwanted() when unregistering NetworkAgent
In cases where the NetworkAgent is unregistered (eg. Safe mode), but the
VCN is not shut down, the NetworkAgent.unwanted() call should not
trigger a teardown.

Test: atest FrameworksVcnTests
Change-Id: Icf32cb464bce2aae2846448d5a6a53a97f558398
2021-04-06 00:42:55 +00:00
Amit Mahajan
e4b4df1e28 Merge "Startup WAP PUSH service before handling SMS messages" 2021-04-06 00:04:40 +00:00
Benedict Wong
f78c3512df Add/remove internal addresses from IpSecTunnelInterface
This change corrects a bug where IpSecTunnelInterface was not removing
old addresses, and resulted in EEXIST when trying to re-add an address
to a given interface.

Test: atest FrameworksVcnTests
Change-Id: I43434c801354483a7c7d0092891799bf86da23eb
2021-04-05 15:47:45 -07:00
Benedict Wong
7d6b4907cc Populate legacy type in VCN NetworkAgentConfig
This change ensures that the VCN populates the legacy type field,
otherwise ConnectivityService crashes on an unknown legacy type.

Bug: 184304972
Test: atest FrameworksVcnTests
Change-Id: I59dc46dc34d2812a6c8f73c72d208fa735791d74
2021-04-05 15:32:16 -07:00
Steven Moreland
3afeb0d258 Merge "Remove unstable IpPrefix" 2021-04-05 21:59:47 +00:00
Benedict Wong
134c10d9c6 Add TRANSPORT_CELLULAR to VCN filter
This change adds the CELLULAR transport to the filter used by the Vcn to
determine if a configuration can satisfy a given NetworkRequest

Bug: 184101137
Test: atest FrameworksVcnTests
Change-Id: I7df3f14b5ef66551728b398fd4a9e233d1df4706
2021-04-05 11:27:29 -07:00
Benedict Wong
80056e834e Allow soft-start and opportunistic safe mode
This change adds support for opportunistic safe mode, where the VCN will
continue to provide networks, but not restrict underlying networks.
Similarly, this change allows for soft-starting of the VCN, where VCN
underlying networks can be selected without restricting them directly.

Additionally, this change ensures networks are torn down when
VcnGatewayConnections enter safe mode. This change is required due to
changes in the lifecycle of the VcnGatwayConnection, where in safe mode
they are NOT torn down, but allowed to continue retrying. During these
broken-connectivity windows, the VCN network should be torn down to
prevent blackholing traffic.

Bug: 183174340
Test: atest FrameworksVcnTests
Change-Id: I50f2c0e92552281731c843db89e9a9a1ccff5346
2021-04-05 10:34:25 -07:00
Benedict Wong
9e7e3b780d Merge "Prevent changes to immutable capabilities for carrier wifi" 2021-04-05 17:32:19 +00:00
Brad Ebinger
71715457e7 Merge "Validate SipMessages have a correct Via branch parameter" 2021-04-05 17:08:48 +00:00
Treehugger Robot
47f5317b65 Merge "Fix broken testCaptivePortalApp" 2021-04-05 13:05:41 +00:00
Chalard Jean
f83190c218 Merge "Fix a bug where the wrong profile is queried" 2021-04-05 05:48:17 +00:00
Janis Danisevskis
a8b1b1a2e6 Merge "Keystore 2.0: Remove Keystore 1.0 SPI with all remaining references" 2021-04-03 00:21:18 +00:00
Benedict Wong
c7c4b1323b Merge "Downgrade list of subIds in NetworkCapabilities to @SystemApi" 2021-04-02 22:33:20 +00:00
Brad Ebinger
dfe2456ab7 Validate SipMessages have a correct Via branch parameter
SIP messages are required to have a transaction ID, which is based
on the Via header's unique branch parameter. For processing, we require
this parameter to be set in order to send state updates about the message.

Also, as per council guidelines in b/184151053, throw a NPE instaed of
IllegalArgumentException for null params.

Fixes: 181087377
Test: atest CtsTelephonyTestCases
Change-Id: Ic4a637e780d04e9ac5d8ba01d7ba6dfae92307b1
2021-04-02 19:59:05 +00:00
Jack Yu
9df3f37868 Merge "Added the missing constant to intdef" 2021-04-02 19:24:53 +00:00
Treehugger Robot
91ee4158dc Merge "Keystore 2.0: Remove references to Keystore 1" 2021-04-02 18:51:02 +00:00
Jack Yu
b0baf7254d Added the missing constant to intdef
Fix: 169660451
Test: Manual
Merged-In: I705b56e158dd66cb8084b1efa5f1e7f2195295a2
Change-Id: I705b56e158dd66cb8084b1efa5f1e7f2195295a2
(cherry picked from commit 79593b16c8)
2021-04-02 11:09:32 -07:00
Hans Boehm
0bf32e7e7b Merge "Rename to isIndefiniteThreadSuspensionSafe" 2021-04-02 17:29:53 +00:00
Sarah Chin
2229a10c7b Merge "API to get network visible network capability name" 2021-04-02 16:50:10 +00:00
Treehugger Robot
c6fa98ba7e Merge "Update backup OWNERS." 2021-04-02 15:59:50 +00:00
Treehugger Robot
f8652f4252 Merge "Fetch the WiFiInfo from NetworkCapabilities" 2021-04-02 15:01:41 +00:00
Tobias Thierer
561153a489 Update backup OWNERS.
Since I've already changed all the other OWNERS files in the Android
codebase to refer to this one, only this one needs to be updated.

Bug: 183451350
Test: Treehugger
Change-Id: I07ae22355545349288cdda5ee208bbeea66e6e5d
2021-04-02 13:52:09 +01:00
Chalard Jean
6af8861d8e Fix broken testCaptivePortalApp
This was broken by aosp/1657763, only on eng builds because
of a wtf. The root cause of the issue is that the test is
acquiring MAINLINE_NETWORK_STACK after it registers a callback
but before in unregisters it. After aosp/1657763, the objects
keeping track of callbacks are separate for processes with and
without MAINLINE_NETWORK_STACK, which means the removal is
looked up in a different counter.

Solve this by having the NRI remember the relevant counter
keeping track of it.

Bug: none
Test: testCaptivePortalApp
Change-Id: I566a28522fa68be9cc2bdb4624b588b4f01d3b7e
2021-04-02 20:18:18 +09:00
Chalard Jean
60967ccf49 Fix a bug where the wrong profile is queried
UserManager#isManagedProfile() is not aware of the user
handle of the context the UM instance is created on.
Instead, call isManagedProfile(int).

Bug: 183625645
Test: ConnectivityServiceTest
Change-Id: I1fef22d67d75df25a8c2d0694f857c3e1c1a1306
2021-04-02 19:24:44 +09:00
Benedict Wong
b3099509de Downgrade list of subIds in NetworkCapabilities to @SystemApi
This change downgrades API visibility for the list-of-subIds in the
NetworkCapabilities to SystemApi

Bug: 175662146
Test: atest NetworkCapabilitiesTest#testSubIds
Test: atest FrameworksNetTests
Change-Id: I372fa9eaa7585aefd1710948ca007456feedd578
2021-04-02 01:18:11 -07:00
Cody Kesting
36a84ebbaf Merge "Clarify docs for status codes in VcnStatusCallback." 2021-04-02 01:24:25 +00:00
Janis Danisevskis
ba96293734 Keystore 2.0: Remove references to Keystore 1
This patch removes an unused reference to libkeystore_binder, a target
that is about to be removed.

Bug: 171305684
Test: N/A
Merged-In: I100c8d536241ac6ba7a99b1c2dfaf2930decd387
Change-Id: I100c8d536241ac6ba7a99b1c2dfaf2930decd387
2021-04-01 17:28:30 -07:00
Janis Danisevskis
a6dcf091f5 Keystore 2.0: Remove Keystore 1.0 SPI with all remaining references
Bug: 171305684
Test: CtsKeystoreTestCases
Change-Id: I337515dadc9e45b909bff058d4e13371b4fa843c
2021-04-01 17:06:41 -07:00
Benedict Wong
f11ccc456b Merge changes I2e52ff67,I9f2b2d0d
* changes:
  Remove subIds from Telephony NetworkRequests.
  Switch to using status codes for Vcn
2021-04-01 23:39:42 +00:00
Benedict Wong
f8db8d8c43 Prevent changes to immutable capabilities for carrier wifi
This change prevents carrier wifi from having changes to the RESTRICTED
network capability, which is an immutable capability.

Bug: 184101137
Test: atest FrameworksVcnTests
Change-Id: I802d36a754d961c9928a2e642e25f1b25b8be12d
2021-04-01 16:37:33 -07:00
Steven Moreland
2787db2123 Remove unstable IpPrefix
Seems nothing is using this.

Bug: 183654927
Test: N/A
Change-Id: I94233d79fb5d93970b38a79a09fc4d50822c3620
2021-04-01 22:59:02 +00:00
Treehugger Robot
20f4b99166 Merge "Add OWNERS for some native files" 2021-04-01 22:19:04 +00:00
Benedict Wong
8124f47d3f Remove subIds from Telephony NetworkRequests.
Since NetworkProviders do not at present support requests with subIds
(they always provide an empty list, therefore never have an overlap),
the TelephonyBringupRequests must never present subIds as part of the
requested capabilities.

Bug: 183174340
Test: atest FrameworksVcnTests
Change-Id: I2e52ff67748c0ca226a648682b37dfe0996cb850
2021-04-01 15:11:18 -07:00
Benedict Wong
bd1085ef03 Switch to using status codes for Vcn
This change adds status codes, and switches the Vcn class to use these
to signal safe mode status. Additionally, this allows a distinction
between a VCN that is quitting and one that is simply in safe mode,
providing potential for an opportunistic safe mode where the VCN will
continue to attempt to serve NetworkRequests while not restricting
underlying networks.

Bug: 183174340
Bug: 181789060
Test: atest FrameworksVcnTests
Change-Id: I9f2b2d0d8d7b3ade19ca5adcd48cc920171bf8c3
2021-04-01 15:11:17 -07:00
Hans Boehm
6fbea7cbbd Rename to isIndefiniteThreadSuspensionSafe
Bug: 181707712
Test: Build and boot AOSP
Change-Id: I0d95578cf689223a75fcb132f092805d77b1805b
2021-04-01 14:10:31 -07:00
Paul Duffin
dedc39bc2c Merge "Added platform-bootclasspath" 2021-04-01 19:06:54 +00:00
Steven Moreland
bd32be9d25 Merge "Partial: ActivityManager: use proc state from compiled aidl" 2021-04-01 18:33:54 +00:00
Steven Moreland
42c6e93fde Partial: ActivityManager: use proc state from compiled aidl
In order to fix divergence in libbinder Android.bp file, adding an
empty file group corresponding to an internal file group.

This is needed to easily manipulate where source files are included
in libbinder without having to land patches internally and externally.

Bug: 183654927
Test: N/A

Merged-In: I3dafe7a75b2dae561583a7821284027a1896b9a5
Change-Id: I8821242efdc0a27daddf30368f948855062f2d14
2021-04-01 18:30:28 +00:00
Cody Kesting
03f00e5a52 Merge changes from topic "gateway-connection-id"
* changes:
  Expose API for identifying GatewayConnections.
  Update identification for onGatewayConnectionError().
2021-04-01 18:27:28 +00:00
Paul Duffin
cde72c6791 Merge "Fix presubmit for hidden api." 2021-04-01 18:16:41 +00:00
Steven Moreland
2a27671122 Merge "IBatteryStats.aidl update path" 2021-04-01 18:08:11 +00:00
Aaron Huang
e427565991 Merge "Move some constants from TrafficStatsConstants to NetworkStackConstants" 2021-04-01 15:59:39 +00:00
Treehugger Robot
2990dccc16 Merge "Update OWNERS for OnReceiveContentListener and ContentInfo" 2021-04-01 13:38:54 +00:00
Yury Khmel
72dad8a9d1 Fix presubmit for hidden api.
grep returns 1 for if nothing was found. This fails presubmit hook due
to bash handling "set -e" Looks like grep not found is valid case.
This fixes this issue by bypassing grep exit code.

Test: Locally
Bug: 161351699
Merged-In: I39e926a348a0fb8f4040f86034affdb4204faac5
Change-Id: I39e926a348a0fb8f4040f86034affdb4204faac5
(cherry picked from commit e6a5253f12)
2021-04-01 13:17:00 +01:00
Aaron Huang
ef74312993 Merge "Expose BIP and VSIM relavent definitions" 2021-04-01 11:38:17 +00:00