Home
last modified time | relevance | path

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

1234567

/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/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/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/repohooks/rh/
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"''':
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 …]
Dgit.py126 r':(?P<src_mode>[0-7]*) (?P<dst_mode>[0-7]*) '
127 r'(?P<src_sha>[0-9a-f]*)(\.)* (?P<dst_sha>[0-9a-f]*)(\.)* '
128 r'(?P<status>[ACDMRTUX])(?P<score>[0-9]+)?\t'
129 r'(?P<src_file>[^\t]+)\t?(?P<dst_file>[^\t]+)?')
/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/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/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()
DRandomAccessFileUtils.java40 int r; in fullyRead() local
43 while ((r = raf.read(data, p, data.length - p)) > 0) { in fullyRead()
44 p += r; in fullyRead()
/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/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/
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()
/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]*)')
/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/metalava/src/main/java/com/android/tools/metalava/model/text/
DSourcePositionInfo.kt27 val r = file.compareTo(other.file) in compareTo() constant
28 return if (r != 0) r else line - other.line in compareTo()
/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/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/tests/controllers/bits_lib/
Dbits_service_config_test.py46 r'lvpm_monsoon binary is needed but was None.',
60 r'hvpm_monsoon binary is needed but was None.',
67 r'Monsoon voltage can not be undefined.',
74 r'Monsoon serial_num can not be undefined.',
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/
DApkZFileTestUtils.java59 int r = raf.read(data, tot, length - tot); in readSegment() local
60 if (r < 0) { in readSegment()
64 tot += r; in readSegment()
/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/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/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/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/
DIOExceptionRunnable.java42 public static Runnable asRunnable(@Nonnull IOExceptionRunnable r) { in asRunnable() argument
45 r.run(); in asRunnable()

1234567