Skip to content
Snippets Groups Projects
  1. Jan 29, 2024
    • Handa Wang's avatar
      [mdns] avoid checking conflicts against the registration itself · 983448e3
      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
      983448e3
    • Handa Wang's avatar
      [mdns] stop MdnsAnnouncer when the registration has a conflict · cfe53ecb
      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
      cfe53ecb
    • Handa Wang's avatar
      [mdns] service-side impl for custom host · 096e32e0
      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
      096e32e0
    • Handa Wang's avatar
      [mdns] add API support for custom hostname · 1c2be6b3
      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
      1c2be6b3
  2. Jan 26, 2024
  3. Jan 25, 2024
Loading