Home
last modified time | relevance | path

Searched refs:Pattern (Results 1 – 25 of 179) sorted by relevance

12345678

/frameworks/support/compat/src/main/java/androidx/core/util/
DPatternsCompat.java23 import java.util.regex.Pattern;
153 public static final Pattern IP_ADDRESS
154 = Pattern.compile(
208 public static final Pattern DOMAIN_NAME
209 = Pattern.compile("(" + HOST_NAME + "|" + IP_ADDRESS + ")");
230 public static final Pattern WEB_URL = Pattern.compile("("
256 private static final Pattern STRICT_DOMAIN_NAME
257 = Pattern.compile("(?:" + STRICT_HOST_NAME + "|" + IP_ADDRESS + ")");
303 public static final Pattern AUTOLINK_WEB_URL = Pattern.compile(
332 public static final Pattern AUTOLINK_EMAIL_ADDRESS = Pattern.compile("(" + WORD_BOUNDARY +
[all …]
/frameworks/base/core/java/android/util/
DPatterns.java20 import java.util.regex.Pattern;
70 public static final Pattern TOP_LEVEL_DOMAIN =
71 Pattern.compile(TOP_LEVEL_DOMAIN_STR);
251 public static final Pattern IP_ADDRESS = Pattern.compile(IP_ADDRESS_STRING);
302 public static final Pattern DOMAIN_NAME = Pattern.compile(DOMAIN_NAME_STR);
323 public static final Pattern WEB_URL = Pattern.compile("("
395 public static final Pattern AUTOLINK_WEB_URL = Pattern.compile(
423 public static final Pattern AUTOLINK_EMAIL_ADDRESS = Pattern.compile("(" + WORD_BOUNDARY +
428 public static final Pattern EMAIL_ADDRESS
429 = Pattern.compile(
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DTextGraphReader.java25 import java.util.regex.Pattern;
170 final Pattern commandPattern = Pattern.compile("@[a-zA-Z]+"); in parseString()
171 final Pattern curlyClosePattern = Pattern.compile("\\}"); in parseString()
172 final Pattern curlyOpenPattern = Pattern.compile("\\{"); in parseString()
173 final Pattern ignorePattern = Pattern.compile("(\\s+|//[^\\n]*\\n)+"); in parseString()
174 final Pattern packageNamePattern = Pattern.compile("[a-zA-Z\\.]+"); in parseString()
175 final Pattern libraryNamePattern = Pattern.compile("[a-zA-Z\\./:]+"); in parseString()
176 final Pattern portPattern = Pattern.compile("\\[[a-zA-Z0-9\\-_]+\\]"); in parseString()
177 final Pattern rightArrowPattern = Pattern.compile("=>"); in parseString()
178 final Pattern semicolonPattern = Pattern.compile(";"); in parseString()
[all …]
DPatternScanner.java21 import java.util.regex.Pattern;
29 private Pattern mIgnorePattern;
38 public PatternScanner(String input, Pattern ignorePattern) { in PatternScanner()
44 public String tryEat(Pattern pattern) { in tryEat()
70 public String eat(Pattern pattern, String tokenName) { in eat()
78 public boolean peek(Pattern pattern) { in peek()
92 public void skip(Pattern pattern) { in skip()
/frameworks/base/core/java/android/webkit/
DFindAddress.java22 import java.util.regex.Pattern;
143 private static final Pattern sWordRe =
144 Pattern.compile("[^" + WORD_DELIM + "]+" + WORD_END, Pattern.CASE_INSENSITIVE);
161 private static final Pattern sHouseNumberRe =
162 Pattern.compile(HOUSE_COMPONENT + "(?:-" + HOUSE_COMPONENT + ")*" + HOUSE_END,
163 Pattern.CASE_INSENSITIVE);
166 private static final Pattern sStateRe = Pattern.compile("(?:"
227 Pattern.CASE_INSENSITIVE);
229 private static final Pattern sLocationNameRe = Pattern.compile("(?:"
253 Pattern.CASE_INSENSITIVE);
[all …]
/frameworks/support/compat/src/main/java/androidx/core/text/util/
DFindAddress.java27 import java.util.regex.Pattern;
152 private static final Pattern sWordRe =
153 Pattern.compile("[^" + WORD_DELIM + "]+" + WORD_END, Pattern.CASE_INSENSITIVE);
170 private static final Pattern sHouseNumberRe =
171 Pattern.compile(HOUSE_COMPONENT + "(?:-" + HOUSE_COMPONENT + ")*" + HOUSE_END,
172 Pattern.CASE_INSENSITIVE);
175 private static final Pattern sStateRe = Pattern.compile("(?:"
236 Pattern.CASE_INSENSITIVE);
238 private static final Pattern sLocationNameRe = Pattern.compile("(?:"
262 Pattern.CASE_INSENSITIVE);
[all …]
/frameworks/base/core/java/android/service/autofill/
DCharSequenceTransformation.java36 import java.util.regex.Pattern;
68 @NonNull private final LinkedHashMap<AutofillId, Pair<Pattern, String>> mFields;
82 for (Entry<AutofillId, Pair<Pattern, String>> entry : mFields.entrySet()) { in apply()
84 final Pair<Pattern, String> field = entry.getValue(); in apply()
115 @NonNull private final LinkedHashMap<AutofillId, Pair<Pattern, String>> mFields =
129 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @NonNull String subst) { in Builder()
144 public Builder addField(@NonNull AutofillId id, @NonNull Pattern regex, in addField()
191 final Pattern[] regexs = new Pattern[size]; in writeToParcel()
193 Pair<Pattern, String> pair; in writeToParcel()
195 for (Entry<AutofillId, Pair<Pattern, String>> entry : mFields.entrySet()) { in writeToParcel()
[all …]
DImageTransformation.java36 import java.util.regex.Pattern;
129 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId) { in Builder()
144 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId, in Builder()
162 public Builder addOption(@NonNull Pattern regex, @DrawableRes int resId) { in addOption()
178 public Builder addOption(@NonNull Pattern regex, @DrawableRes int resId, in addOption()
184 private void addOptionInternal(@NonNull Pattern regex, @DrawableRes int resId, in addOptionInternal()
231 final Pattern[] patterns = new Pattern[size]; in writeToParcel()
251 final Pattern[] regexs = (Pattern[]) parcel.readSerializable();
281 public final Pattern pattern;
285 Option(Pattern pattern, int resId, CharSequence contentDescription) { in Option()
DRegexValidator.java30 import java.util.regex.Pattern;
42 private final Pattern mRegex;
52 public RegexValidator(@NonNull AutofillId id, @NonNull Pattern regex) { in RegexValidator()
101 (Pattern) parcel.readSerializable());
/frameworks/base/services/core/java/com/android/server/am/
DMemoryStatUtil.java33 import java.util.regex.Pattern;
48 private static final Pattern PGFAULT = Pattern.compile("total_pgfault (\\d+)");
49 private static final Pattern PGMAJFAULT = Pattern.compile("total_pgmajfault (\\d+)");
50 private static final Pattern RSS_IN_BYTES = Pattern.compile("total_rss (\\d+)");
51 private static final Pattern CACHE_IN_BYTES = Pattern.compile("total_cache (\\d+)");
52 private static final Pattern SWAP_IN_BYTES = Pattern.compile("total_swap (\\d+)");
/frameworks/support/navigation/common/src/main/java/androidx/navigation/
DNavDeepLink.java26 import java.util.regex.Pattern;
32 private static final Pattern SCHEME_PATTERN = Pattern.compile("^(\\w+-)*\\w+:");
35 private final Pattern mPattern;
46 Pattern fillInPattern = Pattern.compile("\\{(.+?)\\}"); in NavDeepLink()
55 mPattern = Pattern.compile(uriRegex.toString()); in NavDeepLink()
/frameworks/base/core/java/android/net/captiveportal/
DCaptivePortalProbeSpec.java32 import java.util.regex.Pattern;
73 final Pattern statusRegex = parsePatternIfNonEmpty(splits[1], statusRegexPos); in parseSpec()
74 final Pattern locationRegex = parsePatternIfNonEmpty(splits[2], locationRegexPos); in parseSpec()
80 private static Pattern parsePatternIfNonEmpty(String pattern, int pos) throws ParseException { in parsePatternIfNonEmpty()
85 return Pattern.compile(pattern); in parsePatternIfNonEmpty()
155 final Pattern mStatusRegex;
157 final Pattern mLocationHeaderRegex;
160 String spec, URL url, Pattern statusRegex, Pattern locationHeaderRegex) { in RegexMatchProbeSpec()
176 private static boolean safeMatch(@Nullable String value, @Nullable Pattern pattern) { in safeMatch()
/frameworks/base/core/java/android/net/
DWifiKey.java24 import java.util.regex.Pattern;
36 private static final Pattern SSID_PATTERN = Pattern.compile("(\".*\")|(0x[\\p{XDigit}]+)",
37 Pattern.DOTALL);
38 private static final Pattern BSSID_PATTERN =
39 Pattern.compile("([\\p{XDigit}]{2}:){5}[\\p{XDigit}]{2}");
/frameworks/base/core/java/android/companion/
DWifiDeviceFilter.java33 import java.util.regex.Pattern;
42 private final Pattern mNamePattern;
44 private WifiDeviceFilter(Pattern namePattern) { in WifiDeviceFilter()
55 public Pattern getNamePattern() { in getNamePattern()
118 private Pattern mNamePattern;
125 public Builder setNamePattern(@Nullable Pattern regex) { in setNamePattern()
DBluetoothDeviceFilter.java39 import java.util.regex.Pattern;
46 private final Pattern mNamePattern;
52 Pattern namePattern, in BluetoothDeviceFilter()
96 public Pattern getNamePattern() { in getNamePattern()
164 private Pattern mNamePattern;
173 public Builder setNamePattern(@Nullable Pattern regex) { in setNamePattern()
DBluetoothDeviceFilterUtils.java33 import java.util.regex.Pattern;
43 static String patternToString(@Nullable Pattern p) { in patternToString()
48 static Pattern patternFromString(@Nullable String s) { in patternFromString()
49 return s == null ? null : Pattern.compile(s); in patternFromString()
89 static boolean matchesName(@Nullable Pattern namePattern, BluetoothDevice device) { in matchesName()
103 static boolean matchesName(@Nullable Pattern namePattern, ScanResult device) { in matchesName()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DRelation.java21 import java.util.regex.Pattern;
37 private static final Pattern KIND_PATTERN = Pattern.compile("^[a-z0-9_.]+$");
38 private static final Pattern DETAIL_PATTERN = Pattern.compile("^([a-z0-9_.]+)$");
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DBatteryStatsParser.java22 import java.util.regex.Pattern;
26 private static final Pattern LINE_PATTERN =
27 Pattern.compile("\\s*\\+*(\\S*)\\s\\(\\d+\\)\\s(\\d\\d\\d)\\s.*");
28 private static final Pattern TIME_PATTERN =
29 Pattern.compile("(\\d+)?(h)?(\\d+)?(m)?(\\d+)?(s)?(\\d+)?(ms)?");
/frameworks/opt/chips/src/com/android/ex/chips/
DPhoneUtil.java23 import java.util.regex.Pattern;
32 private static final Pattern PHONE_PATTERN
33 = Pattern.compile( // sdd = space, dot, or dash
/frameworks/base/graphics/java/android/graphics/fonts/
DFontVariationAxis.java24 import java.util.regex.Pattern;
85 private static final Pattern TAG_PATTERN = Pattern.compile("[\u0020-\u007E]{4}");
98 private static final Pattern STYLE_VALUE_PATTERN =
99 Pattern.compile("-?(([0-9]+(\\.[0-9]+)?)|(\\.[0-9]+))");
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMmiCode.java21 import java.util.regex.Pattern;
91 Pattern sPatternCdmaMmiCodeWhileRoaming = Pattern.compile(
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/patterns/
DPatternHelper.kt19 import java.util.regex.Pattern
45 fun build(toReplace: String, flags: Int = 0): Pattern { in build()
49 return Pattern.compile(result, flags) in build()
/frameworks/support/jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/proguard/
DProGuardType.kt20 import java.util.regex.Pattern
34 val TRIVIAL_SELECTOR_MATCHER: Pattern = Pattern.compile("^[/?*]*$")
/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java23 import java.util.regex.Pattern;
68 private static final Pattern HTTP_DATE_RFC_PATTERN =
69 Pattern.compile(HTTP_DATE_RFC_REGEXP);
70 private static final Pattern HTTP_DATE_ANSIC_PATTERN =
71 Pattern.compile(HTTP_DATE_ANSIC_REGEXP);
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java23 import java.util.regex.Pattern;
68 private static final Pattern HTTP_DATE_RFC_PATTERN =
69 Pattern.compile(HTTP_DATE_RFC_REGEXP);
70 private static final Pattern HTTP_DATE_ANSIC_PATTERN =
71 Pattern.compile(HTTP_DATE_ANSIC_REGEXP);

12345678