HomeSort by relevance Sort by last modified time
    Searched refs:SSID (Results 1 - 25 of 160) sorted by null

1 2 3 4 5 6 7

  /packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/
WifiConfigurationUtil.java 69 /** @return a ssid that can be shown to the user. */
71 if (config.SSID == null) return "";
72 final int length = config.SSID.length();
73 if (length > 2 && (config.SSID.charAt(0) == '"') && config.SSID.charAt(length - 1) == '"') {
74 return config.SSID.substring(1, length - 1);
76 return config.SSID;
79 /** Removes " from the ssid in a wifi configuration (to match against a ScanResult). */
81 if (config.SSID == null) return null;
82 final int length = config.SSID.length()
    [all...]
ScanResultUtil.java 70 /** Create a {@link NetworkKey} from a ScanResult, properly quoting the SSID. */
81 * Helper method to quote the SSID in Scan result to use for comparing/filling SSID stored in
91 return new WifiKey(quoteSsid(result.SSID), result.BSSID);
98 Blog.pii(result.SSID, G.Netrec.enableSensitiveLogging.get()),
126 * the network config and scan result have the same SSID and encryption type.
130 // Add the double quotes to the scan result SSID for comparison with the network configs.
131 String configSSID = quoteSsid(scanResult.SSID);
132 if (TextUtils.equals(config.SSID, configSSID)) {
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
ANQPNetworkKeyTest.java 30 private static final String SSID = "TestSSID";
36 * Verify that building a SSID based key works as expected.
42 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, 0, 0, ANQP_DOMAIN_ID);
43 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, 0, ANQP_DOMAIN_ID);
55 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, ANQP_DOMAIN_ID);
60 * Verify that building a key based on an AP (SSID + BSSID) works as expected.
66 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, BSSID, 0, 0);
67 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, 0);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
ScanResultComparator.java 56 if (result1.SSID.equals(mConnectedSSID)
60 if (result2.SSID.equals(mConnectedSSID)
69 if (result1.SSID.equals(result2.SSID)) {
72 return result1.SSID.compareTo(result2.SSID);
WifiConfigHelper.java 64 public static void setConfigSsid(WifiConfiguration config, String ssid) {
66 if (!Pattern.matches(REGEX_HEX_BSSID, ssid)) {
67 config.SSID = AccessPoint.convertToQuotedString(ssid);
69 config.SSID = ssid;
152 * Return the configured network that matches the ssid/security pair, or create one.
154 public static WifiConfiguration getConfiguration(Context context, String ssid,
156 WifiConfiguration config = getFromConfiguredNetworks(context, ssid, security);
159 // No configured network found; populate a new one with the provided ssid / security
    [all...]
  /frameworks/base/wifi/java/android/net/wifi/
WifiLinkLayerStats.java 39 * The network's SSID. Can either be an ASCII string,
46 public String SSID;
122 if (this.SSID != null) {
123 sbuf.append(" SSID: ").append(this.SSID).append('\n');
162 if (SSID == null) return "";
163 final int length = SSID.length();
164 if (length > 2 && (SSID.charAt(0) == '"') && SSID.charAt(length - 1) == '"') {
165 return SSID.substring(1, length - 1)
    [all...]
WifiConnectionStatistics.java 38 * history of past connection to untrusted SSID
39 * Key = SSID
63 public void incrementOrAddUntrusted(String SSID, int connection, int usage) {
65 if (TextUtils.isEmpty(SSID))
67 if (untrustedNetworkHistory.containsKey(SSID)) {
68 stats = untrustedNetworkHistory.get(SSID);
77 untrustedNetworkHistory.put(SSID, stats);
WifiConfiguration.java 51 public static final String ssidVarName = "ssid";
241 * The network's SSID. Can either be an ASCII string,
247 public String SSID;
319 * This is a network that does not broadcast its SSID, so an
320 * SSID-specific probe request must be used for scans.
960 * configKey is : "SSID"-WEP-WPA_PSK-WPA_EAP
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowScanResult.java 14 public static ScanResult newInstance(String SSID, String BSSID, String caps, int level, int frequency) {
16 scanResult.SSID = SSID;
27 .append("SSID: ").append(valueOrNone(realObject.SSID))
ShadowWifiConfiguration.java 15 realObject.SSID = null;
35 config.SSID = realObject.SSID;
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
WifiConfigLockdownTest.java 71 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID) ||
72 areMatchingSsids(CHANGED_DEVICE_OWNER_SSID, config.SSID) ||
73 areMatchingSsids(ORIGINAL_REGULAR_SSID, config.SSID) ||
74 areMatchingSsids(CHANGED_REGULAR_SSID, config.SSID)) {
85 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID)) {
90 if (areMatchingSsids(ORIGINAL_REGULAR_SSID, config.SSID)) {
104 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID) ||
105 areMatchingSsids(ORIGINAL_REGULAR_SSID, config.SSID)) {
118 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID)) {
131 assertFalse(areMatchingSsids(CHANGED_DEVICE_OWNER_SSID, config.SSID));
    [all...]
  /external/autotest/client/site_tests/network_RoamWifiEndToEnd/
network_RoamWifiEndToEnd.py 21 2. Tests the DUT can Roam/Failover between networks with same SSID.
36 if service['Name'] == self.SSID:
47 raise error.TestFail('Network with ssid=%s is not found', self.SSID)
63 raise error.TestFail('Network with ssid=%s is not found', self.SSID)
73 def run_once(self, ssid, test):
76 @param ssid: SSID of the APs.
81 self.SSID = ssi
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
ScanResultUtil.java 83 * Helper method to quote the SSID in Scan result to use for comparing/filling SSID stored in
87 public static String createQuotedSSID(String ssid) {
88 return "\"" + ssid + "\"";
93 * if the network config and scan result have the same SSID and encryption type.
97 // Add the double quotes to the scan result SSID for comparison with the network configs.
98 String configSSID = createQuotedSSID(scanResult.SSID);
99 if (TextUtils.equals(config.SSID, configSSID)) {
126 config.SSID = createQuotedSSID(scanResult.SSID);
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
ScanResultUtilTest.java 42 final String ssid = "SOME SsId"; local
44 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid,
48 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8))
58 final String ssid = "SOME SsId"; local
60 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid,
64 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)
75 final String ssid = "Another SSid"; local
89 final String ssid = "Another SSid"; local
115 final String ssid = "Another SSid"; local
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
PasspointNetworkEvaluator.java 108 findBestNetwork(candidateList, currentNetwork == null ? null : currentNetwork.SSID);
111 if (currentNetwork != null && TextUtils.equals(currentNetwork.SSID,
113 localLog("Staying with current Passpoint network " + currentNetwork.SSID);
120 localLog("Passpoint network to connect to: " + config.SSID);
133 config.SSID = ScanResultUtil.createQuotedSSID(networkInfo.mScanDetail.getSSID());
159 * @param currentNetworkSsid The SSID of the currently connected network, null if not connected
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
WifiClientTest.java 117 config.SSID = "\"TestSSID1\"";
128 if (c.networkId == netId && c.SSID.equals(config.SSID)) {
154 config.SSID = "\"TestSSID2\"";
204 config.SSID = "\"TestSSID3\"";
223 if (c.SSID.equals("TestSSID3")) {
289 if (c.SSID.contains(connectedSSID)) {
WifiSoftAPTest.java 60 // Test case 1: Test the soft AP SSID with letters
64 config.SSID = "abcdefghijklmnopqrstuvwxyz";
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ScanResultTest.java 18 ScanResult scanResult = ShadowScanResult.newInstance("SSID", "BSSID", "Caps", 11, 42);
19 assertThat(scanResult.SSID, equalTo("SSID"));
WifiConfigurationTest.java 26 wifiConfiguration.SSID = "SSID";
46 assertThat(copy.SSID, equalTo("SSID"));
  /tools/test/connectivity/acts/tests/google/wifi/
WifiIOTTest.py 89 SSID = network[WifiEnums.SSID_KEY]
93 wutils.assert_network_in_list({WifiEnums.SSID_KEY: SSID}, scan_results)
105 SSID = network[WifiEnums.SSID_KEY]
106 self.log.info("Starting iperf traffic through {}".format(SSID))
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
WifiConnectionTest.java 73 logv("Start wifi connection test to: %s", config.SSID);
81 logv("End wifi connection test to: %s", config.SSID);
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
NetworkListStoreDataTest.java 56 + "<string name=\"SSID\">%s</string>\n"
106 + "<string name=\"SSID\">%s</string>\n"
247 openNetwork.SSID.replaceAll("\"", "&quot;"),
251 eapNetwork.SSID.replaceAll("\"", "&quot;"),
356 + "<string name=\"SSID\">%s</string>\n"
404 openNetwork.SSID.replaceAll("\"", "&quot;"),
420 openNetwork.SSID.replaceAll("\"", "&quot;"),
446 assertNotEquals(eapNetwork.SSID, network.SSID);
  /packages/services/NetworkRecommendation/src/com/android/networkrecommendation/notify/
WifiNotificationHelper.java 79 return createNotificationBuilder(R.string.wifi_available_title, config.SSID)
91 return createNotificationBuilder(R.string.wifi_available_title_connecting, config.SSID)
101 return createNotificationBuilder(R.string.wifi_available_title_connected, config.SSID)
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiNetworkSelector.java 141 localLog("Current connected network: " + network.SSID
224 : String.format("%s:%s", scanResult.SSID, scanResult.BSSID);
228 * Format the given WifiConfiguration as a SSID:netId string
235 return (network.SSID + ":" + network.networkId);
250 if (TextUtils.isEmpty(scanResult.SSID)) {
293 localLog("Networks filtered out due to invalid SSID: " + noValidSsid);
336 if (selected == null || selected.SSID == null) {
359 + network.SSID + " : " + network.networkId);
  /frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
OSUCache.java 63 return mScanResult.SSID + " @ " + mInstant;
84 Log.d(OSUManager.TAG, scanResult.SSID +
135 "Add OSU " + entry.getKey() + " from " + entry.getValue().SSID);
138 entry.getValue().SSID + " to " + current);

Completed in 1860 milliseconds

1 2 3 4 5 6 7