/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_datastore_utils.py | 58 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/tools/lab/metrics/ |
D | version_metric.py | 48 response = {self.FASTBOOT_VERSION: version} 49 return response 75 response = { 79 return response 99 response = {self.PYTHON_VERSION: version} 100 return response 117 response = {self.KERNEL_RELEASE: result} 118 return response
|
D | cpu_metric.py | 36 response = { 39 return response
|
D | name_metric.py | 37 response = { 40 return response
|
D | time_metric.py | 39 response = { 42 return response
|
D | num_users_metric.py | 37 response = {self.NUM_USERS: int(result)} 38 return response
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 145 final String[] response = new String[1]; in internalInstallPackage() local 162 response[0] = null; in internalInstallPackage() 164 response[0] = in internalInstallPackage() 169 response[0] = receiver.getErrorMessage(); in internalInstallPackage() 180 response[0] = message; in internalInstallPackage() 182 return response[0] == null; in internalInstallPackage() 187 return response[0]; in internalInstallPackage() 265 final String[] response = new String[1]; in installPackage() local 297 response[0] = null; in installPackage() 299 response[0] = in installPackage() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | ManagedTestDeviceFactoryTest.java | 110 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()
|
D | MockTestDeviceHelper.java | 40 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/ |
D | Sl4aEventDispatcher.java | 70 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() 206 public EventSl4aObject(JSONObject response) throws JSONException { in EventSl4aObject() argument 207 mName = response.getString("name"); in EventSl4aObject() 208 mData = response.get("data").toString(); in EventSl4aObject() 209 mTime = response.getLong("time"); in EventSl4aObject()
|
D | Sl4aClient.java | 231 String response = in.readLine(); in sendCommand() local 232 return response; in sendCommand() 249 String response = in.readLine(); in sendThroughSocket() local 250 CLog.d("response: '%s'", response); in sendThroughSocket() 252 JSONObject resp = new JSONObject(response); in sendThroughSocket()
|
/tools/tradefederation/contrib/src/com/android/tradefed/ |
D | Sl4aBluetoothDiscovery.java | 74 EventSl4aObject response = in setup() local 76 Assert.assertNotNull(response); in setup() 77 response = clientDiscoverer.getEventDispatcher().popEvent("BluetoothStateChangedOn", 20000); in setup() 78 Assert.assertNotNull(response); in setup() 112 JSONArray response = (JSONArray) listDiscovered; in run() local 114 for (int i = 0; i < response.length(); i++) { in run() 115 JSONObject j = response.getJSONObject(i); in run()
|
/tools/repohooks/rh/ |
D | terminal.py | 185 response = get_input(prompt).lower() 189 response = None 195 if not response: 197 if true_value.startswith(response): 198 if not false_value.startswith(response): 201 elif false_value.startswith(response):
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | apollo_lib.py | 330 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/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/ |
D | FakeSocketServerHelper.java | 65 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/acloud/internal/lib/ |
D | base_cloud_client.py | 244 def _CallBack(request_id, response, exception): argument 245 results[request_id] = (response, self._TranslateError(exception)) 329 response = self.Execute(api) 330 items.extend(response.get("items", [])) 331 next_page_token = response.get("nextPageToken")
|
D | base_cloud_client_test.py | 81 response=rid_to_responses.get(rid), 101 response = {"name": "fake_response"} 104 responses = {"r1": response, "r2": None, "r3": None} 110 "r1": (response, None),
|
D | gstorage_client.py | 96 response = self.Execute(request) 97 logger.info("Uploaded artifact: %s", response["selfLink"]) 98 return response
|
D | gcompute_client_test.py | 398 request_id=rid, response=mock.MagicMock(), exception=None) 454 response = {"items": [image]} 455 self.Patch(gcompute_client.ComputeClient, "Execute", side_effect=[response]) 981 def _GetSerialPortOutputTestHelper(self, response): argument 993 mock_api.execute = mock.MagicMock(return_value=response) 995 if "contents" in response: 1014 response = {"contents": "fake contents"} 1015 self._GetSerialPortOutputTestHelper(response) 1019 response = {"malformed": "fake contents"} 1020 self._GetSerialPortOutputTestHelper(response)
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | LogcatEventParser.java | 91 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()
|
D | GoogleApiClientUtil.java | 240 HttpRequest request, HttpResponse response, boolean supportsRetry) 244 request.getUrl(), response.getStatusCode(), response.getStatusMessage()); 245 return backOffHandler.handleResponse(request, response, supportsRetry);
|
/tools/test/connectivity/tools/lab/reporters/ |
D | logger_reporter.py | 48 for response in metric_responses[metric]: 49 extra['response_key'] = response 50 extra['response_val'] = metric_responses[metric][response]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | native.py | 59 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/ |
D | rpc_client.py | 256 response = '' 261 response = connection.get_response() 262 if not response: 303 result = json.loads(str(response, encoding='utf8'))
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | RemoteClient.java | 83 String response = mReader.readLine(); in sendOperation() local 84 if (response == null) { in sendOperation() 87 return op.unpackResponseFromString(response); in sendOperation()
|