Home
last modified time | relevance | path

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

12

/development/tools/winscope/src/trace_collection/winscope_proxy/
Dutils.ts45 const response = await HttpRequest.get( constant
50 return await processProxyResponse(response, onSuccess, onStateChange);
64 const response = await HttpRequest.post( constant
69 return await processProxyResponse(response, onSuccess, onStateChange);
73 response: HttpResponse,
78 response.status === HttpRequestStatus.SUCCESS &&
79 !isVersionCompatible(response)
84 const adbResponse = await processHttpResponse(response, onSuccess);
89 return `${JSON.parse(response.body)}`;
91 return typeof response.body === 'string' ? response.body : '';
Dwinscope_proxy_device_connection.ts71 (response) => {
72 resolve(this.onSuccessFetchFile(response, filepath));
116 (response: HttpResponse) => {
135 (response: HttpResponse) => {
136 const errors = JSON.parse(response.body);
Dwinscope_proxy_device_connection_test.ts225 const response: HttpResponse = { constant
232 postSpy.and.returnValue(Promise.resolve(response));
370 const response: HttpResponse = { constant
377 await setHttpSpies(response);
388 const response: HttpResponse = { constant
395 await setHttpSpies(response);
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
DMyAccountAuthenticator.java37 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
42 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
47 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
52 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
60 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
65 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
/development/samples/InlineFillService/src/com/example/android/inlinefillservice/
DInlineFillService.java82 final FillResponse response; in onFillRequest() local
103 response = new FillResponse.Builder() in onFillRequest()
107 response = createResponse(this, fields, maxSuggestionsCount, mAuthenticateDatasets, in onFillRequest()
110 callback.onSuccess(response); in onFillRequest()
118 FillResponse.Builder response = new FillResponse.Builder(); in createResponse() local
122 response.addDataset(ResponseHelper.newLockedDataset(context, fields, packageName, i, in createResponse()
125 response.addDataset(ResponseHelper.newUnlockedDataset(context, fields, in createResponse()
132 response.addDataset(InlineRequestHelper.createInlineActionDataset(context, fields, in createResponse()
134 response.addDataset(InlineRequestHelper.createInlineActionDataset(context, fields, in createResponse()
140 response.setDialogHeader(dialogPresentation); in createResponse()
[all …]
DAuthActivity.java78 FillResponse response = in onYes() local
81 replyIntent.putExtra(EXTRA_AUTHENTICATION_RESULT, response); in onYes()
/development/python-packages/fetchartifact/fetchartifact/
D__init__.py81 async with session.get(download_url) as response:
82 response.raise_for_status()
83 return await response.read()
152 async with session.get(download_url) as response:
153 response.raise_for_status()
155 self.on_artifact_size(int(response.headers["Content-Length"]))
159 async for chunk in response.content.iter_chunked(chunk_size):
/development/tools/external_crates/crates_io_util/src/
Dindex.rs74 let response = self.agent.run(request)?; in fetch() localVariable
75 let (parts, mut body) = response.into_parts(); in fetch()
76 let response = http::Response::from_parts(parts, body.read_to_vec()?); in fetch() localVariable
77 let response = self in fetch() localVariable
79 .parse_cache_response(crate_name, response, true)? in fetch()
83 Ok(response) in fetch()
/development/tools/winscope/src/test/unit/
Dfixture_utils.ts32 const response = await fetch(url); constant
33 expect(response.ok).toBeTrue();
34 const blob = await response.blob();
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
DAuthenticator.java64 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
68 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount()
76 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() argument
82 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
88 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
121 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in getAuthToken()
136 AccountAuthenticatorResponse response, Account account, String[] features) { in hasFeatures() argument
147 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
/development/samples/DeviceAdminWhitelistedAccount/src/com/example/android/app/admin/whitelistedaccount/
DMyAuthenticator.java72 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
79 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
84 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
90 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
96 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
107 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DSimpleWikiHelper.java155 JSONObject response = new JSONObject(content); in getPageContent() local
156 JSONObject query = response.getJSONObject("query"); in getPageContent()
187 HttpResponse response = client.execute(request); in getUrlContent() local
190 StatusLine status = response.getStatusLine(); in getUrlContent()
197 HttpEntity entity = response.getEntity(); in getUrlContent()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DSimpleWikiHelper.java148 JSONObject response = new JSONObject(content); in getPageContent() local
149 JSONObject query = response.getJSONObject("query"); in getPageContent()
180 HttpResponse response = client.execute(request); in getUrlContent() local
183 StatusLine status = response.getStatusLine(); in getUrlContent()
190 HttpEntity entity = response.getEntity(); in getUrlContent()
DExtendedWikiHelper.java208 JSONObject response = new JSONObject(content); in getRandomWord() local
209 JSONObject query = response.getJSONObject("query"); in getRandomWord()
/development/samples/browseable/ElizaChat/
D_index.jd9 … messages with a quick voice response. New messages create a notification with a "Reply" action.
11 wearable opens the voice transcription UI allowing the user to speak a response.
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Ddashboard.py63 self.response.out.write(template.render(path, template_values))
150 self.response.out.write(template.render(path, template_values))
173 self.response.headers['Content-Type'] = "image/png"
174 self.response.out.write(contact.avatar)
192 self.response.out.write(template.render(path, template_values))
Dweb_services.py77 self.response.set_status(200, 'OK')
78 self.response.out.write(BaseWebServiceHandler.ACCT_AUTH_TOKEN)
83 self.response.set_status(401, 'Invalid Credentials')
105 self.response.set_status(401, 'Invalid Credentials')
162 self.response.set_status(200)
163 self.response.out.write(toJSON(updated_contacts))
/development/tools/repo_pull/
Dgerrit.py173 response = HTTPResponse(socket)
176 response.begin()
178 response.close()
182 response.chunked = False
183 response.chunk_left = None
187 result = addinfourl(outfile, response.msg, req.get_full_url())
188 result.code = response.status
189 result.msg = response.reason
192 return response # PY3
/development/samples/ApiDemos/src/com/example/android/apis/view/
DSplitTouchView.java57 String response = responses[responseIndex++ % responses.length];
60 Cheeses.sCheeseStrings[position], response);
/development/tools/axl/
Daxl.py49 def sendResponse(self, response): argument
51 self.write("Content-Length: %d\r\n\r\n" % len(response))
52 if len(response) > 0:
53 self.write(response)
/development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/
DAutofillImeService.java149 private void postPendingResponse(InlineSuggestionsResponse response) { in postPendingResponse() argument
151 final List<InlineSuggestion> inlineSuggestions = response.getInlineSuggestions(); in postPendingResponse()
282 public boolean onInlineSuggestionsResponse(InlineSuggestionsResponse response) { in onInlineSuggestionsResponse() argument
284 "onInlineSuggestionsResponse() called: " + response.getInlineSuggestions().size()); in onInlineSuggestionsResponse()
286 postPendingResponse(response); in onInlineSuggestionsResponse()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMmsMessagingDemo.java239 final byte[] response = intent.getByteArrayExtra(SmsManager.EXTRA_MMS_DATA); in handleSentResult()
240 if (response != null) { in handleSentResult()
242 response, PduParserUtil.shouldParseContentDisposition()).parse(); in handleSentResult()
282 final byte[] response = new byte[nBytes]; in handleReceivedResult()
283 final int read = reader.read(response, 0, nBytes); in handleReceivedResult()
286 response, PduParserUtil.shouldParseContentDisposition()).parse(); in handleReceivedResult()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DImageDownloader.java258 HttpResponse response = client.execute(getRequest); in doInBackground() local
259 final int statusCode = response.getStatusLine().getStatusCode(); in doInBackground()
266 final HttpEntity entity = response.getEntity(); in doInBackground()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DNetworkUtilities.java193 final String response = EntityUtils.toString(resp.getEntity()); in syncContacts() local
199 final JSONArray serverContacts = new JSONArray(response); in syncContacts()
200 Log.d(TAG, response); in syncContacts()
/development/tools/winscope/src/trace_collection/wdp/
Dwdp_host_connection_test.ts210 response: WdpRequestDevicesResponse,
221 const data = JSON.stringify(response);

12