summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-01Add visibility for Connectivity testsandroid12-devRemi NGUYEN VAN
Allow all Connectivity test subpackages to use the targets, so that the visibility does not need to be updated when test suites are reorganized inside Connectivity. Bug: 187935317 Test: m Original-Change: https://android-review.googlesource.com/1730122 Merged-In: I99d1ec954ebe313e553443a9f081d54d7a5f12c1 Change-Id: I99d1ec954ebe313e553443a9f081d54d7a5f12c1
2021-06-23Merge "Add OnSetWarningAndLimit into TestableNetworkStatsProvider" into sc-devJunyu Lai
2021-06-23Add fall back to createTunInterface when running on RChiachang Wang
TNM.createTunInterface() takes different parameter from S. GTS is multi-release, so it should be compatible with S and before S build. Add sdk version check to support it. Bug: 186680038 Test: atest GtsNetworkStackHostTestCases:\ com.google.android.gts.networkstack.NetworkStackHostTest#\ testNetworkStack Original-Change: https://android-review.googlesource.com/1742033 Merged-In: I5a08068db43e507637a53a32c15a5eb453d50c32 Change-Id: I5a08068db43e507637a53a32c15a5eb453d50c32
2021-06-22Merge "Supports to add a response for the given headers" into sc-devLorenzo Colitti
2021-06-22Add OnSetWarningAndLimit into TestableNetworkStatsProviderJunyu Lai
This change also address left comments at ag/15010113. Ignore-AOSP-First: Counter part CL is not in aosp. Test: m gts && atest \ GtsNetworkStackHostTestCases:NetworkStatsHostTest#testNetworkStatsProvider Bug: 191327585 Change-Id: I100668cc6d4cecbaff29d027d37d313dd48854f3
2021-06-22Create a new utils for connectivity related settingsLucas Lin
ConnectivitySettingsManager and CtsNetUtils are doing the same thing to set/get private DNS related settings. To prevent making the duplication code in two places, having a lib for them to call. Bug: 185311744 Test: atest CtsNetTestCases CtsNetTestCasesLatestSdk Original-Change: https://android-review.googlesource.com/1715693 Merged-In: Ia192520039b187b24e0a7b8bf9509bb10859ace0 Change-Id: Ia192520039b187b24e0a7b8bf9509bb10859ace0
2021-06-22Supports to add a response for the given headersAaron Huang
Currently TestHttpServer only supports to add a response for Location header. Make it to add a response for the given headers so that any additional headers that should be returned along with the response. Bug: 181745786 Test: build Original-Change: https://android-review.googlesource.com/1724310 Merged-In: I80b2fe43016b9cd12fc3cb95ee76f1ec9568ddfc Change-Id: I80b2fe43016b9cd12fc3cb95ee76f1ec9568ddfc
2021-06-21Merge "Add TestableNetworkOfferCallback" into sc-devJunyu Lai
2021-06-21Merge "Allow expect onRequestStatsUpdated with any token" into sc-devJunyu Lai
2021-06-21Add TestableNetworkOfferCallbackJunyu Lai
Ignore-AOSP-First: Needs cherry-picks Test: android.net.NetworkProviderTest on R/S device Bug: 189074532 Original-Change: https://android-review.googlesource.com/1731491 Merged-In: Iac7ec1bb4c34b4354f7b43fec86ded68c1a1d0de Change-Id: Iac7ec1bb4c34b4354f7b43fec86ded68c1a1d0de
2021-06-17Merge "Update TestNetworkTracker tearDown()" into sc-devJames Mattis
2021-06-17Allow expect onRequestStatsUpdated with any tokenJunyu Lai
Altough token field is not used for now. But by design, the token will be the version number of networkIdentity mappings that maintain by the service, which cannot be predicted by the test. Thus, allow expecting any token is necessary. Ignore-AOSP-First: Counter part CL is not available in aosp. Test: m gts && atest \ GtsNetworkStackHostTestCases:NetworkStatsHostTest#testNetworkStatsManager Bug: 191327585 Change-Id: Ibf10040a5c10b7b1c7d381c01a071fb157409004
2021-06-16Allow lmkd to use bpf_syscall_wrappersSuren Baghdasaryan
LMKD needs access to map_gpu_mem_gpu_mem_total_map BPF map to record the total size of GPU allocations at the time of a kill. Change bpf_syscall_wrappers visibility to allow lmkd to use bpf_syscall_wrappers library. Bug: 189366037 Test: lmkd_unit_test Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Ia1f75852a853f62b504351271119714f3fd95232 Merged-In: Ia1f75852a853f62b504351271119714f3fd95232
2021-06-16Update TestNetworkTracker tearDown()Lorenzo Colitti
Update to TestNetworkTracker tearDown() to call TestNetworkManager to tear down the current test network. Bug: 176496580 Bug: 176494815 Test: atest FrameworksNetTests atest NetworkStackTests atest FrameworksNetIntegrationTests atest NetworkStackIntegrationTests atest CtsNetTestCasesLatestSdk Original-Change: https://android-review.googlesource.com/1663785 Merged-In: I5ba142f601f3942d6e6ec4106fc0e70012b42a49 Change-Id: I5ba142f601f3942d6e6ec4106fc0e70012b42a49
2021-06-08Add NET_CAPABILITY_ENTERPRISE into FORCE_RESTRICTED_CAPABILITIESJunyu Lai
Ignore-AOSP-First: Counter part CL is in internal branch Test: atest FrameworksNetTests Bug: 189809600 Change-Id: Ice1d0b87ed40bd5991217fe9d7b0c919a82d8acc
2021-05-24Add visibility for packages/modules/ConnectivityBaligh Uddin
Also cleanup previous locations from visibility rules. BUG: 186628461 Test: TH Merged-In: I579cfbae1645643a876883cc586e66a1084e3389 Change-Id: Id48980dede159e48c049f85bc34a84004a72a7e3
2021-05-18Merge "Add isFeatureEnabled by checking with apex module version" into ↵TreeHugger Robot
mainline-prod am: 64b5b6cf53 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/net/+/14608139 Change-Id: I668cc6c2f72aa1abed396b4d76d022572d204368
2021-05-18Merge "Add isFeatureEnabled by checking with apex module version" into ↵TreeHugger Robot
mainline-prod
2021-05-18Merge "Add isFeatureEnabled by checking with apex module version" am: ↵Mark Chien
eeb15a8c6d am: 4509298603 am: ab0871f6e7 Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705174 Change-Id: I82b91dab6fd4aa2787e696cafa7b8fb20f027db8
2021-05-18Merge "Add isFeatureEnabled by checking with apex module version" am: ↵Mark Chien
eeb15a8c6d am: 4509298603 Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705174 Change-Id: I278b3bae25cdbeabc620f90b6a9c0dddc2138387
2021-05-18Add isFeatureEnabled by checking with apex module versionMark Chien
A variable of #isFeatureEnabled which check apex module version instead of apk version. Bug: 187946226 Test: NetworkStaticLibTests Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705174 Ignore-AOSP-First: manual cherry-pick from AOSP build automerge is broken Change-Id: I68659e43d7fdf40678ceb9df2ff10d480a5d08e0
2021-05-18Merge "Add isFeatureEnabled by checking with apex module version" am: eeb15a8c6dMark Chien
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705174 Change-Id: I68659e43d7fdf40678ceb9df2ff10d480a5d08e0
2021-05-18Merge "Add isFeatureEnabled by checking with apex module version"android-s-beta-2android-s-beta-1Mark Chien
2021-05-14Add isFeatureEnabled by checking with apex module versionmarkchien
A variable of #isFeatureEnabled which check apex module version instead of apk version. Bug: 187946226 Test: NetworkStaticLibTests Change-Id: I4cfc0a68f6ecb7eb9e127b3445b261e0108f6481
2021-05-14[FUI26.1] Generalize assertSameElements am: 4fe8286217 am: 75babd3e64 am: ↵junyulai
fa7fbfd136 Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1618691 Change-Id: I9fc06da3baa7a0f450142346e375fe7a64938803
2021-05-14Move to renamed NDK symbol AFileDescriptor_getFd am: d96b6cdfd7 am: ↵Orion Hodson
e01861901f am: 59db929228 Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705325 Change-Id: I9bd0f6cd79cdf99004412f6c77f061d512a6dd09
2021-05-14[FUI26.1] Generalize assertSameElements am: 4fe8286217 am: 75babd3e64 am: ↵junyulai
8d7885b554 Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1618691 Change-Id: Ib6a3137b7cb583a45a1796a0a0138e53cf836bc3
2021-05-14Move to renamed NDK symbol AFileDescriptor_getFd am: d96b6cdfd7 am: ↵Orion Hodson
e01861901f am: b0dcb32390 Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705325 Change-Id: Ie1123f48bb32b2528e845b740c860ebc3dbac814
2021-05-14[automerger skipped] Move to renamed NDK symbol AFileDescriptor_getFd am: ↵Orion Hodson
0696a1957f -s ours am skip reason: Merged-In I77f7551a97d015fe5cc54c053020504f5fb93ab7 with SHA-1 10584c275d is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/net/+/14547189 Change-Id: I6163bdc60ae25b9140ad9210ab4a3b1c9d3d9776
2021-05-14[FUI26.1] Generalize assertSameElements am: 4fe8286217 am: 75babd3e64junyulai
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1618691 Change-Id: Id877b6574724ad2aa2be175612ddc05cefd50e96
2021-05-14[FUI26.1] Generalize assertSameElements am: 4fe8286217 am: 75babd3e64junyulai
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1618691 Change-Id: If002a566f5b5af6bd7926cf3c2ff33a328f49933
2021-05-14Move to renamed NDK symbol AFileDescriptor_getFd am: d96b6cdfd7 am: e01861901fOrion Hodson
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705325 Change-Id: I2a6a09f5f6cc62cdaa619b3e33f24b64bcfc7a38
2021-05-14Move to renamed NDK symbol AFileDescriptor_getFd am: d96b6cdfd7 am: e01861901fOrion Hodson
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705325 Change-Id: I37bec4097774522553f411ec6aec709e3af5b1ad
2021-05-14[FUI26.1] Generalize assertSameElements am: 4fe8286217junyulai
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1618691 Change-Id: I9336d734af56f794a58fcf0a25c2dedb98e65e00
2021-05-14[automerger skipped] Move to renamed NDK symbol AFileDescriptor_getFd am: ↵Orion Hodson
10584c275d -s ours am skip reason: Merged-In I77f7551a97d015fe5cc54c053020504f5fb93ab7 with SHA-1 51af2868d2 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/net/+/14531011 Change-Id: I5d4e61b6e5097438daee767510a5edba90aae739
2021-05-14Move to renamed NDK symbol AFileDescriptor_getFdOrion Hodson
Ignore-AOSP-First: automerger issue from aosp http://b/187941100#comment11 Bug: 185256332 Test: TH (cherry picked from commit 51af2868d2e673ccb6a2c82270ba50e72ec92fb5) Change-Id: I77f7551a97d015fe5cc54c053020504f5fb93ab7 Merged-In: I77f7551a97d015fe5cc54c053020504f5fb93ab7
2021-05-14Merge "Replace clearAll with withoutDefaultCapabilities" into sc-devChiachang Wang
2021-05-14Replace clearAll with withoutDefaultCapabilitiesChiachang Wang
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
2021-05-14[FUI26.1] Generalize assertSameElementsjunyulai
Test: atest NetworkStaticLibTests Bug: 174123988 Change-Id: I72a33a3c6ba849666e9f892745be3175aeb34b0e
2021-05-13Move to renamed NDK symbol AFileDescriptor_getFdOrion Hodson
Ignore-AOSP-First: automerger issue from aosp http://b/187941100#comment11 Bug: 185256332 Test: TH (cherry picked from commit 51af2868d2e673ccb6a2c82270ba50e72ec92fb5) Change-Id: I77f7551a97d015fe5cc54c053020504f5fb93ab7 Merged-In: I77f7551a97d015fe5cc54c053020504f5fb93ab7
2021-05-13Move to renamed NDK symbol AFileDescriptor_getFdOrion Hodson
Ignore-AOSP-First: automerger issue from aosp http://b/187941100#comment11 Bug: 185256332 Test: TH Change-Id: I77f7551a97d015fe5cc54c053020504f5fb93ab7
2021-05-12Move to renamed NDK symbol AFileDescriptor_getFd am: d96b6cdfd7Orion Hodson
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1705325 Change-Id: I4749d931d17a08a60a41abeecafec3c5b3d98f3e
2021-05-12Move to renamed NDK symbol AFileDescriptor_getFdOrion Hodson
Bug: 185256332 Test: TH Change-Id: I77f7551a97d015fe5cc54c053020504f5fb93ab7
2021-05-03Support both R and S+ in NetworkFactoryChalard Jean
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
2021-04-15[automerger skipped] Add lint baseline to address NewApi errors am: ↵Pedro Loureiro
81be76f836 am: aaa189659c am: 24dc1361c0 -s ours am skip reason: skip tag Change-Id I2c38dac481685470af8be115d867953325e75d94 with SHA-1 db38f2665a is already in history Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1675805 Change-Id: I45bc191ea4afffd79748794c587bfb2f926bd04f
2021-04-15[automerger skipped] Add lint baseline to address NewApi errors am: ↵Pedro Loureiro
81be76f836 am: aaa189659c am: 28d88eaaa4 -s ours am skip reason: skip tag Change-Id I2c38dac481685470af8be115d867953325e75d94 with SHA-1 db38f2665a is already in history Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1675805 Change-Id: Icb5522c23f86a8222275e36f4de101c1e3048a59
2021-04-15Add lint baseline to address NewApi errors am: 81be76f836 am: aaa189659cPedro Loureiro
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1675805 Change-Id: Ie359c560aa0ce12eb58d9762bd503276bcec5511
2021-04-15Add lint baseline to address NewApi errors am: 81be76f836 am: aaa189659cPedro Loureiro
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1675805 Change-Id: I809427670ba39ca69e6f01e36c2aac24ac6d41da
2021-04-15Add lint baseline to address NewApi errors am: 81be76f836Pedro Loureiro
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1675805 Change-Id: Iebb913a3787dddcf3711646b340c5f313a51f042
2021-04-14Add lint baseline to address NewApi errorsPedro Loureiro
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