- Jan 31, 2024
-
-
Paul Hu authored
Address the remaining comments in aosp/2874718 to simplify the burst time logic. Bug: 271067818 Test: atest FrameworksNetTests NsdManagerTest Change-Id: I619f45189b10da3e09759ee1d57a898173a9fff8
-
- Jan 30, 2024
-
-
Handa Wang authored
-
Remi NGUYEN VAN authored
-
Junyu Lai authored
-
Paul Hu authored
-
Paul Hu authored
The current query scan modes, active and passive, have limitations. Unicast queries only originate from the first query session, multicast queries should be sent simultaneously with unicast, and both modes suffer from infrequent scans. To address these shortcomings, a aggressive query mode is proposed. Bug: 271067818 Test: atest FrameworksNetTests NsdManagerTest Change-Id: I87100e03a5b6306dcae79f05c034f000e6dc2889
-
Junyu Lai authored
Test: TH Fix: 299876562 Change-Id: I347a269889ea6cf39218b6322dcba92a14535e9c
-
Remi NGUYEN VAN authored
-
Mark Chien authored
-
Yang Sun authored
-
- Jan 29, 2024
-
-
Kangping Dong authored
-
Handa Wang authored
* changes: [mdns] avoid checking conflicts against the registration itself [mdns] stop MdnsAnnouncer when the registration has a conflict
-
Kangping Dong authored
-
Maciej Żenczykowski authored
-
Remi NGUYEN VAN authored
If a service is found without a requested subtype, then updated to have that subtype, onServiceUpdated would be sent instead of onServiceFound. Fix this by tracking which services have been found by each listener, as whether a service is newly found or updated depends on the options (in this case the subtype filter) of each listener. Fixes: 317167170 Test: atest Change-Id: If8dbe04d858082a872c0f068433a3680331c670b
-
Kangping Dong authored
Bug: 322734489 Change-Id: I9f6c781513a749c9e3953e8bad85b5ebaad776fa
-
Handa Wang authored
* changes: [mdns] service-side impl for custom host [mdns] add API support for custom hostname
-
Paul Hu authored
-
Zhanglong Xia authored
-
Handa Wang authored
The current implementation contains a bug that an updated registration may be checked for conflict with itself. In this way it will get renamed although its not a real conflict. Bug: 283053491 Change-Id: I9b717c1a389bd92b8cffa9fe3f58e921609bd79b
-
Handa Wang authored
This CL adds the service-side implementation of the custom host support added in aosp/2890957. Bug: 284904661 Bug: 320838284 Test: atest CtsNetTestCases FrameworksNetTests Change-Id: I92c774ead4778870ff7358ccb28d6ad6e266f1b5
-
Handa Wang authored
This CL also adds a test case that the hostname is renamed due to a conflict after probing succeeded. Bug: 322282952 Change-Id: Iee49e13804630d4cb270a83e9acd6b3e180cf03c
-
Handa Wang authored
This commit adds support of regsitering a service with a custom hostname. This is required to enable Advertising Proxy feature for Thread devices. For example: ``` NsdServiceInfo info = new NsdServiceInfo(); info.setServiceName("My Service"); info.setServiceType("_test._tcp"); info.setHostname("MyHost"); info.setHostAddresses(List.of(address1, address2)); nsdManager.registerService(info, PROTOCOL_DNS_SD, listener); ``` This CL also adds two new error codes for service/host registration conflict: `FAILURE_SERVICE_NAME_CONFLICT` and `FAILURE_HOST_NAME_CONFLICT`. Bug: 284904661 Test: atest CtsNetTestCases FrameworksNetTests Change-Id: I2fb974c38d851ba99144a18c7047084bbd61b938
-
Kangping Dong authored
-
Paul Hu authored
This is a no-op change. Currently, the query mode employs a boolean value to toggle between passive and active modes. To accommodate a broader range of query modes for different requirements, switch to an integer value that facilitating the addition of new modes more seamlessly. Bug: 271067818 Test: atest FrameworksNetTests NsdManagerTest Change-Id: Ia9a12d4581246c3a5776cd241755a10994e32454
-
Yang Sun authored
Use sec but not usec in the test. setsockopt TimeVal may lose precision on usec when kernel rounds up the requested value based on the HZ setting: val = tv.tv_sec * HZ + DIV_ROUND_UP((unsigned long)tv.tv_usec, USEC_PER_SEC / HZ); Bug: 321577714 Test: atest FrameworksNetTests:android.net.connectivity.android.net.NetworkUtilsTest Change-Id: I13a12319370ec2bebe0935f2acdef88bca4d963d
-
Kangping Dong authored
Simplifies the CTS tests by testing only the first controller given there is only one controller. No testing logic changes. This commit also moves the helper methods to end of the file as they are not the focus. Bug: 321662734 Test: m CtsThreadNetworkTestCases Change-Id: I4acf26e13ee112df2b7378b1005a1a14de4d783e
-
Kangping Dong authored
-
Zhanglong Xia authored
The properity `ro.boot.threadnetwork.country_code` has been renamed to `threadnetwork.country_code` in aosp/2923770. This CL updates the properity name in the comment. Bug: b/309357909 Test: Run `atest ThreadNetworkUnitTests`. Change-Id: I630f4d970452b17c3ee35fa8e9792ca907341ee8
-
Treehugger Robot authored
-
Yang Sun authored
Bug: 320420453 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink.NetlinkUtilsTest Change-Id: I166a0d5185a18274ed82f739f289969c1f989b20
-
Xiao Ma authored
-
- Jan 28, 2024
-
-
Kangping Dong authored
There are sometimes gerrit warnings on Android.bp file format: ``` Analyzer Description: Formats Android.bp files. Owner: soong-team@google.com This file is not formatted. Run prebuilts/build-tools/linux-x86/bin/bpfmt -w {filename} to format the file, or apply the suggested fix. ``` This commit adds the suggested format script to make-pretty.sh to avoid the warning. Change-Id: I8a691b1e6af873e8c43e34ed3168203d469eee1c
-
Kangping Dong authored
Bug: 299853805 Change-Id: I567142a8bf8c735b65048d985e94d958a7feef03
-
- Jan 26, 2024
-
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: If51a297f4fd6b39584d08ed43816167becdc14c8
-
Maciej Żenczykowski authored
since it doesn't actually update any more... Done via: git grep InterfaceMapUpdater | cut -d: -f1 | sort -u | while read i; do sed -i -r 's@InterfaceMapUpdater@InterfaceMapHelper@g' "$i"; done git mv ./tests/unit/java/com/android/server/net/BpfInterfaceMapUpdaterTest.java ./tests/unit/java/com/android/server/net/BpfInterfaceMapHelperTest.java git mv ./service-t/src/com/android/server/net/BpfInterfaceMapUpdater.java ./service-t/src/com/android/server/net/BpfInterfaceMapHelper.java Test: TreeHugger atest libnetworkstats_test atest FrameworksNetTests:android.net.connectivity.com.android.server.net.BpfInterfaceMapHelperTest atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest atest --iterations=100 NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I07b57158347757f3f8dc4f24803a9bbf30445f7d
-
Maciej Żenczykowski authored
This is no longer needed due to being done synchronously via nativeRegisterIface() Test: TreeHugger atest libnetworkstats_test atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest atest FrameworksNetTests:android.net.connectivity.com.android.server.net.BpfInterfaceMapUpdaterTest Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I9c0c79d23657fb5cb5296fb918f76f1fc896baa1
-
Maciej Żenczykowski authored
(this should fix the 4 ipsec tests which don't call the right higher APIs that would eventually call into bpfRegisterIface) Test: TreeHugger, atest libnetworkstats_test Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I3069f3a2f809948cd2e7755745586b78ff3362c9
-
Maciej Żenczykowski authored
Test: TreeHugger, atest libnetworkstats_test Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I61edb3981c19718e177307c3df89de635598f2fd
-
Yang Sun authored
* changes: Add service implementation for ThreadNetworkController#setEnabled Add setEnabled API
-