Home
last modified time | relevance | path

Searched refs:ThreadNetworkController (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/connecteddevice/threadnetwork/
DFakeThreadNetworkController.kt18 import android.net.thread.ThreadNetworkController
27 var registeredStateCallback: ThreadNetworkController.StateCallback? = null
40 ThreadNetworkController.STATE_DISABLING in setEnabled()
45 ThreadNetworkController.STATE_DISABLED in setEnabled()
51 ThreadNetworkController.STATE_ENABLED in setEnabled()
61 callback: ThreadNetworkController.StateCallback in registerStateCallback()
66 … if (isEnabled) ThreadNetworkController.STATE_ENABLED else ThreadNetworkController.STATE_DISABLED in registerStateCallback()
70 override fun unregisterStateCallback(callback: ThreadNetworkController.StateCallback) { in unregisterStateCallback()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkControllerTest.java26 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_CHILD;
27 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_LEADER;
28 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_ROUTER;
29 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_STOPPED;
30 import static android.net.thread.ThreadNetworkController.STATE_DISABLED;
31 import static android.net.thread.ThreadNetworkController.STATE_DISABLING;
32 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;
33 import static android.net.thread.ThreadNetworkController.THREAD_VERSION_1_3;
60 import android.net.thread.ThreadNetworkController;
61 import android.net.thread.ThreadNetworkController.OperationalDatasetCallback;
[all …]
DThreadNetworkManagerTest.java27 import android.net.thread.ThreadNetworkController;
106 List<ThreadNetworkController> controllers = mManager.getAllThreadNetworkControllers(); in getAllThreadNetworkControllers_managerIsNotNull_returnsNotEmptyList()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkManager.java94 @NonNull private final List<ThreadNetworkController> mUnmodifiableControllerServices;
106 private static List<ThreadNetworkController> makeControllers( in makeControllers()
119 return CollectionUtils.map(controllerServices, ThreadNetworkController::new); in makeControllers()
123 @NonNull Context context, @NonNull List<ThreadNetworkController> controllerServices) { in ThreadNetworkManager()
130 public List<ThreadNetworkController> getAllThreadNetworkControllers() { in getAllThreadNetworkControllers()
DThreadNetworkController.java55 public final class ThreadNetworkController { class
128 public ThreadNetworkController(@NonNull IThreadNetworkController controllerService) { in ThreadNetworkController() method in ThreadNetworkController
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/
DThreadNetworkSettingsFragment.java31 import android.net.thread.ThreadNetworkController;
58 private ThreadNetworkController mThreadController;
77 case ThreadNetworkController.DEVICE_ROLE_STOPPED: in deviceRoleToString()
79 case ThreadNetworkController.DEVICE_ROLE_DETACHED: in deviceRoleToString()
81 case ThreadNetworkController.DEVICE_ROLE_CHILD: in deviceRoleToString()
83 case ThreadNetworkController.DEVICE_ROLE_ROUTER: in deviceRoleToString()
85 case ThreadNetworkController.DEVICE_ROLE_LEADER: in deviceRoleToString()
135 new ThreadNetworkController.StateCallback() { in onViewCreated()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DThreadNetworkControllerWrapper.java32 import android.net.thread.ThreadNetworkController;
33 import android.net.thread.ThreadNetworkController.StateCallback;
51 private final ThreadNetworkController mController;
66 private ThreadNetworkControllerWrapper(ThreadNetworkController controller) { in ThreadNetworkControllerWrapper()
162 ThreadNetworkController.StateCallback callback = in waitForRoleAnyOf()
DIntegrationTestUtils.java39 import android.net.thread.ThreadNetworkController;
142 ThreadNetworkController controller, List<Integer> deviceRoles, Duration timeout) in waitForStateAnyOf()
145 ThreadNetworkController.StateCallback callback = in waitForStateAnyOf()
/packages/apps/Settings/src/com/android/settings/connecteddevice/threadnetwork/
DThreadNetworkFragmentController.kt20 import android.net.thread.ThreadNetworkController in <lambda>()
21 import android.net.thread.ThreadNetworkController.StateCallback in <lambda>()
101 threadEnabled = enabledState == ThreadNetworkController.STATE_ENABLED in <lambda>()
DThreadNetworkToggleController.kt19 import android.net.thread.ThreadNetworkController in <lambda>()
20 import android.net.thread.ThreadNetworkController.StateCallback in <lambda>()
66 threadEnabled = enabledState == ThreadNetworkController.STATE_ENABLED in <lambda>()
DBaseThreadNetworkController.kt19 import android.net.thread.ThreadNetworkController
20 import android.net.thread.ThreadNetworkController.StateCallback
DThreadNetworkUtils.kt21 import android.net.thread.ThreadNetworkController
22 import android.net.thread.ThreadNetworkController.StateCallback
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/
DThreadNetworkControllerTest.java19 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_CHILD;
32 import android.net.thread.ThreadNetworkController.OperationalDatasetCallback;
33 import android.net.thread.ThreadNetworkController.StateCallback;
58 private ThreadNetworkController mController;
92 mController = new ThreadNetworkController(mMockService); in setUp()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadNetworkShellCommandTest.java19 import static android.net.thread.ThreadNetworkController.STATE_DISABLED;
20 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;
DThreadIntegrationTest.java19 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_DETACHED;
20 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_LEADER;
21 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_STOPPED;
DThreadNetworkControllerTest.java73 private ThreadNetworkController mController;
/packages/modules/Connectivity/framework-t/api/
Dsystem-lint-baseline.txt156 UnflaggedApi: android.net.thread.ThreadNetworkController:
157 New API must be flagged with @FlaggedApi: class android.net.thread.ThreadNetworkController
158 UnflaggedApi: android.net.thread.ThreadNetworkController#THREAD_VERSION_1_3:
159 …New API must be flagged with @FlaggedApi: field android.net.thread.ThreadNetworkController.THREAD_…
160 UnflaggedApi: android.net.thread.ThreadNetworkController#getThreadVersion():
161 …New API must be flagged with @FlaggedApi: method android.net.thread.ThreadNetworkController.getThr…
Dsystem-current.txt500 …ggedApi("com.android.net.thread.flags.thread_enabled") public final class ThreadNetworkController {
506 …nNull java.util.concurrent.Executor, @NonNull android.net.thread.ThreadNetworkController.Operation…
507 …nNull java.util.concurrent.Executor, @NonNull android.net.thread.ThreadNetworkController.StateCall…
510 …unregisterOperationalDatasetCallback(@NonNull android.net.thread.ThreadNetworkController.Operation…
511 … public void unregisterStateCallback(@NonNull android.net.thread.ThreadNetworkController.StateCall…
523 public static interface ThreadNetworkController.OperationalDatasetCallback {
528 public static interface ThreadNetworkController.StateCallback {
552 …method @NonNull public java.util.List<android.net.thread.ThreadNetworkController> getAllThreadNetw…
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java28 import static android.net.thread.ThreadNetworkController.DEVICE_ROLE_DETACHED;
29 import static android.net.thread.ThreadNetworkController.STATE_DISABLED;
30 import static android.net.thread.ThreadNetworkController.STATE_DISABLING;
31 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;
32 import static android.net.thread.ThreadNetworkController.THREAD_VERSION_1_3;
100 import android.net.thread.ThreadNetworkController;
101 import android.net.thread.ThreadNetworkController.DeviceRole;
1247 if (ThreadNetworkController.isAttached(deviceRole)) {
1458 if (!ThreadNetworkController.isAttached(deviceRole)) {
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkControllerServiceTest.java20 import static android.net.thread.ThreadNetworkController.STATE_DISABLED;
21 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;