/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiApConfigStore.java | 141 config.SSID = in.readUTF(); 176 out.writeUTF(config.SSID); 197 config.SSID = mContext.getResources().getString( 217 config.SSID = context.getResources().getString(
|
WifiConfigurationUtil.java | 256 if (!Objects.equals(config.SSID, config1.SSID)) { 282 new WifiScanner.PnoSettings.PnoNetwork(config.SSID);
|
WifiNetworkHistory.java | 61 private static final String SSID_KEY = "SSID"; 142 //loge("onWriteCalled write SSID: " + config.SSID); 176 if (config.SSID == null) { 178 logv("writeKnownNetworkHistory trying to write config with null SSID"); 187 if (config.SSID != null) { 188 out.writeUTF(SSID_KEY + SEPARATOR + config.SSID + NL); 303 for (String ssid : deletedEphemeralSSIDs) { 305 out.writeUTF(ssid); 331 String ssid = null local [all...] |
ScoredNetworkEvaluator.java | 123 ScanResultUtil.createQuotedSSID(scanResult.SSID))) { 124 debugLog("Ignoring disabled ephemeral SSID: " + scanResult.SSID); 150 debugLog("Ignoring disabled SSID: " + configuredNetwork.SSID); 154 // TODO(b/37485956): consider applying a boost for networks with only the same SSID
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
ConfigurationMapTest.java | 136 assertNull(mConfigs.getEphemeralForCurrentUser(config.SSID)); 138 assertEquals(config, mConfigs.getEphemeralForCurrentUser(config.SSID)); 152 assertNull(mConfigs.getEphemeralForCurrentUser(config.SSID)); 154 assertNull(mConfigs.getEphemeralForCurrentUser(config.SSID));
|
SoftApManagerTest.java | 101 defaultConfig.SSID = DEFAULT_SSID; 136 config.SSID = TEST_SSID; 212 expectedSSID = mDefaultApConfig.SSID; 214 expectedSSID = config.SSID;
|
WifiApConfigStoreTest.java | 88 String ssid, String preSharedKey, int keyManagement, int band, int channel) { 90 config.SSID = ssid; 106 assertEquals(config1.SSID, config2.SSID); 114 String[] splitSsid = config.SSID.split("_"); 140 "ConfiguredAP", /* SSID */ 160 "ConfiguredAP", /* SSID */ 187 "ConfiguredAP", /* SSID */
|
WifiStateMachinePrimeTest.java | 296 config.SSID = "ThisIsAConfig"; 326 config.SSID = "ThisIsAConfig"; 342 config.SSID = "ThisIsAConfig"; 360 config1.SSID = "ThisIsAConfig"; 362 config2.SSID = "ThisIsASecondConfig";
|
WifiConfigurationUtilTest.java | 201 assertEquals(network.SSID, pnoNetwork.ssid); 218 assertEquals(network.SSID, pnoNetwork.ssid); 236 assertEquals(network.SSID, pnoNetwork.ssid); 287 assertEquals(network.SSID, pnoNetwork.ssid);
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
DataUsageMeteredSettings.java | 98 if (config.SSID != null) { 118 config.providerFriendlyName : config.SSID; 208 if (config.SSID != null) { 209 final String networkId = config.SSID;
|
/frameworks/base/wifi/java/android/net/wifi/ |
ScanResult.java | 36 public String SSID; 39 * Ascii encoded SSID. This will replace SSID when we deprecate it. @hide 438 this.SSID = (wifiSsid != null) ? wifiSsid.toString() : WifiSsid.NONE; 464 this.SSID = (wifiSsid != null) ? wifiSsid.toString() : WifiSsid.NONE; 479 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, 483 this.SSID = Ssid; 504 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, 508 this(Ssid, BSSID, hessid, anqpDomainId, caps, level, frequency, tsf, distCm [all...] |
/frameworks/base/core/java/android/companion/ |
BluetoothDeviceFilterUtils.java | 110 final String name = device.SSID; 132 return firstNotEmpty(device.SSID, device.BSSID);
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcWifiProtectedSetup.java | 42 * ID into configuration record for SSID and Network Key in hex. 130 byte[] ssid = new byte[fieldSize]; 131 payload.get(ssid); 132 result.SSID = "\"" + new String(ssid) + "\""; 158 if (result.preSharedKey != null && result.SSID != null) {
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/ |
DefaultNetworkRecommendationProvider.java | 63 * <p>SCORE: "Quoted SSID",bssid|$RSSI_CURVE|metered|captivePortal|BADGE 175 new WifiKey(SsidUtil.quoteSsid(scanResult.SSID), 213 recommendedConfig.SSID = SsidUtil.quoteSsid(recommendedScanResult.SSID); 364 .append(",SSID=").append(config.SSID) 382 * score as applying to any bssid with the provided ssid. 398 // Try to find a score for a wildcard ssid. 400 new WifiKey(key.wifiKey.ssid, WILDCARD_MAC));
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
WifiNetworkScoreCacheTest.java | 56 public static final String SSID = "ssid"; 57 public static final String FORMATTED_SSID = "\"" + SSID + "\""; 62 public static final ScanResult VALID_SCAN_RESULT = buildScanResult(SSID, BSSID); 76 private static ScanResult buildScanResult(String ssid, String bssid) { 78 WifiSsid.createFromAsciiEncoded(ssid),
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
DataUsageSummaryTest.java | 113 config.SSID = "network1"; 125 config.SSID = "network1"; 139 config.SSID = "network1";
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/wakeup/ |
WifiWakeupHelper.java | 81 /** True when the device is still connected to the first connected ssid since wakeup. */ 83 /** The first connected ssid after wakeup enabled wifi. */ 145 String hashedSsid = HashUtil.getSsidHash(wifiConfiguration.SSID); 151 "Already showed Wi-Fi Enabled notification for ssid: %s", 152 Blog.pii(wifiConfiguration.SSID, G.Netrec.enableSensitiveLogging.get())); 161 R.string.wifi_wakeup_enabled_notification_context, wifiConfiguration.SSID); 206 String ssid = wifiInfo == null ? null : wifiInfo.getSSID(); local 208 if (!TextUtils.isEmpty(ssid)) { 209 mConnectedSsid = ssid; 211 } else if (!TextUtils.equals(ssid, mConnectedSsid)) [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
PasspointNetworkEvaluatorTest.java | 106 * @param ssid The SSID associated with the scan 110 private static ScanDetail generateScanDetail(String ssid) { 116 when(scanDetail.getSSID()).thenReturn(ssid); 203 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID1), addedConfig.getValue().SSID); 245 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID1), addedConfig.getValue().SSID); 289 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID1), addedConfig.getValue().SSID); 317 currentNetwork.SSID = ScanResultUtil.createQuotedSSID(TEST_SSID2); 333 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID2), config.SSID);
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
AccessPointTest.java | 71 final CharSequence ssid = ap.getSsid(); local 73 assertThat(ssid instanceof SpannableString).isTrue(); 75 TtsSpan[] spans = ((SpannableString) ssid).getSpans(0, TEST_SSID.length(), TtsSpan.class); 90 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); 213 String ssid = "ssid"; 218 new TestAccessPointBuilder(mContext).setSsid(ssid).setRssi(originalRssi).build(); 221 scanResult.SSID = ssid; 251 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); [all...] |
/cts/tests/tests/net/src/android/net/wifi/cts/ |
WifiManagerTest.java | 223 private boolean existSSID(String ssid) { 225 if (w.SSID.equals(ssid)) 231 private int findConfiguredNetworks(String SSID, List<WifiConfiguration> networks) { 233 if (w.SSID.equals(SSID)) 387 wifiConfiguration.SSID = SSID1; 409 wifiConfiguration.SSID = SSID2; 456 ssids.add(wifiConfig.SSID); 457 Log.i(TAG, String.format("remembering enabled network %s", wifiConfig.SSID)); [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
PasspointManager.java | 341 ANQPNetworkKey anqpKey = ANQPNetworkKey.buildKey(scanResult.SSID, bssid, scanResult.hessid, 366 Log.d(TAG, String.format("Matched %s to %s as %s", scanResult.SSID, 371 Log.d(TAG, "Match not found for " + scanResult.SSID); 453 scanResult.SSID, bssid, scanResult.hessid, vsa.anqpDomainID)); 480 config.SSID = ScanResultUtil.createQuotedSSID(scanResult.SSID);
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
ConnectivityManagerTestBase.java | 315 * Associate the device to given SSID 319 protected boolean connectToWifi(String ssid, String password) { 322 config = WifiConfigurationHelper.createOpenConfig(ssid); 324 config = WifiConfigurationHelper.createPskConfig(ssid, password); 330 * Connect to Wi-Fi with the given configuration. Note the SSID in the configuration 481 assertTrue("failed to associate with " + config.SSID, 485 assertTrue("wifi state not connected with " + config.SSID, 489 // step 3: verify the current connected network is the given SSID 491 assertEquals("SSID mismatch", config.SSID, mWifiManager.getConnectionInfo().getSSID()) [all...] |
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
WifiConnector.java | 118 * @param ssid SSID of a Wi-Fi network 119 * @param psk PSK(Pre-Shared Key) of a Wi-Fi network. This can be null if the given SSID is for 124 public int addNetwork(final String ssid, final String psk, final boolean scanSsid) 128 int networkId = getNetworkId(ssid); 133 // A string SSID _must_ be enclosed in double-quotation marks 134 config.SSID = quote(ssid); 156 private int getNetworkId(String ssid) { 159 if (quote(ssid).equals(config.SSID)) 370 final String ssid = prefs.getString("ssid", null); local [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
WifiApStress.java | 79 config.SSID = NETWORK_ID;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
WifiStatusTracker.java | 32 public String ssid; field in class:WifiStatusTracker 61 // If Connected grab the signal strength and ssid. 63 ssid = getSsid(info); 65 if ((ssid != null) && (bssid != null)) { 68 || !networkKey.wifiKey.ssid.equals(ssid) 72 new WifiKey(ssid, bssid)); 81 ssid = null; 92 String ssid = info.getSSID(); local 93 if (ssid != null) [all...] |