Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 28) sorted by relevance

12

/development/tools/bugreport/src/com/android/bugreport/util/
DUtils.java49 public static boolean matches(Matcher matcher, String text) { in matches() argument
50 matcher.reset(text); in matches()
51 return matcher.matches(); in matches()
57 public static Matcher match(Matcher matcher, String text) { in match() argument
58 matcher.reset(text); in match()
59 if (matcher.matches()) { in match()
60 return matcher; in match()
70 public static int getInt(Matcher matcher, int group, int def) { in getInt() argument
71 final String str = matcher.group(group); in getInt()
90 public static GregorianCalendar parseCalendar(Matcher matcher, int startGroup, in parseCalendar() argument
[all …]
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DDictionaryProvider.java56 UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH); in buildUriMatcher() local
58 matcher.addURI(AUTHORITY, "dictionary", SEARCH_WORDS); in buildUriMatcher()
59 matcher.addURI(AUTHORITY, "dictionary/#", GET_WORD); in buildUriMatcher()
61 matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY, SEARCH_SUGGEST); in buildUriMatcher()
62 matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", SEARCH_SUGGEST); in buildUriMatcher()
70 matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_SHORTCUT, REFRESH_SHORTCUT); in buildUriMatcher()
71 matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_SHORTCUT + "/*", REFRESH_SHORTCUT); in buildUriMatcher()
72 return matcher; in buildUriMatcher()
/development/tools/bugreport/src/com/android/bugreport/stacks/
DThreadSnapshotParser.java96 final Matcher beginUnmanagedThreadRe = BEGIN_UNMANAGED_THREAD_RE.matcher(""); in parse()
97 final Matcher beginManagedThreadRe = BEGIN_MANAGED_THREAD_RE.matcher(""); in parse()
98 final Matcher beginNotAttachedThreadRe = BEGIN_NOT_ATTACHED_THREAD_RE.matcher(""); in parse()
99 final Matcher attrRe = ATTR_RE.matcher(""); in parse()
100 final Matcher heldMutexesRe = HELD_MUTEXES_RE.matcher(""); in parse()
101 final Matcher nativeRe = NATIVE_RE.matcher(""); in parse()
102 final Matcher nativeNoLocRe = NATIVE_NO_LOC_RE.matcher(""); in parse()
103 final Matcher kernelRe = KERNEL_RE.matcher(""); in parse()
104 final Matcher kernelUnknownRe = KERNEL_UNKNOWN_RE.matcher(""); in parse()
105 final Matcher javaRe = JAVA_RE.matcher(""); in parse()
[all …]
DProcessSnapshotParser.java56 final Matcher beginProcessRe = BEGIN_PROCESS_RE.matcher(""); in parse()
58 .matcher(""); in parse()
60 .matcher(""); in parse()
62 .matcher(""); in parse()
63 final Matcher endProcessRe = END_PROCESS_RE.matcher(""); in parse()
64 final Matcher cmdLineRe = CMD_LINE_RE.matcher(""); in parse()
DVmTracesParser.java41 private final Matcher mBeginProcessRe = ProcessSnapshotParser.BEGIN_PROCESS_RE.matcher("");
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DWordWidget.java94 Matcher matcher = pattern.matcher(pageContent); in buildUpdate() local
95 if (matcher.find()) { in buildUpdate()
99 String wordTitle = matcher.group(1); in buildUpdate()
101 updateViews.setTextViewText(R.id.word_type, matcher.group(2)); in buildUpdate()
102 updateViews.setTextViewText(R.id.definition, matcher.group(3).trim()); in buildUpdate()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DWordWidget.java103 Matcher matcher = Pattern.compile(WOTD_PATTERN).matcher(pageContent); in buildUpdate() local
104 if (matcher.find()) { in buildUpdate()
108 String wordTitle = matcher.group(1); in buildUpdate()
110 views.setTextViewText(R.id.word_type, matcher.group(2)); in buildUpdate()
111 views.setTextViewText(R.id.definition, matcher.group(3).trim()); in buildUpdate()
DExtendedWikiHelper.java148 Matcher m = mPattern.matcher(input); in apply()
217 !sInvalidWord.matcher(foundWord).find()) { in getRandomWord()
251 Matcher sectionMatcher = sSectionSplit.matcher(wikiText); in formatWikiText()
255 sValidSections.matcher(title).matches()) { in formatWikiText()
/development/tools/bugreport/src/com/android/bugreport/anr/
DAnrParser.java62 final Matcher procNameRe = PROC_NAME_RE.matcher(""); in parse()
63 final Matcher pidRe = PID_RE.matcher(""); in parse()
64 final Matcher reasonRe = REASON_RE.matcher(""); in parse()
65 final Matcher cpuUsageRe = CpuUsageParser.CPU_USAGE_RE.matcher(""); in parse()
66 final Matcher beginProcessRe = ProcessSnapshotParser.BEGIN_PROCESS_RE.matcher(""); in parse()
/development/tools/bugreport/src/com/android/bugreport/monkey/
DMonkeyLogParser.java59 final Matcher anrStart = NOT_RESPONDING_RE.matcher(text); in parse()
80 final Matcher anrStart = NOT_RESPONDING_RE.matcher(""); in extractAnrLines()
81 final Matcher monkeyEnd = ABORTED_RE.matcher(""); in extractAnrLines()
/development/tools/bugreport/src/com/android/bugreport/cpuinfo/
DCpuUsageParser.java46 final Matcher cpuUsageRe = CPU_USAGE_RE.matcher(""); in parse()
47 final Matcher totalRe = TOTAL_RE.matcher(""); in parse()
/development/tools/bugreport/src/com/android/bugreport/bugreport/
DMetadataParser.java38 private final Matcher mDumpstateLineRe = DUMPSTATE_LINE_RE.matcher("");
39 private final Matcher mHeaderLineRe = HEADER_LINE_RE.matcher("");
DBugreportParser.java48 private final Matcher mSectionBegin = SECTION_BEGIN.matcher("");
49 private final Matcher mSectionBeginNoCmd = SECTION_BEGIN_NO_CMD.matcher("");
50 private final Matcher mSectionEnd = SECTION_END.matcher("");
/development/tools/idegen/src/
DExcludes.java39 if (pattern.matcher(path).find()) { in exclude()
DEclipse.java185 return pattern.matcher(path).find(); in matches()
/development/tools/bugreport/src/com/android/bugreport/logcat/
DLogcatParser.java37 private final Matcher mBufferBeginRe = BUFFER_BEGIN_RE.matcher("");
38 private final Matcher mLogLineRe = LOG_LINE_RE.matcher("");
/development/tools/idegen/src/com/android/idegen/
DDirectorySearch.java195 Matcher matcher = EXCLUDE_PATTERN.matcher(child.getName()); in findExcludeDirs() local
196 if (matcher.matches()) { in findExcludeDirs()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DUtils.java38 if (sSafeStringPattern.matcher(s).matches()) { in shellEscape()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DXmlDocumentProvider.java416 if (mSelectionPattern.matcher(path.toString()).matches()) { in parseWith()
433 if (mProjectionPatterns[i].matcher(localNodePath).matches()) { in parseWith()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyGetFrameRateEvent.java102 Matcher m = NO_OF_FRAMES_PATTERN.matcher(input); in getNumberOfFrames()
DMonkeyGetAppFrameRateEvent.java113 Matcher m = NO_OF_FRAMES_PATTERN.matcher(line); in getNumberOfFrames()
/development/tools/bugreport/src/com/android/bugreport/inspector/
DInspector.java54 private final Matcher mBufferBeginRe = LogcatParser.BUFFER_BEGIN_RE.matcher("");
710 mMatcher = Pattern.compile(regex).matcher(""); in InterestingLineMatcher()
765 + " (\\d+\\.?\\d*)ms since wait started.*").matcher(""); in markLogcatProcessesAndThreads()
784 + " (\\d+\\.?\\d*)ms since wait started.*").matcher(""); in markAnrLogcatRegions()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DRssService.java209 Matcher m = p.matcher(xml); in parseRssDocPubDate()
/development/vndk/tools/sourcedr/ninja/
Dninja.py424 def _lex_string_or_path(self, matcher, result_kind): argument
437 match = matcher.match(self._line_buf, self._line_pos)
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/
DDumpActivity.java581 if (sLogcat.matcher(command).find()) { in buildCommandLine()

12