/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkSuggestionTest.java | 38 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 …]
|
D | WifiNetworkSpecifierTest.java | 46 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 …]
|
D | WifiSsidTest.java | 34 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()
|
D | ScanResultTest.java | 38 public static final String TEST_SSID = "\"test_ssid\""; field in ScanResultTest 174 result.wifiSsid = WifiSsid.createFromAsciiEncoded(TEST_SSID); in createScanResult()
|
D | WifiNetworkAgentSpecifierTest.java | 43 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/ |
D | CarrierNetworkConfigTest.java | 56 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()
|
D | WifiConfigurationUtilTest.java | 57 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 …]
|
D | WrongPasswordNotifierTest.java | 45 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()
|
D | DppManagerTest.java | 77 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()
|
D | SoftApManagerTest.java | 71 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 …]
|
D | WifiBackupRestoreTest.java | 209 dumpString.contains(WifiConfigurationTestUtil.TEST_SSID)); in cleanUp() 904 + "ssid=" + WifiConfigurationTestUtil.TEST_SSID + "\n" in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey() 917 expectedConfiguration.SSID = WifiConfigurationTestUtil.TEST_SSID; in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
|
D | NetworkListStoreDataTest.java | 57 private static final String TEST_SSID = "WifiConfigStoreDataSSID_"; field in NetworkListStoreDataTest
|
D | WifiConfigurationTestUtil.java | 67 public static final String TEST_SSID = "WifiConfigurationTestSSID"; field in WifiConfigurationTestUtil 237 String ssid = TEST_SSID + sNetworkIndex++; in createNewSSID()
|
D | WificondControlTest.java | 110 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/ |
D | OsuProviderTest.java | 42 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/ |
D | OsuNetworkConnectionTest.java | 73 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()
|
D | PasspointProvisioningTestUtil.java | 48 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()
|
D | PasspointManagerTest.java | 132 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()
|
D | PasspointProvisionerTest.java | 131 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/ |
D | NetworkCapabilitiesTest.java | 62 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/ |
D | NativeScanResultTest.java | 39 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/ |
D | AccessPointTest.java | 86 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/ |
D | WifiUtilsTest.java | 54 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/ |
D | NetworkStatsObserversTest.java | 81 private static final String TEST_SSID = "AndroidAP"; field in NetworkStatsObserversTest
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 204 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()
|