Home
last modified time | relevance | path

Searched refs:THREAD_ENABLED (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadPersistentSettingsTest.java20 import static com.android.server.thread.ThreadPersistentSettings.THREAD_ENABLED;
87 byte[] data = createXmlForParsing(THREAD_ENABLED.key, false); in initialize_readsFromFile()
92 assertThat(mThreadPersistentSettings.get(THREAD_ENABLED)).isFalse(); in initialize_readsFromFile()
102 assertThat(mThreadPersistentSettings.get(THREAD_ENABLED)).isFalse(); in initialize_ThreadDisabledInResources_returnsThreadDisabled()
109 byte[] data = createXmlForParsing(THREAD_ENABLED.key, true); in initialize_ThreadDisabledInResourcesButEnabledInXml_returnsThreadEnabled()
114 assertThat(mThreadPersistentSettings.get(THREAD_ENABLED)).isTrue(); in initialize_ThreadDisabledInResourcesButEnabledInXml_returnsThreadEnabled()
119 mThreadPersistentSettings.put(THREAD_ENABLED.key, true); in put_ThreadFeatureEnabledTrue_returnsTrue()
121 assertThat(mThreadPersistentSettings.get(THREAD_ENABLED)).isTrue(); in put_ThreadFeatureEnabledTrue_returnsTrue()
129 mThreadPersistentSettings.put(THREAD_ENABLED.key, false); in put_ThreadFeatureEnabledFalse_returnsFalse()
131 assertThat(mThreadPersistentSettings.get(THREAD_ENABLED)).isFalse(); in put_ThreadFeatureEnabledFalse_returnsFalse()
DThreadNetworkControllerServiceTest.java405 assertThat(mPersistentSettings.get(ThreadPersistentSettings.THREAD_ENABLED)).isTrue(); in userRestriction_userBecomesRestricted_stateIsDisabledButNotPersisted()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadPersistentSettings.java64 public static final Key<Boolean> THREAD_ENABLED = new Key<>("thread_enabled", true); field in ThreadPersistentSettings
105 if (!mSettings.containsKey(THREAD_ENABLED.key)) { in initialize()
108 THREAD_ENABLED.key, in initialize()
DThreadNetworkControllerService.java501 mPersistentSettings.put(ThreadPersistentSettings.THREAD_ENABLED.key, isEnabled); in setEnabledInternal()
646 && mPersistentSettings.get(ThreadPersistentSettings.THREAD_ENABLED); in shouldEnableThread()