- Nov 17, 2023
-
-
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
-
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
-
Kangping Dong authored
-
Junyu Lai authored
Writing data saver status to bpf is supported on Android V or later devices. Thus, read that from bpf if available. Test: atest FrameworksNetTests:android.net.connectivity.android.net.BpfNetMapsReaderTest Test: atest ConnectivityCoverageTests:android.net.connectivity.android.net.ConnectivityManagerTest Fix: 310801259 Change-Id: Ibd2616328d83f72ee6d2665239c3a44379d1ebf5
-
Quang Anh Luong authored
SysUi needs to see connectivity diagnostic callbacks to display "Checking for internet access..." -> "Connected" or "No internet access". Bug: 307161342 Test: atest FrameworksNetTests, manually connect to a network without internet connectivity, verify Internet Dialog doesn't get stuck showing "Checking for internet access..." Change-Id: I86e2b852ff9e5dfbfc37ba711f477166b0ac6835
-
- Nov 14, 2023
-
-
Paul Hu authored
Now, every services are cached on MdnsServiceCache, so the remaining TTL should be checked when retrieving services from the MdnsServiceCache and have a callback to notify the MdnsServiceTypeClient about expired services. Bug: 265787401 Test: atest FrameworksNetTests CtsNetTestCases Change-Id: I99da6cc79bdf5df3c899e642e067907501bc9d4f
-
Motomu Utsumi authored
Currently, BatteryStatsService register netd callback and track radio power state only for the default network. So, battery stats are not accurate if cellular and Wi-Fi networks are active at the same time. aosp/2561090 updates BatteryStatsService not to register netd callback on V+ devices. This CL updates LegacyNetworkActivityTracker to call BatteryStats API and update radio power state for networks including non default networks on V+ devices. Bug: 267870186 Bug: 279380356 Test: atest FrameworksNetTests Change-Id: I826b3b4046cc7b8aef46c13300854eaf14b1b777
-
Motomu Utsumi authored
on V+ devices, NetworkActivityTracker adds idleTimer when the network is first connected and removes idleTimer when the network is disconnected so that activity tracker can receive netd onInterfaceClassActivityChanged callback for multiple networks. Bug: 267870186 Bug: 279380356 Test: atest FrameworksNetTests Change-Id: I6f3a95c27e3e58f3f60c40065f562d00431a56b1
-
Kangping Dong authored
-
Kangping Dong authored
-
Mike Yu authored
* changes: Add abstract getValue() for class SvcParam Use DnsPacket.toString() for DnsSvcbPacket Test: A minor fix for testDnsSvcbRecord_svcParamMandatory
-
Motomu Utsumi authored
Following CL adds idleTimer for multiple networks and track activities including non default network on V+ Current LegacyNetworkActivityTracker uses transport type as an idleTimer label but this makes it difficult to have multiple idleTimers. So, this CL updates LegacyNetworkActivityTracker to support using netId as an idleTimer label. Bug: 267870186 Bug: 279380356 Test: atest FrameworksNetTests Change-Id: I0039f5624ae1d142dbacba53aa90ca9bf6d43599
-