/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPNetworkKeyTest.java | 30 private static final String SSID = "TestSSID"; field in ANQPNetworkKeyTest 42 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, 0, 0, ANQP_DOMAIN_ID); in buildStandardESSKey() 43 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, 0, ANQP_DOMAIN_ID); in buildStandardESSKey() 55 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, ANQP_DOMAIN_ID); in buildHessidKey() 66 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, BSSID, 0, 0); in buildAPKey() 67 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, 0); in buildAPKey()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkSuggestionTest.java | 56 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction() 81 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction() 108 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction() 132 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid() 151 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa3PskNetwork() 175 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork() 319 configuration.SSID = TEST_SSID; in testWifiNetworkSuggestionParcel() 353 configuration.SSID = TEST_SSID; in testWifiNetworkSuggestionEqualsSame() 361 configuration1.SSID = TEST_SSID; in testWifiNetworkSuggestionEqualsSame() 378 configuration.SSID = TEST_SSID; in testWifiNetworkSuggestionEqualsFailsWhenSsidIsDifferent() [all …]
|
D | WifiConfigurationTest.java | 279 config.SSID = "TestAP"; in testSoftApConfigBackupAndRestore() 291 assertEquals(config.SSID, restoredConfig.SSID); in testSoftApConfigBackupAndRestore() 308 config.SSID = mSsid; in testGetKeyIdForCredentials() 366 config.SSID = mSsid; in testGetKeyIdForCredentialsForSuggestion() 423 config.SSID = mSsid; in testGetSsidAndSecurityTypeString()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCandidatesTest.java | 64 SSID = removeEnclosingQuotes(mConfig1.SSID); in setUp() 70 SSID = removeEnclosingQuotes(mConfig2.SSID); in setUp() 111 mScanResult1.SSID = mConfig1.SSID; in testQuotingBotch() 120 assertTrue(blah, blah.contains(mConfig1.SSID)); in testQuotingBotch() 170 mScanResult1.SSID = mConfig1.SSID; // As in testQuotingBotch() in testPickyMode() 233 mScanResult2.SSID = mScanResult1.SSID; in testTwoBssids() 269 mScanResult2.SSID = mScanResult1.SSID; in testReplace()
|
D | NetworkRequestStoreDataTest.java | 118 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()
|
D | WifiApConfigStoreTest.java | 160 config.SSID = ssid; in setupApConfig() 177 assertEquals(config1.SSID, config2.SSID); in verifyApConfig() 186 String[] splitSsid = config.SSID.split("_"); in verifyDefaultApConfig() 198 String[] splitSsid = config.SSID.split("_"); in verifyDefaultLocalOnlyApConfig() 600 config.SSID = null; in testSsidVerificationInValidateApWifiConfigurationCheck() 602 config.SSID = ""; in testSsidVerificationInValidateApWifiConfigurationCheck() 606 config.SSID = generateRandomString(WifiApConfigStore.SSID_MAX_LEN + 1); in testSsidVerificationInValidateApWifiConfigurationCheck() 609 config.SSID = TEST_STRING_UTF8_WITH_34_BYTES; in testSsidVerificationInValidateApWifiConfigurationCheck() 612 config.SSID = TEST_STRING_UTF8_WITH_33_BYTES; in testSsidVerificationInValidateApWifiConfigurationCheck() 618 config.SSID = generateRandomString( in testSsidVerificationInValidateApWifiConfigurationCheck() [all …]
|
D | NetworkListStoreDataTest.java | 278 openNetwork.SSID.replaceAll("\"", """), in getTestNetworksXmlBytes() 283 eapNetwork.SSID.replaceAll("\"", """), in getTestNetworksXmlBytes() 418 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithUnknownTag() 435 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithMismatchConfigKey() 463 assertNotEquals(eapNetwork.SSID, network.SSID); in parseNetworkListWithOneNetworkIllegalArgException() 480 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithInvalidCreatorUidResetsToSystem() 508 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid() 535 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithNullCreatorNameResetsToPackageNameForCreatorUid() 556 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithValidCreatorUid()
|
D | WifiConfigurationUtilTest.java | 237 config.SSID = "abcd1234555a"; in testValidatePositiveCases_Hex() 277 config.SSID = "\"abcdfefeeretretyetretetetetetrertertrsreqwrwe\""; in testValidateNegativeCases_BadAsciiSsidLength() 279 config.SSID = "\"\""; in testValidateNegativeCases_BadAsciiSsidLength() 291 config.SSID = "\"가하아너너ㅓ저저ㅓ어아아다자저ㅓ더타아어어러두어\""; in testValidateNegativeCases_BadUtf8SsidLength() 293 config.SSID = "\"\""; in testValidateNegativeCases_BadUtf8SsidLength() 306 config.SSID = "\"ab"; in testValidateNegativeCases_MalformedAsciiSsidString() 318 config.SSID = "abcdfe012345632423343543453456464545656464545646454ace34534545634535"; in testValidateNegativeCases_BadHexSsidLength() 320 config.SSID = ""; in testValidateNegativeCases_BadHexSsidLength() 333 config.SSID = "hello"; in testValidateNegativeCases_MalformedHexSsidString() 710 assertEquals(network.SSID, pnoNetwork.ssid); in testCreatePnoNetworkWithOpenNetwork() [all …]
|
D | ConfigurationMapTest.java | 114 if (ssid.equals(config.SSID) && config.ephemeral) { in getEphemeralForCurrentUser() 156 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters() 158 assertEquals(config, getEphemeralForCurrentUser(config.SSID)); in verifyGetters() 169 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters() 171 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
|
D | HostapdHalTest.java | 223 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band2G() 257 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Open_Band5G() 290 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band5G_Hidden() 328 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band2G_WithACS() 366 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC() 403 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_BandAny_WithACS() 441 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_BandAny_Downgraded_WithoutACS() 507 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_BandAny_WithACS_AcsChannels() 541 configuration.SSID = NETWORK_SSID; in testAddAccessPointInvalidBandFailure() 559 configuration.SSID = NETWORK_SSID; in testAddAccessPointFailure() [all …]
|
D | NetworkSuggestionEvaluatorTest.java | 149 assertEquals(suggestionSsids[0] , candidate.SSID); in testSelectNetworkSuggestionForOneMatch() 195 assertEquals(suggestionSsids[1] , candidate.SSID); in testSelectNetworkSuggestionForMultipleMatch() 242 assertEquals(suggestionSsids[0] , candidate.SSID); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() 292 assertEquals(suggestionSsids[0] , candidate.SSID); in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions() 352 assertEquals(suggestionSsids[1] , candidate.SSID); in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestionsHighPriorityWins() 450 assertEquals(suggestionSsids[0] , candidate.SSID); in testSelectNetworkSuggestionForOneMatchForExistingNetwork() 617 assertEquals(suggestionSsids[0] , candidate.SSID); in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisableExpired() 673 if (configuration.SSID.equals(candidates[i].SSID)) { in verifyAddToWifiConfigManager() 790 assertEquals("\"" + candidate.first.getSSID() + "\"", candidate.second.SSID); in validateConnectableNetworks()
|
D | DppManagerTest.java | 168 selectedNetwork.SSID = "\"Test_SSID\""; in testStartDppAsConfiguratorInitiatorFailAddPeer() 214 selectedNetwork.SSID = "\"Test_SSID\""; in testStartDppAsConfiguratorInitiatorFailStart() 258 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk() 283 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae() 308 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorFailOpenNetwork() 331 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorFailEapNetwork() 367 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartCorrectlyAndRejectConcurrentRequest() 419 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback() 481 selectedNetwork.SSID = TEST_SSID; in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 512 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartOnFailureCallback() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanResultUtilTest.java | 97 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 102 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 109 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 114 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 205 assertEquals("NetworkDetail SSID", input.SSID, in validateScanDetail() 207 assertEquals("ScanResult SSID", input.SSID, in validateScanDetail() 208 output.getScanResult().SSID); in validateScanDetail() 211 assertEquals("getSSID", input.SSID, output.getSSID()); in validateScanDetail()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiNetworkAgentSpecifier.java | 133 checkNotNull(this.mWifiConfiguration.SSID); in satisfiesNetworkSpecifier() 137 final String ssidWithQuotes = this.mWifiConfiguration.SSID; in satisfiesNetworkSpecifier() 165 mWifiConfiguration.SSID, in hashCode() 181 return Objects.equals(this.mWifiConfiguration.SSID, lhs.mWifiConfiguration.SSID) in equals() 194 .append(", SSID=").append(mWifiConfiguration.SSID) in toString()
|
D | WifiConfiguration.java | 454 public String SSID; field in WifiConfiguration 1762 SSID = null; in WifiConfiguration() 1846 sbuf.append("ID: ").append(this.networkId).append(" SSID: ").append(this.SSID). in toString() 2050 if (SSID == null) return ""; in getPrintableSsid() 2051 final int length = SSID.length(); in getPrintableSsid() 2052 if (length > 2 && (SSID.charAt(0) == '"') && SSID.charAt(length - 1) == '"') { in getPrintableSsid() 2053 return SSID.substring(1, length - 1); in getPrintableSsid() 2060 if (length > 3 && (SSID.charAt(0) == 'P') && (SSID.charAt(1) == '"') && in getPrintableSsid() 2061 (SSID.charAt(length-1) == '"')) { in getPrintableSsid() 2063 SSID.substring(2, length - 1)); in getPrintableSsid() [all …]
|
D | WifiNetworkSuggestion.java | 347 wifiConfiguration.SSID = "\"" + mSsid + "\""; in buildWifiConfiguration() 533 return Objects.hash(wifiConfiguration.SSID, wifiConfiguration.BSSID, in hashCode() 549 return Objects.equals(this.wifiConfiguration.SSID, lhs.wifiConfiguration.SSID) in equals() 560 .append(", SSID=").append(wifiConfiguration.SSID) in toString()
|
D | ScanResult.java | 42 public String SSID; field in ScanResult 565 this.SSID = (wifiSsid != null) ? wifiSsid.toString() : WifiSsid.NONE; in ScanResult() 595 this.SSID = (wifiSsid != null) ? wifiSsid.toString() : WifiSsid.NONE; in ScanResult() 618 this.SSID = Ssid; in ScanResult() 656 SSID = source.SSID; in ScanResult() 741 dest.writeString(SSID); in writeToParcel()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkKeyTest.java | 120 scanResult.SSID = ""; in createFromScanResult_emptySsid() 129 scanResult.SSID = WifiManager.UNKNOWN_SSID; in createFromScanResult_noneSsid() 138 scanResult.SSID = VALID_UNQUOTED_SSID; in createFromScanResult_nullBssid() 146 scanResult.SSID = VALID_UNQUOTED_SSID; in createFromScanResult_emptyBssid() 155 scanResult.SSID = VALID_UNQUOTED_SSID; in createFromScanResult_invalidBssid() 164 scanResult.SSID = VALID_UNQUOTED_SSID; in createFromScanResult_validSsid()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
D | WifiClientTest.java | 117 config.SSID = "\"TestSSID1\""; in testAddRemoveNetwork() 128 if (c.networkId == netId && c.SSID.equals(config.SSID)) { in testAddRemoveNetwork() 154 config.SSID = "\"TestSSID2\""; in testEnableDisableNetwork() 204 config.SSID = "\"TestSSID3\""; in testSaveConfig() 223 if (c.SSID.equals("TestSSID3")) { in testSaveConfig() 289 if (c.SSID.contains(connectedSSID)) { in testWifiConfiguredNetworkStatus()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 117 ScanResultUtil.createQuotedSSID(s.getScanResult().SSID))) { in evaluateNetworks() 156 findBestNetwork(candidateList, currentNetwork == null ? null : currentNetwork.SSID); in evaluateNetworks() 159 if (currentNetwork != null && TextUtils.equals(currentNetwork.SSID, in evaluateNetworks() 161 localLog("Staying with current Passpoint network " + currentNetwork.SSID); in evaluateNetworks() 175 localLog("Passpoint network to connect to: " + config.SSID); in evaluateNetworks() 224 config.SSID = ScanResultUtil.createQuotedSSID(networkInfo.mScanDetail.getSSID()); in createWifiConfigForProvider() 236 localLog("Current configuration for the Passpoint AP " + config.SSID in createWifiConfigForProvider()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | AvailableNetworkNotifier.java | 259 + "\"" + mRecommendedNetwork.SSID + "\""); in clearPendingNotification() 329 if (result != null && mBlacklistedSsids.contains(result.SSID)) { in recommendNetwork() 358 + "\"" + mRecommendedNetwork.SSID + "\""); in handleWifiConnected() 381 + "\"" + mRecommendedNetwork.SSID + "\""); in handleConnectionFailure() 400 && TextUtils.equals(mRecommendedNetwork.SSID, recommendedNetwork.SSID)) { in postInitialNotification() 435 + "\"" + mRecommendedNetwork.SSID + "\""); in handleConnectToNetworkAction() 448 addNetworkToBlacklist(mRecommendedNetwork.SSID); in handleConnectToNetworkAction() 519 addNetworkToBlacklist(mRecommendedNetwork.SSID); in handleUserDismissedAction()
|
D | ConnectToNetworkNotificationBuilder.java | 98 return createNotificationBuilder(title, network.SSID, notifierTag) in createConnectToAvailableNetworkNotification() 115 mContext.getText(R.string.wifi_available_title_connecting), network.SSID, in createNetworkConnectingNotification() 130 mContext.getText(R.string.wifi_available_title_connected), network.SSID, in createNetworkConnectedNotification()
|
D | CarrierNetworkEvaluator.java | 102 || !mCarrierNetworkConfig.isCarrierNetwork(scanResult.SSID)) { in evaluateNetworks() 105 int eapType = mCarrierNetworkConfig.getNetworkEapType(scanResult.SSID); in evaluateNetworks() 112 ScanResultUtil.createQuotedSSID(scanResult.SSID))) { in evaluateNetworks()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ScanResultUtil.java | 139 config.SSID = createQuotedSSID(scanResult.SSID); in createNetworkFromScanResult() 186 String ssid = r.SSID == null ? "" : r.SSID; in dumpScanResults()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | WifiConnectionTest.java | 73 logv("Start wifi connection test to: %s", config.SSID); in testWifiConnections() 81 logv("End wifi connection test to: %s", config.SSID); in testWifiConnections()
|