summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r16' into t13.0Semavi Ulusoy2022-12-1710-97/+170
|\ | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Change-Id: I11c23ee1f0766b6c32efe2df223c9615a30752d2
| * Update test on calling getAppExclusionList with restricted userchiachangwang2022-09-221-1/+2
| | | | | | | | | | | | | | | | Bug: 247344442 Test: atest VpnTest Change-Id: I3b847f13162f8702013b23cabefce8d98b62f5c6 (cherry picked from commit 8dae9343bbaa5a27324c424dbfddb7a354db2d92) Merged-In: I3b847f13162f8702013b23cabefce8d98b62f5c6
| * Verify converting to Vpnprofile with IkeTunnelConnectionParams setchiachangwang2022-09-202-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | Add test to verify converting Ikev2VpnProfile to Vpnprofile with IkeTunnelConnectionParams set. Some fields like server should not be set since the information should contain in the assigned IkeTunnelConnectionParams. Bug: 243718982 Test: atest FrameworksNetTests Change-Id: Ie019ea98932a6d079f213e3bff45f21b44d3fa4e (cherry picked from commit 4e953f63dd419fa7793d07857bcb281a499654f6) Merged-In: Ie019ea98932a6d079f213e3bff45f21b44d3fa4e
| * Add test to verify null ProxyInfo in Ikev2VpnProfilechiachangwang2022-09-061-0/+17
| | | | | | | | | | | | | | | | Bug: 244281603 Test: atest FrameworksNetTests Change-Id: Ice195b60a0f62ae541ede9277c6e36f9c72b2dbb (cherry picked from commit 715dc5b4475fb023afd2567c482107f8ab34f1b4) Merged-In: Ice195b60a0f62ae541ede9277c6e36f9c72b2dbb
| * Merge changes from topics ↵Patrick Rohr2022-08-194-79/+12
| |\ | | | | | | | | | | | | | | | | | | | | | "cherrypicker-L34300000955614442:N66700001281820633", "cherrypicker-L66100000955666054:N18300001282537306" into tm-qpr-dev * changes: Sendcallback when setting eth interface up Revert "Temporarily ignore ethernet tests until prebuilts are updated"
| | * Sendcallback when setting eth interface upJames Mattis2022-08-011-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix so callbacks are sent when changing the interface link state for an ethernet interface from down -> up. Bug: 235605892 Test: atest FrameworksNetTests :com.android.server.ethernet.EthernetNetworkFactoryTest Change-Id: If13254d4882aa2f0021f6443f31ef173b3867727 (cherry picked from commit a199735a88ae703c5d24cbad1540a1694811466a) Merged-In: If13254d4882aa2f0021f6443f31ef173b3867727
| | * Revert "Temporarily ignore ethernet tests until prebuilts are updated"Patrick Rohr2022-07-274-74/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 14f45a3e988e948bb0fda178f184aa4563b1f4eb. Reason for revert: Reenabling tests after prebuilts are updated. Bug: 233824546 Change-Id: I6883ea55dd390e7fe102b735e0b757e838d9eff6 Merged-In: I8e806b3b884f2e0b6c1a1d2fffdb9a99c5dd60e8 (cherry picked from commit 3a7645fc75a16d308a105ef4f57d9f75bd887b43) Merged-In: I6883ea55dd390e7fe102b735e0b757e838d9eff6
| * | Merge "fix clat on restricted networks" into tm-qpr-devMaciej Żenczykowski2022-08-181-6/+6
| |\ \
| | * | fix clat on restricted networksMaciej Żenczykowski2022-08-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is the case for example when a tethering dun is in use Bug: 235523181 Bug: 241055859 Change-Id: Ie261db0329179ff7f92c61202af30ab55130ae03 Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> (cherry picked from commit ef4b1bc50f81b8d321a868c31246883ebc1f10d2) Merged-In: Ie261db0329179ff7f92c61202af30ab55130ae03
| * | | Update the prefix of VPN_APP_EXCLUDED in the testchiachangwang2022-08-181-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the string according to the change in Vpn.java Bug: 237345836 Test: atest FrameworksNetTests Change-Id: I9bfe0a1fad29ba1435eeb8b8b2cffa9d385b1cb5 (cherry picked from commit 9460f45c047e49aff7e83ea3496476dd21752e0e) Merged-In: I9bfe0a1fad29ba1435eeb8b8b2cffa9d385b1cb5
| * | Adjust bpf_existence_test.cpp for dscp_policy 5.15+ changeMaciej Żenczykowski2022-08-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The minimal required kernel version was changed in: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2141233 'DscpPolicy Move to kernel 5.15' Bug: 235559605 Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ibc1b1410155a2279ed84ec4cdc475f65dc61b077 (cherry picked from commit b73da9658c705ba3eaf81895bff32177890f4391) Merged-In: Ibc1b1410155a2279ed84ec4cdc475f65dc61b077
| * | DscpPolicy Move to kernel 5.15Tyler Wear2022-08-021-3/+3
| |/ | | | | | | | | | | | | | | | | | | Require at least kernel 5.15. Feature is not required on older kernels and may impact boot time unnecessarily. Bug: 235559605 Change-Id: I2e4b509de1d8940fc63ae057a8326f13c0fd1420 (cherry picked from commit a8ca597aec0e5d288a00133b44a1509075b90d21) Merged-In: I2e4b509de1d8940fc63ae057a8326f13c0fd1420
| * Test that VpnManager events will never be sent to Settings VPNslucaslin2022-07-271-0/+25
| | | | | | | | | | | | | | | | | | | | | | This change tries to mock there is an IkeTimeoutException when Settings VPN is establishing connection and see if the VpnManager events will be sent to Settings VPN or not. Bug: 236315805 Test: atest FrameworksNetTests:VpnTest Change-Id: I1706ceb129ef95f44d45754665b9dbcf9b6fdfd4 Merged-In: I0ee4a70ded4937a1573d34cddab552f762e4fc18
| * Merge "Clear DNS cache after every network access." into ↵Sudheer Shanka2022-07-192-1/+7
| |\ | | | | | | | | | | | | | | | | | | | | | | | | stage-aosp-tm-ts-dev am: b9614c3818 am: 6745ba4245 am: 607959b360 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19250239 Change-Id: Ifeddb0e2163c3c55be1e81a377c9d8fb59bf9925 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * \ Merge "Add test for startPptp" into tm-qpr-devChiachang Wang2022-07-151-0/+53
| |\ \
| | * | Add test for startPptpRemi NGUYEN VAN2022-07-131-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test verifies arguments used to start the daemon Bug: 201660636 Test: atest VpnTest Change-Id: I0854fbeaf1a3e3554c157fde227a7bfa187b1013 Merged-In: I0854fbeaf1a3e3554c157fde227a7bfa187b1013 (cherry picked from commit 522cea7d4eca8b0c80b78fa187e6b0f24e10994d) Merged-In: I0854fbeaf1a3e3554c157fde227a7bfa187b1013
| * | | Increase max delay for Admin UID propogation am: 0b46c9ac29 am: 9f22f0dd1e ↵Benedict Wong2022-07-151-1/+1
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: a90a33ac49 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19293176 Change-Id: I59072aac34e365e7d3283309c2b746cb5e2e441a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Skip cts testFirewallBlocking in instant mode." into tm-dev am: ↵TreeHugger Robot2022-06-221-0/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fac4f05be7 am: 2f5299fafa Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19029135 Change-Id: Ic77ec6311f1e5170cac72cbf1f3bd8344c4bb006 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * \ \ \ Merge "Test recoverable Ikev2 errors" into tm-qpr-devLorenzo Colitti2022-06-221-7/+30
| |\ \ \ \
| | * | | | Test recoverable Ikev2 errorslucaslin2022-06-101-7/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test if retry mechanism is working or not when there is a recoverable Ikev2 error. Bug: 229350078 Test: atest FrameworksNetTests:VpnTest Change-Id: I5e881c6b42aeb98adce598587e2a7e49be7d9643 (cherry picked from commit adb56e94a5fc3c61af10780713f0b7a4f163c965) Merged-In: I5e881c6b42aeb98adce598587e2a7e49be7d9643
| | * | | | Merge "Mark HostsideConnOnActivityStartTest#testStartActivity_doze as ↵Sudheer Shanka2022-06-092-0/+7
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flaky." into tm-dev am: 69394f86ab Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18783869 Change-Id: Idb0055760ab596e32830125f3636ecf64dc37cfa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * \ \ \ \ Merge "Add 3rd deny firewall chain for OEM" into tm-dev am: aa53b4790aMotomu Utsumi2022-06-082-1/+7
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18769671 Change-Id: I763dcb2678b8b776f4df09e1fb9ec2b9488a9db7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * \ \ \ \ \ [automerge] Fix test failure on S image + S module 2p: 948f55cf21 am: 8468153edbPaul Hu2022-06-071-8/+10
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18769884 Change-Id: I43086499cee05fb50f3f0cabab2686b39653b0dd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * \ \ \ \ \ \ Merge changes from topic ↵TreeHugger Robot2022-06-031-0/+2
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "cherrypicker-L34800000954905788:N57900001270872696" into tm-dev am: 52f0fe0c47 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18727990 Change-Id: Ic9cf53c245e74a426bbf3c35b8c90f93ef7aab5b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * \ \ \ \ \ \ \ Add deny firewall chain for OEM am: 9cd4726890Motomu Utsumi2022-06-032-0/+210
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18728586 Change-Id: I05abc0a2e07e22788cca27733356e151e802d42f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
* | | | | | | | | | | Bypass VPN lockdown for clat initializationt-m-w2022-11-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows clat to initialize properly when VPNs are configured with "Block connections without VPN", rather than to error out with "no IPv6 addresses were available for clat". This issue primarily affects particular mobile networks configured with NAT64 (without direct IPv4 connectivity). Issue: calyxos#1288 Bug: 255040839 Change-Id: I4a8ee0295e0f5d1e330f7529856347b8bd10360c
* | | | | | | | | | | Test that VpnManager events will never be sent to Settings VPNslucaslin2022-09-021-0/+25
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change tries to mock there is an IkeTimeoutException when Settings VPN is establishing connection and see if the VpnManager events will be sent to Settings VPN or not. Bug: 236315805 Test: atest FrameworksNetTests:VpnTest Change-Id: I1706ceb129ef95f44d45754665b9dbcf9b6fdfd4 Merged-In: I1706ceb129ef95f44d45754665b9dbcf9b6fdfd4 Merged-In: I0ee4a70ded4937a1573d34cddab552f762e4fc18 (cherry picked from commit dbbeb9937076fe6b6a7167a6e9e6bc1ad1ff5a76) Merged-In: I1706ceb129ef95f44d45754665b9dbcf9b6fdfd4
* | | | | | | | | | Merge "Clear DNS cache after every network access." into ↵Sudheer Shanka2022-07-192-1/+7
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stage-aosp-tm-ts-dev am: b9614c3818 am: 6745ba4245 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19250239 Change-Id: I4a6ca60e82dea9195bede2355f60b769e49db856 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | | Merge "Clear DNS cache after every network access." into stage-aosp-tm-ts-devSudheer Shanka2022-07-192-1/+7
| |\ \ \ \ \ \ \ \ \
| | * | | | | | | | | Clear DNS cache after every network access.Sudheer Shanka2022-07-182-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the app tries to make a network connection in the foreground immediately after trying to do the same when it's network access was blocked, it could receive a UnknownHostException due to the cached DNS entry. So, clear the dns cache after every network access for now until we have a fix on the platform side. Bug: 237549250 Bug: 238064333 Bug: 237556596 Bug: 238962235 Bug: 238833668 Bug: 239262832 Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Ignore-AOSP-First: Will be cherrypicked to aosp later Change-Id: Ic603b1bd9da24ee3724054c4a91794ee569e97f6
* | | | | | | | | | | Increase max delay for Admin UID propogation am: 0b46c9ac29 am: 9f22f0dd1eBenedict Wong2022-07-151-1/+1
|\| | | | | | | | | | | |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19293176 Change-Id: I70dab7256a833dcc30a8360b13e50a301be0c4d7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | | Increase max delay for Admin UID propogationBenedict Wong2022-07-141-1/+1
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change increases the accepted propogation delay in line with some of the other timeouts, in order to ensure that low-power or low-end devices can pass the CTS tests. Bug: 226122480 Test: Confirmed fixes low-end device CTS issues. Change-Id: Iee40cbf7d689ae2e1f0c6cdaef073d8c76bca49f (cherry picked from commit ab6f9b49d78d2e31a758c686536a11d765d97060) Merged-In: Iee40cbf7d689ae2e1f0c6cdaef073d8c76bca49f (cherry picked from commit 6a803bbd2cea107bb70d30620de290f925932cc7) Merged-In: Iee40cbf7d689ae2e1f0c6cdaef073d8c76bca49f
* | / / / / / / / Merge "Skip cts testFirewallBlocking in instant mode." into tm-dev am: ↵TreeHugger Robot2022-06-221-0/+1
|\| | | | | | | | | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fac4f05be7 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19029135 Change-Id: I8d70ffe7ee78e28addf6cd2cb5029522cdfcd8e2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | Merge "Skip cts testFirewallBlocking in instant mode." into tm-devTreeHugger Robot2022-06-221-0/+1
| |\ \ \ \ \ \ \
| | * | | | | | | Skip cts testFirewallBlocking in instant mode.Motomu Utsumi2022-06-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 236662581 Test: aest android.net.cts.ConnectivityManagerTest#testFirewallBlocking --instant Change-Id: Ib8752439593dcd285146746b06b29f364e66ab85 (cherry picked from commit c4e6fcb6bc25630c5c8a67b425354028ae164644) Merged-In: Ib8752439593dcd285146746b06b29f364e66ab85
* | | | | | | | | Merge "Revert "Disable NetworkStatsRecorder Test"" into tm-dev am: 5a02299084Aaron Huang2022-06-221-2/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19013791 Change-Id: If223365e739f6f22361ab9d7167f7dc403aafced Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | Merge "Revert "Disable NetworkStatsRecorder Test"" into tm-devAaron Huang2022-06-221-2/+0
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| | * | | | | | | Revert "Disable NetworkStatsRecorder Test"Aaron Huang2022-06-221-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit befadfe3d124b7e6484cdc8693013513c7afb1fc. Reason for revert: Prebuilts are updated and tests should pass now Change-Id: Iccbce39fccc1d47deac8beec4de7c3815c086f86 Merged-In: I47fb59334d00ae7fee91c5694548b3cf89b09b2d
* | | | | | | | | Merge "Disable comparison in user release builds" into tm-dev am: 5409851f43Remi NGUYEN VAN2022-06-211-5/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18869740 Change-Id: I679bd6fcb812a5543658d2c2cd75e2988fae03f7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | Merge "Disable comparison in user release builds" into tm-devRemi NGUYEN VAN2022-06-211-5/+20
| |\ \ \ \ \ \ \ \
| | * | | | | | | | Disable comparison in user release buildsJunyu Lai2022-06-211-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL disable the comparison mechanism introduced in previous beta releases to stop receiving log.wtf signals from beta users. This CL only affects logging on user release builds. Ignore-AOSP-First: Parent CLs are not in aosp yet Test: 1. NetworkStatsServiceTest 2. manual test with script Bug: 233752318 Change-Id: I7047106b1019c29460d6633b148f501ffa62f139
* | | | | | | | | | adjust for newly added bpf map/prog definition fields in T+ am: ce6cdc8e16Maciej Żenczykowski2022-06-211-2/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19009119 Change-Id: I16e7fd261161c83c213c402cffe7d44e5fdf5c04 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | | adjust for newly added bpf map/prog definition fields in T+Maciej Żenczykowski2022-06-211-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed due to BpfLoader v0.18 supporting more functionality and thus bpf code compilation by default using larger structs than it did during S. Bug: 218408035 Test: booted on cuttlefish, atest CtsNativeNetTestCases OBSigned-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I0a37e59760fb0b55e6d6a6d12d5fd40106accd55 (cherry picked from commit b95db2808073beae71d41e07e2e1c3e6581c7d65) Merged-In: I0a37e59760fb0b55e6d6a6d12d5fd40106accd55
* | | | | | | | | | Send callback if ip provisioning is interrupted am: 99f342e229James Mattis2022-06-201-1/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18976717 Change-Id: Ia6754599db3dc0a2ac845a000e73bb782d3a8cba Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | | Send callback if ip provisioning is interruptedJames Mattis2022-06-171-1/+13
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A callback is expected to be sent on either success or failure when the EthernetManager#updateConfiguration API is called. Currently, if this API is called for an active interface and marked restricted, after the IP provisioning process is started in EthernetNetworkFactory, the interface will then processe all the onNetworkUneeded requests for the newly restricted network. Assuming no apps have requests for this particular network or restricted networks, the network will be stopped once the outstanding network request count reaches zero. If provisioning hasn't completed yet for the original updateConfiguration call, the original callback will be cleared out on stop and will never notify the original caller of EthernetManager#updateConfiguration whose call was aborted. Bug: 235907515 Test: eth unit and cts tests Change-Id: I91359272c07e090039049370ba9f438546fce3ad (cherry picked from commit 265eba982d1ba0ac9fb3d4c21ad6adc36eab049c) Merged-In: I91359272c07e090039049370ba9f438546fce3ad
* | | | | | | | | Disable NetworkStatsRecorder Test am: befadfe3d1Aaron Huang2022-06-201-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18910974 Change-Id: I377557974843d8c6f3ee8658a8e7455d37d66ac1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | Disable NetworkStatsRecorder TestAaron Huang2022-06-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable test since it won't pass until prebuilt module updated. Ignore-AOSP-First: urgent fix and will cherry-pick immediately after. Bug: 233828210 Bug: 234099453 Test: FrameworksNetTests (merged-in tag is pointed to an unrelated CL that only exists on aosp and its downstreams, to make this CL doesn't get merged in aosp downstreams) Change-Id: I81b43e6a1410e7cf241487ef213acf0cbcfd019d Merged-In: I47fb59334d00ae7fee91c5694548b3cf89b09b2d
* | | | | | | | | Add wipeOnError flag to NetworkStatsRecorder am: 692baa7d71Aaron Huang2022-06-202-3/+91
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/18910973 Change-Id: I87b29513b041322de612503da54da8a1f32da6a1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | | | Add wipeOnError flag to NetworkStatsRecorderAaron Huang2022-06-172-3/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If reading data happens exception while doing data migration, the file will be deleted by legacy recorders. This would cause legacy persistent data being lost and cannot be retrieved by any method. To avoid the files being deleted, add a wipeOnError flag to recorder which indicates this recorder will wipe on error or not . If the flag is set to true then deletes all files when it throws, otherwise keeps all files. Ignore-AOSP-First: urgent fix and will cherry-pick immediately after. Bug: 233828210 Test: FrameworksNetTests:NetworkStatsRecorderTest Change-Id: Id7a3d8bebf8a00d814f9e84bf4c10d927e6ff749
| * | | | | | | | Merge "Revert "Temporarily ignore ethernet tests until prebuilts are ↵Patrick Rohr2022-06-164-74/+0
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updated"" into tm-dev