- Jan 29, 2024
-
-
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
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 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
-
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
-
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
-
- 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
-
Junyu Lai authored
AllocObject doesn't invoke the constructor, and when working on Java code we wouldn't expect that stuff initialized in the constructor wouldn't actually be initialized on instances created from JNI. Test: atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest Fix: 322456911 Change-Id: Ibc87ab5ebaf02a7bcaa88307511bd3aaea8698ed
-
Yang Sun authored
ThreadNetworkControllerService handles setEnabled requests and asks ot-daemon to enable/disable Thread. The desired Thread enabled state is saved in thread persistent setttings, the setting is loaded at bootup. Bug: 299243765 Test: atest CtsThreadNetworkTestCases:android.net.thread.cts.ThreadNetworkControllerTest Change-Id: Ifd0135433df25d9c6cfd3f365dd06ec7908268e7
-
Yang Sun authored
setEnabled API is added to ThreadNetworkController, this can be used by applications with privileged permission to set Thread to enable/disabled state. The Thread enabled state can be subscribed with ThreadNetworkController#registerStateCallback. When Thread is disabled, the join/scheduleMigration APIs will fail with ERROR_THREAD_DISABLED. When Thread is disabling, all commands will fail with ERROR_BUSY. Bug: 299243765 Test: atest CtsThreadNetworkTestCases:android.net.thread.cts.ThreadNetworkControllerTest Change-Id: Ifa7845bf1d5664ecd31ce74e24b3a839f92bba13
-
Zhanglong Xia authored
-
Motomu Utsumi authored
-
Xiao Ma authored
Usually we can call InterfaceController.setIPv4Address API to add an IPv4 address on the interface, in fact it ends up calling the native Netd API which doesn't support setting deprecation/expiration time. In user space we already have the netlink infra to send RTM_NEWADDR for IPv6 address, extend the function to support IPv4 as well, then we can deprecate the Netd API in IpClient. Bug: 129660498 Test: atest NetworkStaticLibTests Change-Id: I9fc7ba8d7035e0ed1df8c1f2baef9ec7e1806be3
-
Kangping Dong authored
* changes: [mdns] add service-side impl for subtypes discovery [mdns] add API for discovery with subtype
-
Zhanglong Xia authored
The Thread country code should be a 2-Character alphabetical country code. The `00` is an invalid country code for Thread country code, but it is the default country code for WiFi country code. If setiting the `00` as the Thread country code, the ThreadCountryCode throws an exception. This CL checks whether the country code is a valid Thread country code before setting the WiFi country code as the Thread country code. Bug: b/322404467 Test: atest ThreadNetworkUnitTests Change-Id: Ic5fd69fc254ee25ad1e75e17096a5f5310a9140f
-
Maciej Żenczykowski authored
this helper doesn't really help... all it does is a bpf map lookup and call a function on failure. Test: TreeHugger, atest libnetworkstats_test Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I7846eee3a37bcc8be82497cdf22ade5b214795da
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I1ad2d0dd288882e84925f0b59961dcd33612f3f7
-
- Jan 25, 2024
-
-
Maciej Żenczykowski authored
(class was fixed and then renamed) Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Idbcacf79b0a8bca81cd37ca0cbd593388df798d5
-
Maciej Żenczykowski authored
(class was fixed) Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Id5c67af2de5465dc12856f26e5dacec6d7138326
-
Maciej Żenczykowski authored
netd.o bpf program was mainlined in T Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I6d2b34e26f5640840b74d4c761b01668e44dc9d6
-
Motomu Utsumi authored
Memory leak was observed and inline mock is one of the reasons. This CL updates DevSdkIgnoreRunner to clear mock state if there is no thread leak. Test: TH Bug: 321603955 Change-Id: I50fd03f14c6703bd38b5729f577d7ea516cd5b44
-
Kangping Dong authored
This is the servide-side impl of the subtypes discovery added in aosp/2864728. See that CL for more backgrounds. Bug: 265095929 Test: atest CtsNetTestCases FrameworksNetTests Change-Id: I0c1d5038fc46347bfb6bec4fdec295ca815c0885
-
Kangping Dong authored
This commit adds support of discovering services with explicit subtype. With this change, a service can be discovered with subtype with: ``` nsdManager.discoverServices( new DiscoveryRequest.Builder("_http._tcp", PROTOCOL_DNS_SD) .setSubtype("_printer").build(), executor, listener); ``` Bug: 265095929 Test: atest CtsNetTestCases FrameworksNetTests Change-Id: Iba76283a003cf2d52a8c26e1de872c3e8e433350
-
Kangping Dong authored
-
Zhanglong Xia authored
Bug: b/309357909 Test: Run `atest ThreadNetworkUnitTests`. Change-Id: Ic3c9ef69fc77c44a50f6dc856e1af26c43be1aa2
-
Maciej Żenczykowski authored
-
Remi NGUYEN VAN authored
-
Junyu Lai authored
-