Skip to content
Snippets Groups Projects
  1. Jan 26, 2024
    • Yang Sun's avatar
      Add setEnabled API · 0797d9d5
      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
      0797d9d5
  2. Jan 25, 2024
  3. Jan 24, 2024
  4. Jan 23, 2024
    • Paul Hu's avatar
      Do not check active socket from other callbacks · 01d2f643
      Paul Hu authored
      Not all SocketTypeClients are cleaned up when their corresponding
      sockets are closed. This occurs because the active socket check
      for each callback examines the socket from all callbacks, even
      those scheduled for removal in later notifications. To fix this,
      check the active socket from the current callback only.
      
      Fix: 317461509
      Test: atest FrameworksNetTests NsdManagerTest
            Manually test with multiple discovery requests and
            Wifi on/off.
      Change-Id: I2f81bb8e75f2c038d5e9dc025b208dcc6b441112
      01d2f643
    • Remi NGUYEN VAN's avatar
      Implement offload priority · 5c9d6cbf
      Remi NGUYEN VAN authored
      Implement the TODO to assign priority to services based on an
      overlayable configuration.
      
      This changes the default priority from 0 to MAX_VALUE, as higher
      priority values are less prioritized, so services not in the priority
      list should have a high value. There is currently no user of the API
      depending on the priority, so the change should not affect clients.
      
      Test: atest
      Change-Id: I3aae9b5fa7756de64c63974c192e4c96b632ce4e
      5c9d6cbf
Loading