/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiNetworkSpecifierTest.java | 66 NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern() local 70 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern() 71 WifiNetworkSpecifier wifiNetworkSpecifier = (WifiNetworkSpecifier) specifier; in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern() 90 NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern() local 96 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern() 97 WifiNetworkSpecifier wifiNetworkSpecifier = (WifiNetworkSpecifier) specifier; in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern() 122 NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() local 129 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 130 WifiNetworkSpecifier wifiNetworkSpecifier = (WifiNetworkSpecifier) specifier; in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 160 NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testWifiNetworkSpecifierBuilderForWpa3EapNetwork() local [all …]
|
D | WifiNetworkAgentSpecifierTest.java | 52 WifiNetworkAgentSpecifier specifier = createDefaultNetworkAgentSpecifier(); in testWifiNetworkAgentSpecifierParcel() local 55 specifier.writeToParcel(parcelW, 0); in testWifiNetworkAgentSpecifierParcel() 65 assertEquals(specifier, parcelSpecifier); in testWifiNetworkAgentSpecifierParcel() 156 WifiNetworkAgentSpecifier specifier = createDefaultNetworkAgentSpecifier(); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch() local 158 assertTrue(specifier.canBeSatisfiedBy(null)); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch() 159 assertTrue(specifier.canBeSatisfiedBy(new MatchAllNetworkSpecifier())); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | TelephonyNetworkSpecifierTest.java | 63 TelephonyNetworkSpecifier specifier = new TelephonyNetworkSpecifier.Builder() in testBuilderBuildWithInvalidSubId() local 66 assertEquals(specifier.getSubscriptionId(), SubscriptionManager.INVALID_SUBSCRIPTION_ID); in testBuilderBuildWithInvalidSubId() 74 final TelephonyNetworkSpecifier specifier = new TelephonyNetworkSpecifier.Builder() in testBuilderBuildWithValidSubId() local 77 assertEquals(TEST_SUBID, specifier.getSubscriptionId()); in testBuilderBuildWithValidSubId() 85 TelephonyNetworkSpecifier specifier = new TelephonyNetworkSpecifier.Builder() in testParcel() local 88 assertParcelSane(specifier, 1 /* fieldCount */); in testParcel()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigurationUtil.java | 820 private static boolean isValidNetworkSpecifier(WifiNetworkSpecifier specifier) { in isValidNetworkSpecifier() argument 821 PatternMatcher ssidPatternMatcher = specifier.ssidPatternMatcher; in isValidNetworkSpecifier() 822 Pair<MacAddress, MacAddress> bssidPatternMatcher = specifier.bssidPatternMatcher; in isValidNetworkSpecifier() 833 private static boolean isMatchNoneNetworkSpecifier(WifiNetworkSpecifier specifier) { in isMatchNoneNetworkSpecifier() argument 834 PatternMatcher ssidPatternMatcher = specifier.ssidPatternMatcher; in isMatchNoneNetworkSpecifier() 835 Pair<MacAddress, MacAddress> bssidPatternMatcher = specifier.bssidPatternMatcher; in isMatchNoneNetworkSpecifier() 851 public static boolean isMatchAllNetworkSpecifier(WifiNetworkSpecifier specifier) { in isMatchAllNetworkSpecifier() argument 852 PatternMatcher ssidPatternMatcher = specifier.ssidPatternMatcher; in isMatchAllNetworkSpecifier() 853 Pair<MacAddress, MacAddress> bssidPatternMatcher = specifier.bssidPatternMatcher; in isMatchAllNetworkSpecifier() 889 public static boolean validateNetworkSpecifier(WifiNetworkSpecifier specifier, in validateNetworkSpecifier() argument [all …]
|
D | MultiInternetWifiNetworkFactory.java | 77 WifiNetworkSpecifier specifier, in NetworkRequestState() argument 82 networkRequestSpecifier = specifier; in NetworkRequestState()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkProviderTest.kt | 140 val specifier = CompatUtil.makeTestNetworkSpecifier( in <lambda>() constant 146 .setNetworkSpecifier(specifier) in <lambda>() 151 callback.request.getNetworkSpecifier() == specifier && in <lambda>() 164 setNetworkSpecifier(specifier) in <lambda>() 174 callback.request.getNetworkSpecifier() == specifier && in <lambda>() 181 callback.request.getNetworkSpecifier() == specifier && in <lambda>() 188 callback.request.getNetworkSpecifier() == specifier && in <lambda>() 385 val specifier = CompatUtil.makeTestNetworkSpecifier( in <lambda>() constant 389 .setNetworkSpecifier(specifier) in <lambda>() 395 cb.expectCallback<OnUnavailable>() { nr.getNetworkSpecifier() == specifier } in <lambda>()
|
D | NetworkCapabilitiesTest.java | 745 final NetworkSpecifier specifier = CompatUtil.makeEthernetNetworkSpecifier("eth0"); in testSetNetworkSpecifierOnMultiTransportNc() local 748 () -> nc1.build().setNetworkSpecifier(specifier)); in testSetNetworkSpecifierOnMultiTransportNc() 751 () -> nc1.setNetworkSpecifier(specifier)); in testSetNetworkSpecifierOnMultiTransportNc() 755 nc2.addTransportType(TRANSPORT_CELLULAR).setNetworkSpecifier(specifier); in testSetNetworkSpecifierOnMultiTransportNc() 767 final TelephonyNetworkSpecifier specifier = new TelephonyNetworkSpecifier(1); in testSetNetworkSpecifierWithCellularAndSatelliteMultiTransportNc() local 771 .setNetworkSpecifier(specifier) in testSetNetworkSpecifierWithCellularAndSatelliteMultiTransportNc() 774 assertEquals(specifier, nc.getNetworkSpecifier()); in testSetNetworkSpecifierWithCellularAndSatelliteMultiTransportNc() 779 final TelephonyNetworkSpecifier specifier = new TelephonyNetworkSpecifier(1); in testSetNetworkSpecifierWithWifiAndSatelliteMultiTransportNc() local 786 () -> nc1.build().setNetworkSpecifier(specifier)); in testSetNetworkSpecifierWithWifiAndSatelliteMultiTransportNc() 789 () -> nc1.setNetworkSpecifier(specifier)); in testSetNetworkSpecifierWithWifiAndSatelliteMultiTransportNc() [all …]
|
D | MatchAllNetworkSpecifierTest.kt | 43 private val specifier = MatchAllNetworkSpecifier() constant 64 assertFalse(specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier)) in testCanBeSatisfiedBy_OnlyForR() 70 specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier) in testCanBeSatisfiedBy()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 290 private fun makeTestNetworkRequest(specifier: NetworkSpecifier? = null) = in asEthSpecifier() 294 if (specifier != null) setNetworkSpecifier(specifier) in asEthSpecifier() 298 private fun makeTestNetworkRequest(specifier: String?) = in makeTestNetworkRequest() 299 makeTestNetworkRequest(specifier.asEthSpecifier()) in makeTestNetworkRequest() 302 specifier: String? = null, in makeTestNetworkRequest() 314 if (null != specifier) { in makeTestNetworkRequest() 315 setNetworkSpecifier(CompatUtil.makeEthernetNetworkSpecifier(specifier)) in makeTestNetworkRequest() 325 specifier: String? = null, in createNetworkAgent() 330 val nc = initialNc ?: makeTestNetworkCapabilities(specifier) in createNetworkAgent() 343 specifier: String? = UUID.randomUUID().toString(), in createConnectedNetworkAgent() [all …]
|
D | DscpPolicyTest.kt | 208 private fun makeTestNetworkRequest(specifier: String? = null): NetworkRequest { in <lambda>() 214 if (specifier != null) { in <lambda>() 215 it.setNetworkSpecifier(CompatUtil.makeTestNetworkSpecifier(specifier)) in <lambda>() 255 specifier: String? = iface.getInterfaceName() in <lambda>() 259 requestNetwork(makeTestNetworkRequest(specifier = specifier), callback) in <lambda>() 269 if (null != specifier) { in <lambda>() 270 setNetworkSpecifier(CompatUtil.makeTestNetworkSpecifier(specifier)) in <lambda>() 276 setInterfaceName(specifier) in <lambda>()
|
D | NetworkRequestTest.java | 163 final WifiNetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testSpecifier() local 169 .setNetworkSpecifier(specifier) in testSpecifier() 172 assertEquals(obtainedSpecifier, specifier); in testSpecifier()
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | IwlanNetworkStatusTracker.java | 186 NetworkSpecifier specifier; in onCrossSimEnabledEvent() local 192 specifier = nc.getNetworkSpecifier(); in onCrossSimEnabledEvent() 196 } else if (specifier instanceof TelephonyNetworkSpecifier) { in onCrossSimEnabledEvent() 197 activeDataSub = ((TelephonyNetworkSpecifier) specifier).getSubscriptionId(); in onCrossSimEnabledEvent() 476 NetworkSpecifier specifier = nc.getNetworkSpecifier(); in onAvailable() local 480 } else if (specifier instanceof TelephonyNetworkSpecifier) { in onAvailable() 482 ((TelephonyNetworkSpecifier) specifier).getSubscriptionId(); in onAvailable() 563 NetworkSpecifier specifier = nc.getNetworkSpecifier(); in onCapabilitiesChanged() local 567 } else if (specifier instanceof TelephonyNetworkSpecifier) { in onCapabilitiesChanged() 568 activeDataSub = ((TelephonyNetworkSpecifier) specifier).getSubscriptionId(); in onCapabilitiesChanged()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationUtilTest.java | 766 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierPositiveCases_SsidPattern() local 771 assertTrue(WifiConfigurationUtil.validateNetworkSpecifier(specifier, 5)); in testValidateNetworkSpecifierPositiveCases_SsidPattern() 780 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierPositiveCases_BssidPattern() local 785 assertTrue(WifiConfigurationUtil.validateNetworkSpecifier(specifier, 5)); in testValidateNetworkSpecifierPositiveCases_BssidPattern() 794 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern() local 799 assertTrue(WifiConfigurationUtil.validateNetworkSpecifier(specifier, 5)); in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern() 809 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierPositiveCases_SsidPatternAndBssidPatternAndBand() local 814 assertTrue(WifiConfigurationUtil.validateNetworkSpecifier(specifier, 5)); in testValidateNetworkSpecifierPositiveCases_SsidPatternAndBssidPatternAndBand() 824 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierNegativeCases_NoSsidBssid() local 829 assertFalse(WifiConfigurationUtil.validateNetworkSpecifier(specifier, 5)); in testValidateNetworkSpecifierNegativeCases_NoSsidBssid() [all …]
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | CompatUtil.kt | 48 private fun makeNetworkSpecifierInternal(clazz: String, specifier: String): NetworkSpecifier { in makeNetworkSpecifierInternal() 51 .getConstructor(String::class.java).newInstance(specifier) as NetworkSpecifier in makeNetworkSpecifierInternal()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | ConnectivitySettingsUtils.java | 128 public static void setPrivateDnsHostname(@NonNull Context context, @Nullable String specifier) { in setPrivateDnsHostname() argument 129 Settings.Global.putString(context.getContentResolver(), PRIVATE_DNS_SPECIFIER, specifier); in setPrivateDnsHostname() local
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | CarrierPrivilegeAuthenticatorTest.java | 241 final TelephonyNetworkSpecifier specifier = in testMultiSimConfigChanged() local 245 .setNetworkSpecifier(specifier) in testMultiSimConfigChanged() 278 final TelephonyNetworkSpecifier specifier = in testOnCarrierPrivilegesChanged() local 282 .setNetworkSpecifier(specifier) in testOnCarrierPrivilegesChanged()
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanNetworkService.java | 379 NetworkSpecifier specifier = networkCapabilities.getNetworkSpecifier(); in getConnectedDataSub() local 382 if (specifier instanceof TelephonyNetworkSpecifier) { in getConnectedDataSub() 383 connectedDataSub = ((TelephonyNetworkSpecifier) specifier).getSubscriptionId(); in getConnectedDataSub()
|
D | IwlanDataService.java | 2229 NetworkSpecifier specifier = networkCapabilities.getNetworkSpecifier(); in getConnectedDataSub() local 2232 if (specifier instanceof TelephonyNetworkSpecifier) { in getConnectedDataSub() 2233 connectedDataSub = ((TelephonyNetworkSpecifier) specifier).getSubscriptionId(); in getConnectedDataSub()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | CarrierPrivilegeAuthenticator.java | 433 int getSubIdFromTelephonySpecifier(@Nullable final NetworkSpecifier specifier) { in getSubIdFromTelephonySpecifier() argument 434 if (specifier instanceof TelephonyNetworkSpecifier) { in getSubIdFromTelephonySpecifier() 435 return ((TelephonyNetworkSpecifier) specifier).getSubscriptionId(); in getSubIdFromTelephonySpecifier()
|
D | NetworkNotificationManager.java | 251 NetworkSpecifier specifier = nai.networkCapabilities.getNetworkSpecifier(); in showNotification() local 253 if (specifier instanceof TelephonyNetworkSpecifier) { in showNotification() 254 subId = ((TelephonyNetworkSpecifier) specifier).getSubscriptionId(); in showNotification()
|
D | DnsManager.java | 140 final String specifier = getStringSetting(context.getContentResolver(), in getPrivateDnsConfig() local 142 return new PrivateDnsConfig(specifier, null); in getPrivateDnsConfig()
|
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/ |
D | MainActivity.java | 247 void checkNetworkConnectionAvailable(EthernetNetworkSpecifier specifier) { in checkNetworkConnectionAvailable() argument 252 .setNetworkSpecifier(specifier) in checkNetworkConnectionAvailable()
|
/packages/modules/Connectivity/tests/cts/multidevices/snippet/ |
D | ConnectivityMultiDevicesSnippet.kt | 96 val specifier = WifiNetworkSpecifier.Builder() in connectToWifi() constant
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivitySettingsManager.java | 806 public static void setPrivateDnsHostname(@NonNull Context context, @Nullable String specifier) { in setPrivateDnsHostname() argument 807 ConnectivitySettingsUtils.setPrivateDnsHostname(context, specifier); in setPrivateDnsHostname()
|
D | NetworkCapabilities.java | 3197 public Builder setNetworkSpecifier(@Nullable final NetworkSpecifier specifier) { in setNetworkSpecifier() argument 3198 mCaps.setNetworkSpecifier(specifier); in setNetworkSpecifier()
|