Commit Graph

560327 Commits

Author SHA1 Message Date
Chiachang Wang
e3ff6eeec7 Move shared methods to net shared lib
The NetworkUtils.getNetworkPart() method is used by Settings
and wifi. NetworkUtils is inside the incoming connectivity
module. It will become inaccessible outside the module, so
move the shared methods to shared lib and also move the
related helper method.

The corresponding usgae is also updated.

Bug: 172183305
Test: atest FrameworksNetTests
Change-Id: I47410afa27aad61f63759df41be959f323c1d100
2021-02-03 18:47:37 +08:00
James Mattis
8bb0310bbe Merge "Adding support for multiple "default" networks" 2021-02-03 04:17:47 +00:00
Kevin Chyn
06413eea7a Merge "Add team members to core/res/OWNERS" 2021-02-03 04:07:48 +00:00
Etan Cohen
b9fbc02c52 Merge "[WIFI] Fix typo in permission type for RESTART_WIFI_SUBSYSTEM" 2021-02-03 04:07:03 +00:00
Junyu Lai
75b50a5c73 Merge "[FUI20] Expose UnderlyingNetworkInfo as system Api" 2021-02-03 02:57:10 +00:00
Jack Yu
809b2f2459 Merge "Add attr for nfc applications to configure support power states" 2021-02-03 02:28:03 +00:00
Jeongik Cha
4561d23a6a Merge "Specify version for aidl_interface explicitly" 2021-02-03 02:21:26 +00:00
Kevin Chyn
4c9fb6fcef Add team members to core/res/OWNERS
Test: Presubmit
Change-Id: I42d508836b409d5e1263e330221ea41d77fb9e21
2021-02-02 16:45:25 -08:00
James Mattis
3cb35906b4 Adding support for multiple "default" networks
Updating ConnectivityService foundational support for multiple default
networks by extending mDefaultRequest and mDefaultNetworkNai from single
instances to a HashMap to support more than a single default network.

Bug: 176027457
Bug: 172347841
Test: atest FrameworksNetTests
atest NetworkStackTests
atest FrameworksNetIntegrationTests
atest NetworkStackIntegrationTests
atest CtsNetTestCasesLatestSdk

Change-Id: I2f5fa96c2d21ab883499e82afa74e73f3ca606cd
2021-02-02 16:14:36 -08:00
Sarah Chin
5becb8f399 Merge "Temporary fix to prevent TEMPORARILY_NOT_METERED leak" 2021-02-02 22:58:01 +00:00
Treehugger Robot
5844882671 Merge "WebView: clarify CookieManager docs" 2021-02-02 22:46:06 +00:00
Jack Yu
ad5413f724 Temporary fix to prevent TEMPORARILY_NOT_METERED leak
Currently we are seeing TEMPORARILY_NOT_METERED occurs on non-5G
devices. This fix adds more checks to prevent incorrect
TEMPORARILY_NOT_METERED being set. Before we root cause the issue,
we only allow this bit when all of the following conditions met.

1. Devices should support 5G.
2. Carriers should support 5G unmetered data.
3. Device should camp on 5G network.

This temporary fix should be removed after we root cause the issue.

Bug: 176119724
Test: Manual
Change-Id: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
Merged-In: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
2021-02-02 13:44:33 -08:00
Etan Cohen
5d23e8aab0 [WIFI] Fix typo in permission type for RESTART_WIFI_SUBSYSTEM
Bug: 175084231
Bug: 178125790
Test: atest android.net.wifi.cts.WifiManagerTest#testRestartWifiSubsystem
Test: atest android.permission2.cts.PermissionPolicyTest#platformPermissionPolicyIsUnaltered
Change-Id: Icb5db0a347c4714398fd4cbaef86bad2fd896358
2021-02-02 13:08:21 -08:00
Cody Kesting
e980914d42 Merge changes from topic "vcn-network-policy"
* changes:
  Implement Network policy in VcnManagementService.
  Unit test UnderlyingNetworkTracker.
  Register NetworkCallbacks in UnderlyingNetworkTracker.
2021-02-02 20:33:50 +00:00
Shashwat Razdan
10603d5102 Merge "Adding owners in smartspace packages" 2021-02-02 20:23:26 +00:00
Nazanin Bakhshi
99955ce46b Merge "Add an event and a parcelable to receive bluetooth framework call quality signal" 2021-02-02 19:21:22 +00:00
Brad Ebinger
5c389e2507 Merge "Add SIP configration Bundle keys for UA and CNI" 2021-02-02 17:53:18 +00:00
Shashwat Razdan
057896ae34 Adding owners in smartspace packages
Test: not needed as this is a meta file change

Change-Id: I32f5205c4c1b771aae963a20e9a52fa7691ce271
2021-02-02 17:50:18 +00:00
junyulai
755356f449 [FUI20] Expose UnderlyingNetworkInfo as system Api
Test: atest android.net.UnderlyingNetworkInfoTest
Bug: 174123988
Change-Id: Id602fbe744669f472d27fb466d00dcc601bd8f17
2021-02-02 23:12:10 +08:00
Treehugger Robot
19547685bb Merge "Update frameworks to use unbundled version of BouncyCastle." 2021-02-02 14:37:05 +00:00
Junyu Lai
4a76351c9b Merge "[VCN08] Expose NOT_VCN_MANAGED capability as system API" 2021-02-02 13:57:57 +00:00
Treehugger Robot
ae728c12ac Merge "Sort import statements in RoutingControlAction.java" 2021-02-02 11:43:08 +00:00
Lorenzo Colitti
22823382e4 Merge changes I4f38a539,Id4f6c7f4
* changes:
  Add the underlying networks to NetworkAgentInfo#toString.
  Improve testing for network blocking.
2021-02-02 10:06:03 +00:00
Paul Hu
c4cf8d3dfa Merge "Remove ArrayUtils usage in connectivity frameworks classes" 2021-02-02 08:47:04 +00:00
Lorenzo Colitti
ee73d9b87c Add the underlying networks to NetworkAgentInfo#toString.
This is useful in debugging VPN networks.

Bug: 173331190
Test: manual
Change-Id: I4f38a53980191a1813c2ef313fedc51af98f18f6
2021-02-02 16:17:22 +09:00
Lorenzo Colitti
ac799e5a4d Improve testing for network blocking.
This simplifies the uidNetworkingBlocked method and makes it more
realistic by supporting more combinations of rules than just the
four used by this test.

Also support RULE_ALLOW_METERED, and add test coverage for it.

Test: test-only change
Change-Id: Id4f6c7f41429f3ae7841d3214b3e5e95ec591f85
2021-02-02 16:17:22 +09:00
Donald Chai
182e90d1ea Merge "Fix typo in comment." 2021-02-02 06:07:18 +00:00
James Lin
02bf7d1288 Merge "[RCS UCE] Add the APIs to access the device config of RCS User Capability Exchange enabled" 2021-02-02 05:52:03 +00:00
Aravind Angadi
be480e61e0 Sort import statements in RoutingControlAction.java
Test: None

Change-Id: If6556c47fed63a01013ffa1a2a0ccc2afd774989
2021-02-02 05:47:58 +00:00
Treehugger Robot
4ad0fdc5c9 Merge "Have connectivity self-register manager classes" 2021-02-02 05:01:04 +00:00
Donald Chai
5f3a83529c Fix typo in comment.
Change-Id: Ie35db2cfef32543e573bf701d2d523f5f1502161
Tested: N/A
2021-02-02 03:58:05 +00:00
Lucas Lin
30a0fe39fd Merge "Use function inside NetdUtils instead of NetworkManagementService" 2021-02-02 03:38:38 +00:00
junyulai
cddc3dde5d [VCN08] Expose NOT_VCN_MANAGED capability as system API
Test: m -j doc-comment-check-docs
Fix: 177299683
Bug: 175662146
Change-Id: Iaa53d21774ea48af5fe339b57bf1235c77f295a0
2021-02-02 11:34:09 +08:00
Nate Fischer
3a9cdb4485 WebView: clarify CookieManager docs
No change to logic, only documentation change. This adds some
clarifications to getCookie()/setCookie():

* getCookie() returns multiple cookies, setCookie() accepts only one
* This briefly describes getCookie()'s output format because it's fairly
  simple
* This summarizes setCookie()'s input format and provides an example,
  but directs the reader to the RFC spec for a full description
* Minor formatting changes, including editing a javadoc link which
  doesn't currently render correctly in kotlin docs (for
  ValueCallback#onReceiveValue)

Fixes: 175471135
Test: m offline-sdk-docs -j4
Change-Id: Id9052fa03584caae5ffc92ed1f6c4d2641d900ce
2021-02-02 03:15:47 +00:00
Jeongik Cha
7594ebdf90 Specify version for aidl_interface explicitly
Bug: 150578172
Test: m
Change-Id: I4c909903521cd8a766dca5312edd98d17b9e1308
2021-02-02 10:11:31 +09:00
Brad Ebinger
c28d5844dd Add SIP configration Bundle keys for UA and CNI
Adds IMS SIP configuration bundle keys for User-Agent and
Cellular-Network-Info headers required by some networks.

Bug: 178606181
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I389162ca0c6348580f6ee8bb6ce5ee3a4e84595e
2021-02-02 00:53:02 +00:00
Jeff Sharkey
0db5d441ad Merge "Add BATTERY_STATS_OWNERS for IBatteryStats.aidl" 2021-02-01 23:45:18 +00:00
Dmitri Plotnikov
1ef5d3f87e Add BATTERY_STATS_OWNERS for IBatteryStats.aidl
Change-Id: Iffb8ded9ff5edc899ab38c74ffe3ad98793ca67c
2021-02-01 23:42:59 +00:00
Mitch Phillips
8a956c5f9c Merge "[MemInit] Use new MemInit API." 2021-02-01 23:32:24 +00:00
Serik Beketayev
b9c6a7470e Merge "[Mainline] Migrate com.google.android.collect pkg" 2021-02-01 23:11:56 +00:00
Daniel Bright
bed5f6e84d Merge "Partial hal support for secondary link bandwidth" 2021-02-01 22:48:44 +00:00
Cody Kesting
07979a07cc Implement Network policy in VcnManagementService.
This CL implements #getUnderlyingNetworkPolicy() for
VcnManagementService. Specifically, it takes the provided
NetworkCapabilities and checks for a corresponding VCN. If one exists,
a VcnUnderlyingNetworkPolicy will be returned with a copy of the
original NetworkCapabilities without the capability NOT_VCN_MANAGED and
with the unwanted capability NOT_VCN_MANAGED.

Any NetworkCapabilities without a corresponding VCN will be returned a
VcnUnderlyingNetworkPolicy with the original NetworkCapabilities intact.

Bug: 175914059
Test: atest FrameworksVcnTests
Change-Id: Icdffc4f586f58a0e5b6290d5c6449e2bbed5cab0
2021-02-01 14:46:58 -08:00
Cody Kesting
f029daa404 Unit test UnderlyingNetworkTracker.
Bug: 177364490
Test: atest FrameworksVcnTests
Change-Id: I681b0bef27cdd1974a574e81b4b435578cd6e9cd
2021-02-01 14:46:57 -08:00
Cody Kesting
a382c9ca0c Register NetworkCallbacks in UnderlyingNetworkTracker.
This CL updates UnderlyingNetworkTracker to register NetworkCallbacks.
UnderlyingNetworkTracker uses two types of NetworkCallbacks:
  - bringup requests
  - selection requests

Bringup requests ensure that VCN-managed Networks are not reaped.
Separate bringup requests are filed for wifi and cell Networks. One cell
request is filed for each subscription ID (subId) in the VCN's
subscription group.

Selection requests are used to allow ConnectivityService to perform
Network selection for the VCN's selected underlying Network (the Network
that VCN traffic will be routed through).

Bug: 177364490
Test: atest FrameworksVcnTests
Change-Id: Ic4dc13a3f7acf08589ddb25b343af2677cd7cf65
2021-02-01 14:46:57 -08:00
Lorenzo Colitti
d6d96a4625 Merge "Add UsbHandlerTest test for NCM and RNDIS at the same time." 2021-02-01 22:45:00 +00:00
James.cf Lin
1d44f9e09e [RCS UCE] Add the APIs to access the device config of RCS User Capability Exchange enabled
Bug: 178239287
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Change-Id: I1bd2d0e0dc88dcd72e7c2682483c8039f4aa8927
2021-02-02 06:30:49 +08:00
Nazanin
9bf6b3de91 Add an event and a parcelable to receive bluetooth framework call
quality signal

Bug: 173137125
Test: manual test check for regression
Change-Id: I38e70ea284707d39cec7cb4fbdfd36be4f83e403
Merged-In: I38e70ea284707d39cec7cb4fbdfd36be4f83e403
2021-02-01 21:36:48 +00:00
Mikhail Naganov
499850f976 Merge "Remove audio HAL V2 from "interfaces of interest"" 2021-02-01 21:22:39 +00:00
Janis Danisevskis
f246dc6346 Merge "Keystore 2.0 SPI: Small fix to apease CTS test." 2021-02-01 18:33:32 +00:00
Benedict Wong
8d8f48f0fd Merge "Remove usages of hidden connectivity APIs" 2021-02-01 18:10:35 +00:00