Skip to content
Snippets Groups Projects
  • Yang Sun's avatar
    0797d9d5
    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
    History
    Add setEnabled API
    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
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
system-current.txt 37.56 KiB