/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/ |
D | XNetworkDataTest.java | 80 final XNetworkData network2 = createExample(); in testHashCode_equals() local 82 final Set<XNetworkData> networkSet2 = Set.of(network2); in testHashCode_equals() 83 assertEquals(network1.hashCode(), network2.hashCode()); in testHashCode_equals() 84 assertEquals(network1, network2); in testHashCode_equals() 91 final XNetworkData network2 = in testHashCode_notEquals() local 94 final Set<XNetworkData> networkSet2 = Set.of(network2); in testHashCode_notEquals() 95 assertNotEquals(network1.hashCode(), network2.hashCode()); in testHashCode_notEquals() 96 assertNotEquals(network1, network2); in testHashCode_notEquals()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | LruConnectionTrackerTest.java | 66 WifiConfiguration network2 = WifiConfigurationTestUtil.createOpenNetwork(); in testConnectionOrderStore() local 71 mList.addNetwork(network2); in testConnectionOrderStore() 77 assertEquals(2, mList.getAgeIndexOfNetwork(network2)); in testConnectionOrderStore() 88 assertEquals(3, mList.getAgeIndexOfNetwork(network2)); in testConnectionOrderStore() 94 WifiConfiguration network2 = WifiConfigurationTestUtil.createOpenNetwork(); in testIsMostRecentlyNetwork() local 98 mList.addNetwork(network2); in testIsMostRecentlyNetwork() 101 assertTrue(mList.isMostRecentlyConnected(network2)); in testIsMostRecentlyNetwork() 109 mList.addNetwork(network2); in testIsMostRecentlyNetwork() 111 assertTrue(mList.isMostRecentlyConnected(network2)); in testIsMostRecentlyNetwork()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/ |
D | NetworkMonitorTest.java | 128 final Network network2 = mock(Network.class); in testWaitForValidated_NetworkChange() local 129 cb.onAvailable(network2); in testWaitForValidated_NetworkChange() 130 cb.onBlockedStatusChanged(network2, false); in testWaitForValidated_NetworkChange() 135 cb.onCapabilitiesChanged(network2, new NetworkCapabilities.Builder() in testWaitForValidated_NetworkChange()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 2996 WifiConfiguration network2 = WifiConfigurationTestUtil.createPskNetwork(); in testNetworkLinkUsingGwMacAddress() local 2999 network2.preSharedKey = "\"preSharedKey2\""; in testNetworkLinkUsingGwMacAddress() 3002 verifyAddNetworkToWifiConfigManager(network2); in testNetworkLinkUsingGwMacAddress() 3009 network2.networkId, TEST_DEFAULT_GW_MAC_ADDRESS)); in testNetworkLinkUsingGwMacAddress() 3015 ScanDetail networkScanDetail2 = createScanDetailForNetwork(network2); in testNetworkLinkUsingGwMacAddress() 3030 mWifiConfigManager.updateNetworkSelectionStatus(network2.networkId, in testNetworkLinkUsingGwMacAddress() 3035 mWifiConfigManager.updateLinkedNetworks(network2.networkId); in testNetworkLinkUsingGwMacAddress() 3062 WifiConfiguration network2 = WifiConfigurationTestUtil.createPskNetwork(); in testNetworkLinkOnlyIfCredentialsMatch() local 3066 network2.preSharedKey = "\"preSharedKey1\""; in testNetworkLinkOnlyIfCredentialsMatch() 3069 verifyAddNetworkToWifiConfigManager(network2); in testNetworkLinkOnlyIfCredentialsMatch() [all …]
|
D | WakeupConfigStoreDataTest.java | 135 ScanResultMatchInfo network2 = new ScanResultMatchInfo(); in deserializeSerializedData() local 136 network2.networkSsid = ",.23;4@, .#,%(,"; in deserializeSerializedData() 137 network2.securityParamsList.add( in deserializeSerializedData() 147 Set<ScanResultMatchInfo> networks = Sets.newArraySet(network1, network2, network3); in deserializeSerializedData()
|
D | WifiNetworkSuggestionsManagerTest.java | 4262 WifiConfiguration network2 = WifiConfigurationTestUtil.createPskNetwork(); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSameOpenSuggestion() local 4263 ScanDetail scanDetail2 = createScanDetailForNetwork(network2); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSameOpenSuggestion() 4264 network2.carrierId = TEST_CARRIER_ID; in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSameOpenSuggestion() 4266 network2, null, false, false, true, true, DEFAULT_PRIORITY_GROUP); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSameOpenSuggestion() 4290 WifiConfiguration network2 = WifiConfigurationTestUtil.createPskNetwork(); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSecureSuggestion() local 4291 ScanDetail scanDetail2 = createScanDetailForNetwork(network2); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSecureSuggestion() 4292 network2.carrierId = TEST_CARRIER_ID; in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSecureSuggestion() 4294 network2, null, false, false, true, true, DEFAULT_PRIORITY_GROUP); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithoutSecureSuggestion() 4318 WifiConfiguration network2 = WifiConfigurationTestUtil.createPskNetwork(); in testShouldNotBeIgnoredWithoutCarrierProvisioningPermission() local 4319 ScanDetail scanDetail2 = createScanDetailForNetwork(network2); in testShouldNotBeIgnoredWithoutCarrierProvisioningPermission() [all …]
|
D | WifiConfigurationUtilTest.java | 1012 WifiConfiguration network2 = WifiConfigurationTestUtil.createEapNetwork(TEST_SSID); in testIsSameNetworkReturnsFalseOnDifferentEapIdentity() local 1014 network2.enterpriseConfig.setIdentity("Identity2"); in testIsSameNetworkReturnsFalseOnDifferentEapIdentity() 1015 assertFalse(WifiConfigurationUtil.isSameNetwork(network1, network2)); in testIsSameNetworkReturnsFalseOnDifferentEapIdentity() 1025 WifiConfiguration network2 = WifiConfigurationTestUtil.createEapNetwork(TEST_SSID); in testIsSameNetworkReturnsFalseOnDifferentEapAnonymousIdentity() local 1027 network2.enterpriseConfig.setAnonymousIdentity("Identity2"); in testIsSameNetworkReturnsFalseOnDifferentEapAnonymousIdentity() 1028 assertFalse(WifiConfigurationUtil.isSameNetwork(network1, network2)); in testIsSameNetworkReturnsFalseOnDifferentEapAnonymousIdentity() 1038 WifiConfiguration network2 = WifiConfigurationTestUtil.createEapNetwork(TEST_SSID); in testIsSameNetworkReturnValueOnDifferentEapAnonymousIdentityInEapSim() local 1040 network2.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testIsSameNetworkReturnValueOnDifferentEapAnonymousIdentityInEapSim() 1042 network2.enterpriseConfig.setAnonymousIdentity("Identity2"); in testIsSameNetworkReturnValueOnDifferentEapAnonymousIdentityInEapSim() 1044 assertTrue(WifiConfigurationUtil.isSameNetwork(network1, network2)); in testIsSameNetworkReturnValueOnDifferentEapAnonymousIdentityInEapSim() [all …]
|
D | WifiConnectivityManagerTest.java | 5885 WifiConfiguration network2 = WifiConfigurationTestUtil.createPskNetwork(); in testExternalPnoScanRequest_withSavedNetworks() local 5886 network2.getNetworkSelectionStatus().setHasEverConnected(true); in testExternalPnoScanRequest_withSavedNetworks() 5890 networkList.add(network2); in testExternalPnoScanRequest_withSavedNetworks() 5893 mLruConnectionTracker.addNetwork(network2); in testExternalPnoScanRequest_withSavedNetworks() 5901 requestedSsids.add(network2.SSID); in testExternalPnoScanRequest_withSavedNetworks() 5914 assertEquals(network2.SSID, pnoNetworks.get(1).ssid); in testExternalPnoScanRequest_withSavedNetworks() 5951 WifiConfiguration network2 = WifiConfigurationTestUtil.createPskNetwork(); in testRetrievePnoList() local 5959 network2.getNetworkSelectionStatus().setHasEverConnected(true); in testRetrievePnoList() 5967 networkList.add(network2); in testRetrievePnoList() 5974 mLruConnectionTracker.addNetwork(network2); in testRetrievePnoList() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 3016 WifiConfiguration network1, WifiConfiguration network2, in shouldNetworksBeLinked() argument 3021 if (!TextUtils.equals(network1.preSharedKey, network2.preSharedKey)) { in shouldNetworksBeLinked() 3031 || (network2.defaultGwMacAddress != null && network2.defaultGwMacAddress in shouldNetworksBeLinked() 3038 if (network1.defaultGwMacAddress != null && network2.defaultGwMacAddress != null) { in shouldNetworksBeLinked() 3040 if (network1.defaultGwMacAddress.equalsIgnoreCase(network2.defaultGwMacAddress)) { in shouldNetworksBeLinked() 3042 Log.v(TAG, "shouldNetworksBeLinked link due to same gw " + network2.SSID in shouldNetworksBeLinked() 3064 + network2.SSID + " and " + network1.SSID in shouldNetworksBeLinked() 3081 private void linkNetworks(WifiConfiguration network1, WifiConfiguration network2) { in linkNetworks() argument 3083 Log.v(TAG, "linkNetworks will link " + network2.getProfileKey() in linkNetworks() 3086 if (network2.linkedConfigurations == null) { in linkNetworks() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 1657 val network2 = agent2.network!! in testRegisterAfterUnregister() constant 1659 testCallback.expectAvailableThenValidatedCallbacks(network2) in testRegisterAfterUnregister() 1660 sendAndExpectUdpPacket(network2, reader, iface) in testRegisterAfterUnregister() 1662 testCallback.expect<Lost>(network2) in testRegisterAfterUnregister() 1686 val (agent2, network2) = connectNetwork() in testUnregisterAfterReplacement() constant 1687 matchAllCallback.expectAvailableThenValidatedCallbacks(network2) in testUnregisterAfterReplacement() 1688 matchAllCallback.expect<Lost>(network2) in testUnregisterAfterReplacement() 1691 assertNull(mCM.getLinkProperties(network2)) in testUnregisterAfterReplacement()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 706 final Network network2 = new Network(101); in testUnderlyingNetworks() local 709 inputNetworks.add(network2); in testUnderlyingNetworks() 713 assertEquals(network2, outputNetworks.get(1)); in testUnderlyingNetworks() 1267 final Network network2 = new Network(101); in testBuilder() local 1268 final List<Network> inputNetworks = List.of(network1, network2); in testBuilder() 1293 assertEquals(network2, outputNetworks.get(1)); in testBuilder()
|
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivityTest.java | 519 final Network network2 = new Network(TEST_NETID + 2); in configVpnNetwork() local 520 final Network[] networks = new Network[] {network1, network2}; in configVpnNetwork() 528 doReturn(vpnCapabilities).when(sConnectivityManager).getNetworkCapabilities(network2); in configVpnNetwork()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/ |
D | EmergencyCallDomainSelectorTest.java | 4614 Network network2 = mock(Network.class); 4618 mNetworkCallback.onAvailable(network2); 4622 assertTrue(mDomainSelector.getWiFiNetworksAvailable().contains(network2)); 4629 assertTrue(mDomainSelector.getWiFiNetworksAvailable().contains(network2)); 4633 mNetworkCallback.onLost(network2); 4637 assertFalse(mDomainSelector.getWiFiNetworksAvailable().contains(network2));
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 7786 ScopedPhysicalNetwork network2 = CreateScopedPhysicalNetwork(ConnectivityType::V4V6); in TEST_F() local 7788 ASSERT_RESULT_OK(network2.init()); in TEST_F() 7791 const Result<DnsServerPair> dnsPair2 = network2.addIpv4Dns(); in TEST_F() 7802 ASSERT_TRUE(network2.setDnsConfiguration()); in TEST_F() 7803 ASSERT_TRUE(network2.startTunForwarder()); in TEST_F() 7807 int fd2 = resNetworkQuery(network2.netId(), host_name, ns_c_in, ns_t_a, 0); in TEST_F() 7817 fd2 = resNetworkQuery(network2.netId(), host_name, ns_c_in, ns_t_a, 0); in TEST_F()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 13188 final Network network2 = new Network(101); 13199 underlyingNetworks.add(network2);
|