Home
last modified time | relevance | path

Searched refs:wifiConfig (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java74 WifiConfiguration wifiConfig = null; in build() local
77 wifiConfig = new WifiConfiguration(); in build()
78 wifiConfig.networkId = mNetworkId; in build()
79 wifiConfig.BSSID = mBssid; in build()
83 bundle.putParcelable(AccessPoint.KEY_CONFIG, wifiConfig); in build()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DPasspointNetworkDetailsTracker.java104 .filter(wifiConfig -> wifiConfig.isPasspoint() in PasspointNetworkDetailsTracker()
106 uniqueIdToPasspointWifiEntryKey(wifiConfig.getKey()))) in PasspointNetworkDetailsTracker()
191 final WifiConfiguration wifiConfig = pair.first; in updatePasspointWifiEntryScans() local
192 final String key = uniqueIdToPasspointWifiEntryKey(wifiConfig.getKey()); in updatePasspointWifiEntryScans()
195 mCurrentWifiConfig = wifiConfig; in updatePasspointWifiEntryScans()
DPasspointWifiEntry.java125 @NonNull WifiConfiguration wifiConfig, in PasspointWifiEntry() argument
130 checkNotNull(wifiConfig, "Cannot construct with null WifiConfiguration!"); in PasspointWifiEntry()
131 if (!wifiConfig.isPasspoint()) { in PasspointWifiEntry()
134 mWifiConfig = wifiConfig; in PasspointWifiEntry()
135 mUniqueId = wifiConfig.getKey(); in PasspointWifiEntry()
137 mFqdn = wifiConfig.FQDN; in PasspointWifiEntry()
516 synchronized void updateScanResultInfo(@Nullable WifiConfiguration wifiConfig, in updateScanResultInfo() argument
520 mWifiConfig = wifiConfig; in updateScanResultInfo()
DStandardWifiEntry.java452 WifiConfiguration wifiConfig = getWifiConfiguration(); in canShare() local
453 if (wifiConfig == null) { in canShare()
459 UserHandle.getUserHandleForUid(wifiConfig.creatorUid)) in canShare()
460 && Utils.isDeviceOrProfileOwner(wifiConfig.creatorUid, in canShare()
461 wifiConfig.creatorName, mContext)) { in canShare()
488 WifiConfiguration wifiConfig = getWifiConfiguration(); in canEasyConnect() local
489 if (wifiConfig == null) { in canEasyConnect()
499 UserHandle.getUserHandleForUid(wifiConfig.creatorUid)) in canEasyConnect()
500 && Utils.isDeviceOrProfileOwner(wifiConfig.creatorUid, in canEasyConnect()
501 wifiConfig.creatorName, mContext)) { in canEasyConnect()
[all …]
DUtils.java557 static String getNetworkSelectionDescription(WifiConfiguration wifiConfig) { in getNetworkSelectionDescription() argument
558 if (wifiConfig == null) { in getNetworkSelectionDescription()
563 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in getNetworkSelectionDescription()
711 @Nullable WifiConfiguration wifiConfig) { in getImsiProtectionDescription() argument
712 if (context == null || wifiConfig == null || !isSimCredential(wifiConfig) in getImsiProtectionDescription()
713 || isServerCertUsedNetwork(wifiConfig)) { in getImsiProtectionDescription()
717 if (wifiConfig.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) { in getImsiProtectionDescription()
721 subId = getSubIdForConfig(context, wifiConfig); in getImsiProtectionDescription()
DSavedNetworkTracker.java403 final WifiConfiguration wifiConfig = pair.first; in updatePasspointWifiEntryScans() local
404 final String key = uniqueIdToPasspointWifiEntryKey(wifiConfig.getKey()); in updatePasspointWifiEntryScans()
411 mPasspointWifiEntryCache.get(key).updateScanResultInfo(wifiConfig, in updatePasspointWifiEntryScans()
DWifiPickerTracker.java846 final WifiConfiguration wifiConfig = pair.first; in updatePasspointWifiEntryScans() local
851 final String key = uniqueIdToPasspointWifiEntryKey(wifiConfig.getKey()); in updatePasspointWifiEntryScans()
856 if (wifiConfig.fromWifiNetworkSuggestion) { in updatePasspointWifiEntryScans()
858 mMainHandler, wifiConfig, mWifiManager, in updatePasspointWifiEntryScans()
869 mPasspointWifiEntryCache.get(key).updateScanResultInfo(wifiConfig, in updatePasspointWifiEntryScans()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DStandardWifiEntryTest.java1023 WifiConfiguration wifiConfig = new WifiConfiguration(); in testCanSignIn_captivePortalCapability_returnsTrue() local
1024 wifiConfig.SSID = "\"ssid\""; in testCanSignIn_captivePortalCapability_returnsTrue()
1025 wifiConfig.setSecurityParams(WifiConfiguration.SECURITY_TYPE_OPEN); in testCanSignIn_captivePortalCapability_returnsTrue()
1026 wifiConfig.networkId = 1; in testCanSignIn_captivePortalCapability_returnsTrue()
1027 when(mMockWifiInfo.getNetworkId()).thenReturn(wifiConfig.networkId); in testCanSignIn_captivePortalCapability_returnsTrue()
1034 Collections.singletonList(wifiConfig), null, mMockWifiManager, in testCanSignIn_captivePortalCapability_returnsTrue()
1043 WifiConfiguration wifiConfig = new WifiConfiguration(); in testUpdateNetworkCapabilities_userConnect_autoOpenCaptivePortalOnce() local
1044 wifiConfig.SSID = "\"ssid\""; in testUpdateNetworkCapabilities_userConnect_autoOpenCaptivePortalOnce()
1045 wifiConfig.setSecurityParams(WifiConfiguration.SECURITY_TYPE_OPEN); in testUpdateNetworkCapabilities_userConnect_autoOpenCaptivePortalOnce()
1046 wifiConfig.networkId = 1; in testUpdateNetworkCapabilities_userConnect_autoOpenCaptivePortalOnce()
[all …]
DUtilsTest.java508 WifiConfiguration wifiConfig = spy(new WifiConfiguration()); in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel() local
519 when(wifiConfig.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
521 assertThat(getNetworkSelectionDescription(wifiConfig)).isEqualTo(expected); in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
528 WifiConfiguration wifiConfig = spy(new WifiConfiguration()); in testGetNetworkSelectionDescription_disabledTransitionDisableIndication() local
549 when(wifiConfig.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testGetNetworkSelectionDescription_disabledTransitionDisableIndication()
551 assertThat(getNetworkSelectionDescription(wifiConfig)).isEqualTo(expected); in testGetNetworkSelectionDescription_disabledTransitionDisableIndication()
788 WifiConfiguration wifiConfig = mock(WifiConfiguration.class); in testGetConnectedDescription() local
796 wifiConfig, in testGetConnectedDescription()
835 wifiConfig, in testGetConnectedDescription()
843 when(wifiConfig.isNoInternetAccessExpected()).thenReturn(true); in testGetConnectedDescription()
[all …]
DWifiPickerTrackerTest.java1269 final WifiConfiguration wifiConfig = spy(new WifiConfiguration()); in testGetWifiEntries_passpointInRange_returnsPasspointWifiEntry() local
1270 when(wifiConfig.getKey()).thenReturn(passpointConfig.getUniqueId()); in testGetWifiEntries_passpointInRange_returnsPasspointWifiEntry()
1274 Collections.singletonList(new Pair<>(wifiConfig, mapping)); in testGetWifiEntries_passpointInRange_returnsPasspointWifiEntry()
1302 final WifiConfiguration wifiConfig = spy(new WifiConfiguration()); in testGetWifiEntries_connectToPasspoint_returnsSamePasspointWifiEntry() local
1303 when(wifiConfig.getKey()).thenReturn(passpointConfig.getUniqueId()); in testGetWifiEntries_connectToPasspoint_returnsSamePasspointWifiEntry()
1304 when(wifiConfig.isPasspoint()).thenReturn(true); in testGetWifiEntries_connectToPasspoint_returnsSamePasspointWifiEntry()
1305 wifiConfig.networkId = 1; in testGetWifiEntries_connectToPasspoint_returnsSamePasspointWifiEntry()
1310 Collections.singletonList(new Pair<>(wifiConfig, mapping)); in testGetWifiEntries_connectToPasspoint_returnsSamePasspointWifiEntry()
1313 .thenReturn(Collections.singletonList(wifiConfig)); in testGetWifiEntries_connectToPasspoint_returnsSamePasspointWifiEntry()
1421 final WifiConfiguration wifiConfig = spy(new WifiConfiguration()); in testGetWifiEntries_passpointOutOfRange_returnsNull() local
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java375 for (WifiConfiguration wifiConfig: wifiConfigList) { in disconnectAP()
376 logv("remove wifi configuration: " + wifiConfig.networkId); in disconnectAP()
377 int netId = wifiConfig.networkId; in disconnectAP()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java629 for (WifiConfiguration wifiConfig: wifiConfigList) { in disconnectAP()
630 Log.v(LOG_TAG, "Remove wifi configuration: " + wifiConfig.networkId); in disconnectAP()
631 int netId = wifiConfig.networkId; in disconnectAP()