| commit | 97d6aeb3a27caec884cf2bbdb1a2c71e4403c0ef | [log] [tgz] |
|---|---|---|
| author | Kangping Dong <wgtdkp@google.com> | Fri Dec 08 15:51:09 2023 +0800 |
| committer | Kangping Dong <wgtdkp@google.com> | Thu Jan 25 20:15:21 2024 +0800 |
| tree | 9c90911d2014dec58d43d782fea97ef2d2de95f6 | |
| parent | 7b2643f65f8ea0beaf92a28a812bed9b137232a5 [diff] |
[mdns] add API for discovery with subtype
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