A variable of #isFeatureEnabled which check apex module version
instead of apk version.
Bug: 187946226
Test: NetworkStaticLibTests
Change-Id: I4cfc0a68f6ecb7eb9e127b3445b261e0108f6481
Update the method to clearer naming as the feedback from API
review.
Bug: 184735772
Test: m
Change-Id: Id0b1df83926352969049a50b3f1af111a4ac603c
Ignore-AOSP-First: Parts of the topic are only available in internal
NetworkFactory needs to be backwards compatible as
it is statically linked by the Wifi module, which
needs to run on both R and S.
To achieve this, maintain 2 separate implementations
called NetworkFactoryImpl (S+) and
NetworkFactoryLegacyImpl (R). NetworkFactory itself
becomes a shim that delegates to one of these
implementations depending on the device's SDK version.
Ignore-AOSP-First: Merge in internal first to fix
S-on-R test breakages.
Bug: 183902758
Test: ClientModeImplTest
OemWifiNetworkFactoryTest
TelephonyNetworkFactoryTest
UntrustedWifiNetworkFactoryTest
WifiNetworkFactoryTest
Change-Id: I6a08f39ad1633dd7c1582c362c97821e24ce6683
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.
Bug: 150847901
Test: m lint-check
Change-Id: I2c38dac481685470af8be115d867953325e75d94
Merged-In: I2c38dac481685470af8be115d867953325e75d94
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.
Bug: 150847901
Test: m lint-check
Change-Id: I2c38dac481685470af8be115d867953325e75d94
Merged-In: I2c38dac481685470af8be115d867953325e75d94
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.
Bug: 150847901
Test: m lint-check
Change-Id: I2c38dac481685470af8be115d867953325e75d94
The new API constant - TRANSPORT_USB didn't in mainline
branch, so the user of TRANSPORT_USB will get build break
when it is built in mainline branch.
Define TRANSPORT_USB in NetworkCapabilitiesUtils temporarily
is a workaround to fix this problem, and it should be removed
once downstream branches are S-based.
Bug: 184158327
Test: m
Change-Id: I83560c75761e7008b457a66296364cb4ce24db50
Ignore-AOSP-First: This should be compiled with ag/14049950.
The net test utils are used for unit tests exercising connectivity code,
and need access to its hidden APIs.
Bug: 182859030
Test: atest NetworkStaticLibTests
Ignore-AOSP-First: needs manual cherry-picks
Change-Id: I33273e5c1cc2731443f0fd745ce526473a704520
Added SPDX-license-identifier-Apache-2.0 to:
common/testutils/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: If307a41f295d202c3cb8b733ed74af26d3358058
This is generally useful, and specifically useful in
NetworkRanker
Test: Used in NetworkRanker, ConnectivityServiceTest
Change-Id: I896e7e5bcb2931ce43a5b88967bfd6fcd1de0ce2
Method inferRestrictedCapability() was moved from frameworks/base
to libs/net and it is using an API NetworkCapabilities.getCapabilities()
which is a new exposed API in S. However, the change of moving the
method will downstream to the branches without the new exposed API.
Thus, reimplement this method without new exposed API.
(cherry-picked from ag/14029492)
Bug: 178777253
Bug: 130869457
Test: NetworkStaticLibTests
Merged-In: Ib88fe2b831e968513f221443ed62a09c02150882
Change-Id: Ib88fe2b831e968513f221443ed62a09c02150882
RESTRICTED_CAPABILITIES was moved from NetworkCapabilities to
frameworks/libs/net. RESTRICTED_CAPABILITIES refers to some
S added NET_CAPABILITIES_* definitions. Replace the constants
definitions with local constants because this git will
downstream to branches without this constants. Downstream will
not be able to find the references in NetworkCapailities and
cause breakage.
Bug: 178777253
Bug: 130869457
Test: m
(cherry-picked from ag/14008231)
Merged-In: I270593c12c1a7ff9f05d3bcd5f6d5647f89efb63
Change-Id: I270593c12c1a7ff9f05d3bcd5f6d5647f89efb63
NET_CAPABILITY_VSIM and NET_CAPABILITY_BIP are new restricted
capabiltity for carrier usage. Update them the
RESTRICTED_CAPABILITIES.
Bug: 130869457
Test: m
Change-Id: I20e3cf34634cf0c106560fc4173fcfb91d85724e
Merged-In: I20e3cf34634cf0c106560fc4173fcfb91d85724e
NetworkCapabilities is included in framework-connectivity, so external
module cannot have dependencies on its hidden API. Move the method to
libs/net and rename it to inferRestrictedCapability so that external
module can use it by inculding the library.
Bug: 178777253
Test: FrameworksNetTests
NetworkStaticLibTests
(cherry-picked from ag/13930236)
Merged-In: I51244048e31699b562b1444d88511e3a3da845ec
Change-Id: I51244048e31699b562b1444d88511e3a3da845ec
Added SPDX-license-identifier-Apache-2.0 to:
common/testutils/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Ib947b1cd6eae235e77cd55d57673360c426e80f1
Method inferRestrictedCapability() was moved from frameworks/base
to libs/net and it is using an API NetworkCapabilities.getCapabilities()
which is a new exposed API in S. However, the change of moving the
method will downstream to the branches without the new exposed API.
Thus, reimplement this method without new exposed API.
Ignore-AOSP-First: code conflict
Bug: 178777253
Bug: 130869457
Test: NetworkStaticLibTests
Change-Id: Ib88fe2b831e968513f221443ed62a09c02150882
RESTRICTED_CAPABILITIES was moved from NetworkCapabilities to
frameworks/libs/net. RESTRICTED_CAPABILITIES refers to some
S added NET_CAPABILITIES_* definitions. Replace the constants
definitions with local constants because this git will
downstream to branches without this constants. Downstream will
not be able to find the references in NetworkCapailities and
cause breakage.
Bug: 178777253
Bug: 130869457
Test: m
Change-Id: I270593c12c1a7ff9f05d3bcd5f6d5647f89efb63
Ignore-AOSP-First: code conflict
Having the test targets in a different directory allows setting
visibility rules for tests only, which is necessary for access to
targets that should not be used for device builds.
Bug: 182859030
Test: m
Change-Id: Iaf426cf339a97833acf80c941db692329c6e2dcb
Test: build pass with or without aosp/1469125 in frameworks/base
Test: atest NetworkStatsServiceTest TetheringTests
Bug: 149467454
Change-Id: Ie3971ed3b18e0f1a54d4834e310bc6df82e5acdd
NET_CAPABILITY_VSIM and NET_CAPABILITY_BIP are new restricted
capabiltity for carrier usage. Update them the
RESTRICTED_CAPABILITIES.
Bug: 130869457
Test: m
Change-Id: I20e3cf34634cf0c106560fc4173fcfb91d85724e
Ignore-AOSP-First: code conflict