/tools/tradefederation/core/src/com/android/tradefed/device/ |
ManagedTestDeviceFactory.java | 31 import java.util.regex.Pattern; 170 Pattern pattern = Pattern.compile(remotePattern); local 171 Matcher match = pattern.matcher(serial.trim());
|
/build/blueprint/ |
glob.go | 24 Pattern string 31 func verifyGlob(fileName, pattern string, excludes []string, g GlobPath) { 32 if pattern != g.Pattern { 33 panic(fmt.Errorf("Mismatched patterns %q and %q for glob file %q", pattern, g.Pattern, fileName)) 40 func (c *Context) glob(pattern string, excludes []string) ([]string, error) { 41 fileName := globToFileName(pattern, excludes) 50 verifyGlob(fileName, pattern, excludes, g) 55 files, deps, err := c.fs.Glob(pattern, excludes [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
XmlDocumentProvider.java | 47 import java.util.regex.Pattern; 53 * <p>A XPath-like selection pattern is used to select some nodes in the XML document. Each such 70 * <p>The <code>/root/child1/child2</code> pattern will for instance match all nodes named 77 * <p>The <code>//node1//node2</code> pattern will for instance match all nodes named 88 * with a child of the selected node. The implicit root of this projection pattern is the selected 92 * nodes match the projection pattern, their texts are appended as a result.</p> 95 * pattern to the previously described syntax. <code>//child1@price</code> will for instance match 120 * A selection pattern of <code>/library//book</code> will match the three book entries (while 164 * node. See class documentation for pattern syntax. 165 * @param selection A selection pattern which will select the nodes that will create th 349 String pattern = input.replaceAll("\/\/", "\/(.*\/|)").replaceAll("^\/", "^\/") + "$"; local [all...] |
/external/doclava/src/com/google/doclava/ |
DocFile.java | 23 import java.util.regex.Pattern; 28 public static final Pattern LINE = Pattern.compile("(.*)[\r]?\n", Pattern.MULTILINE); 29 public static final Pattern PROP = Pattern.compile("([^=]+)=(.*)");
|
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/ |
InlineByteBuddyMockMakerTest.java | 23 import java.util.regex.Pattern; 54 MockCreationSettings<Pattern> settings = settingsFor(Pattern.class); 55 Pattern proxy = mockMaker.createMock(settings, new MockHandlerImpl<Pattern>(settings)); 56 assertThat(proxy.pattern()).isEqualTo("bar"); 231 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(Pattern.class);
|
/external/testng/src/main/java/org/testng/internal/ |
XmlMethodSelector.java | 9 import java.util.regex.Pattern; 221 Pattern pattern = Pattern.compile(methodName); local 223 if (pattern.matcher(m.getName()).matches()) { 239 Pattern p = Pattern.compile(methodName); 310 boolean match = Pattern.matches(regexpStr, group);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
MimeUtility.java | 35 import java.util.regex.Pattern; 47 private static final Pattern PATTERN_CR_OR_LF = Pattern.compile("\r|\n"); 281 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"), Pattern.CASE_INSENSITIVE);
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
MimeUtility.java | 44 import java.util.regex.Pattern; 50 private final static Pattern PATTERN_CR_OR_LF = Pattern.compile("\r|\n"); 292 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"), 293 Pattern.CASE_INSENSITIVE);
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
HtmlParser.java | 34 import java.util.regex.Pattern; 175 static Pattern NEEDS_QUOTING_ATTRIBUTE_VALUE_REGEX = Pattern.compile("[\"\'&<>=\\s]"); 312 private static final Pattern TRUNCATED_ENTITY = 313 Pattern.compile("\\& \\#? [0-9a-zA-Z]{0,8} $", Pattern.COMMENTS); [all...] |
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/ |
ProcStatsTest.java | 38 import java.util.regex.Pattern; 129 if (!Pattern.compile(expectedOutputRegex).matcher(result).find()) {
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
PackageIncidentTest.java | 22 import java.util.regex.Pattern; 58 Pattern.DOTALL);
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 54 import java.util.regex.Pattern; 287 assertTrue("IMEI " + id + " does not match pattern " + imeiPattern, 288 Pattern.matches(imeiPattern, id)); 347 assertTrue("ESN hex device id " + deviceId + " does not match pattern " + esnPattern, 348 Pattern.matches(esnPattern, deviceId)); 356 assertTrue("MEID device id " + deviceId + " does not match pattern " + meidPattern, 357 Pattern.matches(meidPattern, deviceId)); 366 Pattern.matches("[0-9A-Za-z]+", Build.SERIAL)); 371 assertTrue("MAC Address " + macAddress + " does not match pattern " + macPattern, 372 Pattern.matches(macPattern, macAddress)) [all...] |
/dalvik/dx/src/com/android/multidex/ |
Path.java | 29 import java.util.regex.Pattern; 56 for (String filePath : definition.split(Pattern.quote(File.pathSeparator))) {
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
AntiSamyTest.java | 32 import java.util.regex.Pattern;
415 Pattern p = Pattern.compile(".*<strong(\\s*)/>.*", Pattern.DOTALL);
421 p = Pattern.compile(".*<b(\\s*)/>.*");
425 p = Pattern.compile(".*<i(\\s*)/>.*");
429 p = Pattern.compile(".*<hr(\\s*)/>.*");
[all...] |
/external/vogar/src/vogar/ |
SshTarget.java | 26 import java.util.regex.Pattern; 83 Matcher m = Pattern.compile("^uid=\\d+\\((\\S+)\\) gid=\\d+\\(\\S+\\).*").matcher(line);
|
/external/vogar/test/vogar/android/ |
HostRuntimeLocalTargetTest.java | 27 import java.util.regex.Pattern; 101 final String prefix = Pattern.quote(path.toString() + "/");
|
/frameworks/base/core/java/android/text/util/ |
Linkify.java | 48 import java.util.regex.Pattern; 56 * Alone with the pattern that is to be matched, a URL scheme prefix is also 57 * required. Any pattern match that does not begin with the supplied scheme 60 * the scheme <code>http://</code>. If the pattern matches example.com, which 169 * support@example.com. So, when matching against a web URL pattern you 175 * Examines the character span matched by the pattern and determines 178 * @param s The body of text against which the pattern 181 * matched by the pattern - inclusive 325 * @param pattern Regex pattern to be used for finding link [all...] |
/frameworks/support/compat/java/android/support/v4/text/util/ |
LinkifyCompat.java | 47 import java.util.regex.Pattern; 194 * @param pattern Regex pattern to be used for finding links 198 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, 200 addLinks(text, pattern, scheme, null, null, null); 210 * @param pattern Regex pattern to be used for finding links 214 * additional control over which pattern matches are 217 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern [all...] |
/frameworks/support/development/checkstyle/src/com/android/support/checkstyle/ |
MismatchedAnnotationCheck.java | 29 import java.util.regex.Pattern; 69 /** Pattern for matching javadoc tag. */ 70 private Pattern mMatchTag;
|
/hardware/interfaces/drm/1.0/ |
types.hal | 276 * A crypto Pattern is a repeating sequence of encrypted and clear blocks 282 struct Pattern { 284 * The number of blocks to be encrypted in the pattern. If zero, 285 * pattern encryption is inoperative. 290 * The number of blocks to be skipped (left clear) in the pattern. If 291 * zero, pattern encryption is inoperative.
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppLauncherActivity.java | 43 import java.util.regex.Pattern; 70 private static final Pattern PLAIN_TEXT_TO_ESCAPE = Pattern.compile("[<>&]| {2,}|\r?\n"); 270 Pattern webUrlProtocol = Pattern.compile("(?i)(http|https)://"); 272 Pattern pattern = Pattern.compile("(" local 273 + Patterns.WEB_URL.pattern() + ")|(" 274 + Patterns.EMAIL_ADDRESS.pattern() + ")|( 349 Pattern pattern = PLAIN_TEXT_TO_ESCAPE; local [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
Vvm3Subscriber.java | 65 import java.util.regex.Pattern; 313 static List<Pattern> getSubscribeLinkPatterns(Context context) { 318 List<Pattern> patterns = new ArrayList<>(); 322 patterns.add(Pattern.compile(patternsArray.getString(i))); 331 static String findSubscribeLink(@NonNull List<Pattern> patterns, String response) 342 for (Pattern pattern : patterns) { 343 if (pattern.matcher(text).matches()) { 357 Pattern pattern = Pattern.compile("<" + tag + ">(.*)<\\/" + tag + ">") local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
BinaryDictionaryUtils.java | 30 import java.util.regex.Pattern; 84 Pattern.quote(dictName), Matcher.quoteReplacement(newDictName));
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
KeyTypeData.java | 21 import java.util.regex.Pattern; 46 private static final Pattern pat = Pattern.compile("[0-9a-fA-F]{4,6}(-[0-9a-fA-F]{4,6})*"); 54 private static final Pattern pat = Pattern.compile("[a-zA-Z]{3,8}(-[a-zA-Z]{3,8})*"); 62 private static final Pattern pat = Pattern.compile("([a-zA-Z]{2}|[0-9]{3})[zZ]{4}"); 70 private static final Pattern pat = Pattern.compile("([a-zA-Z]{2}|[0-9]{3})"); 78 private static final Pattern pat = Pattern.compile("[a-zA-Z0-9]{3,8}(-[a-zA-Z0-9]{3,8})*") [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
KeyTypeData.java | 20 import java.util.regex.Pattern; 44 private static final Pattern pat = Pattern.compile("[0-9a-fA-F]{4,6}(-[0-9a-fA-F]{4,6})*"); 52 private static final Pattern pat = Pattern.compile("[a-zA-Z]{3,8}(-[a-zA-Z]{3,8})*"); 60 private static final Pattern pat = Pattern.compile("([a-zA-Z]{2}|[0-9]{3})[zZ]{4}"); 68 private static final Pattern pat = Pattern.compile("([a-zA-Z]{2}|[0-9]{3})"); 76 private static final Pattern pat = Pattern.compile("[a-zA-Z0-9]{3,8}(-[a-zA-Z0-9]{3,8})*") [all...] |