Home
last modified time | relevance | path

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

123456789

/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.py47 _APK_RE = re.compile(r'^[^/]+\.apk$', re.I)
67 r'^\s*(TYPED_TEST(?:|_P)|TEST(?:|_F|_P))\s*\(\s*'
68 r'(?P<class_name>\w+),\s*(?P<method_name>\w+)\)\s*\{', re.M)
74 r'^\s*INSTANTIATE_(?:|TYPED_)TEST_(?:SUITE|CASE)_P\s*\(\s*'
75 r'(?P<instantiate>\w+),\s*(?P<class>\w+)\s*,', re.M)
78 r'^\s*TYPED_TEST_SUITE(?:|_P)\(\s*(?P<class_name>\w+)', re.M)
81 _JAVA_METHODS_RE = r'.*\s+(fun|void)\s+(?P<method>\w+)\('
85 _PACKAGE_RE = re.compile(r'\s*package\s+(?P<package>[^(;|\s)]+)\s*', re.I)
87 _HOST_PATH_RE = re.compile(r'.*\/host\/.*', re.I)
88 _DEVICE_PATH_RE = re.compile(r'.*\/target\/.*', re.I)
[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/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_parse_utils.py30 IS_CAPTIVEPORTAL = r'isCaptivePortal: isSuccessful()=true'
48 WHI_IWLAN_SETUP_DATA_CALL_REQUEST = r'IwlanDataService\[\d\]: Setup data call'
49 WHI_IWLAN_SETUP_DATA_CALL_RESPONSE = r'IwlanDataService\[\d\]: Tunnel opened!'
50 WHI_IWLAN_DEACTIVATE_DATA_CALL_REQUEST = r'IwlanDataService\[\d\]: Deactivate data call'
51 WHI_IWLAN_DEACTIVATE_DATA_CALL_RESPONSE = r'IwlanDataService\[\d\]: Tunnel closed!'
57 RADIO_ON_4G_SLOT0 = r'GsmCdmaPhone: \[0\] Event EVENT_RADIO_ON Received'
58 RADIO_ON_4G_SLOT1 = r'GsmCdmaPhone: \[1\] Event EVENT_RADIO_ON Received'
61 ON_IMS_MM_TEL_CONNECTED_4G_SLOT0 = r'ImsPhone: \[0\].*onImsMmTelConnected imsRadioTech=WWAN'
62 ON_IMS_MM_TEL_CONNECTED_4G_SLOT1 = r'ImsPhone: \[1\].*onImsMmTelConnected imsRadioTech=WWAN'
63 ON_IMS_MM_TEL_CONNECTED_IWLAN_SLOT0 = r'ImsPhone: \[0\].*onImsMmTelConnected imsRadioTech=WLAN'
[all …]
Damarisoft_sim_utils.py152 command = r'AT+CPIN=\"' + puk + r'\",\"' + pin + r'\"'
177 command = r'AT+CPIN=\"' + pin + r'\"'
309 command = r'AT+CLCK=\"SC\",1,\"' + pin + r'\"'
332 command = r'AT+CLCK=\"SC\",0,\"' + pin + r'\"'
/tools/asuite/atest/
Dconstants_default.py252 CC_EXT_RE = re.compile(r'.*\.(cc|cpp)$')
253 JAVA_EXT_RE = re.compile(r'.*\.(java|kt)$')
256 r'(?P<file_path>/.*):\s*(TYPED_TEST(_P)*|TEST(_F|_P)*)\s*\('
257 r'(?P<test_name>\w+)\s*,\s*(?P<method_name>\w+)\)\s*\{')
259 CC_GREP_RE = r'^\s*(TYPED_TEST(_P)*|TEST(_F|_P)*)\s*\(\w+,'
261 CC_GREP_KWRE = r'^\s*(TYPED_TEST(_P)*|TEST(_F|_P)*)\s*\({2},'
264 CLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)[:].*')
265 QCLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)'
266 r'[:]\s*package\s+(?P<package>[^(;|\s)]+)\s*')
267 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.py373 r = report.Report(command="create")
415 r.AddData(key="devices_failing_boot", value=device_dict)
416 r.AddError(str(failures[device.instance_name]))
418 r.AddData(key="devices", value=device_dict)
420 r.SetStatus(report.Status.BOOT_FAIL)
422 r.SetStatus(report.Status.SUCCESS)
432 r.AddError(str(e))
433 r.SetStatus(report.Status.FAIL)
434 return r
453 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_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/
Dbrcm_utils.py185 r'rssi\[0\]\s(?P<chain_0_rssi>[0-9\-]*)', per_chain_rssi)
191 r'rssi\[1\]\s(?P<chain_1_rssi>[0-9\-]*)', per_chain_rssi)
379 BW_REGEX = re.compile(r'Chanspec:.+ (?P<bandwidth>[0-9]+)MHz')
380 MCS_REGEX = re.compile(r'(?P<count>[0-9]+)\((?P<percent>[0-9]+)%\)')
381 RX_REGEX = re.compile(r'RX (?P<mode>\S+)\s+:\s*(?P<nss1>[0-9, ,(,),%]*)'
383 TX_REGEX = re.compile(r'TX (?P<mode>\S+)\s+:\s*(?P<nss1>[0-9, ,(,),%]*)'
386 r'(?P<mode>\S+) PER\s+:\s*(?P<nss1>[0-9, ,(,),%]*)'
389 r'rxbadfcs (?P<rx_bad_fcs>[0-9]*).+\n.+goodfcs (?P<rx_good_fcs>[0-9]*)'
391 RX_AGG_REGEX = re.compile(r'rxmpduperampdu (?P<aggregation>[0-9]*)')
392 TX_AGG_REGEX = re.compile(r' mpduperampdu (?P<aggregation>[0-9]*)')
[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]+))? ?")
34 _RE_SERIAL = r"(?P<ip>.+):(?P<port>.+)"
Dssh.py36 _ERROR_MSG_RE = re.compile(r".*]\s*\"(?:message|response)\"\s:\s\"(?P<content>.*)\"")
37 _ERROR_MSG_TO_QUOTE_RE = r"(\\u2019)|(\\u2018)"
38 _ERROR_MSG_DEL_STYLE_RE = r"(<style.+\/style>)"
39 _ERROR_MSG_DEL_TAGS_RE = (r"(<[\/]*(a|b|p|span|ins|code|title)>)|"
40 r"(<(a|span|meta|html|!)[^>]*>)")
183 content = re.sub(r"\\n", " ", content)
/tools/test/connectivity/acts_tests/tests/google/fuchsia/dhcp/
DDhcpv4InteropTest.py266 with asserts.assert_raises_regex(Exception, r'failed to start'):
276 with asserts.assert_raises_regex(Exception, r'failed to start'):
319 re.search(r'DHCPDISCOVER from .*no free leases', dhcp_logs),
404 r'DHCPDISCOVER from \S+',
405 r'DHCPOFFER on [0-9.]+ to \S+',
406 r'DHCPREQUEST for [0-9.]+',
407 r'DHCPACK on [0-9.]+',
408 r'DHCPDECLINE of [0-9.]+ from \S+ via .*: abandoned',
409 r'Abandoning IP address [0-9.]+: declined',
/tools/external_updater/
Dupdater_utils.py66 VERSION_SPLITTER_PATTERN: str = r'[\.\-_]'
67 VERSION_PATTERN: str = (r'^(?P<prefix>[^\d]*)' + r'(?P<version>\d+(' +
68 VERSION_SPLITTER_PATTERN + r'\d+)*)' +
69 r'(?P<suffix>.*)$')
/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/acloud/list/
Dinstance.py14 r"""Instance class.
66 _LOCAL_INSTANCE_NAME_PATTERN = re.compile(r"^local-instance-(?P<id>\d+)$")
72 _RE_SSH_TUNNEL_PATTERN = (r"((.*\s*-L\s)(?P<%s>\d+):127.0.0.1:%s)"
73 r"((.*\s*-L\s)(?P<%s>\d+):127.0.0.1:%s)"
74 r"(.+%s)")
75 _RE_TIMEZONE = re.compile(r"^(?P<time>[0-9\-\.:T]*)(?P<timezone>[+-]\d+:\d+)$")
76 _RE_DEVICE_INFO = re.compile(r"(?s).*(?P<device_info>[{][\s\w\W]+})")
79 _RE_RUN_CVD = re.compile(r"(?P<date_str>^[^/]+)(.*run_cvd)")
81 _RE_ZONE = re.compile(r".+/zones/(?P<zone>.+)$")
718 r"^local-goldfish-instance-(?P<id>\d+)$")
[all …]
/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/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()

123456789