- Feb 21, 2024
-
-
Spandan Das authored
This property is a no-op for this module type. Test: m nothing Bug: 215379393 Change-Id: Ib13007e83c0a6263f36f009ba07407d6ccb50e00
-
- Jan 31, 2024
-
-
Aditya Choudhary authored
This CL is created as a best effort to migrate test targets to the new android ownership model. If you find incorrect or unnecessary attribution in this CL, please create a separate CL to fix that. For more details please refer to the link below, <add g3 doc link> Bug: 304529413 Test: N/A (cherry picked from https://android-review.googlesource.com/q/commit:a8ac702eb268d687d089ba218926ae6b17cda33c) Change-Id: I243f17b3f0ad7af9ffa15ca242456e36688733f5 Merged-In: I243f17b3f0ad7af9ffa15ca242456e36688733f5
-
Aditya Choudhary authored
This CL is created as a best effort to migrate test targets to the new android ownership model. If you find incorrect or unnecessary attribution in this CL, please create a separate CL to fix that. For more details please refer to the link below, <add g3 doc link> Bug: 304529413 Test: N/A (cherry picked from https://android-review.googlesource.com/q/commit:a8ac702eb268d687d089ba218926ae6b17cda33c) Change-Id: I243f17b3f0ad7af9ffa15ca242456e36688733f5 Merged-In: I243f17b3f0ad7af9ffa15ca242456e36688733f5
-
Aditya Choudhary authored
This CL is created as a best effort to migrate test targets to the new android ownership model. If you find incorrect or unnecessary attribution in this CL, please create a separate CL to fix that. For more details please refer to the link below, <add g3 doc link> Bug: 304529413 Test: N/A Change-Id: I243f17b3f0ad7af9ffa15ca242456e36688733f5 Merged-In: I243f17b3f0ad7af9ffa15ca242456e36688733f5
-
- Sep 12, 2023
-
-
Yuyang Huang authored
Add end-to-end testing for testing NsdManager advertising and discovering works fine with downstream tethering interfaces. Bug: 281639507 Test: atest NsdManagerTest Change-Id: I5a66423f216cfe0c82db5128502c885980ab264b
-
- Aug 23, 2023
-
-
Yuyang Huang authored
Bug: 281639507 Test: TH Change-Id: I754c3581438d716d2156b80e4ce29b3f2adf76d4
-
- Feb 15, 2023
-
-
Hungming Chen authored
Needed because CTS release interval is longer than mainline module release. Newer mainline module release may change low level BPF offload related code (struct, path, ..). The existing CTS will be broken. This situation blocks that we want to change low level BPF offload code after Android CTS has been public released. The test targets have been changed as follows. 1. CTS/TetheringTests verifies high level tethering functions. No matter what data path is. 2. MTS verifies low level tethering functions. It can always test the latest BPF codes. Change list: 1. Add class MtsEthernetTetheringTest for MTS. Before: [base class] [derived class] EthernetTetheringTestBase +--+--+ EthernetTetheringTest After: [base class] [derived class] +--+ EthernetTetheringTest EthernetTetheringTestBase +--+ +--+ MtsEthernetTetheringTest (new) 2. Separate BPF tethering offload tests to MTS. Before: - TetheringTests (19 tests) EthernetTetheringTest#testIcmpv4Echo EthernetTetheringTest#testIcmpv6Echo EthernetTetheringTest#testVirtualEthernet EthernetTetheringTest#testLocalOnlyTethering EthernetTetheringTest#testTetherConfigBpfOffloadEnabled EthernetTetheringTest#testTetherClatTcp EthernetTetheringTest#testTetherClatUdp EthernetTetheringTest#testIsUdpOffloadSupportedByKernel EthernetTetheringTest#testTetherClatIcmp EthernetTetheringTest#testTetherTcpV4 EthernetTetheringTest#testTetherTcpV6 EthernetTetheringTest#testTetherUdpV4 EthernetTetheringTest#testTetherUdpV6 EthernetTetheringTest#testStaticIpv4 EthernetTetheringTest#testKernelSupportBpfOffloadUdpV4 EthernetTetheringTest#testVirtualEthernetAlreadyExists EthernetTetheringTest#testPhysicalEthernet EthernetTetheringTest#testTetherUdpV4_VerifyBpf EthernetTetheringTest#testTetherUdpV4Dns After: - TetheringTests (15 tests) EthernetTetheringTest#testIcmpv4Echo EthernetTetheringTest#testIcmpv6Echo EthernetTetheringTest#testVirtualEthernet EthernetTetheringTest#testLocalOnlyTethering EthernetTetheringTest#testTetherClatTcp EthernetTetheringTest#testTetherClatUdp EthernetTetheringTest#testTetherClatIcmp EthernetTetheringTest#testTetherTcpV4 EthernetTetheringTest#testTetherTcpV6 EthernetTetheringTest#testTetherUdpV4 EthernetTetheringTest#testTetherUdpV6 EthernetTetheringTest#testStaticIpv4 EthernetTetheringTest#testVirtualEthernetAlreadyExists EthernetTetheringTest#testPhysicalEthernet EthernetTetheringTest#testTetherUdpV4Dns - MTS (4 tests) MtsEthernetTetheringTest#testTetherConfigBpfOffloadEnabled MtsEthernetTetheringTest#testIsUdpOffloadSupportedByKernel MtsEthernetTetheringTest#testTetherBpfOffloadUdpV4 MtsEthernetTetheringTest#testKernelSupportBpfOffloadUdpV4 Note that MtsEthernetTetheringTest#testTetherBpfOffloadUdpV4 is renamed from EthernetTetheringTest#testTetherUdpV4_VerifyBpf Bug: 250552545 Bug: 258637850 Test: atest ConnectivityCoverageTests Test: atest CtsTetheringTest Test: atest CtsTetheringTestLatestSdk Test: atest MtsTetheringTestLatestSdk Test: atest TetheringIntegrationTests Change-Id: Ica3b7008b33b1a0ddc5789d8ef12122a38544d57
-
- Sep 14, 2022
-
-
Hungming Chen authored
Used to avoid flaky test because upstream changed events order can't be guaranteed. Once tethering choose non-test upstream {wifi, ..}, test network wont't be chosen. Fix flaky tests which are using initTetheringTester(): testIcmpv6Echo testTetherClatUdp testTetherUdpV4_VerifyBpf testTetherUdpV4 testTetherUdpV4Dns testTetherUdpV6 Moreover, add permission ACCESS_WIFI_STATE to AndroidManifest.xml to avoid nested runAsShell while using CtsNetUtils to access WIFI. STACKTRACE: java.lang.IllegalStateException: adoptShellPermissionIdentity calls must not be nested at com.android.testutils.TestPermissionUtil.runAsShell(TestPermissionUtil.kt:49) at com.android.testutils.TestPermissionUtil.runAsShell(TestPermissionUtil.kt:70) at com.android.testutils.TestPermissionUtil.runAsShell$default(TestPermissionUtil.kt:65) at com.android.testutils.TestPermissionUtil.runAsShell(Unknown Source:16) at android.net.cts.util.CtsNetUtils.disconnectFromWifi(CtsNetUtils.java:293) at android.net.cts.util.CtsNetUtils.disconnectFromWifi(CtsNetUtils.java:255) at android.net.cts.util.CtsNetUtils.toggleWifi(CtsNetUtils.java:160) Bug: 243314243 Test: atest EthernetTetheringTest Change-Id: I814899ae71f5c302d490a0dd81d7210ac138faa5
-
- Aug 01, 2022
-
-
Remi NGUYEN VAN authored
TetheringIntegrationTests is not in MTS (it is not part of the tests list XML); but CtsTetheringTestLatestSdk contains all its tests and is part of MTS. Remove the mts-tethering tag to avoid confusion and get faster build times. Change-Id: Ic68fad48179cbf206a8867b81afc76e89f085772 Test: m
-
- Jun 29, 2022
-
-
Hungming Chen authored
Needed because these struct classes should not be exposed. Only used for the connectivity module and its tests. Bug: 234160319 Test: atest ConnectivityCoverageTests The moved files are identical. diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ClatEgress4Key.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/ClatEgress4Key.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ClatEgress4Value.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/ClatEgress4Value.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ClatIngress6Key.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/ClatIngress6Key.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ClatIngress6Value.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/ClatIngress6Value.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/Tether4Key.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/Tether4Key.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/Tether4Value.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/Tether4Value.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/TetherStatsKey.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/TetherStatsKey.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/TetherStatsValue.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/TetherStatsValue.java diff packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ClatEgress4Key.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/ClatEgress4Key.java (no diff) Change-Id: I4ce8045150bdbf04c63c5262c58a0ebcc30d395c
-
- Jun 01, 2022
-
-
Mark Chien authored
Note: to avoid missing some dependeices change only happen in T+, below testing verification is perform by internal branch. Test: atest TetheringTests atest TetheringIntegrationTests atest CtsTetheringTest atest MtsTetheringLatestSdk manually change entitlement check recheck period to 1 min and monitor schedule alarm works. Dogfood this change personally 7 days, major use hotspot sharing network to notebook to work. Bug: 232193147 Change-Id: I3cba98f42ac1a9c0c1db4b2ad036aff714a428f3 (cherry picked from commit d25a1e05) Merged-In: I3cba98f42ac1a9c0c1db4b2ad036aff714a428f3
-
- May 31, 2022
-
-
Mark Chien authored
Note: to avoid missing some dependeices change only happen in T+, below testing verification is perform by internal branch. Test: atest TetheringTests atest TetheringIntegrationTests atest CtsTetheringTest atest MtsTetheringLatestSdk manually change entitlement check recheck period to 1 min and monitor schedule alarm works. Dogfood this change personally 7 days, major use hotspot sharing network to notebook to work. Bug: 232193147 Change-Id: I3cba98f42ac1a9c0c1db4b2ad036aff714a428f3
-
- Apr 06, 2022
-
-
markchien authored
ConnectivityCoverageTests is a combination of several test libs, which are jarjared differently. It causes duplicated classes not to be counted for coverage properly. Build the test suite directly and apply jarjar only once on top of everything. Bug: 227694415 Test: atest ConnectivityCoverageTests Change-Id: I4350ebdbf98030944ec3857e1ef67d76f26c3b16
-
- Feb 15, 2022
-
-
Hungming Chen authored
Parse the dumpsys output strings to check that the IPv4 UDP forwarding rule is added by the UDP conntrack event on the tethering interface. Test: atest EthernetTetheringTest Change-Id: I2f04af72e51ca6b7a37ba51daa4f5125cb11144c
-
- Jan 12, 2022
-
-
markchien authored
Also add BLUETOOTH_CONNECT permission which is needed for access PanService if target sdk 31+. The permission would be granted to privilege application without prompt. Also remove the min_sdk_version 29 from AndroidManifest because it is useless that the Android.bp already define min_sdk_version 30. $aapt dump xmltree TetheringNext.apk AndroidManifest.xml N: android=http://schemas.android.com/apk/res/android E: manifest (line=19) A: android:sharedUserId(0x0101000b)="android.uid.networkstack" (Raw: "android.uid.networkstack") A: android:versionCode(0x0101021b)=(type 0x10)0x1f A: android:versionName(0x0101021c)="Tiramisu" (Raw: "Tiramisu") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f A: android:compileSdkVersionCodename(0x01010573)="Tiramisu" (Raw: "Tiramisu") A: package="com.android.networkstack.tethering" (Raw: "com.android.networkstack.tethering") A: platformBuildVersionCode=(type 0x10)0x1f A: platformBuildVersionName="Tiramisu" (Raw: "Tiramisu") E: uses-sdk (line=23) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x1e A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f .... E: uses-permission (line=35) A: android:name(0x01010003)="android.permission.BLUETOOTH_CONNECT" (Raw: "android.permission.BLUETOOTH_CONNECT") Bug: 204265450 Test: manual testing bluetooth tethering and TH Change-Id: I6f821020679b9379cada29f6f0816187545a24fb
-
- Nov 10, 2021
-
-
markchien authored
tetherutiljni is renamed to com_android_networkstack_tethering_jni_util Bug: 205088391 Test: atest TetheringTests atest CtsTetheringTest atest TetheringPrivilegedTests Change-Id: Ifd1f4473625e33d3ebe190c9f8a2b5d54aa1ff49
-
- Oct 20, 2021
-
-
Kimberly Kreider authored
Bug: 203466102 Test: build locally and verified contents Change-Id: I7cccb54c0ad1a3bd8da0bcb7ad6474aa1e734299
-
- Sep 30, 2021
-
-
markchien authored
Test: atest EthernetTetheringTest Change-Id: Ief2a92bc6c573a6bb75c72b7a0630e5c0accfa73
-
- Aug 02, 2021
-
-
Remi NGUYEN VAN authored
Using jarjar on intermediate libraries causes issues when they are combined with other libraries that use different jarjar rules, as the resulting binary may contain multiple incompatible copies of the classes. Instead, jarjar should be used on the final artifact, after combining the libraries. Ensure NetworkStackJarJarRules is not applied on intermediate libraries like TetheringIntegrationTestsLib, but instead apply it on TetheringIntegrationTests or CtsTetheringTest. Bug: 192535368 Test: atest TetheringCoverageTests TetheringIntegrationTests \ CtsTetheringTest Change-Id: I248a533651984de81f676336c0e74e3788610bbb
-
- Jul 05, 2021
-
-
Remi NGUYEN VAN authored
Apply their respective jarjar rules on tethering and general connectivity tests, then merge both into the coverage tests suite. This is necessary to ensure that classes covered by tests have names matching classes used in code. Also fix IpConnectivityLogTest to use the module utility instead of the hidden BitUtils, as the test would fail after internal utils are jarjared. Bug: 187935317 Test: atest ConnectivityCoverageTests TetheringCoverageTests Original-Change: https://android-review.googlesource.com/1749680 Merged-In: Ib95b58dab93f7adebc445b662a6d15db1ce0e7c2 Change-Id: Ib95b58dab93f7adebc445b662a6d15db1ce0e7c2
-
Remi NGUYEN VAN authored
The coverage tests will allow measuring code coverage for all Connectivity+Tethering code. This is a combination of the current TetheringCoverageTests, and FrameworksNetTests. Adding min_sdk_version to the test prevents it from using deprecated IoUtils utilities. Replace it with the non-deprecated alternative. Bug: 187935317 Test: atest ConnectivityCoverageTests Original-Change: https://android-review.googlesource.com/1731232 Merged-In: I5366e1cc9cd6ddb41f24718246381cc2b1cc1383 Change-Id: I5366e1cc9cd6ddb41f24718246381cc2b1cc1383
-
- Jun 30, 2021
-
-
Remi NGUYEN VAN authored
Apply their respective jarjar rules on tethering and general connectivity tests, then merge both into the coverage tests suite. This is necessary to ensure that classes covered by tests have names matching classes used in code. Also fix IpConnectivityLogTest to use the module utility instead of the hidden BitUtils, as the test would fail after internal utils are jarjared. Bug: 187935317 Test: atest ConnectivityCoverageTests TetheringCoverageTests Change-Id: Ib95b58dab93f7adebc445b662a6d15db1ce0e7c2
-
- Jun 16, 2021
-
-
Remi NGUYEN VAN authored
The coverage tests will allow measuring code coverage for all Connectivity+Tethering code. This is a combination of the current TetheringCoverageTests, and FrameworksNetTests. Adding min_sdk_version to the test prevents it from using deprecated IoUtils utilities. Replace it with the non-deprecated alternative. Test: atest ConnectivityCoverageTests Change-Id: I5366e1cc9cd6ddb41f24718246381cc2b1cc1383
-
- May 12, 2021
-
-
markchien authored
Create *LatestSdk variant build target which have target sdk specify to allow test apk install to released platform. Bug: 182211575 Test: test S MtsTetheringTest in R device Change-Id: I4d5c5e8c3d74993a67380e0211da31884cbf8792
-
- Apr 27, 2021
-
-
markchien authored
This allows the coverage tests to manually trigger native coverage collection, as a workaround for collection not being triggered automatically by the coverage infrastructure. Bug: 185202279 Test: atest TetheringCoverageTests Change-Id: I619fc267cf1743dd2218e3dd42546b0d4e9da193
-
- Feb 16, 2021
-
-
Bob Badour authored
Added SPDX-license-identifier-Apache-2.0 to: Tethering/Android.bp Tethering/apex/Android.bp Tethering/bpf_progs/Android.bp Tethering/common/TetheringLib/Android.bp Tethering/tests/Android.bp Tethering/tests/integration/Android.bp Tethering/tests/mts/Android.bp Tethering/tests/privileged/Android.bp Tethering/tests/unit/Android.bp tests/cts/hostside/Android.bp tests/cts/hostside/aidl/Android.bp tests/cts/hostside/app/Android.bp tests/cts/hostside/app2/Android.bp tests/cts/hostside/certs/Android.bp tests/cts/net/Android.bp tests/cts/net/api23Test/Android.bp tests/cts/net/appForApi23/Android.bp tests/cts/net/jni/Android.bp tests/cts/net/native/dns/Android.bp tests/cts/net/native/qtaguid/Android.bp tests/cts/net/util/Android.bp tests/cts/tethering/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I8534c580f0e2a17be146300b67b3604817b64507
-
- Feb 12, 2021
-
-
Maciej Żenczykowski authored
Test: atest TetheringCoverageTests now passes, TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I0d83de14784f323400a83ce282cae1a3e7b4b396
-
- Jan 27, 2021
-
-
lucaslin authored
Add NetdStaticLibTestsLib into Tethering MTS , so that the tests under client-libs can also be run when running tethering MTS. Bug: 170598012 Test: atest TetheringCoverageTests Change-Id: Idd47becaa4254ab80b74ad5f3ddcdd4b017a5e69
-
- Dec 04, 2020
-
-
markchien authored
Also jarjar com.android.net.module.util* to com.android.networkstack.tethering.util*. Bug: 171670016 Test: atest TetheringCoverageTests Change-Id: I3bde9ad3c41adf36da99bd944303d88ce992201c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1473223 Compare with original change, this change also add visibility rules for packages/modules/Connectivity/Tethering in new file (tests/Android.bp). Merged-In: I3f1d7019f1a12647b78630a412df3adf03e9e95a Change-Id: I40c22e2f39d795abfd961a3f797e510e51c8ed7c
-
markchien authored
frameworks-base-testutils is unused in tethering integration tests, so the dependency can be removed. That test library also contains test classes, so removing the dependency allows tethering tests to stop running the associated tests. Also add jarjar rules to the unit tests to zap (remove) the test classes from the output APK. Ideally the unit tests should stop depending on that library too (TestableLooper can be used instead of TestLooper), or the frameworks-base-testutils library should stop including test classes. Bug: 167968946 Test: m CtsTetheringTest TetheringTests Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433924 Merged-In: I3f1d7019f1a12647b78630a412df3adf03e9e95a Change-Id: Id189676b7447c6cb0f8d9b216c42a34c6513ba61
-
- Nov 05, 2020
-
-
Baligh Uddin authored
BUG: 167962976 Test: TH Merged-In: I64ae039794c33ac907adace6941b2986f3def8af Change-Id: I8f5b76642483ada00657d8d358fbf15a446dd41f
-
- Nov 04, 2020
-
-
Baligh Uddin authored
BUG: 167962976 Test: TH Change-Id: I96b34517e164789c9fa3b8fd7fb33fdd7a2a9166
-
Baligh Uddin authored
BUG: 167962976 Test: TH Merged-In: Ic89c084604788b4d41cf854e5015c8ce7791c64d Change-Id: I12e326167c6fb61a59a919cdd0198ac8f8c84772
-
- Oct 26, 2020
-
-
markchien authored
Also jarjar com.android.net.module.util* to com.android.networkstack.tethering.util*. Bug: 171670016 Test: atest TetheringCoverageTests Change-Id: I3bde9ad3c41adf36da99bd944303d88ce992201c
-
- Sep 23, 2020
-
-
Remi NGUYEN VAN authored
frameworks-base-testutils is unused in tethering integration tests, so the dependency can be removed. That test library also contains test classes, so removing the dependency allows tethering tests to stop running the associated tests. Also add jarjar rules to the unit tests to zap (remove) the test classes from the output APK. Ideally the unit tests should stop depending on that library too (TestableLooper can be used instead of TestLooper), or the frameworks-base-testutils library should stop including test classes. Bug: 167968946 Test: m CtsTetheringTest TetheringTests Change-Id: Ie950ce5b6181e388a7f71da430fd2dd8ada32e49
-
- May 27, 2020
-
-
Treehugger Robot authored
Bug: 156866746 Test: atest TetheringTests, TetheringCoverageTests Merged-In: I7c539f1f4a447b5913164b222601c6113c6fe645 Change-Id: I7c539f1f4a447b5913164b222601c6113c6fe645
-
- May 26, 2020
-
-
markchien authored
Bug: 156866746 Test: atest TetheringTests, TetheringCoverageTests Change-Id: I7c539f1f4a447b5913164b222601c6113c6fe645
-
- Apr 22, 2020
-
-
Mark Chien authored
Bug: 148636687 Test: atest NetworkStaticLibTests Test: atest TetheringCoverageTests Merged-In: I8cd9dbc9fe163583ff1d016c9262546949105b80 Change-Id: I8cd9dbc9fe163583ff1d016c9262546949105b80
-
- Apr 21, 2020
-
-
markchien authored
Bug: 148636687 Test: atest NetworkStaticLibTests Test: atest TetheringCoverageTests Change-Id: I8cd9dbc9fe163583ff1d016c9262546949105b80
-
- Apr 15, 2020
-
-
paulhu authored
Bug: 148636687 Test: atest TetheringCoverageTests atest TetheringTests atest TetheringIntegrationTests atest NetworkStackTests atest CtsTetheringTest Change-Id: I1f2a50f16894b05e988476520ba25baba0b60d88 Merged-In: I1f2a50f16894b05e988476520ba25baba0b60d88
-