Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 74) sorted by relevance

123

/development/vndk/tools/elfcheck/elfcheck/
Dreadobj.py40 match = _ELF_CLASS.match(line)
41 if match:
42 if match.group(1) == 'ELF32':
52 match = _DT_NEEDED.match(line)
53 if match:
54 dt_needed.add(match.group(1))
56 match = _DT_SONAME.match(line)
57 if match:
58 dt_soname = match.group(1)
Drewriter.py208 def _lookup_variable(match): argument
209 key = match.group(1)
214 return match.group(0)
235 match = self._INCLUDE.match(line)
236 if match:
237 command = match.group(1)
246 match = self._VAR.match(line)
247 if match:
251 key = match.group(1).strip()
252 assign_op = match.group(2).strip()
[all …]
/development/scripts/
Dadd3prf.py103 match = YMD_MATCHER.match(line)
104 if match:
105 if match.group(1) == "year":
106 year = match.group(2)
107 elif match.group(1) == "month":
108 month = match.group(2)
109 elif match.group(1) == "day":
110 day = match.group(2)
112 match = YMD_LINE_MATCHER.match(line)
113 if match:
[all …]
Dstack_core.py188 match = self.trace_line.match(line)
189 if match:
190 return {"frame": match.group("frame"),
191 "offset": match.group("offset"),
192 "so_offset": match.group("so_offset"),
193 "dso": match.group("dso"),
194 "symbol_present": bool(match.group("symbolpresent")),
195 "symbol_name": match.group("symbol"),
196 "build_id": match.group("build_id")}
197 match = self.sanitizer_trace_line.match(line)
[all …]
Dcargo2rulesmk.py164 if match := VERSION_SUFFIX_PAT.match(s):
165 return match.group(1)
752 result = version_pat.match(dir_name)
816 if match := name.match(line):
817 self.root_pkg = match.group(1)
820 in_pkg = pkg_section.match(line) is not None
1016 if match := RUSTC_VV_CMD_ARGS.match(new_rustc):
1017 args = match.group(2)
1064 if match := CARGO_TEST_LIST_START_PAT.match(line):
1065 cur_test_name = match.group(1)
[all …]
Dget_rust_pkg.py92 match = PKG_VERSION_MATCHER.match(pkg)
93 if match is not None:
94 return (match.group(1), match.group(2))
100 match = VERSION_MATCHER.match(version)
101 if match is not None:
102 return tuple(int(match.group(i)) for i in range(1, 4))
/development/tools/ota_analysis/src/services/
Dmap_parser.js31 if (entry.filename.match(regexPath)) {
32 this.mapFiles.set(entry.filename.match(regexName)[0], entry)
61 if (elements[j].match(regexRange)) {
62 left = parseInt(elements[j].match(/\d+/g)[0])
63 right = parseInt(elements[j].match(/\d+/g)[1])
65 left = parseInt(elements[j].match(regexNumber))
66 right = parseInt(elements[j].match(regexNumber))
Dpayload_nonab.js26 if (entry.filename.match(regexName)) {
28 {partitionName: entry.filename.match(regexName)[0]}
125 if (entry.filename.match(regexName)) {
140 if (rangeset.match(regexRange)) {
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/
DFeedProvider.java74 final int match = sUriMatcher.match(uri); in getType() local
75 switch (match) { in getType()
96 int uriMatch = sUriMatcher.match(uri); in query()
125 final int match = sUriMatcher.match(uri); in insert() local
127 switch (match) { in insert()
151 final int match = sUriMatcher.match(uri); in delete() local
153 switch (match) { in delete()
183 final int match = sUriMatcher.match(uri); in update() local
185 switch (match) { in update()
/development/tools/winscope/hooks/
Dpre-upload5 match=false
10 match=true
15 if $match && (which node > /dev/null)
/development/tools/findunused/
Dfindunusedtranslations55 for $match (@matches) {
56 print "Rewriting $match\n";
61 open(IN, "<$match");
97 open(OUT, ">$match");
/development/tools/winscope/src/common/
Dstring_utils.ts20 const match = s.match(/^\s*(-?\d+)\D*.*$/); constant
21 if (!match) {
24 return BigInt(match[1]);
Dobject_utils.ts77 const match = ObjectUtils.ARRAY_KEY_REGEX.exec(rawKey); constant
78 if (match) {
79 return new Key(match[1], Number(match[2]));
Darray_utils.ts47 let match = true;
51 match = false;
56 if (match) {
/development/tools/repo_diff/
Drepo_diff_trees.py221 if re.match(exclusion_pattern, name):
255 lambda match: stats_from_match(
258 match,
264 def stats_from_match(upstream_projects, downstream_projects, match): argument
289 upstream_project_name = match['upstream']
290 downstream_project_name = match['downstream']
304 project_stats.update(match)
380 downstream_stats = {match['downstream']: match for match in project_stats}
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java240 FeedParser.Entry match = entryMap.get(entryId); in updateLocalFeedData() local
241 if (match != null) { in updateLocalFeedData()
247 if ((match.title != null && !match.title.equals(title)) || in updateLocalFeedData()
248 (match.link != null && !match.link.equals(link)) || in updateLocalFeedData()
249 (match.published != published)) { in updateLocalFeedData()
253 .withValue(FeedContract.Entry.COLUMN_NAME_TITLE, match.title) in updateLocalFeedData()
254 .withValue(FeedContract.Entry.COLUMN_NAME_LINK, match.link) in updateLocalFeedData()
255 .withValue(FeedContract.Entry.COLUMN_NAME_PUBLISHED, match.published) in updateLocalFeedData()
/development/vndk/tools/sourcedr/ninja/
Dlist_installed_file_from_source.py77 if source_filter.match(path):
79 if out_pattern.match(path):
98 matched = bool(source_filter.match(path))
104 if installed_filter.match(path) and is_from_vendor(path)]
Dninja.py254 def match(self, buf, pos): member in TokenMatcher
255 match = self._matcher.match(buf, pos)
256 if not match:
258 return (self._kinds[match.lastindex - 1], match.start(), match.end())
321 match = self._COMMENT_MATCHER.match(self._line_buf)
322 if not match:
325 self._line_pos = match.end()
332 match = self._SPACE_MATCHER.match(self._line_buf, self._line_pos)
333 if match:
334 self._line_pos = match.end()
[all …]
Dlist_source_file.py56 if not out_dir_pattern.match(cur):
66 if out_host_dir_pattern.match(dep):
111 matched_files = [path for path in graph if installed_filter.match(path)]
/development/tools/logblame/
Dlogs.py64 m = CHATTY_IDENTICAL.match(logLine.text)
103 m = BUFFER_BEGIN.match(line)
112 m = BUFFER_SWITCH.match(line)
121 m = HEADER.match(line)
139 m = HEADER_TYPE2.match(line)
Dps.py116 m = HEADER_RE.match(line)
119 m = PROCESS_RE.match(line)
133 m = ANDROID_UID_RE.match(text)
137 m = UID_RE.match(text)
/development/samples/training/threadsample/src/com/example/android/threadsample/
DDataProvider.java250 switch (sUriMatcher.match(uri)) { in query()
295 return sMimeTypes.get(sUriMatcher.match(uri)); in getType()
309 switch (sUriMatcher.match(uri)) { in insert()
355 switch (sUriMatcher.match(uri)) { in bulkInsert()
451 switch (sUriMatcher.match(uri)) { in update()
/development/vndk/tools/sourcedr/blueprint/
Danalyze_manifest_split.py57 match = self._matcher.match(path)
58 if match:
59 return self._projects[match.lastindex - 1][1]
Dblueprint.py253 match = cls.UNICODE_CHARS_PATTERN.match(buf, pos)
254 if match:
255 literal += match.group(0)
256 pos = match.end()
361 match = cls.LEXER_MATCHER.match(buf, offset)
362 if not match:
364 token = cls.LEXER_PATTERNS[match.lastindex - 1][0]
369 end = match.end()
996 match = path_matcher.match(attrs['_path'])
997 attrs['_namespace'] = namespaces[match.lastindex - 1]
/development/tools/bugreport/src/com/android/bugreport/bugreport/
DMetadataParser.java67 if ((m = Utils.match(mDumpstateLineRe, text)) != null) { in parseHeader()
69 } else if ((m = Utils.match(mHeaderLineRe, text)) != null) { in parseHeader()

123