- Aug 06, 2023
-
-
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
-
- 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
-
Remi NGUYEN VAN authored
-
Junyu Lai authored
* changes: Skip presubmit for flaky tests in FrameworksNetTests due to Out of SLO Skip presubmit for flaky tests in HostsideVpnTests due to Out of SLO
-
Chiachang Wang authored
-
- Jul 27, 2023
-
-
Mark authored
The first tethering test case may experience tethering restart with IP conflict handling. Tethering would cache the last upstreams so that the next enabled tethering avoids picking up the address that is in conflict with the upstreams. To protect subsequent tests, turn tethering on and off before running them. Bug: 254183718 Test: atest CtsTetheringTest atest MtsTetheringTestLatestSdk Change-Id: I03729d3212a03bd9fcfe2c09cf327840f13b250c
-
chiachangwang authored
In failed log, VPN still process the migration which does not send the network capabilities update to network agent. In low performance devices like cuttlefish, it may sometimes cause flaky. Specify a longer timeout to deflake the test. Bug: 293233390 Test: atest FrameworksNetTests Change-Id: I4e6c80c03e19efb448ee2806c5a250425b0e068f
-
Mark Chien authored
-
Mark Chien authored
-
Chalard Jean authored
Test: trivial doc-only change Bug: 140807677 Change-Id: I57440e8b54709a2f0e8c875d30f2c295fa3e1f3d
-