/external/antlr/antlr-3.4/runtime/Python/tests/ |
t040bug80.py | 13 def recover(self, input, re):
|
/external/autotest/client/cros/audio/ |
alsa_utils.py | 5 import re namespace 14 CARD_NUM_RE = re.compile('(\d+) \[.*\]:.*') 15 DEV_NUM_RE = re.compile('.* \[.*\], device (\d+):.*') 16 CONTROL_NAME_RE = re.compile("name='(.*)'") 17 SCONTROL_NAME_RE = re.compile("Simple mixer control '(.*)'") 122 cpat = re.compile(r'\b%s\b' % cname, re.IGNORECASE) 123 scpat = re.compile(r'\b%s\b' % scname, re.IGNORECASE)
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
touch_device.py | 10 import re namespace 155 result = re.search(pattern_x, line, re.I) 162 result = re.search(pattern_y, line, re.I) 217 re_pattern = re.compile(self._touch_input_name_re_str(), re.I) 232 # Get the re search pattern for firmware_version file name 239 re_pattern = re.compile(re_str, re.I [all...] |
/external/autotest/client/site_tests/hardware_Smartctl/ |
hardware_Smartctl.py | 5 import logging, re namespace 47 if re.match('.*mmc.*', dev): 87 pattern = re.compile(self._SMARTCTL_DEVICE_MODEL_PATTERN) 103 pattern = re.compile(self._SMARTCTL_RESULT_PATTERN)
|
/external/autotest/client/site_tests/kernel_Bootcache/ |
kernel_Bootcache.py | 7 import logging, optparse, os, shutil, re, string namespace
|
/external/autotest/client/site_tests/power_ARMSettings/ |
power_ARMSettings.py | 5 import logging, re, commands namespace 54 match = re.search(r'ARMv[4-7]', cpuinfo) 69 match = re.search(r'Power Management:(.*)', iwconfig_out) 108 commit = int(re.search(r'(commit=)([0-9]*)', line).group(2))
|
/external/autotest/client/site_tests/video_WebRtcCamera/ |
video_WebRtcCamera.py | 7 import re namespace 55 if re.search(r'\s+wWidth\s+1280\s+wHeight\s+720', usb_devices): 59 if re.search(r'\s+wWidth\s+640\s+wHeight\s+480', usb_devices): 123 output_resolution = re.sub(',', 'x', resolution)
|
/external/autotest/client/tests/ffsb/ |
ffsb.py | 1 import os, string, logging, re, random, shutil namespace 53 p = re.compile(r'\s*\t*\[{1}filesystem(\d+)\]{1}') 58 p = re.compile(r'(\s*\t*location)\=(.*)') 68 p = re.compile(r'(\s*\t*num_files)\=(\d+)') 74 p = re.compile(r'(\s*\t*max_filesize)\=(\d+[kKMmGgTt]?)') 113 p = re.compile(r'\s*\t*\[{1}filesystem(\d+)\]{1}') 117 p = re.compile(r'(\s*\t*location)\=(.*)') 136 p = re.compile(r'(\s*\t*num_files)\=(.*)') 142 p = re.compile(r'(\s*\t*max_filesize)\=(\d+[kKMmGgTt]?)')
|
/external/autotest/client/tests/kvm/tests/ |
cpu_hotplug.py | 1 import os, logging, re namespace 42 cpu_regexp = re.compile("CPU #(\d+)") 78 cpu_regexp = re.compile("cpu(\d+)", re.IGNORECASE)
|
hdparm.py | 1 import re, logging namespace 19 params = re.findall("(-[a-zA-Z])([0-9]*)", set_cmd) 20 disk = re.findall("(\/+[a-z]*\/[a-z]*$)", set_cmd)[0] 44 (result, unit) = re.findall("= *([0-9]*.+[0-9]*) ([a-zA-Z]*)",
|
/external/autotest/client/tests/unixbench5/ |
unixbench5.py | 1 import os, re namespace 76 if re.search('no measured results', line, flags=re.IGNORECASE): 84 key = re.sub('\W', '', '_'.join(words[:-6]))
|
/external/autotest/client/virt/tests/ |
multicast.py | 1 import logging, os, re namespace 53 prefix = re.findall("\d+.\d+.\d+", mcast)[0] 54 suffix = int(re.findall("\d+", mcast)[-1]) 63 pid = re.findall("join_mcast_pid:(\d+)", output)[0]
|
/external/chromium-trace/catapult/third_party/py_vulcanize/py_vulcanize/ |
html_module.py | 6 import re namespace 122 if re.search(_POLYMER_RE_1, js) is not None: 124 if re.search(_POLYMER_RE_2, js) is not None: 130 if re.search(_POLYMER_RE_1, js) is not None: 131 return re.sub(_POLYMER_RE_1, 133 js, 0, re.DOTALL) 134 if re.search(_POLYMER_RE_2, js) is not None: 135 return re.sub(_POLYMER_RE_2, 137 js, 0, re.DOTALL)
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
APIData.java | 60 RuntimeException re = new RuntimeException("error reading api data"); local 61 re.initCause(e); 62 throw re; 90 RuntimeException re = new RuntimeException("error getting info stream: " + fileName); local 91 re.initCause(e); 92 throw re; 98 RuntimeException re = new RuntimeException("failed to close the zip file: " + fileName); local 99 re.initCause(e); 100 throw re;
|
/external/libopus/celt/tests/ |
test_unit_dft.c | 67 double re = cos(phase); local 74 re /= nfft; 78 ansr += in[k].r * re - in[k].i * im; 79 ansi += in[k].r * im + in[k].i * re;
|
/external/opencv3/modules/java/ |
check-tests.py | 3 import sys, os, re namespace 28 self.r1 = re.compile("\s*public\s+(?:static\s+)?(\w+)\(([^)]*)\)") # c-tor 29 self.r2 = re.compile("\s*(?:(?:public|static|final)\s+){1,3}\S+\s+(\w+)\(([^)]*)\)") 30 self.r3 = re.compile('\s*fail\("Not yet implemented"\);') # empty test stub 95 if re.match(cls, clsname): 123 func = re.sub(r"^test", "", func) 126 args_str = re.sub(r"List<(\w+)>", "ListOf\g<1>", args_str) 127 args_str = re.sub(r"List<(\w+)>", "ListOf\g<1>", args_str) 133 if re.match(fi, func_ex):
|
/external/pcre/dist/ |
pcre_scanner_unittest.cc | 69 const char *re = "(\\w+) = (\\d+);"; local 78 s.Consume(re, &var, &number); 87 s.Consume(re, &var, &number); 95 s.Consume(re, &var, &number);
|
/external/webrtc/tools/sslroots/ |
generate_sslroots.py | 25 import re namespace 66 label = re.search(r'\".*\"', line) 139 prog = re.compile(cert_block, re.IGNORECASE | re.MULTILINE | re.DOTALL) 146 prog2 = re.compile(cert_size_block, re.MULTILINE | re.VERBOSE)
|
/external/webrtc/webrtc/tools/e2e_quality/audio/ |
run_audio_test.py | 22 import re namespace 60 default_source = re.search(r'(^ \* index: )([0-9]+$)', output, 61 re.MULTILINE).group(2) 121 value = ''.join(re.findall(options.regexp, output))
|
/packages/services/Car/libvehiclenetwork/tool/ |
vehiclehal_code_gen.py | 19 import re namespace 203 property_re = re.compile(RE_PROPERTY_PATTERN, re.MULTILINE | re.DOTALL) 233 enum_re = re.compile(RE_ENUM_PATTERN, re.MULTILINE | re.DOTALL) 234 enum_entry_re = re.compile(RE_ENUM_ENTRY_PATTERN, re.MULTILINE)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/ |
util.py | 103 import re, tempfile, errno namespace 106 expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name) 125 res = re.search(expr, trace) 142 res = re.search(r'\[.*\]\sSONAME\s+([^\s]+)', data) 163 res = re.search(r'\sSONAME\s+([^\s]+)', data) 184 ename = re.escape(name) 191 res = re.findall(expr, data) 244 expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type) 250 res = re.search(expr, data)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/email/ |
utils.py | 24 import re namespace 51 specialsre = re.compile(r'[][\\()<>@,:;".]') 52 escapesre = re.compile(r'[][\\()"]') 80 s = re.sub(r'(?<!\r)\n', CRLF, s) 82 s = re.sub(r'\r(?!\n)', CRLF, s) 117 ecre = re.compile(r''' 125 ''', re.VERBOSE | re.IGNORECASE) 267 rfc2231_continuation = re.compile(r'^(?P<name>\w+)\*((?P<num>[0-9]+)\*?)?$')
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
fnmatch.py | 13 import re namespace 54 _cache[pat] = re.compile(res) 78 _cache[pat] = re.compile(res) 115 res = res + re.escape(c)
|
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/ |
util.py | 103 import re, tempfile, errno namespace 106 expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name) 125 res = re.search(expr, trace) 142 res = re.search(r'\[.*\]\sSONAME\s+([^\s]+)', data) 163 res = re.search(r'\sSONAME\s+([^\s]+)', data) 184 ename = re.escape(name) 191 res = re.findall(expr, data) 244 expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type) 250 res = re.search(expr, data)
|
/prebuilts/gdb/linux-x86/lib/python2.7/email/ |
utils.py | 24 import re namespace 51 specialsre = re.compile(r'[][\\()<>@,:;".]') 52 escapesre = re.compile(r'[][\\()"]') 80 s = re.sub(r'(?<!\r)\n', CRLF, s) 82 s = re.sub(r'\r(?!\n)', CRLF, s) 117 ecre = re.compile(r''' 125 ''', re.VERBOSE | re.IGNORECASE) 267 rfc2231_continuation = re.compile(r'^(?P<name>\w+)\*((?P<num>[0-9]+)\*?)?$')
|