Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 50) sorted by relevance

12

/system/extras/tests/sdcard/
Dplot_sdcard.py41 import re
51 res = re.search(('# StopWatch ([\w]+) total/cumulative '
58 self.summary = re.match('([a-z_]+)_total', self.name)
99 self.kernel = re.search('Linux version ([0-9.]+-[^ ]+)', line).group(1)
101 self.command_line = re.search('# Command: [/\w_]+ (.*)', line).group(1)
106 self.iterations = int(re.search('# Iterations: ([0-9]+)', line).group(1))
108 self.fadvise = re.search('# Fadvise: ([\w]+)', line).group(1)
110 self.sched = re.search('# Sched features: ([\w]+)', line).group(1)
146 if re.match('[a-z_]', line):
/system/tpm/attestation/common/
Dproto_print.py38 import re
125 package_re = re.compile(r'package\s+(\w+);')
126 import_re = re.compile(r'import\s+"(\w+).proto";')
127 message_re = re.compile(r'message\s+(\w+)\s*{')
128 field_re = re.compile(r'(optional|required|repeated)\s+(\w+)\s+(\w+)\s*=')
129 enum_re = re.compile(r'enum\s+(\w+)\s*{')
130 enum_value_re = re.compile(r'(\w+)\s*=')
/system/sepolicy/tools/
Dpost_process_mac_perms29 import re
53 results = re.findall(PEM_CERT_RE, pem_string, re.DOTALL)
76 policy_certs = re.findall(cert_pattern, f.read())
/system/ca-certificates/google/
Dextract_from_pem.py19 import re
57 return ':'.join(re.findall(r'..', x509.get_fingerprint('sha1').zfill(40)))
75 pem_certs = re.findall(pattern, pem_file.read())
/system/media/camera/docs/
Dmetadata_helpers.py22 import re
528 match = re.search(r'<.*>', local_typedef)
604 if re.match("\d", what):
639 return bool(re.match('0x[a-f0-9]+$', instr, re.IGNORECASE))
1021 text = re.sub(r'src="([^"]*)"', 'src="' + img_src_prefix + r'\1"', text)
1112 text = re.sub(tag_match, filter_sub, text)
1137 text = re.sub(tag_match, filter_sub, text)
1138 text = re.sub(tag_match_2, filter_sub_2, text)
1178 text = re.sub(tag_match, filter_sub, text)
1275 new_word = re.sub(r"([a-z])([A-Z])", r"\1<wbr>\2", words)
[all …]
/system/tpm/trunks/generator/
Dgenerator.py75 import re
254 match = re.search(r'([^\[]*)(\[.*\])*', name)
257 fixed_name = re.sub(r'([a-z0-9])([A-Z])', r'\1_\2', match.group(1)).lower()
510 _ARRAY_FIELD_RE = re.compile(r'(.*)\[(.*)\]')
511 _ARRAY_FIELD_SIZE_RE = re.compile(r'^(count|size)')
512 _UNION_TYPE_RE = re.compile(r'^TPMU_.*')
943 _OLD_TYPE_RE = re.compile(r'^_OLD_TYPE\s+(\w+)$')
944 _NEW_TYPE_RE = re.compile(r'^_NEW_TYPE\s+(\w+)$')
945 _CONSTANTS_SECTION_RE = re.compile(r'^_CONSTANTS.* (\w+)$')
946 _STRUCTURE_SECTION_RE = re.compile(r'^_STRUCTURE\s+(\w+)$')
[all …]
/system/core/liblog/tests/
Dbenchmark_main.cpp87 regex_t re; in ShouldRun() local
88 if (regcomp(&re, argv[i], 0) != 0) { in ShouldRun()
92 int match = regexec(&re, b->Name(), 0, NULL, 0); in ShouldRun()
93 regfree(&re); in ShouldRun()
/system/core/toolbox/
Dgenerate-input.h-labels.py21 import re
39 r = re.compile(r'#define\s+(\S+)\s+((?:0x)?\d+)')
/system/core/adb/
Dtest_device.py25 import re
146 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg))
152 self.assertFalse(re.search(r'tcp:5566.+tcp:6677', msg))
153 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg))
158 self.assertFalse(re.search(r'tcp:5566.+tcp:6655', msg))
159 self.assertTrue(re.search(r'tcp:5566.+tcp:6677', msg))
181 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg))
184 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg))
185 self.assertTrue(re.search(r'tcp:7788.+tcp:8877', msg))
188 self.assertFalse(re.search(r'tcp:5566.+tcp:6655', msg))
[all …]
/system/extras/tests/net_test/
Dnet_test.sh18 test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g')
Dnet_test.py20 import re
363 elif re.match("icmp|udp|raw", protocol):
369 regexp = re.compile(r" *(\d+): " # bucket
/system/core/mkbootimg/
Dmkbootimg23 import re
103 match = re.search(r'^(\d{1,3})(?:\.(\d{1,3})(?:\.(\d{1,3}))?)?', x)
119 match = re.search(r'^(\d{4})-(\d{2})-(\d{2})', x)
/system/extras/simpleperf/runtest/
Druntest.py28 import re
348 assert re.search(r'^Children\s+Self\s+Command.+Symbol$', title_line)
350 assert re.search(r'^Overhead\s+Command.+Symbol$', title_line)
367 m = re.search(r'^([\d\.]+)%\s+([\d\.]+)%\s+(\S+).*\s+(\S+)$', line)
375 m = re.search(r'^([\d\.]+)%\s+(\S+).*\s+(\S+)$', line)
406 m = re.search(r'^[\d\.]+%[-\s]+(.+)$', line)
/system/vold/bench/
Dbenchgen.py29 import re, sys, collections, traceback, argparse
110 re_event = re.compile(r"^([\d\.]+) (.+?)\((.+?)\) = (.+?)$")
111 re_arg = re.compile(r'''((?:[^,"']|"[^"]*"|'[^']*')+)''')
/system/update_engine/
Dtar_bunzip2.gypi29 # and re-run this action if a new .bz2 file is generated.
/system/extras/simpleperf/
Dreport.py28 import re
121 m = re.search(r'^([\d\.]+)%[-\s]+(.+)$', line)
/system/extras/pagecache/
Dpagecache.py7 import re
232 …m = re.match('.* (mm_filemap_add_to_page_cache|mm_filemap_delete_from_page_cache): dev (\d+):(\d+)…
250 result = re.match('([0-9]+)d? ([0-9]+) ([0-9]+) (.*)', line)
/system/bt/osi/src/socket_utils/
DREADME17 The sources in this folder re-implement some of the sources in libcutils/sockets
/system/bt/doc/
Dpower_management.md174 `prev_low` field is set, calls `bta_dm_pm_ssr` to re-send SSR params,
175 stops all timers for the device, and then re-calls `bta_dm_pm_set_mode`
176 with timeout set to FALSE to re-attempt with a second action (if the
177 previous PARK or SNIFF failed, otherwise it'll re-attempt the first
/system/core/libmemunreachable/
DREADME.md42 …6. *Original process*: Allocations are re-enabled using `malloc_enable()`, but all threads are sti…
69 - `malloc enable()`: re-enable allocations in all threads.
/system/core/init/
Dperfboot.py48 import re
239 return re.compile(r'(?P<pid>[0-9]+) +[0-9]+ I (?P<tag>%s): (?P<time>\d+)' %
/system/connectivity/shill/bin/
Dset_cellular_ppp208 If you clear the PPP username and password, you will need to re-run
/system/weaved/libweaved/
DREADME.md17 the client can re-register command handlers, update the state again.
/system/bt/build/secondary/third_party/libchrome/
DBUILD.gn140 # commenting it out in case we want to re-add it later (it's included in the
207 # trick libchrome to think we're building host code within an Android checkout
/system/connectivity/shill/doc/
Dipconfig-api.txt32 the service is re-applied.

12