/tools/repohooks/tools/ |
D | cpplint.py | 416 r'^(?:' 418 r'(char(16_t|32_t)?)|wchar_t|' 419 r'bool|short|int|long|signed|unsigned|float|double|' 421 r'(ptrdiff_t|size_t|max_align_t|nullptr_t)|' 423 r'(u?int(_fast|_least)?(8|16|32|64)_t)|' 424 r'(u?int(max|ptr)_t)|' 425 r')$') 434 r'^(?:[^/]*[A-Z][^/]*\.h|lua\.h|lauxlib\.h|lualib\.h)$') 437 _TEST_FILE_SUFFIX = r'(_test|_unittest|_regtest)$' 440 _EMPTY_CONDITIONAL_BODY_PATTERN = re.compile(r'^\s*$', re.DOTALL) [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | FailureEmailResultReporterTest.java | 56 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()
|
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/test/connectivity/acts/framework/acts/controllers/ |
D | attenuator.py | 56 r""" 65 r"""This is the Exception class defined for all errors generated by Attenuator-related modules. 71 r"""This exception is thrown when an unexpected result is seen on the transport layer below 81 r"""Certain methods may only be accessed when the instance upon which they are invoked is in 89 r"""This is a base class that defines the primitive behavior of all attenuator 102 r"""This is the Constructor for Attenuator Instrument. 130 r"""This function sets the attenuation of an attenuator given its index in the instrument. 146 r"""This function returns the current attenuation from an attenuator at a given index in 167 r"""This class defines an object representing a single attenuator in a remote instrument. 175 r"""This is the constructor for Attenuator [all …]
|
D | adb.py | 44 output = ''.join(re.findall(r"'(.*)'", output)) 45 return re.sub(r'[.\s]', '', output)
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DeviceSuite.java | 42 for (Runner r : getChildren()) { in setDevice() 44 if (r instanceof IDeviceTest) { in setDevice() 48 ((IDeviceTest)r).setDevice(mDevice); in setDevice() 61 for (Runner r : getChildren()) { in setAbi() 63 if (r instanceof IAbiReceiver) { in setAbi() 64 ((IAbiReceiver)r).setAbi(mAbi); in setAbi() 77 for (Runner r : getChildren()) { in setBuild() 79 if (r instanceof IBuildReceiver) { in setBuild() 83 ((IBuildReceiver)r).setBuild(mBuildInfo); in setBuild()
|
/tools/repohooks/rh/ |
D | shell_unittest.py | 76 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"''':
|
D | hooks.py | 88 ret.append(re.sub(r'\$\{(%s)\}' % ('|'.join(all_vars),), 330 regex = r'^%s: (None|[0-9]+(, [0-9]+)*)$' % (field,) 354 regex = r'^%s: I[a-f0-9]+$' % (field,) 408 regex = r'^%s: .*$' % (field,) 432 filtered = _filter_diff(diff, [r'\.(cc|h|cpp|cu|cuh)$']) 443 filtered = _filter_diff(diff, [r'\.go$']) 465 filtered = _filter_diff(diff, [r'\.json$']) 483 filtered = _filter_diff(diff, [r'\.py$']) 528 filtered = _filter_diff(diff, [r'\.(%s)$' % '|'.join(extensions)])
|
D | git.py | 129 r':(?P<src_mode>[0-7]*) (?P<dst_mode>[0-7]*) ' 130 r'(?P<src_sha>[0-9a-f]*)(\.)* (?P<dst_sha>[0-9a-f]*)(\.)* ' 131 r'(?P<status>[ACDMRTUX])(?P<score>[0-9]+)?\t' 132 r'(?P<src_file>[^\t]+)\t?(?P<dst_file>[^\t]+)?')
|
D | shell.py | 41 _SHELL_ESCAPE_CHARS = r'\"`$' 91 s = s.replace(c, r'\%s' % c)
|
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/minicircuits/ |
D | telnet.py | 33 r"""This provides a specific telnet-controlled implementation of AttenuatorInstrument for 52 r"""Opens a telnet connection to the desired AttenuatorInstrument and queries basic 76 r"""This function returns the state of the telnet connection to the underlying 88 r"""Closes a telnet connection to the desired AttenuatorInstrument. 97 r"""This function sets the attenuation of an attenuator given its index in the instrument. 129 r"""This function returns the current attenuation from an attenuator at a given index in
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceWiper.java | 67 CommandResult r = device.executeLongFastbootCommand("-w"); in doFormat() local 68 if (r.getStatus() != CommandStatus.SUCCESS) { in doFormat() 69 throw new TargetSetupError(String.format("fastboot wiping failed: %s", r.getStderr()), in doFormat() 82 CommandResult r = device.executeLongFastbootCommand(op, partition); in performFastbootOp() local 83 if (r.getStatus() != CommandStatus.SUCCESS) { in performFastbootOp() 85 r.getStderr()), device.getDeviceDescriptor()); in performFastbootOp()
|
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/aeroflex/ |
D | telnet.py | 44 r"""Opens a telnet connection to the desired AttenuatorInstrument and queries basic 70 r"""This function returns the state of the telnet connection to the underlying 82 r"""Closes a telnet connection to the desired AttenuatorInstrument. 91 r"""This function sets the attenuation of an attenuator given its index in the instrument. 124 r"""This function returns the current attenuation from an attenuator at a given index in
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | RemoteClient.java | 224 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/framework/acts/ |
D | jsonrpc.py | 111 r = json.loads(text) 112 if r['error']: 113 raise RemoteError(r['error']) 114 return r['result']
|
D | records.py | 229 def __add__(self, r): argument 241 if not isinstance(r, TestResult): 243 (r, type(r))) 246 r_value = getattr(r, name)
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 58 DeviceEventResponse r = element.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST); in matches() local 59 return r.stateChanged && r.allocationState == DeviceAllocationState.Allocated; in matches() 257 DeviceEventResponse r = d.handleAllocationEvent(event); 258 if (r != null && r.allocationState == DeviceAllocationState.Unknown) { 261 return r;
|
D | DeviceUtilStatsMonitor.java | 263 DeviceUtilRecord r = mDeviceUtilMap.get(serial); in getDeviceRecord() local 264 if (r == null) { in getDeviceRecord() 265 r = new DeviceUtilRecord(); in getDeviceRecord() 266 mDeviceUtilMap.put(serial, r); in getDeviceRecord() 268 return r; in getDeviceRecord()
|
D | DeviceManager.java | 350 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in checkAndAddAvailableDevice() 352 if (r.stateChanged && r.allocationState == DeviceAllocationState.Available) { in checkAndAddAvailableDevice() 360 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in checkAndAddAvailableDevice() 362 if (r.stateChanged && r.allocationState == DeviceAllocationState.Unavailable) { in checkAndAddAvailableDevice() 471 DeviceEventResponse r = d.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST); in forceAllocateDevice() local 472 if (r.stateChanged && r.allocationState == DeviceAllocationState.Allocated) { in forceAllocateDevice() 520 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(managedDevice, in freeDevice() local 522 if (r != null && !r.stateChanged) { in freeDevice() 524 r.allocationState.toString()); in freeDevice() 980 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in deviceChanged() local [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/ |
D | connection.py | 222 r'^ssh: .*: Name or service not known', 234 r'^ssh: connect to host .* port .*: ' 235 r'Connection timed out\r$', 246 r'ssh: Could not resolve hostname .*: ' 247 r'Name or service not known',
|
/tools/tradefederation/core/prod-tests/src/com/android/media/tests/ |
D | MediaResultReporter.java | 80 Reader r = new InputStreamReader(dataStream.createInputStream()); in testLog() local 82 int n = r.read(buf); in testLog()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | LogcatUpdaterEventParser.java | 81 String r = t.mMsg; in hashCode() local 82 if (mMsg.contains(r) || r.contains(mMsg)) { in hashCode() 83 return mTag.hashCode() + r.hashCode(); in hashCode()
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiRttManagerTest.py | 152 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/test/connectivity/acts/framework/acts/bin/ |
D | act.py | 112 for r in results: 113 if r.get() is False or isinstance(r, Exception):
|