Home
last modified time | relevance | path

Searched refs:mWifiKeyStore (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiKeyStoreTest.java64 private WifiKeyStore mWifiKeyStore; field in WifiKeyStoreTest
81 mWifiKeyStore = new WifiKeyStore(mContext, mKeyStore, mFrameworkFacade); in setUp()
112 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig, false); in testRemoveKeysForAppInstalledCerts()
127 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig, false); in testRemoveKeysForMixedInstalledCerts1()
142 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig, false); in testRemoveKeysForMixedInstalledCerts2()
157 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig, false); in testRemoveKeysForUserInstalledCerts()
169 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig, true); in testForceRemoveKeysForUserInstalledCerts()
186 assertTrue(mWifiKeyStore.updateNetworkKeys(config, null)); in testAddKeysForAppInstalledCerts()
214 assertTrue(mWifiKeyStore.updateNetworkKeys(savedNetwork, null)); in testAddRemoveFromBothSavedAndSuggestionNetwork()
215 assertTrue(mWifiKeyStore.updateNetworkKeys(suggestionNetwork, null)); in testAddRemoveFromBothSavedAndSuggestionNetwork()
[all …]
DWifiNetworkSuggestionsManagerTest.java185 private @Mock WifiKeyStore mWifiKeyStore; field in WifiNetworkSuggestionsManagerTest
303 when(mWifiKeyStore.updateNetworkKeys(any(), any())).thenReturn(true); in setUp()
315 mWifiKeyStore, in setUp()
492 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion1.wifiConfiguration), any())) in testAddRemoveEnterpriseNetworkSuggestion()
494 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion2.wifiConfiguration), any())) in testAddRemoveEnterpriseNetworkSuggestion()
514 verify(mWifiKeyStore).removeKeys(eq(networkSuggestion1.wifiConfiguration.enterpriseConfig), in testAddRemoveEnterpriseNetworkSuggestion()
531 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion1.wifiConfiguration), any())) in testAddNetworkSuggestionWithInvalidKeyChainKeyAlias()
533 when(mWifiKeyStore.validateKeyChainAlias(any(String.class), anyInt())).thenReturn(false); in testAddNetworkSuggestionWithInvalidKeyChainKeyAlias()
552 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion1.wifiConfiguration), any())) in testAddNetworkSuggestionWithValidKeyChainKeyAlias()
554 when(mWifiKeyStore.validateKeyChainAlias(any(String.class), anyInt())).thenReturn(true); in testAddNetworkSuggestionWithValidKeyChainKeyAlias()
[all …]
DWifiConfigManagerTest.java186 @Mock private WifiKeyStore mWifiKeyStore; field in WifiConfigManagerTest
312 when(mWifiKeyStore in setUp()
1227 verify(mWifiKeyStore, never()).updateNetworkKeys(any(), any()); in testAddSingleSuggestionNetwork()
1240 verify(mWifiKeyStore, never()).removeKeys(any(), eq(false)); in testAddSingleSuggestionNetwork()
1523 verify(mWifiKeyStore, never()).removeKeys(any(WifiEnterpriseConfig.class), eq(false)); in testRemovePasspointNetworkAddedByOther()
2172 when(mWifiKeyStore in testUpdateSingleNetworkFailureDoesNotModifyOriginal()
4628 }).when(mWifiKeyStore).updateNetworkKeys( in testUpdateSingleNetworkWithKeysUpdate()
5793 mWifiKeyStore, in createWifiConfigManager()
6194 verify(mWifiKeyStore, never()).updateNetworkKeys(any(WifiConfiguration.class), in verifyAddPasspointNetworkToWifiConfigManager()
6299 verify(mWifiKeyStore, never()).removeKeys(any(WifiEnterpriseConfig.class), eq(false)); in verifyRemovePasspointNetworkFromWifiConfigManager()
DWifiServiceImplTest.java495 @Mock WifiKeyStore mWifiKeyStore; field in WifiServiceImplTest
687 when(mWifiInjector.getWifiKeyStore()).thenReturn(mWifiKeyStore); in setUp()
6772 verify(mWifiKeyStore).removeKeys(eapNetwork.enterpriseConfig, true); in testFactoryReset()
/packages/apps/Settings/src/com/android/settings/security/
DResetCredentialsPreferenceController.java40 private final KeyStore mWifiKeyStore; field in ResetCredentialsPreferenceController
63 mWifiKeyStore = keyStore; in ResetCredentialsPreferenceController()
87 || (mWifiKeyStore != null in onResume()
88 && mWifiKeyStore.aliases().hasMoreElements()); in onResume()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java200 @Mock WifiKeyStore mWifiKeyStore; field in PasspointManagerTest
290 mWifiKeyStore, mClock, mObjectFactory, mWifiConfigManager, in setUp()
452 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addTestProvider()
621 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addProviderWithBackgroundUser()
642 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addRemoveSavedProviderWithValidUserCredential()
799 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addRemoveSavedProviderWithValidSimCredential()
858 when(mWifiKeyStore.putCaCertInKeyStore(any(String.class), any(Certificate.class))) in addProviderWithValidFullImsiOfSimCredential()
864 mWifiKeyStore, mClock, spyFactory, mWifiConfigManager, in addProviderWithValidFullImsiOfSimCredential()
886 when(mObjectFactory.makePasspointProvider(eq(origConfig), eq(mWifiKeyStore), in addSavedProviderWithExistingConfig()
941 when(mObjectFactory.makePasspointProvider(eq(newConfig), eq(mWifiKeyStore), in addSavedProviderWithExistingConfig()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java194 private final WifiKeyStore mWifiKeyStore; field in WifiInjector
380 mWifiKeyStore = new WifiKeyStore(mContext, mKeyStore, mFrameworkFacade); in WifiInjector()
434 mWifiKeyStore, in WifiInjector()
476 mWifiCarrierInfoManager, mWifiKeyStore, mLruConnectionTracker, in WifiInjector()
479 wifiHandler, mWifiNative, mWifiKeyStore, mClock, new PasspointObjectFactory(), in WifiInjector()
1258 return mWifiKeyStore; in getWifiKeyStore()
DWifiNetworkSuggestionsManager.java173 private final WifiKeyStore mWifiKeyStore; field in WifiNetworkSuggestionsManager
680 mWifiKeyStore = keyStore; in WifiNetworkSuggestionsManager()
1031 if (!mWifiKeyStore.updateNetworkKeys(ewns.wns.wifiConfiguration, null)) { in add()
1143 if (alias != null && !mWifiKeyStore.validateKeyChainAlias(alias, uid)) { in validateNetworkSuggestions()
1368 mWifiKeyStore.removeKeys(ewns.wns.wifiConfiguration.enterpriseConfig, false); in removeNetworkSuggestionCache()
DWifiConfigManager.java302 private final WifiKeyStore mWifiKeyStore; field in WifiConfigManager
454 mWifiKeyStore = wifiKeyStore; in WifiConfigManager()
680 mWifiKeyStore.enableVerboseLogging(mVerboseLoggingEnabled); in enableVerboseLogging()
1574 if (!(mWifiKeyStore.updateNetworkKeys(newInternalConfig, existingInternalConfig))) { in addOrUpdateNetworkInternal()
1929 mWifiKeyStore.removeKeys(config.enterpriseConfig, false); in removeNetworkInternal()