Home
last modified time | relevance | path

Searched refs:domains (Results 1 – 25 of 70) sorted by relevance

123

/packages/modules/Connectivity/framework/src/android/net/
DStaticIpConfiguration.java54 public String domains; field in StaticIpConfiguration
71 domains = source.domains; in StaticIpConfiguration()
81 domains = null; in clear()
110 return domains; in getDomains()
191 config.domains = mDomains; in build()
249 lp.setDomains(domains); in toLinkProperties()
270 if (domains != null) str.append(domains); in toString()
279 result = 47 * result + (domains == null ? 0 : domains.hashCode()); in hashCode()
296 Objects.equals(domains, other.domains); in equals()
326 dest.writeString(domains); in writeToParcel()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/
DDomainUrlsUtilsTest.java86 ArraySet<String> domains = new ArraySet<>(); in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain() local
87 domains.add("test.domain.com"); in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain()
90 domains)).isEqualTo( in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain()
91 mContext.getString(R.string.domain_urls_summary_one, domains.valueAt(0))); in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain()
99 ArraySet<String> domains = new ArraySet<>(); in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains() local
100 domains.add("test.domain.com"); in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
101 domains.add("test.domain2.com"); in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
104 domains)).isEqualTo( in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
105 mContext.getString(R.string.domain_urls_summary_some, domains.valueAt(0))); in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
111 ArraySet<String> domains = new ArraySet<>(); in getHandledDomains_includeIntentFilterVerificationInfoDomains() local
[all …]
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp50 mParcel.domains = {kDefaultSearchDomain}; in Builder()
56 void DnsResponderClient::SetupMappings(unsigned numHosts, const std::vector<std::string>& domains, in SetupMappings() argument
58 mappings->resize(numHosts * domains.size()); in SetupMappings()
61 for (const auto& domain : domains) { in SetupMappings()
73 std::vector<std::string> domains; in getResolverInfo() local
78 auto rv = mDnsResolvSrv->getResolverInfo(TEST_NETID, &dnsServers, &domains, &dotServers, in getResolverInfo()
96 .domains = std::move(domains), in getResolverInfo()
119 const std::vector<std::string>& domains, in SetResolversForNetwork() argument
125 .setDomains(domains) in SetResolversForNetwork()
135 const std::vector<std::string>& domains) { in SetResolversForNetwork() argument
[all …]
Ddns_responder_client_ndk.h54 std::vector<std::string> domains; member
74 constexpr Builder& setDomains(const std::vector<std::string>& domains) { in setDomains() argument
75 mParcel.domains = domains; in setDomains()
114 static void SetupMappings(unsigned num_hosts, const std::vector<std::string>& domains,
120 const std::vector<std::string>& domains, std::vector<int> params);
124 const std::vector<std::string>& domains = {kDefaultSearchDomain});
/packages/modules/NetworkStack/src/android/net/
DDhcpResults.java49 public String domains; field in DhcpResults
79 .setDomains(domains) in toStaticIpConfiguration()
89 domains = source.getDomains(); in DhcpResults()
131 domains = null; in clear()
175 return Objects.hash(ipAddress, gateway, dnsServers, domains, serverAddress, vendorInfo, in hashCode()
302 return domains; in getDomains()
305 public void setDomains(String domains) { in setDomains() argument
306 this.domains = domains; in setDomains()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DDomainNameElement.java44 public DomainNameElement(List<String> domains) { in DomainNameElement() argument
46 mDomains = domains; in DomainNameElement()
57 List<String> domains = new ArrayList<>(); in parse() local
60 domains.add(ByteBufferReader.readStringWithByteLength( in parse()
63 return new DomainNameElement(domains); in parse()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp64 std::vector<std::string> domains; member
207 return resolv_set_nameservers(netId, setup.servers, setup.domains, setup.params, in cacheSetupResolver()
222 char domains[MAXDNSRCH][MAXDNSRCHPATH]; in expectCacheStats() local
226 android_net_res_stats_get_info_for_net(netId, &nscount, servers, &dcount, domains, &params, in expectCacheStats()
236 EXPECT_EQ(dcount, static_cast<int>(expected.setup.domains.size())) << msg; in expectCacheStats()
238 EXPECT_EQ(std::string(domains[i]), expected.setup.domains[i]) << msg; in expectCacheStats()
646 .domains = {"domain1.com", "domain2.com"}, in TEST_F()
670 .domains = {"domain1.com"}, in TEST_F()
693 .domains = {}, in TEST_F()
703 setup.domains = {validDomain1, domainTooLong, validDomain2}; in TEST_F()
[all …]
Dresolv_stress_test.cpp38 std::vector<std::string> domains = {"example.com"}; in RunGetAddrInfoStressTest() local
42 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupMappings(num_hosts, domains, &mappings)); in RunGetAddrInfoStressTest()
Dresolv_callback_unit_test.cpp123 const std::vector<std::string> domains = {"example.com"}; in SetResolvers() local
132 return resolv_set_nameservers(TEST_NETID, servers, domains, params, std::nullopt); in SetResolvers()
Ddnsresolver_binder_test.cpp230 fmt::join(parms.servers, ", "), fmt::join(parms.domains, ", "), parms.tlsName, in toString()
503 std::vector<std::string> domains = {"example.com"}; in TEST_F() local
512 .setDomains(domains) in TEST_F()
533 EXPECT_EQ(domains.size(), res_domains.size()); in TEST_F()
555 EXPECT_THAT(res_domains, testing::UnorderedElementsAreArray(domains)); in TEST_F()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DDomainUrlsUtils.java37 ArraySet<String> domains) { in getDomainsSummary() argument
47 if (domains.isEmpty()) { in getDomainsSummary()
49 } else if (domains.size() == 1) { in getDomainsSummary()
50 return context.getString(R.string.domain_urls_summary_one, domains.valueAt(0)); in getDomainsSummary()
52 return context.getString(R.string.domain_urls_summary_some, domains.valueAt(0)); in getDomainsSummary()
/packages/modules/DnsResolver/
DResolverController.cpp79 int getDnsInfo(unsigned netId, std::vector<std::string>* servers, std::vector<std::string>* domains, in getDnsInfo() argument
101 domains->clear(); in getDnsInfo()
149 domains->push_back(res_domains[i]); in getDnsInfo()
241 resolverParams.domains, res_params, in setResolverConfiguration()
246 std::vector<std::string>* domains, in getResolverInfo() argument
254 int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats, in getResolverInfo()
300 std::vector<std::string> domains; in dump() local
305 int rv = getDnsInfo(netId, &servers, &domains, &params, &stats, in dump()
340 if (domains.empty()) { in dump()
343 std::string domains_str = android::base::Join(domains, ", "); in dump()
DDnsResolverService.cpp206 .args(resolverParams.netId, resolverParams.servers, resolverParams.domains, in setResolverConfiguration()
219 int32_t netId, std::vector<std::string>* servers, std::vector<std::string>* domains, in getResolverInfo() argument
226 int res = gDnsResolv->resolverCtrl.getResolverInfo(netId, servers, domains, tlsServers, params, in getResolverInfo()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DStaticIpConfigurationTest.java76 assertNull(s.domains); in checkEmpty()
87 s.domains = FAKE_DOMAINS; in makeTestObject()
133 s.domains = "example.com"; in testHashCodeAndEquals()
146 s.domains = "foo"; in testHashCodeAndEquals()
196 s.domains = FAKE_DOMAINS; in testToLinkProperties()
253 assertEquals(s.domains, s.getDomains()); in testBuilder()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPMatcherTest.java72 String[] domains = new String[] {fqdn}; in matchDomainNameUsingFQDN() local
73 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingFQDN()
88 String[] domains = new String[] {"wlan.mnc456.mcc123.3gppnetwork.org"}; in matchDomainNameUsingIMSI() local
89 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingIMSI()
361 String[] domains = new String[] {"wlan.mnc456.mccI23.3gppnetwork.org"}; in verifyInvalidDomain() local
362 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in verifyInvalidDomain()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpResultsParcelableUtilTest.java56 mDhcpResults.domains = "example.com"; in setUp()
86 mDhcpResults.domains = null; in testParcelUnparcelDhcpResults_NullDomains()
92 mDhcpResults.domains = ""; in testParcelUnparcelDhcpResults_EmptyDomains()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DInstantAppDomainsPreferenceControllerTest.java99 final ArraySet<String> domains = new ArraySet<>(); in updateState_shouldSetPreferenceTitle() local
100 domains.add(domain[0]); in updateState_shouldSetPreferenceTitle()
103 new IntentFilterVerificationInfo("Package1", domains); in updateState_shouldSetPreferenceTitle()
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DEmergencyCallDomainSelector.java751 List<Integer> domains = getDomainPreference(); in getNextPreferredNetworks() local
752 int psPriority = domains.indexOf(DOMAIN_PS_3GPP); in getNextPreferredNetworks()
753 int csPriority = domains.indexOf(DOMAIN_CS); in getNextPreferredNetworks()
1039 List<Integer> domains = getDomainPreference(); in isEmcOverWifiSupported() local
1040 boolean ret = domains.contains(DOMAIN_PS_NON_3GPP); in isEmcOverWifiSupported()
1056 List<Integer> domains = getDomainPreference(); in isWifiPreferred() local
1057 int priority = domains.indexOf(DOMAIN_PS_NON_3GPP); in isWifiPreferred()
1156 int[] domains = mDomainPreference; in getDomainPreference() local
1157 if (isInRoaming()) domains = mDomainPreferenceRoam; in getDomainPreference()
1160 for (int i = 0; i < domains.length; i++) { in getDomainPreference()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDnsManager.java377 paramsParcel.domains = getDomainStrings(lp.getDomains()); in sendDnsConfigurationForNetwork()
401 Arrays.toString(paramsParcel.domains), paramsParcel.sampleValiditySeconds, in sendDnsConfigurationForNetwork()
489 private static String[] getDomainStrings(String domains) { in getDomainStrings() argument
490 return (TextUtils.isEmpty(domains)) ? new String[0] : domains.split(" "); in getDomainStrings()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DDomainNameElementTest.java63 private byte[] getTestData(String[] domains) throws IOException { in getTestData() argument
65 for (String domain : domains) { in getTestData()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DNetworkListAdapter.java68 vh.domains = convertView.findViewById(R.id.network_domains); in getView()
94 vh.domains.setText(mNetworkList[position].mDomains); in getView()
199 public TextView domains; field in NetworkListAdapter.ViewHolder
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DInstantAppDomainsPreferenceTest.kt82 private fun mockDomains(domains: Set<String>) { in mockDomains()
83 whenever(Utils.getHandledDomains(packageManager, PACKAGE_NAME)).thenReturn(domains) in mockDomains()
/packages/services/Car/cpp/computepipe/sepolicy/private/
Dcomputepiperunnerdomain.te2 ### Rules for all domains which are computepipe clients
Dcomputepipeclientdomain.te2 ### Rules for all domains which are computepipe clients
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/2/android/net/
DResolverParamsParcel.aidl28 @utf8InCpp String[] domains;

123