/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiKeyStoreTest.java | 63 private WifiKeyStore mWifiKeyStore; field in WifiKeyStoreTest 111 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig); in testRemoveKeysForAppInstalledCerts() 126 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig); in testRemoveKeysForMixedInstalledCerts1() 141 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig); in testRemoveKeysForMixedInstalledCerts2() 156 mWifiKeyStore.removeKeys(mWifiEnterpriseConfig); in testRemoveKeysForUserInstalledCerts() 168 assertTrue(mWifiKeyStore.updateNetworkKeys(config, null)); in testAddKeysForAppInstalledCerts() 196 assertTrue(mWifiKeyStore.updateNetworkKeys(savedNetwork, null)); in testAddRemoveFromBothSavedAndSuggestionNetwork() 230 mWifiKeyStore.removeKeys(savedNetwork.enterpriseConfig); in test_remove_empty_alias_enterprise_config() 231 mWifiKeyStore.removeKeys(suggestionNetwork.enterpriseConfig); in test_remove_empty_alias_enterprise_config() 624 assertFalse(mWifiKeyStore.updateNetworkKeys(config, null)); in testUpdateKeysKeyChainAliasNotGranted() [all …]
|
H A D | WifiNetworkSuggestionsManagerTest.java | 160 private @Mock WifiKeyStore mWifiKeyStore; field in WifiNetworkSuggestionsManagerTest 287 when(mWifiKeyStore.updateNetworkKeys(any(), any())).thenReturn(true); in setUp() 292 mWifiMetrics, mWifiCarrierInfoManager, mWifiKeyStore, in setUp() 469 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion1.wifiConfiguration), any())) in testAddRemoveEnterpriseNetworkSuggestion() 471 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion2.wifiConfiguration), any())) in testAddRemoveEnterpriseNetworkSuggestion() 490 verify(mWifiKeyStore).removeKeys(networkSuggestion1.wifiConfiguration.enterpriseConfig); in testAddRemoveEnterpriseNetworkSuggestion() 506 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion1.wifiConfiguration), any())) in testAddNetworkSuggestionWithInvalidKeyChainKeyAlias() 508 when(mWifiKeyStore.validateKeyChainAlias(any(String.class), anyInt())).thenReturn(false); in testAddNetworkSuggestionWithInvalidKeyChainKeyAlias() 527 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion1.wifiConfiguration), any())) in testAddNetworkSuggestionWithValidKeyChainKeyAlias() 529 when(mWifiKeyStore.validateKeyChainAlias(any(String.class), anyInt())).thenReturn(true); in testAddNetworkSuggestionWithValidKeyChainKeyAlias() [all …]
|
H A D | WifiConfigManagerTest.java | 164 @Mock private WifiKeyStore mWifiKeyStore; field in WifiConfigManagerTest 278 when(mWifiKeyStore in setUp() 1019 verify(mWifiKeyStore, never()).updateNetworkKeys(any(), any()); in testAddSingleSuggestionNetwork() 1032 verify(mWifiKeyStore, never()).removeKeys(any()); in testAddSingleSuggestionNetwork() 1292 verify(mWifiKeyStore, never()).removeKeys(any(WifiEnterpriseConfig.class)); in testRemovePasspointNetworkAddedByOther() 1825 when(mWifiKeyStore in testUpdateSingleNetworkFailureDoesNotModifyOriginal() 4168 }).when(mWifiKeyStore).updateNetworkKeys( in testUpdateSingleNetworkWithKeysUpdate() 5325 mWifiKeyStore, mWifiConfigStore, in createWifiConfigManager() 5703 verify(mWifiKeyStore, never()).updateNetworkKeys(any(WifiConfiguration.class), in verifyAddPasspointNetworkToWifiConfigManager() 5802 verify(mWifiKeyStore, never()).removeKeys(any(WifiEnterpriseConfig.class)); in verifyRemovePasspointNetworkFromWifiConfigManager()
|
/aosp12/packages/apps/Settings/src/com/android/settings/security/ |
H A D | ResetCredentialsPreferenceController.java | 40 private final KeyStore mWifiKeyStore; field in ResetCredentialsPreferenceController 63 mWifiKeyStore = keyStore; in ResetCredentialsPreferenceController() 87 || (mWifiKeyStore != null in onResume() 88 && mWifiKeyStore.aliases().hasMoreElements()); in onResume()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
H A D | PasspointManagerTest.java | 193 @Mock WifiKeyStore mWifiKeyStore; field in PasspointManagerTest 265 mWifiKeyStore, mClock, mObjectFactory, mWifiConfigManager, in setUp() 413 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addTestProvider() 580 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addProviderWithBackgroundUser() 601 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addRemoveSavedProviderWithValidUserCredential() 758 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addRemoveSavedProviderWithValidSimCredential() 823 mWifiKeyStore, mClock, spyFactory, mWifiConfigManager, in addProviderWithValidFullImsiOfSimCredential() 958 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addProviderWithR1ConfigPrivateCaCert() 980 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in addProviderWithR2Config() 1639 when(mObjectFactory.makePasspointProvider(eq(config), eq(mWifiKeyStore), in verifyProviderIndexAfterDataSourceUpdate() [all …]
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | WifiInjector.java | 172 private final WifiKeyStore mWifiKeyStore; field in WifiInjector 334 mWifiKeyStore = new WifiKeyStore(mContext, mKeyStore, mFrameworkFacade); in WifiInjector() 369 mWifiKeyStore, mWifiConfigStore, mWifiPermissionsUtil, in WifiInjector() 405 mWifiCarrierInfoManager, mWifiKeyStore, mLruConnectionTracker, in WifiInjector() 408 wifiHandler, mWifiNative, mWifiKeyStore, mClock, new PasspointObjectFactory(), in WifiInjector()
|
H A D | WifiNetworkSuggestionsManager.java | 161 private final WifiKeyStore mWifiKeyStore; field in WifiNetworkSuggestionsManager 665 mWifiKeyStore = keyStore; in WifiNetworkSuggestionsManager() 1012 if (!mWifiKeyStore.updateNetworkKeys(ewns.wns.wifiConfiguration, null)) { in add() 1095 if (alias != null && !mWifiKeyStore.validateKeyChainAlias(alias, uid)) { in validateNetworkSuggestions() 1272 mWifiKeyStore.removeKeys(ewns.wns.wifiConfiguration.enterpriseConfig); in removeInternal()
|
H A D | WifiConfigManager.java | 254 private final WifiKeyStore mWifiKeyStore; field in WifiConfigManager 378 mWifiKeyStore = wifiKeyStore; in WifiConfigManager() 612 mWifiKeyStore.enableVerboseLogging(mVerboseLoggingEnabled); in enableVerboseLogging() 1329 if (!(mWifiKeyStore.updateNetworkKeys(newInternalConfig, existingInternalConfig))) { in addOrUpdateNetworkInternal() 1556 mWifiKeyStore.removeKeys(config.enterpriseConfig); in removeNetworkInternal()
|