Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 178) 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/framework/acts/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/asuite/atest/test_finders/
Dtest_finder_utils.py43 _APK_RE = re.compile(r'^[^/]+\.apk$', re.I)
45 _CC_CLASS_RE = re.compile(r'^[ ]*TEST(_F|_P)?[ ]*\(', re.I)
47 _JAVA_METHODS_PATTERN = r'.*[ ]+({0})\(.*'
49 _CC_METHODS_PATTERN = r'^[ ]*TEST(_F|_P)?[ ]*\(.*,[ ]*({0})\).*'
53 _PACKAGE_RE = re.compile(r'\s*package\s+(?P<package>[^(;|\s)]+)\s*', re.I)
55 _HOST_PATH_RE = re.compile(r'.*\/host\/.*', re.I)
56 _DEVICE_PATH_RE = re.compile(r'.*\/target\/.*', re.I)
79 FIND_REFERENCE_TYPE.CLASS: r"find {0} {1} -type f"
80 r"| egrep '.*/{2}\.(kt|java)$' || true",
81 FIND_REFERENCE_TYPE.QUALIFIED_CLASS: r"find {0} {1} -type f"
[all …]
/tools/tradefederation/core/atest/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.py103 ret.append(re.sub(r'\$\{(%s)\}' % ('|'.join(all_vars),),
307 filtered = _filter_diff(diff, [r'\.bp$'])
365 regex = r'^%s: (None|[0-9]+(, [0-9]+)*)$' % (field,)
389 regex = r'^%s: I[a-f0-9]+$' % (field,)
442 filtered = _filter_diff(diff, [r'\.apk$'])
447 r'^package: .*$',
448 r'^sdkVersion:.*$',
449 r'^targetSdkVersion:.*$',
450 r'^Built here:.*$',
451 (r'^This build IS( NOT)? suitable for'
[all …]
Dshell_unittest.py79 r'''"s'a\$va\\rs"''': r"s'a$va\rs",
80 r'''"\\'\\\""''': r'''\'\"''',
81 r'''"'\\\$"''': r"""'\$""",
87 r'''\$''': r'''"\\$"''',
107 r"a b": ['a', 'b'],
108 r"'a b' c": ['a b', 'c'],
109 r'''a "b'c"''': ['a', "b'c"],
110 r'''a "/'\$b" 'a b c' "xy'z"''':
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java449 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in checkAndAddAvailableDevice()
451 if (r.stateChanged && r.allocationState == DeviceAllocationState.Available) { in checkAndAddAvailableDevice()
459 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in checkAndAddAvailableDevice()
461 if (r.stateChanged && r.allocationState == DeviceAllocationState.Unavailable) { in checkAndAddAvailableDevice()
635 DeviceEventResponse r = d.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST); in forceAllocateDevice() local
636 if (r.stateChanged && r.allocationState == DeviceAllocationState.Allocated) { in forceAllocateDevice()
668 DeviceEventResponse r = in freeDevice() local
673 device.getSerialNumber(), r.allocationState.toString()); in freeDevice()
700 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(managedDevice, in freeDevice() local
702 if (r != null && !r.stateChanged) { in freeDevice()
[all …]
DManagedDeviceList.java62 DeviceEventResponse r = element.handleAllocationEvent(event); in matches() local
63 return r.stateChanged && r.allocationState == DeviceAllocationState.Allocated; in matches()
284 DeviceEventResponse r = d.handleAllocationEvent(event);
285 if (r != null && r.allocationState == DeviceAllocationState.Unknown) {
288 return r;
/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/asuite/atest/
Dconstants_default.py225 CC_EXT_RE = re.compile(r'.*\.(cc|cpp)$')
226 JAVA_EXT_RE = re.compile(r'.*\.(java|kt)$')
228 CC_OUTPUT_RE = re.compile(r'(?P<file_path>/.*):\s*TEST(_F|_P)?[ ]*\('
229 r'(?P<test_name>\w+)\s*,\s*(?P<method_name>\w+)\)'
230 r'\s*\{')
231 CC_GREP_RE = r'^[ ]*TEST(_P|_F)?[ ]*\([[:alnum:]].*,'
234 CLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)[:].*')
235 QCLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)'
236 r'[:]\s*package\s+(?P<package>[^(;|\s)]+)\s*')
237 PACKAGE_OUTPUT_RE = re.compile(r'(?P<java_dir>/.*/).*[.](java|kt)[:]\s*package\s+'
[all …]
/tools/tradefederation/core/atest/
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/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
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 …]
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/tradefederation/core/tests/src/com/android/tradefed/result/
DFailureEmailResultReporterTest.java56 FakeEmailResultReporter r = new FakeEmailResultReporter(false, InvocationStatus.SUCCESS); in testShouldSendMessage() local
57 assertFalse(r.shouldSendMessage()); in testShouldSendMessage()
60 r = new FakeEmailResultReporter(false, InvocationStatus.BUILD_ERROR); in testShouldSendMessage()
61 assertTrue(r.shouldSendMessage()); in testShouldSendMessage()
64 r = new FakeEmailResultReporter(false, InvocationStatus.FAILED); in testShouldSendMessage()
65 assertTrue(r.shouldSendMessage()); in testShouldSendMessage()
68 r = new FakeEmailResultReporter(true, InvocationStatus.SUCCESS); in testShouldSendMessage()
69 assertTrue(r.shouldSendMessage()); in testShouldSendMessage()
72 r = new FakeEmailResultReporter(true, InvocationStatus.FAILED); in testShouldSendMessage()
73 assertTrue(r.shouldSendMessage()); in testShouldSendMessage()
DInvocationFailureEmailResultReporterTest.java46 FakeEmailResultReporter r = new FakeEmailResultReporter(InvocationStatus.SUCCESS); in testShouldSendMessage() local
47 assertFalse(r.shouldSendMessage()); in testShouldSendMessage()
50 r = new FakeEmailResultReporter(InvocationStatus.BUILD_ERROR); in testShouldSendMessage()
51 assertTrue(r.shouldSendMessage()); in testShouldSendMessage()
54 r = new FakeEmailResultReporter(InvocationStatus.FAILED); in testShouldSendMessage()
55 assertTrue(r.shouldSendMessage()); in testShouldSendMessage()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DDeviceSuite.java60 for (Runner r : getChildren()) { in setTestInformation()
62 if (r instanceof IDeviceTest) { in setTestInformation()
63 ((IDeviceTest) r).setDevice(mTestInfo.getDevice()); in setTestInformation()
65 if (r instanceof IBuildReceiver) { in setTestInformation()
66 ((IBuildReceiver) r).setBuild(mTestInfo.getBuildInfo()); in setTestInformation()
68 if (r instanceof ITestInformationReceiver) { in setTestInformation()
69 ((ITestInformationReceiver) r).setTestInformation(mTestInfo); in setTestInformation()
82 for (Runner r : getChildren()) { in setAbi()
84 if (r instanceof IAbiReceiver) { in setAbi()
85 ((IAbiReceiver)r).setAbi(mAbi); in setAbi()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java159 for (TestResult r : mTestResults.values()) { in getNumTestsInState()
160 mStatusCounts[r.getStatus().ordinal()]++; in getNumTestsInState()
170 for (TestResult r : mTestResults.values()) { in getTestsResultsInState()
171 if (r.getStatus().equals(status)) { in getTestsResultsInState()
172 results.add(r); in getTestsResultsInState()
286 TestResult r = mTestResults.get(test); in updateTestResult() local
287 if (r == null) { in updateTestResult()
289 r = new TestResult(); in updateTestResult()
291 r.setStatus(status); in updateTestResult()
293 r.setFailure(failure); in updateTestResult()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
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 …]
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/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/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+)$")
348 if re.match(r"(.*_)?%s" % flavor, flavor_string):
540 if re.match(r"(.*_)?%s_" % avd_type_abbr,
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DRemoteClient.java224 CommandResult r = sendOperation(new GetLastCommandResultOp(serial)); in sendGetLastCommandResult() local
225 switch (r.getStatus()) { in sendGetLastCommandResult()
230 handler.failure(r.getInvocationErrorDetails(), r.getFreeDeviceState(), in sendGetLastCommandResult()
231 r.getRunMetrics()); in sendGetLastCommandResult()
234 handler.success(r.getRunMetrics()); in sendGetLastCommandResult()
243 throw new RemoteException("unrecognized status " + r.getStatus().name()); in sendGetLastCommandResult()
/tools/test/connectivity/acts/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/acloud/list/
Dinstance.py14 r"""Instance class.
56 _RE_SSH_TUNNEL_PATTERN = (r"((.*\s*-L\s)(?P<%s>\d+):127.0.0.1:%s)"
57 r"((.*\s*-L\s)(?P<%s>\d+):127.0.0.1:%s)"
58 r"(.+%s)")
59 _RE_TIMEZONE = re.compile(r"^(?P<time>[0-9\-\.:T]*)(?P<timezone>[+-]\d+:\d+)$")
62 _RE_RUN_CVD = re.compile(r"(?P<date_str>^[^/]+)(.*run_cvd)")
64 _RE_ZONE = re.compile(r".+/zones/(?P<zone>.+)$")
473 r"^local-goldfish-instance-(?P<id>\d+)$")

12345678