- Nov 17, 2023
-
-
Handa Wang authored
-
Chiachang Wang authored
-
Junyu Lai authored
-
Junyu Lai authored
This change only outputs thread count differences instead of listing all threads. Additionally, it ignores threads with 1 count, which effectively filter out threads created by the test runner or other system components, such as hwuiTask*, queued-work-looper, SurfaceSyncGroupTimer, RenderThread, and Time-limited test. Sample Output: [1122/3060] android.net.connectivity.com.android.server.CSLocalAgentCreationTests#ThreadLeakMonitor: FAILED (1ms) STACKTRACE: java.lang.IllegalStateException: Unexpected thread changes: removed=[] added=[] updated=[TestAlarmManager=25,CSTestHandler=25] Test: atest ConnectivityCoverageTests (with shouldThreadLeakFailTest set to true) Bug: 310581973 Bug: 307693729 Change-Id: I085799ebbd69c29f833335684de208105302e012
-
Handa Wang authored
This CL lets ThreadNetworkControllerService calls the LocalNetworkConfig API to set up border routing between Thread and infrastructure network. Bug: 299552948 Bug: 305861411 Test: Verified on Cuttlefish that forwarding is set up. Change-Id: I8b2f015d9d6248bfb1cd9ac806dc8664970a26d2
-
Jean Chalard authored
-
Yang Sun authored
-
Motomu Utsumi authored
-
Chiachang Wang authored
Bug: 161776767 Test: atest FrameworksNetTests Change-Id: Id2cef626c5893a4ff29161c801e497b7de551136
-
Maciej Żenczykowski authored
-
- Nov 16, 2023
-
-
Yan Yan authored
Add xfrm_address_t and xfrm_usersa_id structs Bug: 308011229 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink (new tests added) Change-Id: I552983d7e768e7fb8ba307ffc55060c8b35e7436
-
Ivo Kay authored
Test: atest FrameworksNetTests CtsNetTestCases Bug: 307217169 Change-Id: I006e3191a8c6100af3d2906d5d37f4e38a3db519
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Hansen Kurli authored
-
Chalard Jean authored
As a specialized network, a network with PRIORITIZE_* is not generally a good default network, and might cause unexpected charges if allowed to become one. Test: CSDefaultNetworkTests Change-Id: I8f7184f80bb987da720bd067862bd7a546a38e26
-
Jean Chalard authored
-
Kangping Dong authored
-
Chalard Jean authored
Ideally the rules should be set up before onAvailable is sent, but onLocalNetworkChanged should be sent after. The previous code had CSLocalAgentTests#testForwardingRules flaky because it was waiting for onAvailable and immediately checking that the routing rules have been set up. There are other ways to fix this flake (e.g. wait for onLocalNetworkChange in the test or add a timeout on the verify(netd) call) but this patch probably implements the best production code behavior. Bug: 309688089 Test: CSLocalAgentTests#testForwardingRules 1'000 times Before this patch : flakes after 50~200 iterations After this patch : no flake in 1'000 iterations Change-Id: I4dcccaa3607c1e28aa89f268f0c721d87b1e9466
-
Chiachang Wang authored
-
Jean Chalard authored
-
Hansen Kurli authored
The profile is modified within startLegacyVpnPrivileged(), e.g. ipsecCaCert, ipsecUserCert. This causes subsequent calls from callers such as LockdownVpnTracker to fail. Add a new test to ensure the VpnProfile is not modified in startLegacyVpn. Add testClone in VpnProfileTest. Bug: 190572822 Bug: 309591931 Test: atest FrameworksNetTests, test before and after fix. Test: Manual test Change-Id: Id090e0dd3b9e74a7461ae90e68c41e802b458744
-
lucaslin authored
This commit verifies that - If VPN network preference is set when - Ikev2VpnRunner is created - Retrying VPN - Updating exclusion list - If VPN network preference is cleared when - Exiting VPN runner - NOT_RECOVERABLE happens Bug: 231749077 Test: atest FrameworksNetTests:VpnTest Change-Id: I71f48f18fd4556e04c131d5939afaa1ef5a0f814
-
Junyu Lai authored
-
Maciej Żenczykowski authored
Networking bpf (including cgroup related portions) was mainlined in Android T. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I779584828f03caa2d61d5081cb3d39566db9b9de
-
Maciej Żenczykowski authored
Since the first mainline eBPF code (for Tethering offload) landed in Android S. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ifb44a43a98e7f0ff4cd59017b47f64eff30ee715
-
Chiachang Wang authored
-
- Nov 15, 2023
-
-
Ken Chen authored
-
Motomu Utsumi authored
-
Motomu Utsumi authored
* changes: Make ConnectivityService update BatteryStats radio power state Track multiple network activities on V+ Use netId as idleTimer label on V+
-
Ken Chen authored
-
Motomu Utsumi authored
Bug: 293971841 Test: TH Change-Id: Iae92b171abe8a4620325bd7ce0f7f76912d6d1d8
-
Chiachang Wang authored
This is a preliminary change for filtering sockets that is not in the uid ranges for automatic on/off keepalives. This commit itself is a no-op change to pass the uid information to AutomaticOnOffKeepaliveTracker. Bug: 311119352 Test: atest FrameworksNetTests Change-Id: I7d96e7a0d3f3054d1409de350420a24378b28cdb
-
KH Shi authored
-
Junyu Lai authored
-
Chalard Jean authored
Like NetworkScore, this object is not available on R because of the absence of the tethering module. Therefore it needs to be wrapped to be protected against introspection by the test libraries. Change-Id: Ia5f84d2926433398cef33d89819a8c6588024ea0 Test: FrameworkNetTests
-
KH Shi authored
FileDescriptor#getInt$() is a hidden API with the unsupportedApiUsage annotation on R. Accessing it will cause a NewApi linter check error. It should be removed from OffloadHalHidlImpl as it is only used for log messages. Bug: b/205762647 Test: m Change-Id: Ie41d12988aee65a066dfb1529e828f4523cc0907
-
Junyu Lai authored
This change includes: 1. A mechanism in DevSdkIngoreRunnrer to dump thread counts before/after tests, and compare thread counts to detect leaks. 2. Add an annotation @MonitorThreadLeak for test classes to annotate the classes which should monitor thread leaks. 3. Annotated NetworkStatsServiceTest to apply the enforcement. Sample output: [1/2] android.net.connectivity.com.android.server.net.NetworkStatsServiceTest#testDumpStatsMap: PASSED (1.187s) [2/2] android.net.connectivity.com.android.server.net.NetworkStatsServiceTest#ThreadLeakMonitor: FAILED (7ms) STACKTRACE: java.lang.IllegalStateException: Expected threads: {binder:26055_3=1, Instr: androidx.test.runner.AndroidJUnitRunner=1, main=1, InstrumentationConnectionThread=1, binder:26055_2=1, binder:26055_1=1} but got: {binder:26055_3=1, NetworkStatsObservers=1, Instr: androidx.test.runner.AndroidJUnitRunner=1, main=1, InstrumentationConnectionThread=1, binder:26055_2=1, binder:26055_1=1} Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest \ --rerun-until-failure 100 Bug: 308544001 Bug: 307693729 Change-Id: Ia0bccb82c5985df608b8402009b32626b6b17c5a
-
Quang Luong authored
-
Kangping Dong authored
-