/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/ |
D | apollo_log_regex.py | 20 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/framework/acts/test_utils/gnss/ |
D | gnss_testlog_utils.py | 28 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'History\s+Avg\s+Top4\s+:\s+(?P<HistoryAvgTop4CNo>\d+\.\d+)', [all …]
|
/tools/repohooks/tools/ |
D | cpplint.py | 434 r'^(?:' 436 r'(char(16_t|32_t)?)|wchar_t|' 437 r'bool|short|int|long|signed|unsigned|float|double|' 439 r'(ptrdiff_t|size_t|max_align_t|nullptr_t)|' 441 r'(u?int(_fast|_least)?(8|16|32|64)_t)|' 442 r'(u?int(max|ptr)_t)|' 443 r')$') 452 r'^(?:[^/]*[A-Z][^/]*\.h|lua\.h|lauxlib\.h|lualib\.h)$') 455 _TEST_FILE_SUFFIX = r'(_test|_unittest|_regtest)$' 458 _EMPTY_CONDITIONAL_BODY_PATTERN = re.compile(r'^\s*$', re.DOTALL) [all …]
|
/tools/repohooks/rh/ |
D | shell_unittest.py | 79 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"''':
|
D | hooks.py | 103 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 …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | InvocationFailureEmailResultReporterTest.java | 46 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()
|
D | TestFailureEmailResultReporterTest.java | 46 FakeEmailResultReporter r = new FakeEmailResultReporter(true); in testShouldSendMessage() local 47 assertTrue(r.shouldSendMessage()); in testShouldSendMessage() 50 r = new FakeEmailResultReporter(false); in testShouldSendMessage() 51 assertFalse(r.shouldSendMessage()); in testShouldSendMessage()
|
/tools/asuite/atest/ |
D | constants_default.py | 219 CC_EXT_RE = re.compile(r'.*\.(cc|cpp)$') 220 JAVA_EXT_RE = re.compile(r'.*\.(java|kt)$') 222 CC_OUTPUT_RE = re.compile(r'(?P<file_path>/.*):\s*TEST(_F|_P)?[ ]*\(' 223 r'(?P<test_name>\w+)\s*,\s*(?P<method_name>\w+)\)' 224 r'\s*\{') 225 CC_GREP_RE = r'^[ ]*TEST(_P|_F)?[ ]*\([[:alnum:]].*,' 228 CLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)[:].*') 229 QCLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)' 230 r'[:]\s*package\s+(?P<package>[^(;|\s)]+)\s*') 231 PACKAGE_OUTPUT_RE = re.compile(r'(?P<java_dir>/.*/).*[.](java|kt)[:]\s*package\s+' [all …]
|
/tools/tradefederation/core/atest/ |
D | constants_default.py | 216 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/utils/ |
D | LittleEndianUtils.java | 58 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()
|
D | RandomAccessFileUtils.java | 40 int r; in fullyRead() local 43 while ((r = raf.read(data, p, data.length - p)) > 0) { in fullyRead() 44 p += r; in fullyRead()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | DeviceSuite.java | 60 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/test_framework/com/android/tradefed/targetprep/ |
D | DeviceWiper.java | 53 CommandResult r = device.executeLongFastbootCommand("-w"); in doFormat() local 54 if (r.getStatus() != CommandStatus.SUCCESS) { in doFormat() 55 throw new TargetSetupError(String.format("fastboot wiping failed: %s", r.getStderr()), in doFormat() 68 CommandResult r = device.executeLongFastbootCommand(op, partition); in performFastbootOp() local 69 if (r.getStatus() != CommandStatus.SUCCESS) { in performFastbootOp() 71 r.getStderr()), device.getDeviceDescriptor()); in performFastbootOp()
|
/tools/tradefederation/core/atest/test_finders/ |
D | test_finder_utils.py | 41 _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/asuite/atest/test_finders/ |
D | test_finder_utils.py | 43 _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/external_updater/ |
D | updater_utils.py | 60 VERSION_SPLITTER_PATTERN = r'[\.\-_]' 61 VERSION_PATTERN = (r'^(?P<prefix>[^\d]*)' + 62 r'(?P<version>\d+(' + VERSION_SPLITTER_PATTERN + r'\d+)*)' + 63 r'(?P<suffix>.*)$')
|
/tools/acloud/public/ |
D | device_driver.py | 372 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/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | b29_lib.py | 38 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/ |
D | ZipField.java | 171 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/acloud/internal/lib/ |
D | adb_tools.py | 28 _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/doclava1/ |
D | SourcePositionInfo.kt | 27 val r = file.compareTo(other.file) in compareTo() constant 28 return if (r != 0) r else line - other.line in compareTo()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 62 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/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtilsTest.java | 48 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()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/ |
D | IOExceptionRunnable.java | 42 public static Runnable asRunnable(@Nonnull IOExceptionRunnable r) { in asRunnable() argument 45 r.run(); in asRunnable()
|
/tools/test/connectivity/acts/framework/acts/ |
D | records.py | 171 def __add__(self, r): argument 183 if not isinstance(r, MoblyTestResult): 185 (r, type(r))) 188 r_value = getattr(r, name)
|