Home
last modified time | relevance | path

Searched refs:specifier (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/android/net/
DStringNetworkSpecifier.java34 public final String specifier; field in StringNetworkSpecifier
36 public StringNetworkSpecifier(String specifier) { in StringNetworkSpecifier() argument
37 Preconditions.checkStringNotEmpty(specifier); in StringNetworkSpecifier()
38 this.specifier = specifier; in StringNetworkSpecifier()
49 return TextUtils.equals(specifier, ((StringNetworkSpecifier) o).specifier); in equals()
54 return Objects.hashCode(specifier); in hashCode()
59 return specifier; in toString()
69 dest.writeString(specifier); in writeToParcel()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSpecifierTest.java58 NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern() local
62 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
63 WifiNetworkSpecifier wifiNetworkSpecifier = (WifiNetworkSpecifier) specifier; in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
81 NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern() local
87 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
88 WifiNetworkSpecifier wifiNetworkSpecifier = (WifiNetworkSpecifier) specifier; in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
113 NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() local
120 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
121 WifiNetworkSpecifier wifiNetworkSpecifier = (WifiNetworkSpecifier) specifier; in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
363 WifiNetworkSpecifier specifier = in testWifiNetworkSpecifierParcel() local
[all …]
DWifiNetworkAgentSpecifierTest.java57 WifiNetworkAgentSpecifier specifier = createDefaultNetworkAgentSpecifier(); in testWifiNetworkAgentSpecifierParcel() local
60 specifier.writeToParcel(parcelW, 0); in testWifiNetworkAgentSpecifierParcel()
70 assertEquals(specifier, parcelSpecifier); in testWifiNetworkAgentSpecifierParcel()
78 WifiNetworkAgentSpecifier specifier = createDefaultNetworkAgentSpecifier(); in testWifiNetworkAgentSpecifierNotUsedInNetworkRequest() local
80 specifier.assertValidFromUid(TEST_UID); in testWifiNetworkAgentSpecifierNotUsedInNetworkRequest()
177 WifiNetworkAgentSpecifier specifier = createDefaultNetworkAgentSpecifier(); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch() local
179 assertTrue(specifier.satisfiedBy(null)); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch()
180 assertTrue(specifier.satisfiedBy(new MatchAllNetworkSpecifier())); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java651 private static boolean isValidNetworkSpecifier(WifiNetworkSpecifier specifier) { in isValidNetworkSpecifier() argument
652 PatternMatcher ssidPatternMatcher = specifier.ssidPatternMatcher; in isValidNetworkSpecifier()
653 Pair<MacAddress, MacAddress> bssidPatternMatcher = specifier.bssidPatternMatcher; in isValidNetworkSpecifier()
664 private static boolean isMatchNoneNetworkSpecifier(WifiNetworkSpecifier specifier) { in isMatchNoneNetworkSpecifier() argument
665 PatternMatcher ssidPatternMatcher = specifier.ssidPatternMatcher; in isMatchNoneNetworkSpecifier()
666 Pair<MacAddress, MacAddress> bssidPatternMatcher = specifier.bssidPatternMatcher; in isMatchNoneNetworkSpecifier()
677 private static boolean isMatchAllNetworkSpecifier(WifiNetworkSpecifier specifier) { in isMatchAllNetworkSpecifier() argument
678 PatternMatcher ssidPatternMatcher = specifier.ssidPatternMatcher; in isMatchAllNetworkSpecifier()
679 Pair<MacAddress, MacAddress> bssidPatternMatcher = specifier.bssidPatternMatcher; in isMatchAllNetworkSpecifier()
707 public static boolean validateNetworkSpecifier(WifiNetworkSpecifier specifier) { in validateNetworkSpecifier() argument
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java273 WifiNetworkSpecifier specifier = createWifiNetworkSpecifier(TEST_UID_1, false); in testHandleAcceptNetworkRequestFromWithInvalidSpecifier() local
274 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromWithInvalidSpecifier()
289 WifiNetworkSpecifier specifier = createWifiNetworkSpecifier(TEST_UID_1, false); in testHandleAcceptNetworkRequestFromWithInternetCapability() local
290 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromWithInternetCapability()
308 WifiNetworkSpecifier specifier = createWifiNetworkSpecifier(TEST_UID_1, false); in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier() local
309 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier()
325 WifiNetworkSpecifier specifier = createWifiNetworkSpecifier(TEST_UID_1, false); in testHandleAcceptNetworkRequestFromFgAppWithSpecifier() local
326 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromFgAppWithSpecifier()
342 WifiNetworkSpecifier specifier = createWifiNetworkSpecifier(TEST_UID_1, false); in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier() local
343 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()
[all …]
DWifiConfigurationUtilTest.java594 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierPositiveCases_SsidPattern() local
599 assertTrue(WifiConfigurationUtil.validateNetworkSpecifier(specifier)); in testValidateNetworkSpecifierPositiveCases_SsidPattern()
608 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierPositiveCases_BssidPattern() local
613 assertTrue(WifiConfigurationUtil.validateNetworkSpecifier(specifier)); in testValidateNetworkSpecifierPositiveCases_BssidPattern()
622 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern() local
627 assertTrue(WifiConfigurationUtil.validateNetworkSpecifier(specifier)); in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern()
636 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierNegativeCases_NoSsidBssid() local
641 assertFalse(WifiConfigurationUtil.validateNetworkSpecifier(specifier)); in testValidateNetworkSpecifierNegativeCases_NoSsidBssid()
650 WifiNetworkSpecifier specifier = new WifiNetworkSpecifier( in testValidateNetworkSpecifierNegativeCases_MatchNoneSsidPattern() local
655 assertFalse(WifiConfigurationUtil.validateNetworkSpecifier(specifier)); in testValidateNetworkSpecifierNegativeCases_MatchNoneSsidPattern()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java206 NetworkSpecifier specifier = nai.networkCapabilities.getNetworkSpecifier(); in showNotification() local
208 if (specifier instanceof StringNetworkSpecifier) { in showNotification()
211 ((StringNetworkSpecifier) specifier).specifier); in showNotification()
214 + ((StringNetworkSpecifier) specifier).specifier); in showNotification()
DDnsManager.java130 final String specifier = getStringSetting(cr, PRIVATE_DNS_SPECIFIER); in getPrivateDnsConfig() local
131 return new PrivateDnsConfig(specifier, null); in getPrivateDnsConfig()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiTimerRecordSources.java447 int specifier = recordSource[TimerInfo.BASIC_INFO_SIZE]; in checkTimerRecordSource() local
448 if (specifier == EXTERNAL_SOURCE_SPECIFIER_EXTERNAL_PLUG) { in checkTimerRecordSource()
451 } else if (specifier == EXTERNAL_SOURCE_SPECIFIER_EXTERNAL_PHYSICAL_ADDRESS) { in checkTimerRecordSource()
/frameworks/base/tools/fonts/
Dfontchain_linter.py90 specifier = (cmap.format, cmap.platformID, cmap.platEncID)
91 if specifier == (4, 3, 1):
94 elif specifier == (12, 3, 10):
106 specifier = (cmap.format, cmap.platformID, cmap.platEncID)
107 if specifier == (14, 0, 5):
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java214 NetworkSpecifier specifier = request.networkCapabilities.getNetworkSpecifier(); in networkForRequest() local
215 if (specifier instanceof StringNetworkSpecifier) { in networkForRequest()
216 requestedIface = ((StringNetworkSpecifier) specifier).specifier; in networkForRequest()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java983 NetworkSpecifier specifier = networkRequest.networkCapabilities.getNetworkSpecifier(); in getSubIdFromNetworkRequest() local
984 if (specifier == null) { in getSubIdFromNetworkRequest()
990 if (specifier instanceof StringNetworkSpecifier) { in getSubIdFromNetworkRequest()
992 subId = Integer.parseInt(((StringNetworkSpecifier) specifier).specifier); in getSubIdFromNetworkRequest()
995 + ((StringNetworkSpecifier) specifier).specifier); in getSubIdFromNetworkRequest()
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto779 // The requested Private DNS mode and an accompanying specifier.
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java3399 private void setPrivateDnsSettings(String mode, String specifier) { in setPrivateDnsSettings() argument
3402 Settings.Global.putString(cr, Settings.Global.PRIVATE_DNS_SPECIFIER, specifier); in setPrivateDnsSettings()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java5209 subId = Integer.parseInt(((StringNetworkSpecifier) spec).specifier); in parseSubId()