Home
last modified time | relevance | path

Searched refs:mWifiSettingsConfigStore (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiSettingsConfigStoreTest.java74 private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiSettingsConfigStoreTest
81 mWifiSettingsConfigStore = in setUp()
96 assertFalse(mWifiSettingsConfigStore.get(WIFI_VERBOSE_LOGGING_ENABLED)); in testSetterGetter()
97 mWifiSettingsConfigStore.put(WIFI_VERBOSE_LOGGING_ENABLED, true); in testSetterGetter()
99 assertTrue(mWifiSettingsConfigStore.get(WIFI_VERBOSE_LOGGING_ENABLED)); in testSetterGetter()
107 mWifiSettingsConfigStore.registerChangeListener(WIFI_VERBOSE_LOGGING_ENABLED, listener, in testChangeListener()
109 mWifiSettingsConfigStore.put(WIFI_VERBOSE_LOGGING_ENABLED, true); in testChangeListener()
113 mWifiSettingsConfigStore.unregisterChangeListener(WIFI_VERBOSE_LOGGING_ENABLED, listener); in testChangeListener()
114 mWifiSettingsConfigStore.put(WIFI_VERBOSE_LOGGING_ENABLED, false); in testChangeListener()
131 assertTrue(mWifiSettingsConfigStore.get(WIFI_VERBOSE_LOGGING_ENABLED)); in testSaveAndLoadFromStore()
[all …]
DWifiSettingsBackupRestoreTest.java48 @Mock WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiSettingsBackupRestoreTest
76 when(mWifiSettingsConfigStore.getAllKeys()).thenReturn(TEST_KEYS); in setUp()
77 when(mWifiSettingsConfigStore.getAllBackupRestoreKeys()).thenReturn(TEST_KEYS); in setUp()
78 mWifiSettingsBackupRestore = new WifiSettingsBackupRestore(mWifiSettingsConfigStore); in setUp()
102 for (WifiSettingsConfigStore.Key key : mWifiSettingsConfigStore.getAllKeys()) { in testBackupWifiSettings()
119 verify(mWifiSettingsConfigStore).put(eq(WifiSettingsConfigStore.WIFI_WEP_ALLOWED), in testRestoreWifiSettings()
130 verify(mWifiSettingsConfigStore, never()).put(any(), any()); in testRestoreWifiSettingsWithUnknownTag()
DWifiSettingsStoreTest.java82 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiSettingsStoreTest
119 mWifiSettingsStore = new WifiSettingsStore(mContext, mWifiSettingsConfigStore, in setUp()
DWifiServiceImplTest.java458 @Mock WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiServiceImplTest
625 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setUp()
653 when(mWifiSettingsConfigStore.get(eq(WIFI_VERBOSE_LOGGING_ENABLED))).thenReturn(true); in setUp()
654 when(mWifiSettingsConfigStore.get( in setUp()
704 when(mWifiSettingsConfigStore.get(eq(WIFI_WEP_ALLOWED))).thenReturn(true); in setUp()
2017 when(mWifiSettingsConfigStore.get(eq(WIFI_VERBOSE_LOGGING_ENABLED))).thenReturn(true); in testWifiVerboseLoggingInitialization()
5253 verify(mWifiSettingsConfigStore).put(WIFI_VERBOSE_LOGGING_ENABLED, true); in testVerboseLoggingListener()
5323 verify(mWifiSettingsConfigStore).put(WIFI_VERBOSE_LOGGING_ENABLED, true); in testEnableVerboseLoggingWithNetworkSettingsPermission()
5341 verify(mWifiSettingsConfigStore).put(WIFI_VERBOSE_LOGGING_ENABLED, true); in testEnableShowKeyVerboseLoggingWithNetworkSettingsPermission()
5383 verify(mWifiSettingsConfigStore, never()).put( in testEnableVerboseLoggingWithNoNetworkSettingsPermission()
[all …]
DScanRequestProxyTest.java94 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in ScanRequestProxyTest
153 when(mWifiSettingsConfigStore.get(eq(WIFI_SCAN_THROTTLE_ENABLED))).thenReturn(true); in setUp()
158 threadRunner, mWifiSettingsConfigStore); in setUp()
775 verify(mWifiSettingsConfigStore).put(WIFI_SCAN_THROTTLE_ENABLED, false); in testSuccessiveScanRequestFromSameAppWhenThrottlingIsDisabledNotThrottled()
DHalDeviceManagerTest.java135 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in HalDeviceManagerTest
192 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in before()
814 when(mWifiSettingsConfigStore.get(WifiSettingsConfigStore.WIFI_STATIC_CHIP_INFO)) in testSecondaryInternetStaTreatedAsOpportunistic()
892 when(mWifiSettingsConfigStore.get(WifiSettingsConfigStore.WIFI_STATIC_CHIP_INFO)) in testDisconnectedP2pTreatedAsOpportunisticAfterTimeout()
1631 verify(mWifiSettingsConfigStore).put(eq(WifiSettingsConfigStore.WIFI_STATIC_CHIP_INFO), in testCanDeviceSupportCreateTypeComboChipV1()
1693 when(mWifiSettingsConfigStore.get(WifiSettingsConfigStore.WIFI_STATIC_CHIP_INFO)) in testCanDeviceSupportCreateTypeComboChipV1WithStoredStaticChipInfo()
1781 when(mWifiSettingsConfigStore.get(WifiSettingsConfigStore.WIFI_STATIC_CHIP_INFO)) in testCanDeviceSupportCreateTypeComboChipV1WithOutdatedStoredStaticChipInfo()
1819 verify(mWifiSettingsConfigStore) in testCanDeviceSupportCreateTypeComboChipV1WithOutdatedStoredStaticChipInfo()
2190 when(mWifiSettingsConfigStore.get(WifiSettingsConfigStore.WIFI_STATIC_CHIP_INFO)) in testCanDeviceSupportIfaceComboTestChipV2()
3447 when(mWifiSettingsConfigStore.get(WifiSettingsConfigStore.WIFI_STATIC_CHIP_INFO)) in testCanDeviceSupportIfaceComboTestChipV6()
[all …]
DWifiApConfigStoreTest.java116 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiApConfigStoreTest
136 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setUp()
201 verify(mWifiSettingsConfigStore).registerChangeListener( in createWifiApConfigStore()
DWifiNativeInterfaceManagementTest.java123 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiNativeInterfaceManagementTest
220 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setUp()
233 when(mWifiSettingsConfigStore.get( in setUp()
236 when(mWifiSettingsConfigStore.get( in setUp()
DSupplicantStaIfaceHalAidlImplTest.java195 private @Mock WifiSettingsConfigStore mWifiSettingsConfigStore; field in SupplicantStaIfaceHalAidlImplTest
265 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setUp()
3321 verify(mWifiSettingsConfigStore).put(any(), anyInt()); in testServiceVersionCaching()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiSettingsBackupRestore.java47 private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiSettingsBackupRestore
55 mWifiSettingsConfigStore = settingsConfigStore; in WifiSettingsBackupRestore()
56 for (WifiSettingsConfigStore.Key key : mWifiSettingsConfigStore.getAllKeys()) { in WifiSettingsBackupRestore()
76 : mWifiSettingsConfigStore.getAllBackupRestoreKeys()) { in retrieveBackupDataFromSettingsConfigStore()
77 backupSettingsMap.put(key.key, mWifiSettingsConfigStore.get(key)); in retrieveBackupDataFromSettingsConfigStore()
113 mWifiSettingsConfigStore.put(mRestoreSettingsMap.get(keyString), in restoreSettingsFromBackupData()
DWifiApConfigStore.java91 private final WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiApConfigStore
153 mWifiSettingsConfigStore = wifiInjector.getSettingsConfigStore(); in WifiApConfigStore()
154 mWifiSettingsConfigStore.registerChangeListener(WIFI_STATIC_CHIP_INFO, in WifiApConfigStore()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java272 @Mock WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiP2pServiceImplTest
1404 when(mWifiSettingsConfigStore.get(eq(WIFI_P2P_DEVICE_ADDRESS))).thenReturn(thisDeviceMac); in setUpWifiP2pServiceImpl()
1405 when(mWifiSettingsConfigStore.get(eq(WIFI_P2P_DEVICE_NAME))).thenReturn(thisDeviceName); in setUpWifiP2pServiceImpl()
1406 when(mWifiSettingsConfigStore.get(eq(WIFI_P2P_PENDING_FACTORY_RESET))).thenReturn(false); in setUpWifiP2pServiceImpl()
1407 when(mWifiSettingsConfigStore.get(eq(D2D_ALLOWED_WHEN_INFRA_STA_DISABLED))) in setUpWifiP2pServiceImpl()
1441 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setUpWifiP2pServiceImpl()
1504 when(mWifiSettingsConfigStore.get(eq(WIFI_VERBOSE_LOGGING_ENABLED))).thenReturn(true); in setUpWifiP2pServiceImpl()
1542 verify(mWifiSettingsConfigStore).registerChangeListener( in setUpWifiP2pServiceImpl()
4123 when(mWifiSettingsConfigStore.get(eq(WIFI_P2P_DEVICE_NAME))).thenReturn(null); in setupDefaultDeviceNameCustomization()
4212 when(mWifiSettingsConfigStore.get(eq(WIFI_P2P_DEVICE_NAME))).thenReturn(""); in testCustomizeDefaultDeviceNameWithEmptySavedNameOnSorOlder()
[all …]
DSupplicantP2pIfaceHalAidlImplTest.java113 private @Mock WifiSettingsConfigStore mWifiSettingsConfigStore; field in SupplicantP2pIfaceHalAidlImplTest
1479 when(mWifiSettingsConfigStore in setCachedServiceVersion()
1482 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setCachedServiceVersion()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java130 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiAwareServiceImplTest
182 when(mWifiSettingsConfigStore.get(WIFI_AWARE_VERBOSE_LOGGING_ENABLED)) in setup()
201 mWifiSettingsConfigStore, in setup()
DWifiAwareDataPathStateManagerTest.java168 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiAwareDataPathStateManagerTest
220 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setUp()
DWifiAwareStateManagerTest.java188 @Mock private WifiSettingsConfigStore mWifiSettingsConfigStore; field in WifiAwareStateManagerTest
270 when(mWifiInjector.getSettingsConfigStore()).thenReturn(mWifiSettingsConfigStore); in setUp()
300 verify(mWifiSettingsConfigStore).registerChangeListener( in setUp()
5817 when(mWifiSettingsConfigStore.get(D2D_ALLOWED_WHEN_INFRA_STA_DISABLED)) in simulateD2dAllowedChange()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java180 WifiSettingsConfigStore mWifiSettingsConfigStore; field in RttServiceImplTest
238 when(mWifiSettingsConfigStore.get(eq(WIFI_VERBOSE_LOGGING_ENABLED))).thenReturn(true); in setUp()
251 mockPermissionUtil, mWifiSettingsConfigStore, mockHalDeviceManager); in setUp() local