/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]*/)*(\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/tpm/trunks/generator/ |
D | generator.py | 75 import re 256 match = re.search(r'([^\[]*)(\[.*\])*', name) 259 fixed_name = re.sub(r'([a-z0-9])([A-Z])', r'\1_\2', match.group(1)).lower() 512 _ARRAY_FIELD_RE = re.compile(r'(.*)\[(.*)\]') 513 _ARRAY_FIELD_SIZE_RE = re.compile(r'^(count|size)') 514 _UNION_TYPE_RE = re.compile(r'^TPMU_.*') 908 self.value = re.sub(r'(TPM.?_|U?INT[0-9]{2})', r'trunks::\1', value) 946 _OLD_TYPE_RE = re.compile(r'^_OLD_TYPE\s+(\w+)$') 947 _NEW_TYPE_RE = re.compile(r'^_NEW_TYPE\s+(\w+)$') 948 _CONSTANTS_SECTION_RE = re.compile(r'^_CONSTANTS.* (\w+)$') [all …]
|
/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/bt/build/toolchain/clang/ |
D | get_clang_suffix.py | 3 import re 21 clang_version_match = re.search(CLANG_VERSION_REGEX, clang_version_out)
|
/system/core/liblog/tests/ |
D | benchmark_main.cpp | 86 regex_t re; in ShouldRun() local 87 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/bt/test/ |
D | README.md | 12 ## After you're done 80 Probably not. See [After you're done](#After-you're-done)
|
/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 147 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg)) 153 self.assertFalse(re.search(r'tcp:5566.+tcp:6677', msg)) 154 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg)) 159 self.assertFalse(re.search(r'tcp:5566.+tcp:6655', msg)) 160 self.assertTrue(re.search(r'tcp:5566.+tcp:6677', msg)) 182 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg)) 185 self.assertTrue(re.search(r'tcp:5566.+tcp:6655', msg)) 186 self.assertTrue(re.search(r'tcp:7788.+tcp:8877', msg)) 189 self.assertFalse(re.search(r'tcp:5566.+tcp:6655', msg)) [all …]
|
/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/tools/aidl/docs/ |
D | making-changes.md | 6 It has been substantially re-written in C++, in the Google C++ style.
|
/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/sepolicy/public/ |
D | performanced.te | 10 # Access /proc to validate we're only affecting threads in the same thread group.
|
/system/extras/simpleperf/runtest/ |
D | runtest.py | 30 import re 387 assert re.search(r'^Children\s+Self\s+Command.+Symbol$', title_line) 389 assert re.search(r'^Overhead\s+Command.+Symbol$', title_line) 406 m = re.search(r'^([\d\.]+)%\s+([\d\.]+)%\s+(\S+).*\s+(\S+)$', line) 414 m = re.search(r'^([\d\.]+)%\s+(\S+).*\s+(\S+)$', line) 445 m = re.search(r'^[\d\.]+%[-\s]+(.+)$', line)
|
/system/sepolicy/tests/ |
D | treble_sepolicy_tests.py | 5 import re 86 pattern = re.compile('^' + pathregex[0:i] + "$")
|
/system/update_engine/ |
D | tar_bunzip2.gypi | 29 # and re-run this action if a new .bz2 file is generated.
|
/system/extras/simpleperf/scripts/ |
D | binary_cache_builder.py | 26 import re 185 result = re.search(r'Build ID:\s*(\S+)', output)
|
D | report.py | 28 import re 155 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 -
|
/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+)' %
|