/system/extras/tests/sdcard/ |
D | plot_sdcard.py | 41 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/ |
D | proto_print.py | 38 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/ |
D | post_process_mac_perms | 29 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/ |
D | extract_from_pem.py | 19 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/ |
D | metadata_helpers.py | 22 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/ |
D | generator.py | 75 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/ |
D | benchmark_main.cpp | 87 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/ |
D | generate-input.h-labels.py | 21 import re 39 r = re.compile(r'#define\s+(\S+)\s+((?:0x)?\d+)')
|
/system/core/adb/ |
D | test_device.py | 25 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/ |
D | net_test.sh | 18 test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g')
|
D | net_test.py | 20 import re 363 elif re.match("icmp|udp|raw", protocol): 369 regexp = re.compile(r" *(\d+): " # bucket
|
/system/core/mkbootimg/ |
D | mkbootimg | 23 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/ |
D | runtest.py | 28 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/ |
D | benchgen.py | 29 import re, sys, collections, traceback, argparse 110 re_event = re.compile(r"^([\d\.]+) (.+?)\((.+?)\) = (.+?)$") 111 re_arg = re.compile(r'''((?:[^,"']|"[^"]*"|'[^']*')+)''')
|
/system/update_engine/ |
D | tar_bunzip2.gypi | 29 # and re-run this action if a new .bz2 file is generated.
|
/system/extras/simpleperf/ |
D | report.py | 28 import re 121 m = re.search(r'^([\d\.]+)%[-\s]+(.+)$', line)
|
/system/extras/pagecache/ |
D | pagecache.py | 7 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/ |
D | README | 17 The sources in this folder re-implement some of the sources in libcutils/sockets
|
/system/bt/doc/ |
D | power_management.md | 174 `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/ |
D | README.md | 42 …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/ |
D | perfboot.py | 48 import re 239 return re.compile(r'(?P<pid>[0-9]+) +[0-9]+ I (?P<tag>%s): (?P<time>\d+)' %
|
/system/connectivity/shill/bin/ |
D | set_cellular_ppp | 208 If you clear the PPP username and password, you will need to re-run
|
/system/weaved/libweaved/ |
D | README.md | 17 the client can re-register command handlers, update the state again.
|
/system/bt/build/secondary/third_party/libchrome/ |
D | BUILD.gn | 140 # 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/ |
D | ipconfig-api.txt | 32 the service is re-applied.
|