Searched refs:SETTINGS_TOGGLE_STATE (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbSettingsStoreTest.java | 19 import static com.android.server.uwb.UwbSettingsStore.SETTINGS_TOGGLE_STATE; 96 assertThat(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).isTrue(); in testSetterGetter() 97 mUwbSettingsStore.put(SETTINGS_TOGGLE_STATE, false); in testSetterGetter() 99 assertThat(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).isFalse(); in testSetterGetter() 110 mUwbSettingsStore.registerChangeListener(SETTINGS_TOGGLE_STATE, listener, in testChangeListener() 113 mUwbSettingsStore.put(SETTINGS_TOGGLE_STATE, true); in testChangeListener() 115 verify(listener).onSettingsChanged(SETTINGS_TOGGLE_STATE, true); in testChangeListener() 117 mUwbSettingsStore.unregisterChangeListener(SETTINGS_TOGGLE_STATE, listener); in testChangeListener() 118 mUwbSettingsStore.put(SETTINGS_TOGGLE_STATE, false); in testChangeListener() 125 byte[] data = createXmlForParsing(SETTINGS_TOGGLE_STATE.key, false); in testLoadFromStore() [all …]
|
D | UwbServiceImplTest.java | 26 import static com.android.server.uwb.UwbSettingsStore.SETTINGS_TOGGLE_STATE; 155 when(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).thenReturn(true); in setUp() 366 when(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).thenReturn(true); in testInitialize() 370 when(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).thenReturn(false); in testInitialize() 378 when(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).thenReturn(true); in testInitializeWithUwbDisabledUntilFirstToggleFlagOn() 392 verify(mUwbSettingsStore).put(SETTINGS_TOGGLE_STATE, true); in testToggleStatePersistenceToSharedPrefs() 395 when(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).thenReturn(false); in testToggleStatePersistenceToSharedPrefs() 397 verify(mUwbSettingsStore).put(SETTINGS_TOGGLE_STATE, false); in testToggleStatePersistenceToSharedPrefs() 407 verify(mUwbSettingsStore).put(SETTINGS_TOGGLE_STATE, true); in testToggleStatePersistenceToSharedPrefsWithUwbDisabledUntilFirstToggleFlagOn() 411 when(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).thenReturn(false); in testToggleStatePersistenceToSharedPrefsWithUwbDisabledUntilFirstToggleFlagOn() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbSettingsStore.java | 85 public static final Key<Boolean> SETTINGS_TOGGLE_STATE = field in UwbSettingsStore 149 put(SETTINGS_TOGGLE_STATE, toggleEnabled); in initialize()
|
D | UwbServiceImpl.java | 576 mUwbSettingsStore.put(UwbSettingsStore.SETTINGS_TOGGLE_STATE, enabled); in persistUwbToggleState() 588 return mUwbSettingsStore.get(UwbSettingsStore.SETTINGS_TOGGLE_STATE); in isUwbToggleEnabled()
|