- Aug 09, 2023
-
-
Treehugger Robot authored
-
- Aug 08, 2023
-
-
Chiachang Wang authored
-
- Aug 07, 2023
-
-
chiachangwang authored
These tests were disabled from presubmit because of flaky test. It's no longer flaky now, so add these tests back to presubmit. Bug: 293233390 Test: atest FrameworksNetTests Change-Id: I7f1f36385d2ca6ed210e1d9b7399b6509fd26519
-
Treehugger Robot authored
-
Jean Chalard authored
-
Chalard Jean authored
When the device is very slow to run this test, cell might end its lingering period in the middle of the test while wifi is the default. VPN will then ignore it as an underlying network, causing the test to fail. Test: testVpnSetUnderlyingNetworks Added sleep in a strategic place to make sure the problem was correctly identified, and observed the test failing. After the fix, the test passes with the sleep. Fixes: 280627836 Fixes: 293844384 Change-Id: Iaf56de963eb17845c1d76a0310b55f7f9321f7e4
-
- Aug 06, 2023
-
-
Yuyang Huang authored
Bug: 294326360 Test: atest FrameworksNetTests Change-Id: I9a3a84f907362260bdcf6be19e2c4d5345788d2e
-
Yuyang Huang authored
Move scheduling logic into a standalone MdnsQueryScheduler class to simplify the MdnsServiceTypeClient class. Bug: 292470176 Test: atest FrameworksNetTests CtsNetTestCases Change-Id: I31130c239bc54f6dc0efde2921ce51df35076a74
-
- Aug 05, 2023
-
-
Kefan Tu authored
-
- Aug 04, 2023
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Kefan Tu authored
This test assumes the data saver mode is initially disabled, but WearOS enables the mode on boot. This change fixes the precondition in the setUp method. Test: run cts -m CtsHostsideNetworkTests Bug: 280542664 (cherry picked from https://android-review.googlesource.com/q/commit:2cdeffc7e97a915a847cfc40d89e091aeadf20b3) Merged-In: Ibcceaf0f44821100c861ef7b3c61d0888ae30481 Change-Id: Ibcceaf0f44821100c861ef7b3c61d0888ae30481
-
Kevin Jeon authored
This change adds the nativeGetIfIndexStat JNI method, which can be used to read the traffic stats associated with a specific iface index. Test: Included unit test. Bug: 241098920 Change-Id: I7a4adcb9610562ff01fe5cd1234d6dfc57f9408d
-
Kevin Jeon authored
This change adds InitStats for explictly zero-initializing rx/tx bytes/packets, and -1-initializing rx/tx tcp packets. Test: Build, existing unit tests. Bug: 241098920 Change-Id: Ib9598dab924b48240461b31906a4b5698db255d8
-
Yuyang Huang authored
API-Coverage-Bug: 282618639 Bug: 269240366 Test: atest CtsNetTestCases Change-Id: I7ac72b675ff3715891f31bc03c453e14b1264e40
-
Yuyang Huang authored
Components that can provide offload like IpClient (packet filter offloading) can use the API to register a callback to be notified when offload is necessary. Bug: 269240366 Test: atest CtsNetTestCases Change-Id: I8080702f5b530001b88e79e504f4722ac01bc576
-
Chalard Jean authored
The MTU from the socket is a much easier way to get the correct MTU to any given destination. In particular this is important for CLAT which used to be wrong : on my device, with a perfectly working GoogleGuest : 50: v4-wlan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1472 qdisc pfifo_fast state UNKNOWN group default qlen 500 F ICMPv4 payloadLength{1472} dst{8.8.8.8} src{192.0.0.4:27}: FAILED: 0/15 (4811ms) After this patch, the payload is correctly 1444. Test: Manual on GoogleGuest Manual on a network with a custom set MTU Change-Id: I6cd2398572b3fe08f88832ab6d0aa715c118cd4f
-
- Aug 03, 2023
-
-
Treehugger Robot authored
-
Kevin Jeon authored
This change updates 'mBpfMap' to 'mIndexToIfaceBpfMap' to better-describe what the bpf map contains. This is done as a prerequisite change for adding a name->indices map. Test: Build Bug: 241098920 Change-Id: Idaab7072a14ea3c88e9a5df808e768f355d83782
-
Chiachang Wang authored
-
chiachangwang authored
Close the fd based on the automaticOnOffState increases the complexity. Replace it with always dup the fd in the constructor. Bug: 290094178 Test: atest FrameworksNetTests Test: atest android.net.cts.ConnectivityManagerTest Change-Id: I0133588c41dd6aca9f0ee0fcc8e4b4418e152284
-
Chiachang Wang authored
-
- Aug 02, 2023
-
-
chiachangwang authored
This commit adds the version control for keepalive packet address translation design to prevent device crash if the network stack is not updated to a newer version. This commit also adds a DeviceConfig to control the design in newer module version. Bug: 291870956 Test: atest FrameworksNetTests CtsNetTestCases Change-Id: Id4efbf51dae9154d2bc3a1ee405e2139d5c91e36
-
- Aug 01, 2023
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Junyu Lai authored
Test: This Bug: 269409485 Change-Id: I6bfde26939e7cb5970f90fe5c663bcb55d3700d9
-
Motomu Utsumi authored
-
Junyu Lai authored
Follow-up from commit Ie60829a65d0d9b5b63ad353695a820c0586e3665, the interface field was cleared before returning the result to the caller. However, this can cause problems in the NetworkStats#subtract method. If the interface field is cleared, the findIndexHinted method can match to a wrong entry. This is because the keys of multiple entries will now be the same. This can cause the subtract result to be unexpectedly large and the return value of getUidStatsForTransport to be mismatched with the values retrieved from other APIs. Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest \ FrameworksNetTests:android.net.connectivity.android.net.NetworkStatsTest Bug: 290728278 Change-Id: I891ab29b8a2902663febc7c32b04417caf510926
-
Motomu Utsumi authored
aosp/2605757 updated isDefaultNetworkActive returns false when there is no default network. But this change was not merged to U release branch and this change was not well tested by dogfooding. So this CL reverts the isDefaultNetworkActivity behavior change. Bug: 279380356 Bug: 291870075 Test: atest FrameworksNetTests Change-Id: Id88662faea9eeaba93d59ab2729f6204a3631ab1
-
Junyu Lai authored
This is a no-op refactoring, which re-write the group by methods to use a common method that can slice NetworkStats by a given lambda. This is useful for subsequent changes to slice NetworkStats with different conditions. Test: atest FrameworksNetTests:android.net.connectivity.android.net.NetworkStatsTest Bug: 290728278 Change-Id: Ia28571021fba46fc59380798053ccdc91ddc6ae4
-
- Jul 31, 2023
-
-
Casey Borders authored
Stub out code and test directories BUG: 290094832 Test: atest FrameworksNetTests RemoteAuthUnitTests Change-Id: I850242640f32bea3d46febcde5f3719619b1ea07
-
Motomu Utsumi authored
-
Motomu Utsumi authored
aosp/2605757 changed onNetworkActive callback behavior on U+ but this change was not merged to U release branch. This CL reverts the behavior change and keep the current behavior on U+. Bug: 279380356 Bug: 291870075 Test: atest FrameworksNetTests Change-Id: I91ccc7ee93f0827986401f316997b4a2df11318f
-
Chiachang Wang authored
-
chiachangwang authored
This commit updates test to - Execute IkeSessionCallback inside executor. The callback should be called from executor in production code but test trigger the callback from test main thread which will result in unexpected code interaction. - Verify the timer directly. The origin design verifies interactions with Captor with uncertain interaction. Test should be able to verify the schedule() calls with the expected timeout value. Also, in lower performance device, device may still process previous interaction. Add longer timeout to reduce flakes. Bug: 293233390 Test: atest FrameworksNetTests Test: atest VpnTest#testStartPlatformVpnFailedWithRecoverableError --rerun-until-failure 100 Change-Id: Ie42a2597a382800d6484a086b6d808490dfbdd32
-
- Jul 28, 2023
-
-
Hansen Kurli authored
* changes: Unregister BroadcastReceiver and OnSubscriptionsChangedListener. Disable KeepaliveStatsTracker before T. Disable KeepaliveStatsTracker instead of throwing.
-
Junyu Lai authored
-
Mark Chien authored
-
Treehugger Robot authored
-