Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 10 of 10) sorted by relevance

/tools/test/connectivity/acts/tests/google/net/
DDhcpServerTest.py63 resp = self._get_response(self._make_discover(hwaddr))
64 asserts.assert_false(None == resp,
66 self.server_addr = getopt(resp, 'server_id')
67 self.dut_hwaddr = resp.getlayer(Ether).src
160 resp = self._get_response(self._make_discover(self.hwaddr))
161 asserts.assert_false(None == resp, "Device did not reply to discover")
162 asserts.assert_true(get_yiaddr(resp).startswith(NETADDR_PREFIX),
167 resp = self._get_response(
169 self._assert_offer(resp)
170 self._assert_broadcast(resp)
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/
DXmlRpcHelperTest.java45 List<String> resp = null; in testParseTrue() local
46 resp = XmlRpcHelper.parseResponseTuple(new ByteArrayInputStream(TRUE_RESPONSE.getBytes())); in testParseTrue()
47 assertNotNull(resp); in testParseTrue()
48 assertEquals(2, resp.size()); in testParseTrue()
49 assertEquals("boolean", resp.get(0)); in testParseTrue()
50 assertEquals("1", resp.get(1)); in testParseTrue()
54 List<String> resp = null; in testParseFalse() local
55 resp = XmlRpcHelper.parseResponseTuple(new ByteArrayInputStream(FALSE_RESPONSE.getBytes())); in testParseFalse()
56 assertNotNull(resp); in testParseFalse()
57 assertEquals(2, resp.size()); in testParseFalse()
[all …]
/tools/tradefederation/core/python-lib/tradefed_py/
Dtf_runner.py50 resp = {_TEST_COUNT_TAG: count, 'runName': 'python-tradefed'}
51 self.stream.write('TEST_RUN_STARTED %s\n' % json.dumps(resp))
60resp = {_START_TIME_TAG: time.time(), _CLASSNAME_TAG: self._getClassName(test), _METHOD_NAME_TAG: …
61 self.stream.write('TEST_STARTED %s\n' % json.dumps(resp))
70resp = {_END_TIME_TAG: time.time(), _CLASSNAME_TAG: self._getClassName(test), _METHOD_NAME_TAG: se…
71 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp))
81resp = {_CLASSNAME_TAG: self._getClassName(test), _METHOD_NAME_TAG: self._getMethodName(test), _TR…
82 self.stream.write('TEST_FAILED %s\n' % json.dumps(resp))
83resp = {_END_TIME_TAG: time.time(), _CLASSNAME_TAG: self._getClassName(test), _METHOD_NAME_TAG: se…
84 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp))
[all …]
Dbase_test.py52 resp = {_DATA_NAME: name, _DATA_TYPE: fileType, _DATA_FILE: filePath}
53 self.stream.write('TEST_LOG %s\n' % json.dumps(resp))
/tools/test/connectivity/acts/framework/acts/controllers/gnssinst_lib/
Dabstract_inst.py75 resp = self._query('*IDN?')
77 infmsg = 'Inst-ID: {}'.format(resp)
133 resp = ''
139 resp += resp_tmp
159 resp = resp.rstrip(self._escseq)
161 self._logger.debug('Received %r from %r:%r.', resp, self._ip_addr,
164 return resp
195 resp = self._recv()
196 return resp
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Drpc_connection_test.py27 def __init__(self, resp): argument
28 self.resp = resp
35 return self.resp
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aClient.java252 JSONObject resp = new JSONObject(response); in sendThroughSocket() local
253 if (!resp.isNull("error")) { in sendThroughSocket()
254 throw new IOException(String.format("RPC error: %s", resp.get("error"))); in sendThroughSocket()
256 if (resp.isNull("result")) { in sendThroughSocket()
260 return resp.get("result"); in sendThroughSocket()
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_connection.py85 resp = self._cmd(start_command)
89 if not resp:
92 result = json.loads(str(resp, encoding='utf8'))
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java318 String resp = mConfigDef.addExpectedDevice(deviceName, isFake); in addObject() local
319 if (resp != null) { in addObject()
320 throwException(resp); in addObject()
/tools/acloud/
Derrors.py56 return HttpError(http_error.resp.status, str(http_error))