Home
last modified time | relevance | path

Searched refs:TEST_SSID (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiSsidTest.java32 private static final String TEST_SSID = "Test SSID"; field in WifiSsidTest
33 private static final byte[] TEST_SSID_BYTES = TEST_SSID.getBytes(StandardCharsets.US_ASCII);
42 assertEquals(TEST_SSID, wifiSsid.toString()); in testCreateFromByteArray()
53 WifiSsid fromString = WifiSsid.createFromAsciiEncoded(TEST_SSID); in testEquals()
DScanResultTest.java39 public static final String TEST_SSID = "\"test_ssid\""; field in ScanResultTest
175 result.wifiSsid = WifiSsid.createFromAsciiEncoded(TEST_SSID); in createScanResult()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCarrierNetworkConfigTest.java54 private static final String TEST_SSID = "Test SSID"; field in CarrierNetworkConfigTest
105 .thenReturn(generateTestConfig(TEST_SSID, TEST_STANDARD_EAP_TYPE)); in setUp()
134 assertTrue(mCarrierNetworkConfig.isCarrierNetwork(TEST_SSID)); in getExistingCarrierNetworkInfo()
135 assertEquals(TEST_INTERNAL_EAP_TYPE, mCarrierNetworkConfig.getNetworkEapType(TEST_SSID)); in getExistingCarrierNetworkInfo()
136 assertEquals(TEST_CARRIER_NAME, mCarrierNetworkConfig.getCarrierName(TEST_SSID)); in getExistingCarrierNetworkInfo()
204 assertFalse(mCarrierNetworkConfig.isCarrierNetwork(TEST_SSID)); in receivedCarrierConfigChangedIntent()
205 assertEquals(-1, mCarrierNetworkConfig.getNetworkEapType(TEST_SSID)); in receivedCarrierConfigChangedIntent()
206 assertEquals(null, mCarrierNetworkConfig.getCarrierName(TEST_SSID)); in receivedCarrierConfigChangedIntent()
DWrongPasswordNotifierTest.java42 private static final String TEST_SSID = "Test SSID"; field in WrongPasswordNotifierTest
74 mWrongPassNotifier.onWrongPasswordError(TEST_SSID); in onWrongPasswordError()
80 assertEquals(TEST_SSID, intent.getValue().getStringExtra("wifi_start_connect_ssid")); in onWrongPasswordError()
DWifiConfigurationUtilTest.java45 static final String TEST_SSID = "test_ssid"; field in WifiConfigurationUtilTest
550 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetwork()
551 WifiConfiguration network1 = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetwork()
561 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID()
563 WifiConfiguration network1 = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID()
574 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsFalseOnDifferentSSID()
585 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsFalseOnDifferentSecurityType()
586 WifiConfiguration network1 = WifiConfigurationTestUtil.createEapNetwork(TEST_SSID); in testIsSameNetworkReturnsFalseOnDifferentSecurityType()
596 WifiConfiguration network1 = WifiConfigurationTestUtil.createEapNetwork(TEST_SSID); in testIsSameNetworkReturnsFalseOnDifferentEapIdentity()
597 WifiConfiguration network2 = WifiConfigurationTestUtil.createEapNetwork(TEST_SSID); in testIsSameNetworkReturnsFalseOnDifferentEapIdentity()
[all …]
DSoftApManagerTest.java71 private static final String TEST_SSID = "TestSSID"; field in SoftApManagerTest
155 config.SSID = TEST_SSID; in startSoftApWithConfig()
169 config.SSID = TEST_SSID; in startSoftApWithHiddenSsidTrueInConfig()
184 config.SSID = TEST_SSID; in startSoftApWithPassphraseInConfig()
317 config.SSID = TEST_SSID; in startSoftApFailGeneralErrorForConfigChannel()
359 config.SSID = TEST_SSID; in startSoftApFailNoChannel()
DWificondControlTest.java82 private static final byte[] TEST_SSID = field in WificondControlTest
117 ssid = TEST_SSID;
935 config.SSID = new String(TEST_SSID, StandardCharsets.UTF_8); in testSoftApListenerInvocation()
974 config.SSID = new String(TEST_SSID, StandardCharsets.UTF_8); in testStartHostapdFailDueToStartError()
990 config.SSID = new String(TEST_SSID, StandardCharsets.UTF_8); in testStartHostapdFailDueToExceptionInStart()
DWifiBackupRestoreTest.java146 dumpString.contains(WifiConfigurationTestUtil.TEST_SSID)); in cleanUp()
829 + "ssid=" + WifiConfigurationTestUtil.TEST_SSID + "\n" in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
842 expectedConfiguration.SSID = WifiConfigurationTestUtil.TEST_SSID; in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
DWifiConfigurationTestUtil.java64 public static final String TEST_SSID = "WifiConfigurationTestUtilSSID"; field in WifiConfigurationTestUtil
218 String ssid = TEST_SSID + sNetworkIndex++; in createNewSSID()
DNetworkListStoreDataTest.java56 private static final String TEST_SSID = "WifiConfigStoreDataSSID_"; field in NetworkListStoreDataTest
DWifiServiceImplTest.java1077 static final String TEST_SSID = "Sid's Place"; field in WifiServiceImplTest
1078 static final String TEST_SSID_WITH_QUOTES = "\"" + TEST_SSID + "\"";
1084 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in setupForGetConnectionInfo()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DOsuProviderTest.java40 private static final WifiSsid TEST_SSID = field in OsuProviderTest
82 verifyParcel(new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAME, TEST_SERVICE_DESCRIPTION, in verifyParcelWithFullProviderInfo()
103 … OsuProvider source = new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAME, TEST_SERVICE_DESCRIPTION, in verifyCopyConstructorWithValidSource()
115 OsuProvider provider = new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAME, in verifyGetters()
117 assertTrue(TEST_SSID.equals(provider.getOsuSsid())); in verifyGetters()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java69 private static final WifiSsid TEST_SSID = WifiSsid.createFromAsciiEncoded("Test SSID"); field in OsuNetworkConnectionTest
163 assertEquals(false, mNetworkConnection.connect(TEST_SSID, TEST_NAI)); in verifyNetworkConnectionWhenWifiIsDisabled()
172 assertEquals(false, mNetworkConnection.connect(TEST_SSID, TEST_NAI_OSEN)); in verifyOSENUnsupported()
183 assertEquals(false, mNetworkConnection.connect(TEST_SSID, TEST_NAI)); in verifyNetworkConnectionWhenAddNetworkFails()
195 assertEquals(false, mNetworkConnection.connect(TEST_SSID, TEST_NAI)); in verifyNetworkConnectionWhenEnableNetworkFails()
209 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI)); in verifyNetworkCallbackInvokedWhenConnected()
235 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI)); in verifyNetworkConnectionTimeout()
258 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI)); in verifyNetworkDisconnect()
DPasspointProvisioningTestUtil.java46 public static final WifiSsid TEST_SSID = field in PasspointProvisioningTestUtil
64 return new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAME, TEST_SERVICE_DESCRIPTION, in generateOsuProvider()
67 return new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAME, TEST_SERVICE_DESCRIPTION, in generateOsuProvider()
77 return new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAME, TEST_SERVICE_DESCRIPTION, in generateInvalidServerUrlOsuProvider()
DPasspointManagerTest.java117 private static final String TEST_SSID = "TestSSID"; field in PasspointManagerTest
123 TEST_SSID, TEST_BSSID, TEST_HESSID, TEST_ANQP_DOMAIN_ID);
299 scanResult.SSID = TEST_SSID; in createTestScanResult()
800 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID), config.SSID); in getMatchingWifiConfigForHomeProviderAP()
820 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID), config.SSID); in getMatchingWifiConfigForRoamingProviderAP()
925 assertEquals(ScanResultUtil.createQuotedSSID(TEST_SSID), config.SSID); in getAllMatchingWifiConfigsForProviderAP()
/frameworks/base/tests/net/java/android/net/
DNetworkCapabilitiesTest.java58 private static final String TEST_SSID = "TEST_SSID"; field in NetworkCapabilitiesTest
267 netCap.setSSID(TEST_SSID); in testParcelNetworkCapabilities()
369 nc1.setSSID(TEST_SSID); in testSSID()
371 nc2.setSSID("different " + TEST_SSID); in testSSID()
406 nc1.setSSID(TEST_SSID); in testCombineCapabilities()
408 assertTrue(TEST_SSID.equals(nc2.getSSID())); in testCombineCapabilities()
418 nc1.setSSID(TEST_SSID); in testCombineCapabilities()
488 nc1.setSSID(TEST_SSID); in testSet()
495 assertTrue(TEST_SSID.equals(nc2.getSSID())); in testSet()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/
DNativeScanResultTest.java38 private static final byte[] TEST_SSID = field in NativeScanResultTest
60 scanResult.ssid = TEST_SSID; in canSerializeAndDeserialize()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java53 private static final String TEST_SSID = "\"test_ssid\""; field in WifiUtilsTest
153 ScanResult scanResult = createScanResult(TEST_SSID, "bssid-" + i, i); in buildScanResultCache()
173 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)), in buildScoredNetworkWithGivenBadgeCurve()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java73 private static final String TEST_SSID = "\"test_ssid\""; field in AccessPointTest
109 bundle.putString("key_ssid", TEST_SSID); in testSsidIsTelephoneSpan()
115 TtsSpan[] spans = ((SpannableString) ssid).getSpans(0, TEST_SSID.length(), TtsSpan.class); in testSsidIsTelephoneSpan()
524 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)),
541 ScanResult scanResult = createScanResult(TEST_SSID, "bssid-" + i, i);
561 .setSsid(TEST_SSID)
979 info.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in testSpeedLabelFallbackScoreIgnoresNullCurves()
985 createScanResult(TEST_SSID, "11:11:11:11:11:11", DEFAULT_RSSI); in testSpeedLabelFallbackScoreIgnoresNullCurves()
989 createScanResult(TEST_SSID, bssid, DEFAULT_RSSI); in testSpeedLabelFallbackScoreIgnoresNullCurves()
996 .setSsid(TEST_SSID) in testSpeedLabelFallbackScoreIgnoresNullCurves()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java88 private static final String TEST_SSID = "AndroidAP"; field in NetworkStatsObserversTest
DNetworkStatsServiceTest.java140 private static final String TEST_SSID = "AndroidAP"; field in NetworkStatsServiceTest
1239 return new NetworkState(info, prop, capabilities, WIFI_NETWORK, null, TEST_SSID); in buildWifiState()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java203 private static final String TEST_SSID = "AndroidAP"; field in NetworkPolicyManagerServiceTest
208 private static NetworkTemplate sTemplateWifi = buildTemplateWifi(TEST_SSID);
1722 return new NetworkState(info, prop, networkCapabilities, null, null, TEST_SSID); in buildWifi()