Home
last modified time | relevance | path

Searched refs:domain (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java29 public static List<String> splitDomain(String domain) { in splitDomain() argument
31 if (domain.endsWith(".")) in splitDomain()
32 domain = domain.substring(0, domain.length() - 1); in splitDomain()
33 int at = domain.indexOf('@'); in splitDomain()
35 domain = domain.substring(at + 1); in splitDomain()
37 String[] labels = domain.toLowerCase().split("\\."); in splitDomain()
81 public static String getMccMnc(List<String> domain) { in getMccMnc() argument
82 if (domain.size() != PLMNText.length) { in getMccMnc()
89 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc()
94 String prefix = domain.get(2).substring(3) + domain.get(3).substring(3); in getMccMnc()
DDomainMatcher.java127 for (String domain : secondaryDomains) { in DomainMatcher()
128 if (!TextUtils.isEmpty(domain)) { in DomainMatcher()
129 List<String> secondaryLabel = Utils.splitDomain(domain); in DomainMatcher()
/frameworks/base/packages/Osu/src/com/android/hotspot2/pps/
DDomainMatcher.java84 public Match isSubDomain(List<String> domain) { in isSubDomain() argument
87 for (String labelString : domain) { in isSubDomain()
138 for (String domain : TestDomains) { in main()
139 System.out.println(domain + ": " + dm1.isSubDomain(Utils.splitDomain(domain))); in main()
145 for (String domain : TestDomains) { in main()
146 System.out.println(domain + ": " + dm2.isSubDomain(Utils.splitDomain(domain))); in main()
/frameworks/ex/common/tools/
Dmake-iana-tld-pattern.py160 for domain in domains:
161 domain = domain.lower() variable
163 if len(domain) > 0:
164 getBucket(buckets, domain[0]).add(domain.strip())
166 if domain.startswith('xn--'):
167 puny = domain.strip()[4:]
/frameworks/base/core/java/android/app/backup/
DFullBackup.java88 static public native int backupToTar(String packageName, String domain, in backupToTar() argument
283 private String sharedDomainToPath(String domain) throws IOException { in sharedDomainToPath() argument
285 final String volume = domain.substring(FullBackup.SHARED_PREFIX.length()); in sharedDomainToPath()
537 String domain) in parseCurrentTagForDomain() argument
540 final String domainToken = getTokenForXmlDomain(domain); in parseCurrentTagForDomain()
596 private File extractCanonicalFile(File domain, String filePathFromXml) { in extractCanonicalFile() argument
603 … Log.v(TAG_XML_PARSER, "...resolved \"" + domain.getPath() + " " + filePathFromXml in extractCanonicalFile()
610 … Log.v(TAG_XML_PARSER, "...resolved \"" + domain.getPath() + " " + filePathFromXml in extractCanonicalFile()
615 return new File(domain, filePathFromXml); in extractCanonicalFile()
622 private File getDirectoryForCriteriaDomain(String domain) { in getDirectoryForCriteriaDomain() argument
[all …]
DBackupAgent.java592 final String domain; in fullBackupFile() local
595 domain = FullBackup.DATABASE_TREE_TOKEN; in fullBackupFile()
598 domain = FullBackup.SHAREDPREFS_TREE_TOKEN; in fullBackupFile()
601 domain = FullBackup.FILES_TREE_TOKEN; in fullBackupFile()
604 domain = FullBackup.ROOT_TREE_TOKEN; in fullBackupFile()
607 domain = FullBackup.DEVICE_DATABASE_TREE_TOKEN; in fullBackupFile()
610 domain = FullBackup.DEVICE_SHAREDPREFS_TREE_TOKEN; in fullBackupFile()
613 domain = FullBackup.DEVICE_FILES_TREE_TOKEN; in fullBackupFile()
616 domain = FullBackup.DEVICE_ROOT_TREE_TOKEN; in fullBackupFile()
619 domain = FullBackup.MANAGED_EXTERNAL_TREE_TOKEN; in fullBackupFile()
[all …]
/frameworks/wilhelm/src/itf/
DIStreamInformation.cpp53 XAuint32 *domain) /* [out] */ in IStreamInformation_QueryStreamType() argument
57 if (NULL == domain) { in IStreamInformation_QueryStreamType()
63 *domain = XA_DOMAINTYPE_UNKNOWN; in IStreamInformation_QueryStreamType()
68 *domain = XA_DOMAINTYPE_UNKNOWN; in IStreamInformation_QueryStreamType()
78 *domain = thiz->mStreamInfoTable.itemAt(streamIndex).domain; in IStreamInformation_QueryStreamType()
117 switch (streamInfo.domain) { in IStreamInformation_QueryStreamInformation()
141 "unknown domain %u", streamIndex, streamInfo.domain); in IStreamInformation_QueryStreamInformation()
304 contInf.domain = XA_DOMAINTYPE_CONTAINER; in IStreamInformation_init()
/frameworks/base/core/java/android/security/net/config/
DApplicationConfig.java90 Domain domain = entry.first; in getConfigForHostname() local
93 if (domain.hostname.equals(hostname)) { in getConfigForHostname()
98 if (domain.subdomainsIncluded in getConfigForHostname()
99 && hostname.endsWith(domain.hostname) in getConfigForHostname()
100 && hostname.charAt(hostname.length() - domain.hostname.length() - 1) == '.') { in getConfigForHostname()
103 } else if (domain.hostname.length() > bestMatch.first.hostname.length()) { in getConfigForHostname()
DXmlConfigSource.java179 String domain = parser.getText().trim().toLowerCase(Locale.US); in parseDomain() local
186 if (!seenDomains.add(domain)) { in parseDomain()
187 throw new ParserException(parser, domain + " has already been specified"); in parseDomain()
189 return new Domain(domain, includeSubdomains); in parseDomain()
272 Domain domain = parseDomain(parser, seenDomains); in parseConfigEntry() local
273 domains.add(domain); in parseConfigEntry()
393 for (Domain domain : domains) { in parseNetworkSecurityConfig()
394 configs.add(new Pair<>(domain, config)); in parseNetworkSecurityConfig()
/frameworks/base/packages/Osu/src/com/android/hotspot2/
DUtils.java28 public static List<String> splitDomain(String domain) { in splitDomain() argument
30 if (domain.endsWith(".")) in splitDomain()
31 domain = domain.substring(0, domain.length() - 1); in splitDomain()
32 int at = domain.indexOf('@'); in splitDomain()
34 domain = domain.substring(at + 1); in splitDomain()
36 String[] labels = domain.toLowerCase().split("\\."); in splitDomain()
77 public static String getMccMnc(List<String> domain) { in getMccMnc() argument
78 if (domain.size() != PLMNText.length) { in getMccMnc()
85 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc()
90 String prefix = domain.get(2).substring(3) + domain.get(3).substring(3); in getMccMnc()
/frameworks/support/compat/tests/java/android/support/v4/util/
DPatternsCompatTest.java540 String domain = "xn--fsqu00a.xn--0zwm56d"; in testDomain_matchesPunycodeTld() local
542 PatternsCompat.DOMAIN_NAME.matcher(domain).matches()); in testDomain_matchesPunycodeTld()
547 String domain = "xn--fsqu00a.-xn--0zwm56d"; in testDomain_doesNotMatchPunycodeThatStartsWithDash() local
549 PatternsCompat.DOMAIN_NAME.matcher(domain).matches()); in testDomain_doesNotMatchPunycodeThatStartsWithDash()
554 String domain = "xn--fsqu00a.xn--0zwm56d-"; in testDomain_doesNotMatchPunycodeThatEndsWithDash() local
556 PatternsCompat.DOMAIN_NAME.matcher(domain).matches()); in testDomain_doesNotMatchPunycodeThatEndsWithDash()
565 String domain = "xn--fsqu00a." + tld; in testDomain_doesNotMatchPunycodeLongerThanAllowed() local
567 PatternsCompat.DOMAIN_NAME.matcher(domain).matches()); in testDomain_doesNotMatchPunycodeLongerThanAllowed()
572 String domain = "test.yu"; in testDomain_matchesObsoleteTld() local
574 PatternsCompat.DOMAIN_NAME.matcher(domain).matches()); in testDomain_matchesObsoleteTld()
[all …]
/frameworks/ex/common/java/com/android/common/
DRfc822Validator.java89 public Rfc822Validator(String domain) { in Rfc822Validator() argument
90 mDomain = domain; in Rfc822Validator()
177 String domain = removeIllegalCharacters(text.substring(index + 1)); in fixText() local
178 boolean emptyDomain = domain.length() == 0; in fixText()
180 tokens[i].setAddress(fix + "@" + (!emptyDomain ? domain : mDomain)); in fixText()
/frameworks/base/core/tests/coretests/src/android/util/
DPatternsTest.java564 String domain = "xn--fsqu00a.xn--0zwm56d"; in testDomain_matchesPunycodeTld() local
566 Patterns.DOMAIN_NAME.matcher(domain).matches()); in testDomain_matchesPunycodeTld()
571 String domain = "xn--fsqu00a.-xn--0zwm56d"; in testDomain_doesNotMatchPunycodeThatStartsWithDash() local
573 Patterns.DOMAIN_NAME.matcher(domain).matches()); in testDomain_doesNotMatchPunycodeThatStartsWithDash()
578 String domain = "xn--fsqu00a.xn--0zwm56d-"; in testDomain_doesNotMatchPunycodeThatEndsWithDash() local
580 Patterns.DOMAIN_NAME.matcher(domain).matches()); in testDomain_doesNotMatchPunycodeThatEndsWithDash()
589 String domain = "xn--fsqu00a." + tld; in testDomain_doesNotMatchPunycodeLongerThanAllowed() local
591 Patterns.DOMAIN_NAME.matcher(domain).matches()); in testDomain_doesNotMatchPunycodeLongerThanAllowed()
596 String domain = "test.yu"; in testDomain_matchesObsoleteTld() local
598 Patterns.DOMAIN_NAME.matcher(domain).matches()); in testDomain_matchesObsoleteTld()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DDomainNameElementTest.java49 private void appendDomain(ByteArrayOutputStream stream, String domain) throws IOException { in appendDomain() argument
50 byte[] domainBytes = domain.getBytes(StandardCharsets.ISO_8859_1); in appendDomain()
63 for (String domain : domains) { in getTestData()
64 appendDomain(stream, domain); in getTestData()
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DSharedStorageAgent.java55 String domain = FullBackup.SHARED_PREFIX + i; in onFullBackup() local
56 fullBackupFileTree(null, domain, v.getPath(), in onFullBackup()
68 int type, String domain, String relpath, long mode, long mtime) in onRestoreFile() argument
70 if (DEBUG) Slog.d(TAG, "Shared restore: [ " + domain + " : " + relpath + "]"); in onRestoreFile()
/frameworks/base/media/java/android/media/tv/
DTvContentRating.java807 public static TvContentRating createRating(String domain, String ratingSystem, in createRating() argument
809 if (TextUtils.isEmpty(domain)) { in createRating()
818 return new TvContentRating(domain, ratingSystem, rating, subRatings); in createRating()
855 String domain, String ratingSystem, String rating, String[] subRatings) { in TvContentRating() argument
856 mDomain = domain; in TvContentRating()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DNetworkSecurityConfigTests.java146 NetworkSecurityConfig domain = new NetworkSecurityConfig.Builder() in testBadPin() local
154 new Domain("android.com", true), domain)); in testBadPin()
164 NetworkSecurityConfig domain = new NetworkSecurityConfig.Builder() in testGoodPin() local
172 new Domain("android.com", true), domain)); in testGoodPin()
183 NetworkSecurityConfig domain = new NetworkSecurityConfig.Builder() in testOverridePins() local
191 new Domain("android.com", true), domain)); in testOverridePins()
249 NetworkSecurityConfig domain = new NetworkSecurityConfig.Builder() in testWithUrlConnection() local
257 new Domain("android.com", true), domain)); in testWithUrlConnection()
/frameworks/base/services/backup/java/com/android/server/backup/
DFileMetadata.java34 public String domain; // e.g. FullBackup.DATABASE_TREE_TOKEN field in FileMetadata
51 sb.append(domain); in toString()
81 b.append(domain); in dump()
/frameworks/base/services/core/java/com/android/server/pm/
DIntentFilterVerificationResponse.java35 for (String domain : failedDomains) { in getFailedDomainsString()
39 sb.append(domain); in getFailedDomainsString()
/frameworks/base/core/java/com/android/server/backup/
DSystemBackupAgent.java128 int type, String domain, String path, long mode, long mtime) in onRestoreFile() argument
130 Slog.i(TAG, "Restoring file domain=" + domain + " path=" + path); in onRestoreFile()
137 if (domain.equals(FullBackup.ROOT_TREE_TOKEN)) { in onRestoreFile()
149 Slog.w(TAG, "Skipping unrecognized system file: [ " + domain + " : " + path + " ]"); in onRestoreFile()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Ddevice_for_strategy_transmitted_through_speaker.pfw4 domain: UnreacheableDevices
33 domain: Speaker
Ddevice_for_input_source.pfw2 domain: Calibration
247 domain: DefaultAndMic
349 domain: VoiceUplinkAndVoiceDownlinkAndVoiceCall
364 domain: Camcorder
384 domain: VoiceRecognitionAndUnprocessedAndHotword
484 domain: VoiceCommunication
558 domain: RemoteSubmix
569 domain: FmTuner
Ddevice_for_strategy_media.pfw5 domain: UnreachableDevices
19 domain: Device2
305 domain: Arc
318 domain: Spdif
331 domain: AuxLine
Dvolumes.pfw2 domain: Calibration
17 domain: Dtmf
/frameworks/wilhelm/tests/sandbox/
Dxaplay.c227 static const char *domainToString(XAuint32 domain) in domainToString() argument
229 switch (domain) { in domainToString()
624 XAuint32 domain; in main() local
630 streamIndex, &domain); in main()
644 domain = 12345; in main()
646 &domain); in main()
648 printf(" QueryStreamType: domain = 0x%X (%s)\n", domain, domainToString(domain)); in main()
665 switch (domain) { in main()
759 XAuint32 domain; in main() local
761 &domain); in main()

123