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

1 2 3 4 5 6 7

  /tools/test/connectivity/acts/framework/acts/test_utils/wifi/
wifi_constants.py 30 SSID = "SSID"
  /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 39 * history of past connection to untrusted SSID
40 * Key = SSID
64 public void incrementOrAddUntrusted(String SSID, int connection, int usage) {
66 if (TextUtils.isEmpty(SSID))
68 if (untrustedNetworkHistory.containsKey(SSID)) {
69 stats = untrustedNetworkHistory.get(SSID);
78 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;
320 * This is a network that does not broadcast its SSID, so an
321 * SSID-specific probe request must be used for scans.
    [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/tests/wifitests/src/com/android/server/wifi/
WifiApConfigStoreTest.java 95 String ssid, String preSharedKey, int keyManagement, int band, int channel) {
97 config.SSID = ssid;
113 assertEquals(config1.SSID, config2.SSID);
121 String[] splitSsid = config.SSID.split("_");
147 "ConfiguredAP", /* SSID */
167 "ConfiguredAP", /* SSID */
194 "ConfiguredAP", /* SSID */
233 * Note: this method has limited use as a random SSID generator. The characters used in thi
    [all...]
NetworkListStoreDataTest.java 63 + "<string name=\"SSID\">%s</string>\n"
114 + "<string name=\"SSID\">%s</string>\n"
263 openNetwork.SSID.replaceAll("\"", "&quot;"),
267 eapNetwork.SSID.replaceAll("\"", "&quot;"),
372 + "<string name=\"SSID\">%s</string>\n"
420 openNetwork.SSID.replaceAll("\"", "&quot;"),
436 openNetwork.SSID.replaceAll("\"", "&quot;"),
463 assertNotEquals(eapNetwork.SSID, network.SSID);
479 openNetwork.SSID.replaceAll("\"", "&quot;")
    [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
    [all...]
  /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)) {
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
ConnectToNetworkNotificationBuilder.java 81 mContext.getText(R.string.wifi_available_title), network.SSID)
95 mContext.getText(R.string.wifi_available_title_connecting), network.SSID)
108 mContext.getText(R.string.wifi_available_title_connected), network.SSID)
OpenNetworkRecommender.java 53 if (result != null && blacklistedSsids.contains(result.SSID)) {
ScanResultMatchInfo.java 35 * SSID of the network.
48 info.networkSsid = config.SSID;
68 // Scan result ssid's are not quoted, hence add quotes.
69 // TODO: This matching algo works only if the scan result contains a string SSID.
70 // However, according to our public documentation ths {@link WifiConfiguration#SSID} can
71 // either have a hex string or quoted ASCII string SSID.
72 info.networkSsid = ScanResultUtil.createQuotedSSID(scanResult.SSID);
WifiApConfigStore.java 154 config.SSID = in.readUTF();
189 out.writeUTF(config.SSID);
210 config.SSID = mContext.getResources().getString(
230 config.SSID = context.getResources().getString(
242 * Verify provided SSID for existence, length and conversion to bytes
244 * @param ssid String ssid name
245 * @return boolean indicating ssid met requirements
247 private static boolean validateApConfigSsid(String ssid) {
248 if (TextUtils.isEmpty(ssid)) {
    [all...]
  /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"));
  /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/service/java/com/android/server/wifi/util/
ScanResultUtil.java 81 * Helper method to quote the SSID in Scan result to use for comparing/filling SSID stored in
85 public static String createQuotedSSID(String ssid) {
86 return "\"" + ssid + "\"";
95 config.SSID = createQuotedSSID(scanResult.SSID);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
PasspointNetworkEvaluator.java 112 findBestNetwork(candidateList, currentNetwork == null ? null : currentNetwork.SSID);
115 if (currentNetwork != null && TextUtils.equals(currentNetwork.SSID,
117 localLog("Staying with current Passpoint network " + currentNetwork.SSID);
131 localLog("Passpoint network to connect to: " + config.SSID);
144 config.SSID = ScanResultUtil.createQuotedSSID(networkInfo.mScanDetail.getSSID());
170 * @param currentNetworkSsid The SSID of the currently connected network, null if not connected
  /packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DataPlanUsageSummaryTest.java 95 mWifiConfiguration.SSID = "network1";
104 mWifiConfiguration.SSID = "network1";
115 mWifiConfiguration.SSID = "network1";

Completed in 401 milliseconds

1 2 3 4 5 6 7