Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 9 of 9) sorted by relevance

/dalvik/dx/src/com/android/dx/command/grep/
DMain.java28 String pattern = args[1]; in main() local
31 int count = new Grep(dex, Pattern.compile(pattern), new PrintWriter(System.out)).grep(); in main()
DGrep.java42 public Grep(final DexBuffer dex, Pattern pattern, final PrintWriter out) { in Grep() argument
46 stringIds = getStringIds(dex, pattern); in Grep()
114 private Set<Integer> getStringIds(DexBuffer dex, Pattern pattern) {
118 if (pattern.matcher(s).find()) {
/dalvik/dx/src/com/android/dx/cf/code/
DValueAwareMachine.java133 for (int pattern = getAuxInt(); pattern != 0; pattern >>= 4) { in run()
134 int which = (pattern & 0x0f) - 1; in run()
DSimulator.java388 int pattern; in visitNoArgs() local
393 pattern = 0x11; in visitNoArgs()
397 pattern = 0x2121; in visitNoArgs()
403 machine.auxIntArg(pattern); in visitNoArgs()
DRopperMachine.java344 for (int pattern = getAuxInt(); pattern != 0; pattern >>= 4) { in run()
345 int which = (pattern & 0x0f) - 1; in run()
/dalvik/tests/094-pattern/
Dinfo.txt1 A simple test to exercise pattern matching.
/dalvik/docs/
Dprettify.js227 var pattern = '(?:' +
234 pattern += '|\\b' + preceder;
236 pattern += '|' + preceder.replace(/([^=<>:&])/g, '\\$1');
239 pattern += '|^)\\s*$'; // matches at end, and matches empty string
240 return new RegExp(pattern);
/dalvik/vm/jdwp/
DJdwpEvent.cpp417 static bool patternMatch(const char* pattern, const char* target) in patternMatch() argument
419 int patLen = strlen(pattern); in patternMatch()
421 if (pattern[0] == '*') { in patternMatch()
426 pattern+1, target + (targetLen-patLen)); in patternMatch()
430 return strcmp(pattern+1, target + (targetLen-patLen)) == 0; in patternMatch()
431 } else if (pattern[patLen-1] == '*') { in patternMatch()
432 return strncmp(pattern, target, patLen-1) == 0; in patternMatch()
434 return strcmp(pattern, target) == 0; in patternMatch()
DJdwpHandler.cpp1436 char* pattern; in handleER_Set() local
1439 pattern = readNewUtf8String(&buf, &strLen); in handleER_Set()
1440 LOGVV(" ClassMatch: '%s'", pattern); in handleER_Set()
1443 dvmDotToSlash(pattern); in handleER_Set()
1444 free(pattern); in handleER_Set()
1449 char* pattern; in handleER_Set() local
1452 pattern = readNewUtf8String(&buf, &strLen); in handleER_Set()
1453 LOGVV(" ClassExclude: '%s'", pattern); in handleER_Set()
1455 dvmDotToSlash(pattern); in handleER_Set()
1456 free(pattern); in handleER_Set()