Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 41) sorted by relevance

12

/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_datastore_utils.py58 response = requests.post(request,
63 if response.json()['result'] == 'success':
78 response = requests.put(request,
82 if result_str in response.text:
98 response = requests.put(request,
101 if response.json()['result']:
116 response = requests.put(request,
119 if response.json()['result']:
134 response = requests.get(request)
135 if 'error' in response.text:
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/lib_controllers/
Dwlan_policy_controller.py67 response = self.device.basemgr_lib.killBasemgr()
68 if not response.get('error'):
71 self.log.debug(response['error'])
78 response = self.device.session_manager_lib.pauseSession()
79 if response.get('error'):
81 raise WlanPolicyControllerError(response['error'])
83 if response.get('result') == 'Success':
91 response = self.device.wlan_policy_lib.wlanCreateClientController()
92 if response.get('error'):
93 controller_errors.append(response['error'])
[all …]
Dwlan_controller.py75 response = self.device.wlan_lib.wlanGetIfaceIdList()
76 if response.get('error'):
78 response['error'])
80 wlan_iface_ids = response.get('result', [])
87 response = self.device.wlan_lib.wlanQueryInterface(id)
88 if response.get('error'):
91 (id, response['error']))
93 mac = response['result'].get('sta_addr', None)
98 mac = response['result'].get('mac_addr')
101 mac)] = response['result']
Dnetstack_controller.py40 response = self.device.netstack_lib.netstackListInterfaces()
41 if response.get('error'):
44 response['error'])
45 return response['result']
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dhardware_power_statecontrol_lib.py43 response = self.send_command(test_id,
51 return response
64 response = self.send_command(test_id,
71 return response
84 response = self.send_command(test_id,
91 return response
104 response = self.send_command(test_id,
111 return response
124 response = self.send_command(test_id,
131 return response
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/facade/
DWlanDeprecatedConfigurationTest.py80 response = self.dut.device.wlan_ap_policy_lib.wlanStartAccessPoint(
83 if response.get('error'):
85 response['error'])
94 response = self.dut.device.wlan_ap_policy_lib.wlanStopAllAccessPoint()
95 if response.get('error'):
97 response['error'])
110 response = (self.dut.device.wlan_deprecated_configuration_lib.
112 if response.get('error'):
114 (mac_addr, response['error']))
/tools/acloud/create/
Dremote_image_remote_instance.py96 response = oxygen_client.OxygenClient.LeaseDevice(
106 session_id, server_url = self._GetDeviceInfoFromResponse(response)
111 response = e.output
123 match = _RE_OXYGEN_LEASE_ERROR.match(response)
125 response = match.group("error").strip()
129 reporter.AddError(response)
134 def _GetDeviceInfoFromResponse(response): argument
146 for line in response.splitlines():
153 for line in response.splitlines():
/tools/acloud/internal/lib/
Doxygen_client.py59 response = subprocess.check_output(
61 logger.debug("The response from oxygen client: %s", response)
62 return response
73 response = subprocess.check_output([
77 logger.debug("The response from oxygen client: %s", response)
Dbase_cloud_client.py245 def _CallBack(request_id, response, exception): argument
246 results[request_id] = (response, self._TranslateError(exception))
330 response = self.Execute(api)
331 items.extend(response.get("items", []))
332 next_page_token = response.get("nextPageToken")
Dgcompute_client_test.py402 request_id=rid, response=mock.MagicMock(), exception=None)
460 response = {"items": [image]}
461 self.Patch(gcompute_client.ComputeClient, "Execute", side_effect=[response])
490 response = {"items": {'zones/fake_zone': {"instances": [instance_1, instance_2]}}}
494 side_effect=[response])
512 response = {"items": {'zones/fake_zone': {"instances": [instance_1]}}}
516 side_effect=[response])
522 response = {"items": {'zones/fake_zone': {"warning": "No instances."}}}
526 side_effect=[response])
1107 def _GetSerialPortOutputTestHelper(self, response): argument
[all …]
Dbase_cloud_client_test.py82 response=rid_to_responses.get(rid),
100 response = {"name": "fake_response"}
103 responses = {"r1": response, "r2": None, "r3": None}
109 "r1": (response, None),
Dgstorage_client.py97 response = self.Execute(request)
98 logger.info("Uploaded artifact: %s", response["selfLink"])
99 return response
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py330 response = []
335 return response
367 response.append(types)
369 return response
443 response = self.cmd('GetBatt')
444 for line in response[0]:
459 response = self.cmd('I2CRead 2 0x29')
460 for line in response[0]:
474 response = self.cmd('I2CRead 2 0x2A')
475 for line in response[0]:
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/functional/
DChannelSwitchTest.py310 response = self.dut.device.wlan_ap_policy_lib.wlanStartAccessPoint(
312 if response.get('error'):
314 response['error'])
323 response = self.dut.device.wlan_ap_policy_lib.wlanStopAllAccessPoint()
324 if response.get('error'):
327 response['error'])
DSoftApTest.py237 response = self.dut.device.wlan_ap_policy_lib.wlanStartAccessPoint(
239 if response.get('error'):
241 response['error'])
259 response = self.dut.device.wlan_ap_policy_lib.wlanStopAccessPoint(
261 if response.get('error'):
263 response['error'])
271 response = self.dut.device.wlan_ap_policy_lib.wlanStopAllAccessPoint()
272 if response.get('error'):
275 response['error'])
/tools/test/connectivity/acts/framework/acts/controllers/
Dnative.py59 response = self.client.readline()
60 if not response:
64 str(response, encoding="utf8").rstrip().replace("\x00", ""))
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_client.py256 response = ''
261 response = connection.get_response()
262 if not response:
304 result = json.loads(str(response, encoding='utf8'))
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan_policy/
DStartStopClientConnectionsTest.py86 response = result_connect.get("result")
87 if response != expected_response:
90 % (expected_response, response))
/tools/test/connectivity/acts_tests/tests/google/bt/performance/
DBtA2dpOtaRangeTest.py62 response = self.axis.query("*opc?\n")
63 if (response == '1'):
66 response = self.axis.query("CP?\n")
77 response = self.axis.query("*opc?\n")
78 if (response == '1'):
/tools/asuite/atest/
Dasuite_metrics.py64 response = urlopen(request, timeout=_METRICS_TIMEOUT)
65 content = response.read()
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmg3710a.py98 response = result.decode('utf-8')
99 self.log.info('<-- {}'.format(response))
100 return response
/tools/asuite/atest-py2/
Dasuite_metrics.py68 response = urlopen(request, timeout=_METRICS_TIMEOUT)
69 content = response.read()
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Drpc_connection_test.py47 def mock_rpc_connection(response=MOCK_RESP, argument
50 fake_file = MockSocketFile(response)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/
Dwlan_device.py485 response = self.status()
486 if response.get('error'):
489 result = response.get('result')
/tools/asuite/atest-py2/metrics/
Dclearcut_client.py160 response = urlopen(request)
161 msg = response.read()

12