Home
last modified time | relevance | path

Searched refs:SSID (Results 1 – 25 of 153) sorted by relevance

1234567

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java104 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
110 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
116 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
123 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
130 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
137 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
144 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
153 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
161 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
168 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCandidatesTest.java94 mScanResult1.SSID = removeEnclosingQuotes(mConfig1.SSID); in setUp()
100 mScanResult2.SSID = removeEnclosingQuotes(mConfig2.SSID); in setUp()
166 mScanResult1.SSID = mConfig1.SSID; in testQuotingBotch()
175 assertTrue(blah, blah.contains(mConfig1.SSID)); in testQuotingBotch()
255 mScanResult1.SSID = mConfig1.SSID; // As in testQuotingBotch() in testPickyMode()
326 mScanResult2.SSID = mScanResult1.SSID; in testTwoBssids()
359 mScanResult2.SSID = mScanResult1.SSID; in testReplace()
380 mScanResult2.SSID = mScanResult1.SSID; in testMultiplePasspointCandidatesWithSameFQDN()
DNetworkListStoreDataTest.java479 openNetwork.SSID.replaceAll("\"", """), in getTestNetworksXmlBytes()
484 eapNetwork.SSID.replaceAll("\"", """), in getTestNetworksXmlBytes()
491 saeNetwork.SSID.replaceAll("\"", """), in getTestNetworksXmlBytes()
627 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithUnknownTag()
634 assertEquals(openNetwork.SSID, deserializedConfig.SSID); in parseNetworkWithUnknownTag()
648 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithMismatchConfigKey()
677 assertNotEquals(eapNetwork.SSID, network.SSID); in parseNetworkListWithOneNetworkIllegalArgException()
694 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithInvalidCreatorUidResetsToSystem()
722 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid()
749 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithNullCreatorNameResetsToPackageNameForCreatorUid()
[all …]
DNetworkRequestStoreDataTest.java118 WifiConfigurationTestUtil.createPskNetwork().SSID, in serializeDeserializeSingleNetworkRequestFromSingleApp()
136 WifiConfigurationTestUtil.createPskNetwork().SSID, in serializeDeserializeSingleNetworkRequestFromMultipleApps()
144 WifiConfigurationTestUtil.createPskNetwork().SSID, in serializeDeserializeSingleNetworkRequestFromMultipleApps()
162 WifiConfigurationTestUtil.createPskNetwork().SSID, in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
165 WifiConfigurationTestUtil.createOpenNetwork().SSID, in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
174 WifiConfigurationTestUtil.createSaeNetwork().SSID, in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
177 WifiConfigurationTestUtil.createOpenNetwork().SSID, in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
DWifiMonitorTest.java61 private static final String SSID = "\"test124\""; field in WifiMonitorTest
266 String ssid = SSID; in testBroadcastNetworkGsmAuthRequestEvent()
290 String ssid = SSID; in testBroadcastNetworkUmtsAuthRequestEvent()
399 SSID, in testBroadcastAssociationRejectionEvent()
413 assertEquals(SSID, assocRejectEventInfo.ssid); in testBroadcastAssociationRejectionEvent()
469 String ssid = SSID; in testBroadcastNetworkDisconnectionEvent()
495 WifiSsid wifiSsid = WifiSsid.createFromAsciiEncoded(SSID); in testBroadcastSupplicantStateChangeEvent()
522 WLAN_IFACE_NAME, NETWORK_ID, SSID, GSM_AUTH_DATA); in testBroadcastEventToTwoHandlers()
539 mWifiMonitor.broadcastNetworkGsmAuthRequestEvent(null, NETWORK_ID, SSID, GSM_AUTH_DATA); in testBroadcastEventWhenIfaceIsNull()
554 WLAN_IFACE_NAME, NETWORK_ID, SSID, GSM_AUTH_DATA); in testBroadcastEventWhenIfaceHandlerIsNull()
[all …]
DWifiNetworkFactoryTest.java839 mSelectedNetwork.SSID = "\"" + TEST_SSID_1 + "\""; in testPeriodicScanCancelOnUserSelectNetwork()
1275 mSelectedNetwork.SSID = "\"" + mTestScanDatas[0].getResults()[0].SSID + "\""; in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1284 validateConnectParams(mSelectedNetwork.SSID, matchingScanResult.BSSID); in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1333 mSelectedNetwork.SSID = "\"" + mTestScanDatas[0].getResults()[0].SSID + "\""; in testNetworkSpecifierHandleUserSelectionConnectToNetworkExceedApprovedListCapacity()
1343 mSelectedNetwork.SSID = "\"" + mTestScanDatas[0].getResults()[numOfApPerSsid].SSID + "\""; in testNetworkSpecifierHandleUserSelectionConnectToNetworkExceedApprovedListCapacity()
1371 mSelectedNetwork.SSID = "\"" + mTestScanDatas[0].getResults()[0].SSID + "\""; in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1430 mSelectedNetwork.SSID = "\"" + matchingScanResult.SSID + "\""; in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch()
1438 validateConnectParams(mSelectedNetwork.SSID, matchingScanResult.BSSID); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch()
1481 mSelectedNetwork.SSID = "\"" + matchingScanResult.SSID + "\""; in testNetworkSpecifierHandleUserSelectionConnectToNetworkMultipleBssidMatches()
1489 validateConnectParams(mSelectedNetwork.SSID, matchingScanResult.BSSID); in testNetworkSpecifierHandleUserSelectionConnectToNetworkMultipleBssidMatches()
[all …]
DEapFailureNotifierTest.java122 mWifiConfiguration.SSID = SSID_2; in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
147 mWifiConfiguration.SSID = SSID_2; in onEapFailure_showNotificationFalse_notShown()
169 mWifiConfiguration.SSID = SSID_2; in onEapFailureWithDefinedErroCodeWithNotificationShownWithoutSameSsid()
197 mWifiConfiguration.SSID = SSID_1; in onEapFailureWithDefinedErroCodeWithNotificationShownWithSameSsid()
216 mWifiConfiguration.SSID = SSID_1; in onEapFailureWithUnDefinedErrorCode()
DWifiConfigurationUtilTest.java228 config.SSID = "abcd1234555a"; in testValidatePositiveCases_HexSsidString()
280 config.SSID = "\"abcdfefeeretretyetretetetetetrertertrsreqwrwe\""; in testValidateNegativeCases_BadAsciiSsidLength()
282 config.SSID = "\"\""; in testValidateNegativeCases_BadAsciiSsidLength()
294 config.SSID = "\"가하아너너ㅓ저저ㅓ어아아다자저ㅓ더타아어어러두어\""; in testValidateNegativeCases_BadUtf8SsidLength()
296 config.SSID = "\"\""; in testValidateNegativeCases_BadUtf8SsidLength()
309 config.SSID = "\"ab"; in testValidateNegativeCases_MalformedAsciiSsidString()
321 config.SSID = "abcdfe012345632423343543453456464545656464545646454ace34534545634535"; in testValidateNegativeCases_BadHexSsidLength()
323 config.SSID = ""; in testValidateNegativeCases_BadHexSsidLength()
336 config.SSID = "hello"; in testValidateNegativeCases_MalformedHexSsidString()
778 assertEquals(network.SSID, pnoNetwork.ssid); in testCreatePnoNetworkWithOpenNetwork()
[all …]
DWifiConfigManagerTest.java717 mBssidStatusMap.put(TEST_BSSID, openNetwork.SSID); in testUpdateSingleOpenNetworkInBlockList()
718 mBssidStatusMap.put("aa:bb:cc:dd:ee:ff", openNetwork.SSID); in testUpdateSingleOpenNetworkInBlockList()
750 openNetwork.SSID)); in testUpdateSingleOpenNetworkInBlockList()
1899 openNetworkScanDetail.getScanResult().SSID = in testNoMatchScanDetailToNetwork()
1900 wepNetworkScanDetail.getScanResult().SSID; in testNoMatchScanDetailToNetwork()
2256 ssidList.add(c.SSID); in testshouldUseEnhancedRandomizationPasspoint()
2407 blocklist.add(config.SSID); in testRandomizedMacUpdateAndRestore()
2521 new String[] {config.SSID}); in testPerDeviceAggressiveRandomizationSsids()
2538 ssidList.add(c.SSID); in setUpWifiConfigurationForEnhancedRandomization()
3599 assertEquals(sharedNetwork.SSID, mWifiConfigManager.getConfiguredNetworks().get(0).SSID); in testHandleUserStopDoesNotClearSharedData()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/
DWifiConfigHelperTest.java47 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
49 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
51 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
53 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
55 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
57 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
58 String s = mConfig.SSID.substring(1, mConfig.SSID.length() - 1); in testSetConfigSsid()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPNetworkKeyTest.java32 private static final String SSID = "TestSSID"; field in ANQPNetworkKeyTest
44 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, 0, 0, ANQP_DOMAIN_ID); in buildStandardESSKey()
45 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, 0, ANQP_DOMAIN_ID); in buildStandardESSKey()
57 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, ANQP_DOMAIN_ID); in buildHessidKey()
68 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, BSSID, 0, 0); in buildAPKey()
69 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, 0); in buildAPKey()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiNetworkSuggestionTest.java69 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
98 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
129 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
160 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithNotMeteredAndReqUserInteraction()
187 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid()
213 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForOemPaidEnhancedOpenNetworkWithBssid()
241 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForOemPrivateEnhancedOpenNetworkWithBssid()
267 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa3PskNetwork()
294 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
329 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa3EapNetworkWithStandardApi()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DCarrierWifiTogglePreferenceControllerTest.java53 private static final String SSID = "ssid"; field in CarrierWifiTogglePreferenceControllerTest
76 doReturn(SSID).when(mWifiPickerTrackerHelper).getCarrierNetworkSsid(); in setUp()
147 doReturn(SSID).when(mWifiPickerTrackerHelper).getCarrierNetworkSsid(); in displayPreference_carrierNetworkActive_showCarrierNetwork()
153 assertThat(mNetworkPreference.getSummary()).isEqualTo(SSID); in displayPreference_carrierNetworkActive_showCarrierNetwork()
169 doReturn(SSID).when(mWifiPickerTrackerHelper).getCarrierNetworkSsid(); in onWifiStateChanged_carrierNetworkActive_shouldSetSummary()
176 assertThat(mNetworkPreference.getSummary()).isEqualTo(SSID); in onWifiStateChanged_carrierNetworkActive_shouldSetSummary()
192 doReturn(SSID).when(mWifiPickerTrackerHelper).getCarrierNetworkSsid(); in onWifiEntriesChanged_carrierNetworkActive_shouldSetSummary()
199 assertThat(mNetworkPreference.getSummary()).isEqualTo(SSID); in onWifiEntriesChanged_carrierNetworkActive_shouldSetSummary()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiConfiguration.java980 public String SSID; field in WifiConfiguration
2849 SSID = null; in WifiConfiguration()
2947 sbuf.append("ID: ").append(this.networkId).append(" SSID: ").append(this.SSID). in toString()
3185 if (SSID == null) return ""; in getPrintableSsid()
3186 final int length = SSID.length(); in getPrintableSsid()
3187 if (length > 2 && (SSID.charAt(0) == '"') && SSID.charAt(length - 1) == '"') { in getPrintableSsid()
3188 return SSID.substring(1, length - 1); in getPrintableSsid()
3195 if (length > 3 && (SSID.charAt(0) == 'P') && (SSID.charAt(1) == '"') && in getPrintableSsid()
3196 (SSID.charAt(length-1) == '"')) { in getPrintableSsid()
3198 SSID.substring(2, length - 1)); in getPrintableSsid()
[all …]
DWifiNetworkAgentSpecifier.java130 checkNotNull(this.mWifiConfiguration.SSID); in satisfiesNetworkSpecifier()
141 final String ssidWithQuotes = this.mWifiConfiguration.SSID; in satisfiesNetworkSpecifier()
163 mWifiConfiguration.SSID, in hashCode()
179 return Objects.equals(this.mWifiConfiguration.SSID, lhs.mWifiConfiguration.SSID) in equals()
191 .append(", SSID=").append(mWifiConfiguration.SSID) in toString()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DAddPageBasedOnNetworkStateTest.java82 scanResult.SSID = "atv01"; in testForward_clearPassword_ssidNotMatch()
87 wifiConfiguration.SSID = "atv02"; in testForward_clearPassword_ssidNotMatch()
99 scanResult.SSID = "atv"; in testForward_clearPassword_ssidIsNull()
112 scanResult.SSID = "atv"; in testForward_networkSaved()
116 config.SSID = "\"atv\""; in testForward_networkSaved()
126 scanResult.SSID = "atv"; in testForward_networkNotSaved()
DConnectFailedFragmentTest.java55 mWifiConfig.SSID = "testWifi1"; in testGetConnectionFailTitle_unknown_failure()
65 mWifiConfig.SSID = "testWifi1"; in testGetConnectionFailTitle_auth_failure()
75 mWifiConfig.SSID = "testWifi1"; in testGetConnectionFailTitle_rejected_failure()
85 mWifiConfig.SSID = "testWifi1"; in testGetConnectionFailTitle_time_out_failure()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSavedNetworkNominator.java127 localLog("Ignoring auto join disabled SSID: " + network.SSID); in findMatchedSavedNetworks()
136 localLog("Ignoring non-carrier-merged SSID: " + network.SSID); in findMatchedSavedNetworks()
139 if (mWifiConfigManager.isNetworkTemporarilyDisabledByUser(network.SSID)) { in findMatchedSavedNetworks()
140 localLog("Ignoring user disabled SSID: " + network.SSID); in findMatchedSavedNetworks()
145 localLog("Ignoring network selection disabled SSID: " + network.SSID); in findMatchedSavedNetworks()
158 localLog("Ignoring SIM auto join disabled SSID: " + network.SSID); in findMatchedSavedNetworks()
DAvailableNetworkNotifier.java264 + "\"" + mRecommendedNetwork.SSID + "\""); in clearPendingNotification()
335 if (result != null && mBlocklistedSsids.contains(result.SSID)) { in recommendNetwork()
364 + "\"" + mRecommendedNetwork.SSID + "\""); in handleWifiConnected()
387 + "\"" + mRecommendedNetwork.SSID + "\""); in handleConnectionFailure()
402 && TextUtils.equals(mRecommendedNetwork.SSID, recommendedNetwork.SSID)) { in postInitialNotification()
437 + "\"" + mRecommendedNetwork.SSID + "\""); in handleConnectToNetworkAction()
454 addNetworkToBlocklist(mRecommendedNetwork.SSID); in handleConnectToNetworkAction()
525 addNetworkToBlocklist(mRecommendedNetwork.SSID); in handleUserDismissedAction()
DWifiHealthMonitor.java341 PerNetwork perNetwork = mWifiScoreCard.lookupNetwork(network.SSID); in dump()
346 pw.println(mWifiScoreCard.lookupNetwork(network.SSID)); in dump()
396 PerNetwork perNetwork = mWifiScoreCard.lookupNetwork(network.SSID); in dailyDetectionHandler()
507 return (config == null || WifiManager.UNKNOWN_SSID.equals(config.SSID) in isInvalidConfiguredNetwork()
508 || config.SSID == null); in isInvalidConfiguredNetwork()
550 logd(network.SSID); in requestReadAllNetworks()
551 WifiScoreCard.PerNetwork perNetwork = mWifiScoreCard.fetchByNetwork(network.SSID); in requestReadAllNetworks()
554 mWifiScoreCard.lookupNetwork(network.SSID); in requestReadAllNetworks()
571 logd(network.SSID); in updateAllNetworkAfterSwBuildChange()
572 WifiScoreCard.PerNetwork perNetwork = mWifiScoreCard.lookupNetwork(network.SSID); in updateAllNetworkAfterSwBuildChange()
[all …]
DScoredNetworkNominator.java164 ScanResultUtil.createQuotedSSID(scanResult.SSID))) { in nominateNetworks()
165 debugLog("Ignoring user disabled SSID: " + scanResult.SSID); in nominateNetworks()
191 debugLog("Ignoring disabled SSID: " + configuredNetwork.SSID); in nominateNetworks()
196 debugLog("Ignoring non-carrier-merged SSID: " + configuredNetwork.SSID); in nominateNetworks()
333 + " SSID=" + mScanResultCandidate.SSID in getCandidateConfiguration()
DScanRequestProxy.java597 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isWpa2PersonalOnlyNetworkInRange()
605 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isWpa3PersonalOnlyNetworkInRange()
613 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isOpenOnlyNetworkInRange()
621 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isOweOnlyNetworkInRange()
629 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isWpa2EnterpriseOnlyNetworkInRange()
638 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isWpa3EnterpriseOnlyNetworkInRange()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/security/
DWifiSecurityHelper.java83 String savedSsid = userChoiceInfo.getPageSummary(UserChoiceInfo.SSID); in getSsid()
100 if (TextUtils.isEmpty(config.SSID)) { in getConfig()
105 if (userChoiceInfo.getPageSummary(UserChoiceInfo.SSID) != null) { in getConfig()
106 config.SSID = AccessPoint.convertToQuotedString( in getConfig()
107 userChoiceInfo.getPageSummary(UserChoiceInfo.SSID)); in getConfig()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java298 config.SSID = createQuotedSSID(scanResult.SSID); in createNetworkFromScanResult()
420 String ssid = r.SSID == null ? "" : r.SSID; in dumpScanResults()
465 return scanResult != null && scanResult.SSID != null in validate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiUtils.java82 config.SSID = AccessPoint.convertToQuotedString(scanResult.SSID); in getWifiConfig()
86 config.SSID = AccessPoint.convertToQuotedString( in getWifiConfig()

1234567