/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 | 42 private static final String TEST_SSID = "Test123"; field in WifiNetworkAgentSpecifierTest 432 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 | 52 static final String TEST_SSID = "test_ssid"; field in WifiConfigurationUtilTest 595 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierPositiveCases_SsidPattern() 623 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern() 665 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierNegativeCases_MatchNoneBssidPattern() 679 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_LITERAL), in testValidateNetworkSpecifierNegativeCases_InvalidBssidPattern() 693 new PatternMatcher(TEST_SSID, PatternMatcher.PATTERN_PREFIX), in testValidateNetworkSpecifierNegativeCases_NoSsidPatternForHiddenNetwork() 758 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetwork() 759 WifiConfiguration network1 = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetwork() 769 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID() 771 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 | 88 private static final String TEST_SSID = "TestSSID"; field in SoftApManagerTest 187 config.SSID = TEST_SSID; in startSoftApWithConfig() 201 config.SSID = TEST_SSID; in startSoftApWithHiddenSsidTrueInConfig() 216 config.SSID = TEST_SSID; in startSoftApWithPassphraseInConfig() 355 config.SSID = TEST_SSID; in startSoftApOn5GhzFailGeneralErrorForNoCountryCode() 399 config.SSID = TEST_SSID; in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure() 447 config.SSID = TEST_SSID; in startSoftApOn24GhzNoFailForNoCountryCode() 463 config.SSID = TEST_SSID; in startSoftApOnAnyGhzNoFailForNoCountryCode() 479 config.SSID = TEST_SSID; in startSoftApOn2GhzNoFailForCountryCodeSetFailure() 498 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 | WifiConfigurationTestUtil.java | 68 public static final String TEST_SSID = "WifiConfigurationTestSSID"; field in WifiConfigurationTestUtil 238 String ssid = TEST_SSID + sNetworkIndex++; in createNewSSID()
|
D | WificondControlTest.java | 111 private static final byte[] TEST_SSID = field in WificondControlTest 146 ssid = TEST_SSID; 915 config.SSID = new String(TEST_SSID, StandardCharsets.UTF_8); in testSoftApListenerInvocation()
|
D | NetworkListStoreDataTest.java | 58 private static final String TEST_SSID = "WifiConfigStoreDataSSID_"; field in NetworkListStoreDataTest
|
/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 | 144 private static final String TEST_SSID = "TestSSID"; field in PasspointManagerTest 158 TEST_SSID, TEST_BSSID, TEST_HESSID, TEST_ANQP_DOMAIN_ID); 160 TEST_SSID, TEST_BSSID, TEST_HESSID, TEST_ANQP_DOMAIN_ID2); 386 scanResult.SSID = TEST_SSID; in createTestScanResult() 404 scanResult.SSID = TEST_SSID; in createTestScanResults() 1735 scanDetails.add(generateScanDetail(TEST_SSID, TEST_BSSID_STRING, TEST_HESSID, in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch() 1779 scanDetails.add(generateScanDetail(TEST_SSID, TEST_BSSID_STRING, 0, 0, false)); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch()
|
D | PasspointProvisionerTest.java | 130 private static final String TEST_SSID = "TestSSID"; field in PasspointProvisionerTest 474 scanResult.SSID = TEST_SSID; in verifySelectBestOsuProviderForProvisioning() 500 if (scanResult.SSID.equals(TEST_SSID)) { in verifySelectBestOsuProviderForProvisioning()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 87 private static final String TEST_SSID = "\"test_ssid\""; field in AccessPointTest 132 mWifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in setUp() 134 mScanResults = buildScanResultCache(TEST_SSID); in setUp() 142 bundle.putString("key_ssid", TEST_SSID); in testSsidIsSpannableString_returnFalse() 551 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); 573 .setSsid(TEST_SSID) 615 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)), 652 .setSsid(TEST_SSID) 1070 info.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in testSpeedLabelFallbackScoreIgnoresNullCurves() 1076 createScanResult(TEST_SSID, "11:11:11:11:11:11", DEFAULT_RSSI); in testSpeedLabelFallbackScoreIgnoresNullCurves() [all …]
|
/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/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/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 81 private static final String TEST_SSID = "TEST_SSID"; field in NetworkCapabilitiesTest 307 netCap.setSSID(TEST_SSID); in testParcelNetworkCapabilities() 322 netCap.setSSID(TEST_SSID); in testParcelNetworkCapabilitiesWithRequestorUidAndPackageName() 449 nc1.setSSID(TEST_SSID); in testSSID() 451 nc2.setSSID("different " + TEST_SSID); in testSSID() 503 nc1.setSSID(TEST_SSID); in testCombineCapabilities() 506 assertTrue(TEST_SSID.equals(nc2.getSsid())); in testCombineCapabilities() 517 nc1.setSSID(TEST_SSID); in testCombineCapabilities() 663 nc1.setSSID(TEST_SSID); in testSet() 671 assertTrue(TEST_SSID.equals(nc2.getSsid())); in testSet()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 79 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); 1887 return new NetworkState(info, prop, networkCapabilities, null, null, TEST_SSID); in buildWifi()
|