/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()
|
D | PasspointNetworkEvaluatorTest.java | 119 scanResult.SSID = ssid; in generateScanDetail() 211 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID1), addedConfig.getValue().SSID); in evaluateScansWithNetworkMatchingHomeProvider() 254 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID1), addedConfig.getValue().SSID); in evaluateScansWithNetworkMatchingRoamingProvider() 299 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID1), addedConfig.getValue().SSID); in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork() 328 currentNetwork.SSID = ScanResultUtil.createQuotedSSID(TEST_SSID2); in evaluateScansWithActiveNetworkMatchingHomeProvider() 344 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID2), config.SSID); in evaluateScansWithActiveNetworkMatchingHomeProvider() 390 currentNetwork.SSID = ScanResultUtil.createQuotedSSID(TEST_SSID1); in evaluateScansMatchingActiveNetworkWithDifferentBSS()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanResultUtilTest.java | 96 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 101 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 108 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 113 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult() 128 assertEquals("NetworkDetail SSID", input.SSID, in validateScanDetail() 130 assertEquals("ScanResult SSID", input.SSID, in validateScanDetail() 131 output.getScanResult().SSID); in validateScanDetail() 134 assertEquals("getSSID", input.SSID, output.getSSID()); in validateScanDetail()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConfiguration.java | 273 public String SSID; field in WifiConfiguration 1499 SSID = null; in WifiConfiguration() 1575 sbuf.append("ID: ").append(this.networkId).append(" SSID: ").append(this.SSID). in toString() 1744 if (SSID == null) return ""; in getPrintableSsid() 1745 final int length = SSID.length(); in getPrintableSsid() 1746 if (length > 2 && (SSID.charAt(0) == '"') && SSID.charAt(length - 1) == '"') { in getPrintableSsid() 1747 return SSID.substring(1, length - 1); in getPrintableSsid() 1754 if (length > 3 && (SSID.charAt(0) == 'P') && (SSID.charAt(1) == '"') && in getPrintableSsid() 1755 (SSID.charAt(length-1) == '"')) { in getPrintableSsid() 1757 SSID.substring(2, length - 1)); in getPrintableSsid() [all …]
|
D | ScanResult.java | 38 public String SSID; field in ScanResult 464 this.SSID = (wifiSsid != null) ? wifiSsid.toString() : WifiSsid.NONE; in ScanResult() 494 this.SSID = (wifiSsid != null) ? wifiSsid.toString() : WifiSsid.NONE; in ScanResult() 517 this.SSID = Ssid; in ScanResult() 555 SSID = source.SSID; in ScanResult() 640 dest.writeString(SSID); in writeToParcel()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiApConfigStoreTest.java | 101 config.SSID = ssid; in setupApConfig() 117 assertEquals(config1.SSID, config2.SSID); in verifyApConfig() 125 String[] splitSsid = config.SSID.split("_"); in verifyDefaultApConfig() 135 String[] splitSsid = config.SSID.split("_"); in verifyDefaultLocalOnlyApConfig() 492 config.SSID = null; in testSsidVerificationInValidateApWifiConfigurationCheck() 494 config.SSID = ""; in testSsidVerificationInValidateApWifiConfigurationCheck() 497 config.SSID = generateRandomString(WifiApConfigStore.SSID_MAX_LEN + 1); in testSsidVerificationInValidateApWifiConfigurationCheck() 502 config.SSID = generateRandomString( in testSsidVerificationInValidateApWifiConfigurationCheck() 517 config.SSID = TEST_DEFAULT_HOTSPOT_SSID; in testOpenNetworkConfigInValidateApWifiConfigurationCheck() 539 config.SSID = TEST_DEFAULT_HOTSPOT_SSID; in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck() [all …]
|
D | NetworkListStoreDataTest.java | 271 openNetwork.SSID.replaceAll("\"", """), in getTestNetworksXmlBytes() 276 eapNetwork.SSID.replaceAll("\"", """), in getTestNetworksXmlBytes() 431 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithUnknownTag() 448 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithMismatchConfigKey() 476 assertNotEquals(eapNetwork.SSID, network.SSID); in parseNetworkListWithOneNetworkIllegalArgException() 493 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithInvalidCreatorUidResetsToSystem() 521 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid() 548 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithNullCreatorNameResetsToPackageNameForCreatorUid() 569 openNetwork.SSID.replaceAll("\"", """), in parseNetworkWithValidCreatorUid()
|
D | WifiConfigurationUtilTest.java | 221 config.SSID = "abcd1234555a"; in testValidatePositiveCases_Hex() 261 config.SSID = "\"abcdfefeeretretyetretetetetetrertertrsreqwrwe\""; in testValidateNegativeCases_BadAsciiSsidLength() 263 config.SSID = "\"\""; in testValidateNegativeCases_BadAsciiSsidLength() 275 config.SSID = "\"가하아너너ㅓ저저ㅓ어아아다자저ㅓ더타아어어러두어\""; in testValidateNegativeCases_BadUtf8SsidLength() 277 config.SSID = "\"\""; in testValidateNegativeCases_BadUtf8SsidLength() 290 config.SSID = "\"ab"; in testValidateNegativeCases_MalformedAsciiSsidString() 302 config.SSID = "abcdfe012345632423343543453456464545656464545646454ace34534545634535"; in testValidateNegativeCases_BadHexSsidLength() 304 config.SSID = ""; in testValidateNegativeCases_BadHexSsidLength() 317 config.SSID = "hello"; in testValidateNegativeCases_MalformedHexSsidString() 502 assertEquals(network.SSID, pnoNetwork.ssid); in testCreatePnoNetworkWithOpenNetwork() [all …]
|
D | HostapdHalTest.java | 161 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band2G() 195 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Open_Band5G() 228 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band5G_Hidden() 266 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band2G_WithACS() 304 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC() 341 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_BandAny_WithACS() 379 configuration.SSID = NETWORK_SSID; in testAddAccessPointSuccess_Psk_BandAny_Downgraded_WithoutACS() 412 configuration.SSID = NETWORK_SSID; in testAddAccessPointInvalidBandFailure() 430 configuration.SSID = NETWORK_SSID; in testAddAccessPointFailure() 449 configuration.SSID = NETWORK_SSID; in testAddAccessPointRemoteException()
|
D | ConfigurationMapTest.java | 113 if (ssid.equals(config.SSID) && config.ephemeral) { in getEphemeralForCurrentUser() 155 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters() 157 assertEquals(config, getEphemeralForCurrentUser(config.SSID)); in verifyGetters() 168 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters() 170 assertNull(getEphemeralForCurrentUser(config.SSID)); in verifyGetters()
|
/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/ |
D | AvailableNetworkNotifier.java | 252 + mRecommendedNetwork.SSID); in clearPendingNotification() 321 if (result != null && blacklistedSsids.contains(result.SSID)) { in recommendNetwork() 346 Log.d(mTag, "User connected to recommended network: " + mRecommendedNetwork.SSID); in handleWifiConnected() 368 Log.d(mTag, "User failed to connect to recommended network: " + mRecommendedNetwork.SSID); in handleConnectionFailure() 387 && TextUtils.equals(mRecommendedNetwork.SSID, recommendedNetwork.SSID)) { in postInitialNotification() 421 "User initiated connection to recommended network: " + mRecommendedNetwork.SSID); in handleConnectToNetworkAction() 477 mBlacklistedSsids.add(mRecommendedNetwork.SSID); in handleUserDismissedAction() 481 + mRecommendedNetwork.SSID); in handleUserDismissedAction()
|
D | WifiNetworkSelector.java | 144 localLog("Current connected network: " + network.SSID in isCurrentNetworkSufficient() 249 : String.format("%s:%s", scanResult.SSID, scanResult.BSSID); in toScanId() 260 return (network.SSID + ":" + network.networkId); in toNetworkString() 282 if (TextUtils.isEmpty(scanResult.SSID)) { in filterScanResults() 379 || !carrierConfig.isCarrierNetwork(scanResult.SSID)) { in getFilteredScanDetailsForCarrierUnsavedNetworks() 422 if (selected == null || selected.SSID == null) { in setUserConnectChoice() 445 + network.SSID + " : " + network.networkId); in setUserConnectChoice()
|
D | WifiApConfigStore.java | 194 config.SSID = in.readUTF(); in loadApConfiguration() 229 out.writeUTF(config.SSID); in writeApConfiguration() 251 config.SSID = mContext.getResources().getString( in getDefaultApConfiguration() 273 config.SSID = context.getResources().getString( in generateLocalOnlyHotspotConfig() 342 if (!validateApConfigSsid(apConfig.SSID)) { in validateApWifiConfiguration()
|
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 | ScanResultMatchInfo.java | 48 info.networkSsid = config.SSID; in fromWifiConfiguration() 72 info.networkSsid = ScanResultUtil.createQuotedSSID(scanResult.SSID); in fromScanResult()
|
D | WifiNetworkHistory.java | 173 if (config.SSID == null) { in writeKnownNetworkHistory() 184 if (config.SSID != null) { in writeKnownNetworkHistory() 185 out.writeUTF(SSID_KEY + SEPARATOR + config.SSID + NL); in writeKnownNetworkHistory() 381 if (config.SSID != null && !config.SSID.equals(ssid)) { in readNetworkHistory() 386 config.SSID = ssid; in readNetworkHistory()
|
D | WifiConfigurationUtil.java | 476 if (!validateSsid(config.SSID, isAdd)) { in validate() 516 if (!Objects.equals(config.SSID, config1.SSID)) { in isSameNetwork() 534 new WifiScanner.PnoSettings.PnoNetwork(config.SSID); in createPnoNetwork()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 112 findBestNetwork(candidateList, currentNetwork == null ? null : currentNetwork.SSID); in evaluateNetworks() 115 if (currentNetwork != null && TextUtils.equals(currentNetwork.SSID, in evaluateNetworks() 117 localLog("Staying with current Passpoint network " + currentNetwork.SSID); in evaluateNetworks() 132 localLog("Passpoint network to connect to: " + config.SSID); in evaluateNetworks() 146 config.SSID = ScanResultUtil.createQuotedSSID(networkInfo.mScanDetail.getSSID()); in createWifiConfigForProvider()
|
D | PasspointManager.java | 365 Log.d(TAG, String.format("Matched %s to %s as %s", scanResult.SSID, in matchProvider() 370 Log.d(TAG, "Match not found for " + scanResult.SSID); in matchProvider() 400 ANQPNetworkKey anqpKey = ANQPNetworkKey.buildKey(scanResult.SSID, bssid, scanResult.hessid, in getAllMatchedProviders() 423 Log.d(TAG, String.format("Matched %s to %s as %s", scanResult.SSID, in getAllMatchedProviders() 429 Log.d(TAG, "No matches not found for " + scanResult.SSID); in getAllMatchedProviders() 518 scanResult.SSID, bssid, scanResult.hessid, vsa.anqpDomainID)); in getANQPElements() 549 config.SSID = ScanResultUtil.createQuotedSSID(scanResult.SSID); in getMatchingWifiConfig() 578 config.SSID = ScanResultUtil.createQuotedSSID(scanResult.SSID); in getAllMatchingWifiConfigs()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ScanResultUtil.java | 98 config.SSID = createQuotedSSID(scanResult.SSID); in createNetworkFromScanResult() 142 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()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkScoreCacheTest.java | 53 public static final String SSID = "ssid"; field in WifiNetworkScoreCacheTest 56 public static final String FORMATTED_SSID = "\"" + SSID + "\""; 63 public static final ScanResult VALID_SCAN_RESULT = buildScanResult(SSID, BSSID);
|
D | ScanResultTest.java | 185 assertEquals(expected.SSID, actual.SSID); in assertScanResultEquals()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 310 ssid = firstResult.SSID; in AccessPoint() 328 ssid = (config.SSID == null ? "" : removeDoubleQuotes(config.SSID)); in loadConfig() 592 if (TextUtils.isEmpty(result.SSID)) { in getKey() 595 builder.append(result.SSID); in getKey() 605 if (TextUtils.isEmpty(config.SSID)) { in getKey() 608 builder.append(removeDoubleQuotes(config.SSID)); in getKey() 621 return ssid.equals(removeDoubleQuotes(config.SSID)) && config.FQDN.equals(mConfig.FQDN); in matches() 623 return ssid.equals(removeDoubleQuotes(config.SSID)) in matches() 993 mConfig.SSID = AccessPoint.convertToQuotedString(ssid); in generateOpenNetworkConfig()
|