- Nov 16, 2023
-
-
Kangping Dong authored
-
Chiachang Wang authored
-
Jean Chalard authored
-
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
-
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
-
Handa Wang authored
-
- Nov 13, 2023
-
-
Anton Hansson authored
-
Kangping Dong authored
Per API council review suggestions in b/309952666, add the same permission requirements for the unregister APIs. Bug: 309952666 Test: atest CtsThreadNetworkTestCases Change-Id: Idc481c7676ddc5d748fe7803f74dd63981186c09
-
Hansen Kurli authored
* changes: Expect no error for startLegacyVpn with IPv6. Remove tests related to LegacyVpnRunner.
-
Ken Chen authored
Test: m Change-Id: I13f23d63fd9db763958119c5fb440d4e88b7ac8b
-
Ken Chen authored
1. Annotate binder interfaces which return binder::Status::EX_UNSUPPORTED_OPERATION. 2. Freeze netd_aidl_interface to v14. Test: m Change-Id: Ibdc083ce7ac4a8e3dcd1e7cf1dc310210ca76f38
-
Ken Chen authored
-
Mike Yu authored
The return type of getValue() in each child class of SvcParam is checked at compilation time. Bug: 240259333 Test: atest ConnectivityCoverageTests Change-Id: Ia677f31a32f40512793cf16a94f64da499594b1f
-
Mike Yu authored
All the important log message, such as SVCB records, can be printed by DnsPacket.toString(), so there's no need to override toString() in DnsSvcbPacket. Bug: 240259333 Test: atest ConnectivityCoverageTests Change-Id: I8d8f57524ce07d0177a39a9c3f87146d8eb51943
-
Mike Yu authored
As per draft-ietf-dnsop-svcb-https-12.html#name-mandatory, the values in SvcParamKey "mandatory" can appear in any order Bug: 240259333 Test: atest ConnectivityCoverageTests Change-Id: Idc347bcefd7a53323f2b380fba612926b2838e65
-
- Nov 11, 2023
-
-
Ken Chen authored
For Power Saver tests, verify not only the network connectivity of restricted apps, but also error cause. Bug: 288340533 Test: atest CtsHostsideNetworkTests: com.android.cts.net.HostsideNetworkCallbackTests Change-Id: I122b62891175cd4a035f3c51c5b6073b34f8fd82
-