/system/bt/build/toolchain/clang/ |
H A D | get_clang_suffix.py | 3 import re namespace 21 clang_version_match = re.search(CLANG_VERSION_REGEX, clang_version_out)
|
/system/ca-certificates/google/ |
H A D | extract_from_pem.py | 19 import re namespace 57 return ':'.join(re.findall(r'..', x509.get_fingerprint('sha1').zfill(40))) 75 pem_certs = re.findall(pattern, pem_file.read())
|
/system/sepolicy/tools/ |
H A D | post_process_mac_perms | 29 import re namespace 53 results = re.findall(PEM_CERT_RE, pem_string, re.DOTALL) 76 policy_certs = re.findall(cert_pattern, f.read())
|
/system/extras/boottime_tools/io_analysis/ |
H A D | check_io_trace.py | 21 import re namespace 61 self.re_block_queue = re.compile(RE_BLOCK_BIO_QUEUE) 184 prog = re.compile(RE_BLOCK)
|
H A D | check_verity.py | 21 import re namespace 80 self.re = re.compile(RE_VERITY) 83 match = self.re.match(line)
|
H A D | check_file_read.py | 21 import re namespace 231 self.re_open = re.compile(RE_DO_SYS_OPEN) 232 self.re_ext4_access = re.compile(RE_EXT4_MA_BLOCKS_EXIT) 233 self.re_bio_remap = re.compile(RE_BLOCK_BIO_REMAP) 234 self.re_block_issue = re.compile(RE_BLOCK_RQ_ISSUE)
|
H A D | check_io_trace_all.py | 21 import re namespace 123 self.re_block = re.compile(RE_BLOCK) 304 self.re_switch = re.compile(RE_SCHED_SWITCH) 305 self.re_reason = re.compile(RE_SCHED_BLOCKED_READSON)
|
/system/extras/tests/sdcard/ |
H A D | plot_sdcard.py | 41 import re namespace 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/sepolicy/tests/ |
H A D | mini_parser.py | 2 import re namespace 43 m = re.match(r"type\s+(.+)", stmt) 48 m = re.match(r"typeattribute\s+(.+)", stmt) 53 m = re.match(r"typeattributeset\s+(.+?)\s+\((.+?)\)", stmt, flags = re.M |re.S) 68 pub = re.match(r"(\w+)_\d+_\d+", ta) 74 if re.match(r"type\s+.+", stmt): 76 elif re.match(r"typeattribute\s+.+", stmt): 78 elif re [all...] |
H A D | sepolicy_tests.py | 5 import re namespace
|
/system/tpm/attestation/common/ |
H A D | proto_print.py | 38 import re namespace 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/core/mkbootimg/ |
H A D | mkbootimg | 23 import re namespace 132 match = re.search(r'^(\d{1,3})(?:\.(\d{1,3})(?:\.(\d{1,3}))?)?', x) 148 match = re.search(r'^(\d{4})-(\d{2})-(\d{2})', x)
|
/system/core/toolbox/ |
H A D | generate-input.h-labels.py | 21 import re namespace 39 r = re.compile(r'#define\s+(\S+)\s+((?:0x)?\d+)')
|
/system/extras/simpleperf/scripts/ |
H A D | binary_cache_builder.py | 26 import re namespace 187 result = re.search(r'Build ID:\s*(\S+)', output)
|
H A D | report.py | 29 import re namespace 169 m = re.search(r'^([\d\.]+)%[-\s]+(.+)$', line)
|
H A D | app_profiler.py | 28 import re namespace 241 return result and re.search(r'app.*\.apk', output)
|
H A D | debug_unwind_reporter.py | 44 import re namespace 337 m = re.search(r'ip\s+0x(\w+),\s+sp\s+0x(\w+)$', line) 345 if re.search(r'\)\[\+\w+\]\)$', line): 350 m = re.match('(.+)\[\+(\w+)\]\)', line[break_pos + 1:]) 398 m = re.search(r'pid\s+(\d+).+addr\s+0x(\w+).+len\s+0x(\w+)', lines[i]) 437 m = re.search(r'pid\s+(\w+),\s+ppid\s+(\w+)', lines[i])
|
/system/bt/stack/avdt/ |
H A D | avdt_ad.cc | 50 const AvdtpRoutingEntry& re = rt_tbl[tc.ccb_idx][tc.tcid]; local 52 tc.tcid, re.scb_hdl); 53 return avdt_scb_by_hdl(re.scb_hdl); 545 /* if we're acceptor, we're done; just sit back and listen */ 549 /* else we're inititator, start the L2CAP connection */ 597 /* if we're listening on this channel, send ourselves a close ind */
|
/system/extras/pagecache/ |
H A D | pagecache.py | 7 import re namespace 232 m = re.match('.* (mm_filemap_add_to_page_cache|mm_filemap_delete_from_page_cache): dev (\d+):(\d+) ino ([0-9a-z]+) page=([0-9a-z]+) pfn=\d+ ofs=(\d+).*', line) 250 result = re.match('([0-9]+)d? ([0-9]+) ([0-9]+) (.*)', line)
|
/system/timezone/ |
H A D | update-tzdata.py | 21 import re namespace 106 iana_version = re.search('tz(?:data|code)(.+)\\.tar\\.gz', iana_tar_filename).group(1)
|
/system/vold/bench/ |
H A D | benchgen.py | 29 import re, sys, collections, traceback, argparse namespace 110 re_event = re.compile(r"^([\d\.]+) (.+?)\((.+?)\) = (.+?)$") 111 re_arg = re.compile(r'''((?:[^,"']|"[^"]*"|'[^']*')+)''')
|
/system/core/init/ |
H A D | perfboot.py | 48 import re namespace 239 return re.compile(r'(?P<pid>[0-9]+) +[0-9]+ I (?P<tag>%s): (?P<time>\d+)' %
|
/system/extras/boottime_tools/bootanalyze/ |
H A D | bootanalyze.py | 28 import re namespace 96 search_events_pattern = {key: re.compile(pattern) 98 timing_events_pattern = {key: re.compile(pattern) 100 shutdown_events_pattern = {key: re.compile(pattern) 454 m = re.search(fs_stat_pattern, logcat_events.get("FsStat")) 685 pattern = re.compile(BOOT_PROP) 686 pattern_bootloader = re.compile(BOOTLOADER_TIME_PROP) 719 found = re.findall(pattern, line)
|
H A D | bugreport_anayze.py | 25 import re namespace 138 self.re_log_start = re.compile(LOG_START_PATTERN) 139 self.re_log_end = re.compile(LOG_END_PATTERN) 142 self.event_patterns = {key: re.compile(pattern) 144 self.timing_patterns = {key: re.compile(pattern) 146 self.shutdown_event_patterns = {key: re.compile(pattern) 154 self.re_time_dmesg = re.compile(TIME_DMESG) 155 self.re_time_logcat = re.compile(TIME_LOGCAT) 156 self.re_native_crash_start = re.compile(NATIVE_CRASH_START_PATTERN) 157 self.re_native_crash = re [all...] |
/system/extras/simpleperf/runtest/ |
H A D | runtest.py | 30 import re namespace 401 assert re.search(r'^Children\s+Self\s+Command.+Symbol$', title_line) 403 assert re.search(r'^Overhead\s+Command.+Symbol$', title_line) 461 m = re.search(r'^[\d\.]+%[-\s]+(.+)$', line)
|