Home
last modified time | relevance | path

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

123456

/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/services/core/java/com/android/server/am/
DMemoryStatUtil.java41 import java.util.regex.Pattern;
67 private static final Pattern PGFAULT = Pattern.compile("total_pgfault (\\d+)");
68 private static final Pattern PGMAJFAULT = Pattern.compile("total_pgmajfault (\\d+)");
69 private static final Pattern RSS_IN_BYTES = Pattern.compile("total_rss (\\d+)");
70 private static final Pattern CACHE_IN_BYTES = Pattern.compile("total_cache (\\d+)");
71 private static final Pattern SWAP_IN_BYTES = Pattern.compile("total_swap (\\d+)");
73 private static final Pattern RSS_HIGH_WATERMARK_IN_KILOBYTES =
74 Pattern.compile("VmHWM:\\s*(\\d+)\\s*kB");
75 private static final Pattern PROCFS_RSS_IN_KILOBYTES =
76 Pattern.compile("VmRSS:\\s*(\\d+)\\s*kB");
[all …]
/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/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()
118 @NonNull private final LinkedHashMap<AutofillId, Pair<Pattern, String>> mFields =
132 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @NonNull String subst) { in Builder()
147 public Builder addField(@NonNull AutofillId id, @NonNull Pattern regex, in addField()
194 final Pattern[] regexs = new Pattern[size]; in writeToParcel()
196 Pair<Pattern, String> pair; in writeToParcel()
198 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());
DTextValueSanitizer.java32 import java.util.regex.Pattern;
48 private final Pattern mRegex;
59 public TextValueSanitizer(@NonNull Pattern regex, @NonNull String subst) { in TextValueSanitizer()
123 return new TextValueSanitizer((Pattern) parcel.readSerializable(), parcel.readString());
/frameworks/base/core/java/android/net/
DWifiKey.java26 import java.util.regex.Pattern;
38 private static final Pattern SSID_PATTERN = Pattern.compile("(\".*\")|(0x[\\p{XDigit}]+)",
39 Pattern.DOTALL);
40 private static final Pattern BSSID_PATTERN =
41 Pattern.compile("([\\p{XDigit}]{2}:){5}[\\p{XDigit}]{2}");
DWebAddress.java28 import java.util.regex.Pattern;
67 static Pattern sAddressPattern = Pattern.compile(
73 /* anchor */ ".*", Pattern.CASE_INSENSITIVE);
/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.java40 import java.util.regex.Pattern;
47 private final Pattern mNamePattern;
53 Pattern namePattern, in BluetoothDeviceFilter()
97 public Pattern getNamePattern() { in getNamePattern()
166 private Pattern mNamePattern;
175 public Builder setNamePattern(@Nullable Pattern regex) { in setNamePattern()
DBluetoothDeviceFilterUtils.java35 import java.util.regex.Pattern;
45 static String patternToString(@Nullable Pattern p) { in patternToString()
50 static Pattern patternFromString(@Nullable String s) { in patternFromString()
51 return s == null ? null : Pattern.compile(s); in patternFromString()
92 static boolean matchesName(@Nullable Pattern namePattern, BluetoothDevice device) { in matchesName()
106 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)?");
DMemInfoParser.java22 import java.util.regex.Pattern;
27 private static final Pattern LINE_PATTERN =
28 Pattern.compile("\\s*(\\d*,*\\d*)K:\\s(\\S*)\\s\\.*");
/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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DPowerUtilTest.java33 import java.util.regex.Pattern;
72 assertThat(info).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage()
79 assertThat(info2).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage()
98 assertThat(info).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage()
105 assertThat(info2).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage()
193 assertThat(info).containsMatch(Pattern.compile( in getBatteryTipStringFormatted_lessThanOneDay_usesCorrectString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMmiCode.java22 import java.util.regex.Pattern;
102 Pattern sPatternCdmaMmiCodeWhileRoaming = Pattern.compile(
/frameworks/base/graphics/java/android/graphics/fonts/
DFontVariationAxis.java27 import java.util.regex.Pattern;
90 private static final Pattern TAG_PATTERN = Pattern.compile("[\u0020-\u007E]{4}");
103 private static final Pattern STYLE_VALUE_PATTERN =
104 Pattern.compile("-?(([0-9]+(\\.[0-9]+)?)|(\\.[0-9]+))");
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberRange.java27 import java.util.regex.Pattern;
75 if (!Pattern.matches("[0-9]*", countryCode)) { in PhoneNumberRange()
78 if (!Pattern.matches("[0-9]*", prefix)) { in PhoneNumberRange()
138 if (!Pattern.matches("[0-9]*", lowerBound)) { in validateLowerAndUpperBounds()
141 if (!Pattern.matches("[0-9]*", upperBound)) { in validateLowerAndUpperBounds()
/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);
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDevice.java26 import java.util.regex.Pattern;
135 private static final Pattern detailedDevicePattern = Pattern.compile(
152 private static final Pattern twoTokenPattern = Pattern.compile(
161 private static final Pattern threeTokenPattern = Pattern.compile(
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_check_dims.java32 static final int Pattern = 0xA5A5A5A5; field in UT_check_dims
53 s.set_pattern(Pattern); in initializeGlobals()
57 mData[i] = Pattern; in initializeGlobals()

123456