Home
last modified time | relevance | path

Searched refs:mUwbSettingsStore (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbSettingsStoreTest.java72 private UwbSettingsStore mUwbSettingsStore; field in UwbSettingsStoreTest
82 mUwbSettingsStore = new UwbSettingsStore( in setUp()
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()
117 mUwbSettingsStore.unregisterChangeListener(SETTINGS_TOGGLE_STATE, listener); in testChangeListener()
118 mUwbSettingsStore.put(SETTINGS_TOGGLE_STATE, false); in testChangeListener()
129 mUwbSettingsStore.initialize(); in testLoadFromStore()
[all …]
DUwbServiceImplTest.java124 @Mock private UwbSettingsStore mUwbSettingsStore; field in UwbServiceImplTest
154 when(mUwbInjector.getUwbSettingsStore()).thenReturn(mUwbSettingsStore); in setUp()
155 when(mUwbSettingsStore.get(SETTINGS_TOGGLE_STATE)).thenReturn(true); in setUp()
156 when(mUwbSettingsStore.get(SETTINGS_FIRST_TOGGLE_DONE)).thenReturn(false); 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()
380 when(mUwbSettingsStore.get(SETTINGS_FIRST_TOGGLE_DONE)).thenReturn(false); in testInitializeWithUwbDisabledUntilFirstToggleFlagOn()
384 when(mUwbSettingsStore.get(SETTINGS_FIRST_TOGGLE_DONE)).thenReturn(true); in testInitializeWithUwbDisabledUntilFirstToggleFlagOn()
392 verify(mUwbSettingsStore).put(SETTINGS_TOGGLE_STATE, true); in testToggleStatePersistenceToSharedPrefs()
[all …]
DUwbCountryCodeTest.java97 @Mock UwbSettingsStore mUwbSettingsStore; field in UwbCountryCodeTest
150 when(mUwbInjector.getUwbSettingsStore()).thenReturn(mUwbSettingsStore); in setUp()
529 verify(mUwbSettingsStore).put( in testUseCacheWhenTelephonyAndWifiNotAvailable()
552 when(mUwbSettingsStore.get(UwbSettingsStore.SETTINGS_CACHED_COUNTRY_CODE)) in testUsePersistentCacheAtBootupWhenTelephonyAndWifiNotAvailable()
555 verify(mUwbSettingsStore).get(UwbSettingsStore.SETTINGS_CACHED_COUNTRY_CODE); in testUsePersistentCacheAtBootupWhenTelephonyAndWifiNotAvailable()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUciLogModeStore.java67 private final UwbSettingsStore mUwbSettingsStore; field in UciLogModeStore
70 mUwbSettingsStore = uwbSettingsStore; in UciLogModeStore()
79 mUwbSettingsStore.get(SETTINGS_LOG_MODE)); in initialize()
105 mUwbSettingsStore.put(SETTINGS_LOG_MODE, mLogMode.getMode()); in storeMode()
DUwbServiceImpl.java92 private final UwbSettingsStore mUwbSettingsStore; field in UwbServiceImpl
102 mUwbSettingsStore = uwbInjector.getUwbSettingsStore(); in UwbServiceImpl()
129 mUwbSettingsStore.initialize(); in initialize()
153 mUwbSettingsStore.dump(fd, pw, args); in dump()
576 mUwbSettingsStore.put(UwbSettingsStore.SETTINGS_TOGGLE_STATE, enabled); in persistUwbToggleState()
580 return mUwbSettingsStore.get(UwbSettingsStore.SETTINGS_FIRST_TOGGLE_DONE); in isUwbFirstToggleDone()
584 mUwbSettingsStore.put(UwbSettingsStore.SETTINGS_FIRST_TOGGLE_DONE, true); in persistUwbFirstToggleDone()
588 return mUwbSettingsStore.get(UwbSettingsStore.SETTINGS_TOGGLE_STATE); in isUwbToggleEnabled()
DUwbInjector.java107 private final UwbSettingsStore mUwbSettingsStore; field in UwbInjector
137 mUwbSettingsStore = new UwbSettingsStore( in UwbInjector()
142 mUciLogModeStore = new UciLogModeStore(mUwbSettingsStore); in UwbInjector()
195 return mUwbSettingsStore; in getUwbSettingsStore()