Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 176) sorted by relevance

12345678

/tools/repohooks/tools/
Dcpplint.py440 r'^(?:'
442 r'(char(16_t|32_t)?)|wchar_t|'
443 r'bool|short|int|long|signed|unsigned|float|double|'
445 r'(ptrdiff_t|size_t|max_align_t|nullptr_t)|'
447 r'(u?int(_fast|_least)?(8|16|32|64)_t)|'
448 r'(u?int(max|ptr)_t)|'
449 r')$')
458 r'^(?:[^/]*[A-Z][^/]*\.h|lua\.h|lauxlib\.h|lualib\.h)$')
461 _TEST_FILE_SUFFIX = r'(_test|_unittest|_regtest)$'
464 _EMPTY_CONDITIONAL_BODY_PATTERN = re.compile(r'^\s*$', re.DOTALL)
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Dgnss_testlog_utils.py28 r'^(?P<date>\d+\/\d+\/\d+)\s+(?P<time>\d+:\d+:\d+)\s+'
29 r'Read:\s+(?P<logsize>\d+)\s+bytes',
31 r'^Fix:\s+(?P<Fix>\w+)\s+Type:\s+(?P<Type>\w+)\s+'
32 r'SV:\s+(?P<SV>\d+)\s+C\/No:\s+(?P<CNo>\d+\.\d+)\s+'
33 r'Elevation:\s+(?P<Elevation>\d+\.\d+)\s+'
34 r'Azimuth:\s+(?P<Azimuth>\d+\.\d+)\s+'
35 r'Signal:\s+(?P<Signal>\w+)\s+'
36 r'Frequency:\s+(?P<Frequency>\d+\.\d+)\s+'
37 r'EPH:\s+(?P<EPH>\w+)\s+ALM:\s+(?P<ALM>\w+)',
39 r'^Fix:\s+(?P<Fix>\w+)\s+Type:\s+(?P<Type>\w+)\s+'
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/
Dapollo_log_regex.py20 r'(?P<time_stamp>\d+)\s(?P<log_level>[A-Z])(.*)State Match(.*)\r\n')
22 r'(?P<time_stamp>\d+)\sVolume = (?P<vol_level>\d+)(.*)\r\n')
24 r'(?P<time_stamp>\d+)\s(?P<log_level>[A-Z])(.*)State Match(.*)3202(.*)\r\n')
26 r'(?P<time_stamp>\d+)\s(?P<log_level>[A-Z])(.*)State Match(.*)320a(.*)\r\n')
27 AVRCP_PLAY_REGEX = (r'(?P<time_stamp>\d+)\sAVRCP '
28 r'play\r\n')
29 AVRCP_PAUSE_REGEX = (r'(?P<time_stamp>\d+)\sAVRCP '
30 r'paused\r\n')
32 r'(?P<time_stamp>\d+)\s(?P<log_level>[A-Z])(.*)State Match(.*)'
33 r'\[3206\](.*)\r\n')
[all …]
/tools/treble/hacksaw/bind/
Dremoteclient.go29 var r RemoteBinderClient
30 r.SocketPath = socketPath
31 return &r
34 func (r *RemoteBinderClient) initRpcClient() error {
35 if r.rpcClient != nil {
39 r.rpcClient, err = rpc.DialHTTP("unix", r.SocketPath)
43 func (r *RemoteBinderClient) BindReadOnly(source string, destination string) error {
46 if err := r.initRpcClient(); err != nil {
49 if err := r.rpcClient.Call("Server.BindReadOnly", &args, &reply); err != nil {
58 func (r *RemoteBinderClient) BindReadWrite(source string, destination string) error {
[all …]
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py45 _APK_RE = re.compile(r'^[^/]+\.apk$', re.I)
48 r'^\s*TEST(_F|_P)?\s*\(\s*(?P<class>\w+)\s*,\s*(?P<method>\w+)\s*\)', re.M)
51 r'^\s*INSTANTIATE[_TYPED]*_TEST_(SUITE|CASE)_P\s*\(\s*(?P<instantiate>\w+)\s*,'
52 r'\s*(?P<class>\w+)\s*\,', re.M)
54 _JAVA_METHODS_RE = r'.*\s+(fun|void)\s+(?P<methods>\w+)\(\)'
58 _PACKAGE_RE = re.compile(r'\s*package\s+(?P<package>[^(;|\s)]+)\s*', re.I)
60 _HOST_PATH_RE = re.compile(r'.*\/host\/.*', re.I)
61 _DEVICE_PATH_RE = re.compile(r'.*\/target\/.*', re.I)
64 r'^\s*@RunWith\s*\(\s*(Parameterized|TestParameterInjector|'
65 r'JUnitParamsRunner|DataProviderRunner|JukitoRunner|Theories|BedsteadJUnit4'
[all …]
/tools/asuite/atest-py2/test_finders/
Dtest_finder_utils.py41 _APK_RE = re.compile(r'^[^/]+\.apk$', re.I)
43 _CC_CLASS_RE = re.compile(r'^[ ]*TEST(_F|_P)?[ ]*\(', re.I)
45 _JAVA_METHODS_PATTERN = r'.*[ ]+({0})\(.*'
47 _CC_METHODS_PATTERN = r'^[ ]*TEST(_F|_P)?[ ]*\(.*,[ ]*({0})\).*'
50 _PACKAGE_RE = re.compile(r'\s*package\s+(?P<package>[^(;|\s)]+)\s*', re.I)
52 _HOST_PATH_RE = re.compile(r'.*\/host\/.*', re.I)
53 _DEVICE_PATH_RE = re.compile(r'.*\/target\/.*', re.I)
73 FIND_REFERENCE_TYPE.CLASS: r"find {0} {1} -type f"
74 r"| egrep '.*/{2}\.(kt|java)$' || true",
75 FIND_REFERENCE_TYPE.QUALIFIED_CLASS: r"find {0} {1} -type f"
[all …]
/tools/repohooks/rh/
Dhooks.py101 ret.append(re.sub(r'\$\{(%s)\}' % ('|'.join(all_vars),),
345 filtered = _filter_diff(diff, [r'\.bp$'])
403 regex = r'^%s: (None|[0-9]+(, [0-9]+)*)$' % (field,)
427 regex = r'^%s: I[a-f0-9]+$' % (field,)
480 filtered = _filter_diff(diff, [r'\.apk$'])
485 r'^package: .*$',
486 r'^sdkVersion:.*$',
487 r'^targetSdkVersion:.*$',
488 r'^Built here:.*$',
489 (r'^This build IS( NOT)? suitable for'
[all …]
Dshell_unittest.py76 r'''"s'a\$va\\rs"''': r"s'a$va\rs",
77 r'''"\\'\\\""''': r'''\'\"''',
78 r'''"'\\\$"''': r"""'\$""",
84 r'''\$''': r'''"\\$"''',
104 r"a b": ['a', 'b'],
105 r"'a b' c": ['a b', 'c'],
106 r'''a "b'c"''': ['a', "b'c"],
107 r'''a "/'\$b" 'a b c' "xy'z"''':
/tools/asuite/atest/
Dconstants_default.py251 CC_EXT_RE = re.compile(r'.*\.(cc|cpp)$')
252 JAVA_EXT_RE = re.compile(r'.*\.(java|kt)$')
254 CC_OUTPUT_RE = re.compile(r'(?P<file_path>/.*):\s*TEST(_F|_P)?[ ]*\('
255 r'(?P<test_name>\w+)\s*,\s*(?P<method_name>\w+)\)'
256 r'\s*\{')
257 CC_GREP_RE = r'^[ ]*TEST(_P|_F)?[ ]*\([[:alnum:]].*,'
260 CLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)[:].*')
261 QCLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)'
262 r'[:]\s*package\s+(?P<package>[^(;|\s)]+)\s*')
263 PACKAGE_OUTPUT_RE = re.compile(r'(?P<java_dir>/.*/).*[.](java|kt)[:]\s*package\s+'
[all …]
/tools/asuite/atest-py2/
Dconstants_default.py216 CC_EXT_RE = re.compile(r'.*\.(cc|cpp)$')
217 JAVA_EXT_RE = re.compile(r'.*\.(java|kt)$')
219 CC_OUTPUT_RE = re.compile(r'(?P<file_path>/.*):\s*TEST(_F|_P)?[ ]*\('
220 r'(?P<test_name>\w+)\s*,\s*(?P<method_name>\w+)\)'
221 r'\s*\{')
222 CC_GREP_RE = r'^[ ]*TEST(_P|_F)?[ ]*\([[:alnum:]].*,'
225 CLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)[:].*')
226 QCLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)'
227 r'[:]\s*package\s+(?P<package>[^(;|\s)]+)\s*')
228 PACKAGE_OUTPUT_RE = re.compile(r'(?P<java_dir>/.*/).*[.](java|kt)[:]\s*package\s+'
[all …]
/tools/acloud/public/
Ddevice_driver.py372 r = report.Report(command="create")
414 r.AddData(key="devices_failing_boot", value=device_dict)
415 r.AddError(str(failures[device.instance_name]))
417 r.AddData(key="devices", value=device_dict)
419 r.SetStatus(report.Status.BOOT_FAIL)
421 r.SetStatus(report.Status.SUCCESS)
431 r.AddError(str(e))
432 r.SetStatus(report.Status.FAIL)
433 return r
452 r = default_report if default_report else report.Report(command="delete")
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DLittleEndianUtils.java58 long r = (b0 & 0xff) | ((b1 & 0xff) << 8) | ((b2 & 0xff) << 16) | ((b3 & 0xffL) << 24); in readUnsigned4Le() local
59 Verify.verify(r >= 0); in readUnsigned4Le()
60 Verify.verify(r <= 0x00000000ffffffffL); in readUnsigned4Le()
61 return r; in readUnsigned4Le()
84 int r = (b0 & 0xff) | ((b1 & 0xff) << 8); in readUnsigned2Le() local
86 Verify.verify(r >= 0); in readUnsigned2Le()
87 Verify.verify(r <= 0x0000ffff); in readUnsigned2Le()
88 return r; in readUnsigned2Le()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZipField.java171 long r; in read() local
173 r = LittleEndianUtils.readUnsigned2Le(bytes); in read()
175 r = LittleEndianUtils.readUnsigned4Le(bytes); in read()
178 checkVerifiesInvariants(r); in read()
179 return r; in read()
238 long r = read(bytes); in verify() local
239 if (r != expected) { in verify()
244 r, in verify()
DZFile.java901 int r = directRead(mCurr, b); in directOpen() local
902 if (r > 0) { in directOpen()
929 int r = directRead(mCurr, b, off, Ints.checkedCast(toRead)); in directOpen() local
930 if (r > 0) { in directOpen()
931 mCurr += r; in directOpen()
934 return r; in directOpen()
1348 int r; in writeEntry() local
1351 while ((r = is.read(chunk)) >= 0) { in writeEntry()
1352 directWrite(writeOffset, chunk, 0, r); in writeEntry()
1353 writeOffset += r; in writeEntry()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Db29_lib.py38 r'_(?P<device_serial>[A-Z0-9]+)-(?P<interface>\w+)\s->\s'
39 r'(\.\./){2}(?P<port>\w+)'
99 self.ping_match = {'psoc': r'Pings: tx=[\d]* rx=[1-9][0-9]',
100 'csr': r'count=100, sent=[\d]*, received=[1-9][0-9]',
101 'charger': r'Pings: tx=[\d]* rx=[1-9][0-9]'}
113 version_match = re.compile(r'CHARGER app version: version=([\d]*)')
115 version_match = re.compile(r'APP VERSION: ([\d]*)')
Dapollo_lib.py66 LOG_REGEX = re.compile(r'(?P<time_stamp>\d+)\s(?P<msg>.*)')
67 STATUS_REGEX = r'(?P<time_stamp>\d+)\s(?P<key>.+?): (?P<value>.+)'
70 r'_(?P<device_serial>[A-Z0-9]+)-(?P<interface>\w+)'
71 r'\s->\s(\.\./){2}(?P<port>\w+)'
75 OTA_RECEIVE_CSR_REGEX = r'INFO OTA CSR rcv begin'
76 CODEC_REGEX = r'(?P<time_stamp>\d+)\s(?P<codec>\w+) codec is used.'
77 BUILD_REGEX = r'\d+\.\d+\.(?P<build>\d+)-?(?P<psoc_build>\d*)-?(?P<debug>\w*)'
337 regexp = r'\d+\s+(?P<m1>....)\s(?P<m2>....)'
975 if not re.search(r'pskey', result.lower()) and LOG_REGEX.match(
1203 new_crash_regex = r'new crash = ([01]+)'
[all …]
/tools/acloud/internal/lib/
Dadb_tools.py28 _RE_ADB_DEVICE_INFO = (r"%s\s*(?P<adb_status>[\S]+)? ?"
29 r"(usb:(?P<usb>[\S]+))? ?"
30 r"(product:(?P<product>[\S]+))? ?"
31 r"(model:(?P<model>[\S]+))? ?"
32 r"(device:(?P<device>[\S]+))? ?"
33 r"(transport_id:(?P<transport_id>[\S]+))? ?")
/tools/external_updater/
Dupdater_utils.py65 VERSION_SPLITTER_PATTERN: str = r'[\.\-_]'
66 VERSION_PATTERN: str = (r'^(?P<prefix>[^\d]*)' + r'(?P<version>\d+(' +
67 VERSION_SPLITTER_PATTERN + r'\d+)*)' +
68 r'(?P<suffix>.*)$')
/tools/acloud/list/
Dinstance.py14 r"""Instance class.
55 _LOCAL_INSTANCE_NAME_PATTERN = re.compile(r"^local-instance-(?P<id>\d+)$")
61 _RE_SSH_TUNNEL_PATTERN = (r"((.*\s*-L\s)(?P<%s>\d+):127.0.0.1:%s)"
62 r"((.*\s*-L\s)(?P<%s>\d+):127.0.0.1:%s)"
63 r"(.+%s)")
64 _RE_TIMEZONE = re.compile(r"^(?P<time>[0-9\-\.:T]*)(?P<timezone>[+-]\d+:\d+)$")
67 _RE_RUN_CVD = re.compile(r"(?P<date_str>^[^/]+)(.*run_cvd)")
69 _RE_ZONE = re.compile(r".+/zones/(?P<zone>.+)$")
534 r"^local-goldfish-instance-(?P<id>\d+)$")
539 _DEVICE_SERIAL_PATTERN = re.compile(r"^emulator-(?P<console_port>\d+)$")
/tools/asuite/atest-py2/tools/
Datest_tools.py173 cc_grep_re = r'^\s*TEST(_P|_F)?\s*\(\w+,'
175 find_cmd = (r"locate -d {0} '*.cpp' '*.cc' | grep -i test "
178 find_cmd = (r"locate -d {0} / | egrep -i '/*.test.*\.(cc|cpp)$' "
192 package_grep_re = r'^\s*package\s+[a-z][[:alnum:]]+[^{]'
194 find_cmd = r"locate -d%s '*.java' '*.kt'|grep -i test" % locatedb
196 find_cmd = r"locate -d%s / | egrep -i '/*.test.*\.(java|kt)$'" % locatedb
/tools/test/connectivity/acts/framework/acts/
Drecords.py171 def __add__(self, r): argument
183 if not isinstance(r, MoblyTestResult):
185 (r, type(r)))
188 r_value = getattr(r, name)
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiRttManagerTest.py152 for i, r in enumerate(results):
154 r[RttParam.margin] = RTT_MARGIN_OF_ERROR[bw_mode]
264 for r in results:
267 status = r["status"]
273 value = r["rtt"]
280 margin = r[RttParam.margin]
282 d = r["distance"] / 100.0
304 rssi = r["rssi"]
/tools/asuite/atest/tools/
Datest_tools.py199 cc_grep_re = r'^\s*TEST(_P|_F)?\s*\(\w+,'
201 find_cmd = (r"locate -d {0} '*.cpp' '*.cc' | grep -i test "
204 find_cmd = (r"locate -d {0} / | egrep -i '/*.test.*\.(cc|cpp)$' "
218 package_grep_re = r'^\s*package\s+[a-z][[:alnum:]]+[^{]'
220 find_cmd = r"locate -d%s '*.java' '*.kt'|grep -i test" % locatedb
222 find_cmd = r"locate -d%s / | egrep -i '/*.test.*\.(java|kt)$'" % locatedb
/tools/acloud/create/
Davd_spec.py16 r"""AVDSpec class.
44 _BRANCH_RE = re.compile(r"^Manifest branch: (?P<branch>.+)")
57 _RE_ANSI_ESCAPE = re.compile(r"(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]")
58 _RE_FLAVOR = re.compile(r"^.+_(?P<flavor>.+)-img.+")
59 _RE_MEMORY = re.compile(r"(?P<gb_size>\d+)g$|(?P<mb_size>\d+)m$",
61 _RE_INT = re.compile(r"^\d+$")
62 _RE_RES = re.compile(r"^(?P<x_res>\d+)x(?P<y_res>\d+)$")
368 if re.match(r"(.*_)?%s" % flavor, flavor_string):
562 if re.match(r"(.*_)?%s_" % avd_type_abbr,
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/
DLittleEndianUtilsTest.java48 Random r = new Random(); in readWrite2Le() local
55 data[i] = r.nextInt(range); in readWrite2Le()
91 Random r = new Random(); in readWrite4Le() local
97 data[i] = r.nextInt() - (long) Integer.MIN_VALUE; in readWrite4Le()

12345678