Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java161 final String[] response = new String[1]; in internalInstallPackage() local
178 response[0] = null; in internalInstallPackage()
180 response[0] = in internalInstallPackage()
185 response[0] = receiver.getErrorMessage(); in internalInstallPackage()
196 response[0] = message; in internalInstallPackage()
198 return response[0] == null; in internalInstallPackage()
209 return response[0]; in internalInstallPackage()
287 final String[] response = new String[1]; in installPackage() local
319 response[0] = null; in installPackage()
321 response[0] = in installPackage()
[all …]
/tools/test/connectivity/acts/framework/acts/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/tradefederation/core/src/com/android/tradefed/cluster/
DClusterClient.java144 final HttpResponse response = in getTestEnvironment() local
151 final String content = StreamUtil.getStringFromStream(response.getContent()); in getTestEnvironment()
161 final HttpResponse response = in getTestResources() local
168 final String content = StreamUtil.getStringFromStream(response.getContent()); in getTestResources()
182 final HttpResponse response = in getTestContext() local
191 final String content = StreamUtil.getStringFromStream(response.getContent()); in getTestContext()
202 final HttpResponse response = in updateTestContext() local
211 final String content = StreamUtil.getStringFromStream(response.getContent()); in updateTestContext()
223 HttpResponse response = in getCommandStatus() local
230 String content = StreamUtil.getStringFromStream(response.getContent()); in getCommandStatus()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dhardware_power_statecontrol_lib.py43 response = self.send_command(test_id,
50 return response
63 response = self.send_command(test_id,
70 return response
83 response = self.send_command(test_id,
90 return response
103 response = self.send_command(test_id,
110 return response
123 response = self.send_command(test_id,
130 return response
/tools/acloud/internal/lib/
Dgcompute_client_test.py403 request_id=rid, response=mock.MagicMock(), exception=None)
461 response = {"items": [image]}
462 self.Patch(gcompute_client.ComputeClient, "Execute", side_effect=[response])
491 response = {"items": {'zones/fake_zone': {"instances": [instance_1, instance_2]}}}
495 side_effect=[response])
513 response = {"items": {'zones/fake_zone': {"instances": [instance_1]}}}
517 side_effect=[response])
523 response = {"items": {'zones/fake_zone': {"warning": "No instances."}}}
527 side_effect=[response])
1105 def _GetSerialPortOutputTestHelper(self, response): argument
[all …]
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")
Dbase_cloud_client_test.py80 response=rid_to_responses.get(rid),
98 response = {"name": "fake_response"}
101 responses = {"r1": response, "r2": None, "r3": None}
107 "r1": (response, None),
Dgcompute_client.py949 response = self.Execute(api)
950 page_token = response.get("nextPageToken")
952 for instances_data in response["items"].values():
1619 response = self.Execute(api)
1620 for zone, instance_data in response["items"].items():
/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/framework/acts/test_utils/abstract_devices/
Dwlan_device.py376 response = self.status()
377 if response.get('error'):
381 status = response.get('result')
397 response = self.device.wlan_policy_lib.wlanSaveNetwork(
399 if response.get('error'):
401 (target_ssid, response.get('error')))
405 response = self.device.wlan_policy_lib.wlanGetSavedNetworks()
406 if response.get('error'):
408 response.get('error'))
409 for ssid in response.get('result'):
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan_deprecated_configuration/
DWlanDeprecatedConfigurationTest.py77 response = self.dut.wlan_ap_policy_lib.wlanStartAccessPoint(
80 if response.get('error'):
82 response['error'])
91 response = self.dut.wlan_ap_policy_lib.wlanStopAllAccessPoint()
92 if response.get('error'):
94 response['error'])
107 response = self.dut.wlan_deprecated_configuration_lib.wlanSuggestAccessPointMacAddress(
109 if response.get('error'):
111 (mac_addr, response['error']))
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DManagedTestDeviceFactoryTest.java110 String response = ManagedTestDeviceFactory.EXPECTED_RES + "\n"; in testFrameworkAvailable()
111 cor.addOutput(response.getBytes(), 0, response.length()); in testFrameworkAvailable()
139 String response = "ls: /system/bin/pm: No such file or directory\n"; in testFrameworkNotAvailable()
140 cor.addOutput(response.getBytes(), 0, response.length()); in testFrameworkNotAvailable()
168 String response = ""; in testCheckFramework_emptyReturns()
169 cor.addOutput(response.getBytes(), 0, response.length()); in testCheckFramework_emptyReturns()
DMockTestDeviceHelper.java40 final String response, boolean asStub) throws Exception { in injectShellResponse() argument
46 byte[] inputData = response.getBytes(); in injectShellResponse()
84 final int expectedRetryAttempts, final String response, boolean asStub) in injectShellResponse() argument
91 byte[] inputData = response.getBytes(); in injectShellResponse()
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcher.java70 Object response = mClient.rpcCall("eventWait", mTimeout); in internalPolling() local
71 if (response == null) { in internalPolling()
74 EventSl4aObject event = new EventSl4aObject(new JSONObject(response.toString())); in internalPolling()
204 public EventSl4aObject(JSONObject response) throws JSONException { in EventSl4aObject() argument
205 mName = response.getString("name"); in EventSl4aObject()
206 mData = response.get("data").toString(); in EventSl4aObject()
207 mTime = response.getLong("time"); in EventSl4aObject()
DSl4aClient.java231 String response = in.readLine(); in sendCommand() local
232 return response; in sendCommand()
249 String response = in.readLine(); in sendThroughSocket() local
250 CLog.v("response: '%s' from device %s", response, mDevice.getSerialNumber()); in sendThroughSocket()
252 JSONObject resp = new JSONObject(response); in sendThroughSocket()
/tools/tradefederation/contrib/src/com/android/tradefed/
DSl4aBluetoothDiscovery.java71 EventSl4aObject response = in setup() local
73 Assert.assertNotNull(response); in setup()
74 response = clientDiscoverer.getEventDispatcher().popEvent("BluetoothStateChangedOn", 20000); in setup()
75 Assert.assertNotNull(response); in setup()
111 JSONArray response = (JSONArray) listDiscovered; in run() local
113 for (int i = 0; i < response.length(); i++) { in run()
114 JSONObject j = response.getJSONObject(i); in run()
/tools/repohooks/rh/
Dterminal.py186 response = get_input(prompt).lower()
190 response = None
196 if not response:
198 if true_value.startswith(response):
199 if not false_value.startswith(response):
202 elif false_value.startswith(response):
/tools/tradefederation/core/src/com/android/tradefed/util/
DSl4aBluetoothUtil.java291 Object response = client.rpcCall(Commands.BLUETOOTH_GET_BONDED_DEVICES); in getBondedDevices() local
292 if (response != null) { in getBondedDevices()
293 JSONArray bondedDevices = (JSONArray) response; in getBondedDevices()
326 Integer response = (Integer) secondaryClient.rpcCall(Commands.BLUETOOTH_GET_SCAN_MODE); in pair() local
327 if (response != 3) { in pair()
588 EventSl4aObject response = in toggleState() local
590 if (response == null) { in toggleState()
DLogcatEventParser.java91 private void put(String tag, String partialMessage, LogcatEventType response) { in put() argument
92 mResponses.put(tag, new AbstractMap.SimpleEntry<>(partialMessage, response)); in put()
132 public void registerEventTrigger(String tag, String msg, LogcatEventType response) { in registerEventTrigger() argument
133 mEventTriggerMap.put(tag, msg, response); in registerEventTrigger()
DGoogleApiClientUtil.java242 HttpRequest request, HttpResponse response, boolean supportsRetry)
246 request.getUrl(), response.getStatusCode(), response.getStatusMessage());
247 return backOffHandler.handleResponse(request, response, supportsRetry);
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java225 MockLowLevelHttpResponse response = new MockLowLevelHttpResponse(); in buildRequest()
226 response.setContent(new ByteArrayInputStream(mResponseBytes)); in buildRequest()
227 return response; in buildRequest()
233 private HttpResponse buildHttpResponse(String response) throws IOException {
235 new FakeHttpTransport(response.getBytes()).createRequestFactory();
359 JSONObject response = new JSONObject();
364 response.put("tasks", array);
365 return response;
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
DFakeSocketServerHelper.java65 String response = in.readLine(); in run() local
66 if (response != null) { in run()
67 if (response.contains("initiate")) { in run()
71 } else if (response.contains("getBoolean")) { in run()
/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/framework/acts/controllers/anritsu_lib/
Dmd8475a.py592 response = result.decode('utf-8')
593 self.log.info('<-- {}'.format(response))
594 return response
3828 response = self._anritsu.send_query(cmd)
3829 split_response = response.split(',')
3832 raise ValueError(response)
3834 return response[0], response[1]
/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", ""))

123