Home
last modified time | relevance | path

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

12

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSuggestionTest.java38 private static final String TEST_SSID = "\"Test123\""; field in WifiNetworkSuggestionTest
51 .setSsid(TEST_SSID) in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
56 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
75 .setSsid(TEST_SSID) in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
81 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
102 .setSsid(TEST_SSID) in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
108 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
127 .setSsid(TEST_SSID) in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid()
132 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid()
147 .setSsid(TEST_SSID) in testWifiNetworkSuggestionBuilderForWpa3PskNetwork()
[all …]
DWifiNetworkSpecifierTest.java46 private static final String TEST_SSID = "Test123"; field in WifiNetworkSpecifierTest
59 .setSsidPattern(new PatternMatcher(TEST_SSID, PATTERN_PREFIX)) in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
66 assertEquals(TEST_SSID, wifiNetworkSpecifier.ssidPatternMatcher.getPath()); in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
114 .setSsid(TEST_SSID) in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
123 assertEquals(TEST_SSID, wifiNetworkSpecifier.ssidPatternMatcher.getPath()); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
159 .setSsid(TEST_SSID) in testWifiNetworkSpecifierSetWpa2PasphraseWithNonAsciiString()
294 .setSsidPattern(new PatternMatcher(TEST_SSID, PATTERN_LITERAL)) in testWifiNetworkSpecifierBuilderWithBothWpa2PasphraseAndEnterpriseConfig()
307 .setSsidPattern(new PatternMatcher(TEST_SSID, PATTERN_PREFIX)) in testWifiNetworkSpecifierBuilderWithSsidMatchPatternForHiddenNetwork()
320 .setSsidPattern(new PatternMatcher(TEST_SSID, PATTERN_LITERAL)) in testWifiNetworkSpecifierBuilderWithBothWpa2PasphraseAndWpa3Passphrase()
335 .setSsidPattern(new PatternMatcher(TEST_SSID, PATTERN_LITERAL)) in testWifiNetworkSpecifierBuilderWithBothWpa3PasphraseAndEnterprise()
[all …]
DWifiSsidTest.java34 private static final String TEST_SSID = "Test SSID"; field in WifiSsidTest
35 private static final byte[] TEST_SSID_BYTES = TEST_SSID.getBytes(StandardCharsets.US_ASCII);
44 assertEquals(TEST_SSID, wifiSsid.toString()); in testCreateFromByteArray()
55 WifiSsid fromString = WifiSsid.createFromAsciiEncoded(TEST_SSID); in testEquals()
DScanResultTest.java38 public static final String TEST_SSID = "\"test_ssid\""; field in ScanResultTest
174 result.wifiSsid = WifiSsid.createFromAsciiEncoded(TEST_SSID); in createScanResult()
DWifiNetworkAgentSpecifierTest.java43 private static final String TEST_SSID = "Test123"; field in WifiNetworkAgentSpecifierTest
443 wifiConfiguration.SSID = "\"" + TEST_SSID + "\""; in createDefaultWifiConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCarrierNetworkConfigTest.java56 private static final String TEST_SSID = "Test SSID"; field in CarrierNetworkConfigTest
109 .thenReturn(generateTestConfig(TEST_SSID, TEST_STANDARD_EAP_TYPE)); in setUp()
138 assertTrue(mCarrierNetworkConfig.isCarrierNetwork(TEST_SSID)); in getExistingCarrierNetworkInfo()
139 assertEquals(TEST_INTERNAL_EAP_TYPE, mCarrierNetworkConfig.getNetworkEapType(TEST_SSID)); in getExistingCarrierNetworkInfo()
140 assertEquals(TEST_CARRIER_NAME, mCarrierNetworkConfig.getCarrierName(TEST_SSID)); in getExistingCarrierNetworkInfo()
150 .thenReturn(generateTestConfig(TEST_SSID, TEST_STANDARD_EAP_TYPE)); in getExistingCarrierNetworkInfo_nullDisplayName_shouldNotThrowNpe()
160 assertEquals("", mCarrierNetworkConfig.getCarrierName(TEST_SSID)); in getExistingCarrierNetworkInfo_nullDisplayName_shouldNotThrowNpe()
229 assertFalse(mCarrierNetworkConfig.isCarrierNetwork(TEST_SSID)); in receivedCarrierConfigChangedIntent()
230 assertEquals(-1, mCarrierNetworkConfig.getNetworkEapType(TEST_SSID)); in receivedCarrierConfigChangedIntent()
231 assertEquals(null, mCarrierNetworkConfig.getCarrierName(TEST_SSID)); in receivedCarrierConfigChangedIntent()
DWifiConfigurationUtilTest.java57 static final String TEST_SSID = "test_ssid"; field in WifiConfigurationUtilTest
600 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierPositiveCases_SsidPattern()
628 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern()
670 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierNegativeCases_MatchNoneBssidPattern()
684 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierNegativeCases_InvalidBssidPattern()
698 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_PREFIX), in testValidateNetworkSpecifierNegativeCases_NoSsidPatternForHiddenNetwork()
763 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetwork()
764 WifiConfiguration network1 = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetwork()
774 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID()
776 WifiConfiguration network1 = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID()
[all …]
DWrongPasswordNotifierTest.java45 private static final String TEST_SSID = "Test SSID"; field in WrongPasswordNotifierTest
77 mWrongPassNotifier.onWrongPasswordError(TEST_SSID); in onWrongPasswordError()
83 assertEquals(TEST_SSID, intent.getValue().getStringExtra("wifi_start_connect_ssid")); in onWrongPasswordError()
DDppManagerTest.java77 private static final String TEST_SSID = "\"Test_SSID\""; field in DppManagerTest
258 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk()
283 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae()
308 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorFailOpenNetwork()
331 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorFailEapNetwork()
367 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartCorrectlyAndRejectConcurrentRequest()
419 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
481 selectedNetwork.SSID = TEST_SSID; in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
512 selectedNetwork.SSID = TEST_SSID; in testStartDppAsConfiguratorInitiatorStartOnFailureCallback()
723 selectedNetwork.SSID = TEST_SSID; in testOnFailureCallback()
DSoftApManagerTest.java71 private static final String TEST_SSID = "TestSSID"; field in SoftApManagerTest
158 config.SSID = TEST_SSID; in startSoftApWithConfig()
172 config.SSID = TEST_SSID; in startSoftApWithHiddenSsidTrueInConfig()
187 config.SSID = TEST_SSID; in startSoftApWithPassphraseInConfig()
323 config.SSID = TEST_SSID; in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
366 config.SSID = TEST_SSID; in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure()
413 config.SSID = TEST_SSID; in startSoftApOn24GhzNoFailForNoCountryCode()
429 config.SSID = TEST_SSID; in startSoftApOnAnyGhzNoFailForNoCountryCode()
445 config.SSID = TEST_SSID; in startSoftApOn2GhzNoFailForCountryCodeSetFailure()
464 config.SSID = TEST_SSID; in startSoftApOnAnyNoFailForCountryCodeSetFailure()
[all …]
DWifiBackupRestoreTest.java209 dumpString.contains(WifiConfigurationTestUtil.TEST_SSID)); in cleanUp()
904 + "ssid=" + WifiConfigurationTestUtil.TEST_SSID + "\n" in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
917 expectedConfiguration.SSID = WifiConfigurationTestUtil.TEST_SSID; in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
DNetworkListStoreDataTest.java57 private static final String TEST_SSID = "WifiConfigStoreDataSSID_"; field in NetworkListStoreDataTest
DWifiConfigurationTestUtil.java67 public static final String TEST_SSID = "WifiConfigurationTestSSID"; field in WifiConfigurationTestUtil
237 String ssid = TEST_SSID + sNetworkIndex++; in createNewSSID()
DWificondControlTest.java110 private static final byte[] TEST_SSID = field in WificondControlTest
145 ssid = TEST_SSID;
920 config.SSID = new String(TEST_SSID, StandardCharsets.UTF_8); in testSoftApListenerInvocation()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DOsuProviderTest.java42 private static final WifiSsid TEST_SSID = field in OsuProviderTest
95 verifyParcel(new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAMES, in verifyParcelWithFullProviderInfo()
116 OsuProvider source = new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAMES, in verifyCopyConstructorWithValidSource()
128 OsuProvider provider = new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAMES, in verifyGetters()
131 assertTrue(TEST_SSID.equals(provider.getOsuSsid())); in verifyGetters()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java73 private static final WifiSsid TEST_SSID = WifiSsid.createFromAsciiEncoded("Test SSID"); field in OsuNetworkConnectionTest
168 assertEquals(false, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyNetworkConnectionWhenWifiIsDisabled()
178 mNetworkConnection.connect(TEST_SSID, TEST_NAI_OSEN, TEST_PROVIDER_NAME)); in verifyOSENUnsupported()
189 assertEquals(false, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyNetworkConnectionWhenAddNetworkFails()
201 assertEquals(false, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyNetworkConnectionWhenEnableNetworkFails()
215 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyNetworkCallbackInvokedWhenConnected()
245 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyNetworkCallbackWithoutOnAvailable()
268 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyNetworkConnectionTimeout()
295 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyNetworkDisconnect()
313 assertEquals(true, mNetworkConnection.connect(TEST_SSID, TEST_NAI, TEST_PROVIDER_NAME)); in verifyWifiConfigurationForOsuNetwork()
DPasspointProvisioningTestUtil.java48 public static final WifiSsid TEST_SSID = field in PasspointProvisioningTestUtil
81 return new OsuProvider(TEST_SSID, friendlyNames, in generateOsuProviderWithFriendlyName()
85 return new OsuProvider(TEST_SSID, friendlyNames, in generateOsuProviderWithFriendlyName()
98 return new OsuProvider(TEST_SSID, friendlyNameMap, in generateInvalidServerUrlOsuProvider()
DPasspointManagerTest.java132 private static final String TEST_SSID = "TestSSID"; field in PasspointManagerTest
146 TEST_SSID, TEST_BSSID, TEST_HESSID, TEST_ANQP_DOMAIN_ID);
148 TEST_SSID, TEST_BSSID, TEST_HESSID, TEST_ANQP_DOMAIN_ID2);
348 scanResult.SSID = TEST_SSID; in createTestScanResult()
366 scanResult.SSID = TEST_SSID; in createTestScanResults()
1619 scanDetails.add(generateScanDetail(TEST_SSID, TEST_BSSID_STRING, TEST_HESSID, in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch()
1663 scanDetails.add(generateScanDetail(TEST_SSID, TEST_BSSID_STRING, 0, 0, false)); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch()
DPasspointProvisionerTest.java131 private static final String TEST_SSID = "TestSSID"; field in PasspointProvisionerTest
475 scanResult.SSID = TEST_SSID; in verifySelectBestOsuProviderForProvisioning()
501 if (scanResult.SSID.equals(TEST_SSID)) { in verifySelectBestOsuProviderForProvisioning()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java62 private static final String TEST_SSID = "TEST_SSID"; field in NetworkCapabilitiesTest
271 netCap.setSSID(TEST_SSID); in testParcelNetworkCapabilities()
390 nc1.setSSID(TEST_SSID); in testSSID()
392 nc2.setSSID("different " + TEST_SSID); in testSSID()
427 nc1.setSSID(TEST_SSID); in testCombineCapabilities()
429 assertTrue(TEST_SSID.equals(nc2.getSSID())); in testCombineCapabilities()
439 nc1.setSSID(TEST_SSID); in testCombineCapabilities()
572 nc1.setSSID(TEST_SSID); in testSet()
579 assertTrue(TEST_SSID.equals(nc2.getSSID())); in testSet()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/
DNativeScanResultTest.java39 private static final byte[] TEST_SSID = field in NativeScanResultTest
61 scanResult.ssid = TEST_SSID; in canSerializeAndDeserialize()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java86 private static final String TEST_SSID = "\"test_ssid\""; field in AccessPointTest
131 mWifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in setUp()
133 mScanResults = buildScanResultCache(TEST_SSID); in setUp()
141 bundle.putString("key_ssid", TEST_SSID); in testSsidIsSpannableString_returnFalse()
550 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID));
572 .setSsid(TEST_SSID)
614 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)),
651 .setSsid(TEST_SSID)
1069 info.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in testSpeedLabelFallbackScoreIgnoresNullCurves()
1075 createScanResult(TEST_SSID, "11:11:11:11:11:11", DEFAULT_RSSI); in testSpeedLabelFallbackScoreIgnoresNullCurves()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java54 private static final String TEST_SSID = "\"test_ssid\""; field in WifiUtilsTest
154 ScanResult scanResult = createScanResult(TEST_SSID, "bssid-" + i, i); in buildScanResultCache()
174 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)), in buildScoredNetworkWithGivenBadgeCurve()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java81 private static final String TEST_SSID = "AndroidAP"; field in NetworkStatsObserversTest
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java204 private static final String TEST_SSID = "AndroidAP"; field in NetworkPolicyManagerServiceTest
209 private static NetworkTemplate sTemplateWifi = buildTemplateWifi(TEST_SSID);
1828 return new NetworkState(info, prop, networkCapabilities, null, null, TEST_SSID); in buildWifi()

12