/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | CarrierNetworkConfigTest.java | 73 CarrierNetworkConfig mCarrierNetworkConfig; field in CarrierNetworkConfigTest 115 mCarrierNetworkConfig = new CarrierNetworkConfig(mContext, mLooper.getLooper(), in setUp() 138 assertTrue(mCarrierNetworkConfig.isCarrierNetwork(TEST_SSID)); in getExistingCarrierNetworkInfo() 139 assertEquals(TEST_INTERNAL_EAP_TYPE, mCarrierNetworkConfig.getNetworkEapType(TEST_SSID)); in getExistingCarrierNetworkInfo() 140 assertEquals(TEST_CARRIER_NAME, mCarrierNetworkConfig.getCarrierName(TEST_SSID)); in getExistingCarrierNetworkInfo() 156 mCarrierNetworkConfig = new CarrierNetworkConfig(mContext, mLooper.getLooper(), in getExistingCarrierNetworkInfo_nullDisplayName_shouldNotThrowNpe() 160 assertEquals("", mCarrierNetworkConfig.getCarrierName(TEST_SSID)); in getExistingCarrierNetworkInfo_nullDisplayName_shouldNotThrowNpe() 172 assertTrue(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()); in verifyIsCarrierEncryptionInfoAvailableReturnsTrueWhenEncryptionInfoIsAvailable() 189 assertFalse(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()); in verifyIsCarrierEncryptionInfoAvailableReturnsFalseWhenEncryptionInfoNotAvailable() 202 assertFalse(mCarrierNetworkConfig.isCarrierNetwork(dummySsid)); in getNonCarrierNetworkInfo() [all …]
|
D | CarrierNetworkEvaluatorTest.java | 78 @Mock private CarrierNetworkConfig mCarrierNetworkConfig; field in CarrierNetworkEvaluatorTest 158 mDut = new CarrierNetworkEvaluator(mWifiConfigManager, mCarrierNetworkConfig, mLocalLog, in setUp() 165 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in setUp() 167 when(mCarrierNetworkConfig.isCarrierNetwork(eq(CARRIER1_SSID.replace("\"", "")))) in setUp() 169 when(mCarrierNetworkConfig.isCarrierNetwork(eq(CARRIER2_SSID.replace("\"", "")))) in setUp() 171 when(mCarrierNetworkConfig.isCarrierNetwork(eq(CARRIER_SAVED_SSID.replace("\"", "")))) in setUp() 173 when(mCarrierNetworkConfig.isCarrierNetwork(eq(CARRIER_SAVED_EPH_SSID.replace("\"", "")))) in setUp() 176 when(mCarrierNetworkConfig.getNetworkEapType(eq(CARRIER1_SSID.replace("\"", "")))) in setUp() 178 when(mCarrierNetworkConfig.getNetworkEapType(eq(CARRIER2_SSID.replace("\"", "")))) in setUp() 180 when(mCarrierNetworkConfig.getNetworkEapType(eq(CARRIER_SAVED_SSID.replace("\"", "")))) in setUp() [all …]
|
D | WifiNetworkSelectorTest.java | 94 when(mCarrierNetworkConfig.isCarrierNetwork(any())).thenReturn(true); in setUp() 190 @Mock private CarrierNetworkConfig mCarrierNetworkConfig; field in WifiNetworkSelectorTest 1406 mCarrierNetworkConfig)); in getfilterCarrierUnsavedNetworks_filtersForEapNetworks() 1436 mCarrierNetworkConfig)); in getfilterCarrierUnsavedNetworks_filtersOutSavedNetworks() 1447 mCarrierNetworkConfig).isEmpty()); in getfilterCarrierUnsavedNetworks_filtersOutSavedNetworks() 1476 mCarrierNetworkConfig)); in getfilterCarrierUnsavedNetworks_filtersOutBlacklistedNetworks() 1500 mCarrierNetworkConfig).isEmpty()); in getfilterCarrierUnsavedNetworks_returnsEmptyListWhenNoEAPNetworksPresent() 1524 when(mCarrierNetworkConfig.isCarrierNetwork(any())).thenReturn(false); in getfilterCarrierUnsavedNetworks_returnsEmptyListWhenNoCarrierNetworksPresent() 1526 mCarrierNetworkConfig).isEmpty()); in getfilterCarrierUnsavedNetworks_returnsEmptyListWhenNoCarrierNetworksPresent() 1538 mCarrierNetworkConfig).isEmpty()); in getfilterCarrierUnsavedNetworks_returnsEmptyListWhenNoNetworkSelectionMade()
|
D | WificondControlTest.java | 100 @Mock private CarrierNetworkConfig mCarrierNetworkConfig; field in WificondControlTest 224 mWificondControl = new WificondControl(mWifiInjector, mWifiMonitor, mCarrierNetworkConfig, in setUp() 614 verify(mCarrierNetworkConfig, never()).isCarrierNetwork(anyString()); in testGetScanResults() 651 when(mCarrierNetworkConfig.isCarrierNetwork(new String(nativeScanResult.ssid))) in testGetScanResultsForCarrierAp() 653 when(mCarrierNetworkConfig.getNetworkEapType(new String(nativeScanResult.ssid))) in testGetScanResultsForCarrierAp() 655 when(mCarrierNetworkConfig.getCarrierName(new String(nativeScanResult.ssid))) in testGetScanResultsForCarrierAp() 666 reset(mCarrierNetworkConfig); in testGetScanResultsForCarrierAp() 669 when(mCarrierNetworkConfig.isCarrierNetwork(new String(nativeScanResult.ssid))) in testGetScanResultsForCarrierAp() 707 verify(mCarrierNetworkConfig, never()).isCarrierNetwork(anyString()); in testGetScanResultsWithRadioChainInfo()
|
D | WifiConnectivityManagerTest.java | 112 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in setUp() 144 @Mock private CarrierNetworkConfig mCarrierNetworkConfig; field in WifiConnectivityManagerTest 330 mCarrierNetworkConfig, mWifiMetrics, mLooper.getLooper(), mClock, mLocalLog); in createConnectivityManager() 808 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(false); in whenNoEncryptionInfoAvailable_CarrierNetworkNotifierDoesNotHandleScanResults()
|
D | ClientModeImplTest.java | 392 @Mock CarrierNetworkConfig mCarrierNetworkConfig; field in ClientModeImplTest 450 when(mWifiInjector.getCarrierNetworkConfig()).thenReturn(mCarrierNetworkConfig); in setUp() 1061 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym() 1113 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym() 1163 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithNonDecoratedPseudonym()
|
D | WifiConfigManagerTest.java | 140 @Mock private CarrierNetworkConfig mCarrierNetworkConfig; field in WifiConfigManagerTest 227 when(mWifiInjector.getCarrierNetworkConfig()).thenReturn(mCarrierNetworkConfig); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 56 CarrierNetworkConfig mCarrierNetworkConfig; field in TelephonyUtilTest 82 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getSimIdentityEapSim() 86 WifiEnterpriseConfig.Phase2.SIM), mCarrierNetworkConfig)); in getSimIdentityEapSim() 102 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getSimIdentityEapAka() 106 WifiEnterpriseConfig.Phase2.AKA), mCarrierNetworkConfig)); in getSimIdentityEapAka() 123 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getSimIdentityEapAkaPrime() 127 WifiEnterpriseConfig.Phase2.AKA_PRIME), mCarrierNetworkConfig)); in getSimIdentityEapAkaPrime() 164 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getEncryptedIdentity_WithRfc4648() 197 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getEncryptedIdentityFailed() 216 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getSimIdentity2DigitMnc() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | CarrierNetworkEvaluator.java | 52 private final CarrierNetworkConfig mCarrierNetworkConfig; field in CarrierNetworkEvaluator 61 mCarrierNetworkConfig = carrierNetworkConfig; in CarrierNetworkEvaluator() 92 if (!mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()) { in evaluateNetworks() 102 || !mCarrierNetworkConfig.isCarrierNetwork(scanResult.SSID)) { in evaluateNetworks() 105 int eapType = mCarrierNetworkConfig.getNetworkEapType(scanResult.SSID); in evaluateNetworks()
|
D | WifiInjector.java | 108 private final CarrierNetworkConfig mCarrierNetworkConfig; field in WifiInjector 201 mCarrierNetworkConfig = new CarrierNetworkConfig(mContext, in WifiInjector() 220 mWificondControl = new WificondControl(this, mWifiMonitor, mCarrierNetworkConfig, in WifiInjector() 288 mCarrierNetworkConfig, mConnectivityLocalLog, this); in WifiInjector() 296 mCarrierNetworkConfig, this, subscriptionManager); in WifiInjector() 385 mCarrierNetworkConfig.enableVerboseLogging(verbose); in enableVerboseLogging() 504 return mCarrierNetworkConfig; in getCarrierNetworkConfig() 625 mCarrierNetworkConfig, mWifiMetrics, mWifiCoreHandlerThread.getLooper(), in makeWifiConnectivityManager()
|
D | WificondControl.java | 91 private final CarrierNetworkConfig mCarrierNetworkConfig; field in WificondControl 138 mCarrierNetworkConfig = carrierNetworkConfig; in WificondControl() 612 && mCarrierNetworkConfig.isCarrierNetwork(wifiSsid.toString())) { in getScanResults() 615 mCarrierNetworkConfig.getNetworkEapType(wifiSsid.toString()); in getScanResults() 617 mCarrierNetworkConfig.getCarrierName(wifiSsid.toString()); in getScanResults()
|
D | WifiConnectivityManager.java | 147 private final CarrierNetworkConfig mCarrierNetworkConfig; field in WifiConnectivityManager 292 if (mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()) { in handleScanResults() 295 mCarrierNetworkConfig)); in handleScanResults() 608 mCarrierNetworkConfig = carrierNetworkConfig; in WifiConnectivityManager() 1549 mCarrierNetworkConfig.dump(fd, pw, args); in dump()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluatorTest.java | 90 @Mock CarrierNetworkConfig mCarrierNetworkConfig; field in PasspointNetworkEvaluatorTest 155 mCarrierNetworkConfig, mWifiInjector, mSubscriptionManager); in setUp() 420 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in evaluateSIMProviderWithNetworkSupportingEncryptedIMSI() 441 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(false); in skipCreateEphemeralPasspointConfigurationWhenNoSupportEncryptedIMSI() 461 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in skipCreateEphemeralPasspointConfigurationWithoutSIMCard() 482 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in skipCreateEphemeralPasspointConfigurationForNonMNO() 504 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in skipCreateEphemeralPasspointConfigurationForApDisconnectedByUser() 526 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in skipCreateEphemeralPasspointConfigurationWhenProfileExists() 548 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in createEphemeralPasspointConfigurationWhenEapMethodIsFoundFromMatchingNAIRealm() 575 when(mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()).thenReturn(true); in installEphemeralPasspointConfiguration()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 55 private final CarrierNetworkConfig mCarrierNetworkConfig; field in PasspointNetworkEvaluator 81 mCarrierNetworkConfig = carrierNetworkConfig; in PasspointNetworkEvaluator() 192 if (!mCarrierNetworkConfig.isCarrierEncryptionInfoAvailable()) { in createEphemeralProfileForMatchingAp()
|