/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
D | SnepBasicTests.java | 55 SnepMessage response = null; in testGetSmallNdef() local 58 response = client.getMessage(); in testGetSmallNdef() 63 assertNotNull(response); in testGetSmallNdef() 64 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetSmallNdef() 86 SnepMessage response = null; in testGetLargeNdef() local 89 response = client.getMessage(); in testGetLargeNdef() 94 assertNotNull(response); in testGetLargeNdef() 95 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetLargeNdef() 117 SnepMessage response = null; in testGetExcessiveNdef() local 120 response = client.getMessage(); in testGetExcessiveNdef() [all …]
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | Pop3Store.java | 175 String response; in checkSettings() local 176 while ((response = mTransport.readLine(false)) != null) { in checkSettings() 177 parser.parseMultiLine(response); in checkSettings() 241 String response = executeSimpleCommand("STAT"); in open() local 242 String[] parts = response.split(" "); in open() 393 String response = executeSimpleCommand("UIDL " + msgNum); in indexMsgNums() local 394 if (!parser.parseSingleLine(response)) { in indexMsgNums() 402 String response = executeSimpleCommand("UIDL"); in indexMsgNums() local 403 while ((response = mTransport.readLine(false)) != null) { in indexMsgNums() 404 if (!parser.parseMultiLine(response)) { in indexMsgNums() [all …]
|
D | ImapConnection.java | 313 ImapResponse response = readResponse(); in sendComplexCommand() local 315 if (!response.isContinuationRequest()) { in sendComplexCommand() 339 ImapResponse response; in getCommandResponses() local 341 response = mParser.readResponse(); in getCommandResponses() 342 responses.add(response); in getCommandResponses() 343 } while (!response.isTagged()); in getCommandResponses() 345 if (!response.isOk()) { in getCommandResponses() 346 final String toString = response.toString(); in getCommandResponses() 347 final String status = response.getStatusOrEmpty().getString(); in getCommandResponses() 348 final String alert = response.getAlertTextOrEmpty().getString(); in getCommandResponses() [all …]
|
D | ImapFolder.java | 279 for (ImapResponse response : responseList) { in copyMessages() 281 if (response.isBad() || (response.isNo() && response.isTagged())) { in copyMessages() 282 String responseText = response.getStatusResponseTextOrEmpty().getString(); in copyMessages() 286 if (!response.isTagged()) { in copyMessages() 294 ImapList copyResponse = response.getListOrEmpty(1); in copyMessages() 362 for (ImapResponse response : responses) { in getUnreadMessageCount() 363 if (response.isDataResponse(0, ImapConstants.STATUS)) { in getUnreadMessageCount() 364 unreadMessageCount = response.getListOrEmpty(2) in getUnreadMessageCount() 384 for (ImapResponse response : responses) { in getSearchUids() 385 if (!response.isDataResponse(0, ImapConstants.SEARCH)) { in getSearchUids() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | BlockingHttpClientTests.java | 103 byte[] response = new byte[100]; in testSuccess_emptyRequest() 104 rand.nextBytes(response); in testSuccess_emptyRequest() 106 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); in testSuccess_emptyRequest() 109 new FakeSuccessResponseProcessor(response); in testSuccess_emptyRequest() 118 byte[] response = new byte[100]; in testSuccess() 119 rand.nextBytes(response); in testSuccess() 122 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); in testSuccess() 125 new FakeSuccessResponseProcessor(response); in testSuccess() 133 public Void onSuccess(InputStream response) { in onSuccess() argument 149 public Void onSuccess(InputStream response) { in onSuccess() argument [all …]
|
/packages/services/Telephony/src/com/android/phone/common/mail/store/ |
D | ImapFolder.java | 180 for (ImapResponse response : responses) { in getSearchUids() 181 if (!response.isDataResponse(0, ImapConstants.SEARCH)) { in getSearchUids() 185 for (int i = 1; i < response.size(); i++) { in getSearchUids() 186 ImapString s = response.getStringOrEmpty(i); in getSearchUids() 330 ImapResponse response; in fetchInternal() local 332 response = null; in fetchInternal() 334 response = mConnection.readResponse(); in fetchInternal() 336 if (!response.isDataResponse(1, ImapConstants.FETCH)) { in fetchInternal() 339 final ImapList fetchList = response.getListOrEmpty(2); in fetchInternal() 433 } while (!response.isTagged()); in fetchInternal() [all …]
|
D | ImapConnection.java | 230 ImapResponse response; in getCommandResponses() local 232 response = mParser.readResponse(); in getCommandResponses() 233 responses.add(response); in getCommandResponses() 234 } while (!response.isTagged()); in getCommandResponses() 236 if (!response.isOk()) { in getCommandResponses() 237 final String toString = response.toString(); in getCommandResponses() 238 final String status = response.getStatusOrEmpty().getString(); in getCommandResponses() 239 final String alert = response.getAlertTextOrEmpty().getString(); in getCommandResponses() 240 final String responseCode = response.getResponseCodeOrEmpty().getString(); in getCommandResponses()
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | SapServerTest.java | 313 public SeqStep(SapMessage request, SapMessage response) { in SeqStep() argument 317 this.responses.add(response); in SeqStep() 320 public void add(SapMessage request, SapMessage response) { in add() argument 322 this.responses.add(response); in add() 332 for(SapMessage response : responses) { in hasResponse() 333 if(response != null) in hasResponse() 380 public int addStep(SapMessage request, SapMessage response) { in addStep() argument 382 SeqStep newStep = new SeqStep(request, response); in addStep() 396 public void addSubStep(int index, SapMessage request, SapMessage response) { in addSubStep() argument 398 step.add(request, response); in addSubStep() [all …]
|
D | TestSequencer.java | 137 HeaderSet response = mClientSession.connect(reqHeaders); in run() local 138 step.validate(response, null); in run() 139 step.clientPostAction(response, null); in run() 173 HeaderSet response = mClientSession.setPath(reqHeaders, in run() local 176 step.validate(response, null); in run() 177 step.clientPostAction(response, null); in run() 191 HeaderSet response = mClientSession.disconnect(reqHeaders); in run() local 193 step.validate(response, null); in run() 194 step.clientPostAction(response, null); in run()
|
D | SeqStep.java | 61 public boolean validate(HeaderSet response, Operation op) throws IOException { in validate() argument 63 return mValidator.validate(this, response, op); in validate() 72 public void clientPostAction(HeaderSet response, Operation op) throws IOException { in clientPostAction() argument 74 mClientPostAction.execute(this, response, op); in clientPostAction() 84 public void addObexPacketSet(ObexPacket request, ObexPacket response) { in addObexPacketSet() argument 86 mResponsePackets.add(response); in addObexPacketSet()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsRequest.java | 65 protected abstract boolean transferResponse(Context context, Intent fillIn, byte[] response); in transferResponse() argument 135 byte[] response = null; in execute() 172 response = doHttp( in execute() 175 if (isWrongApnResponse(response, mmsConfig)) { in execute() 209 returnResult(context, result, response, httpStatusCode); in execute() 223 static boolean isWrongApnResponse(final byte[] response, final Bundle mmsConfig) { in isWrongApnResponse() argument 224 if (response != null && response.length > 0) { in isWrongApnResponse() 227 response, in isWrongApnResponse() 257 void returnResult(final Context context, int result, final byte[] response, in returnResult() argument 265 if (response != null) { in returnResult() [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EasTestAuthenticatorService.java | 48 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 72 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount() 79 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 85 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 90 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 102 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 108 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
|
D | AuthenticatorService.java | 56 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 114 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount() 121 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 127 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 132 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 144 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 150 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsRequest.java | 139 byte[] response = null; in execute() 171 response = doHttp(context, networkManager, apn); in execute() 202 processResult(context, result, response, httpStatusCode); in execute() 213 public void processResult(Context context, int result, byte[] response, int httpStatusCode) { in processResult() argument 214 final Uri messageUri = persistIfRequired(context, result, response); in processResult() 222 if (response != null) { in processResult() 223 succeeded = transferResponse(fillIn, response); in processResult() 316 protected abstract Uri persistIfRequired(Context context, int result, byte[] response); in persistIfRequired() argument 331 protected abstract boolean transferResponse(Intent fillIn, byte[] response); in transferResponse() argument
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/ |
D | TestAuthenticator.java | 62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 82 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 95 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() argument 101 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 115 AccountAuthenticatorResponse response, Account account, String[] features) { in hasFeatures() argument 126 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ActionTestHelpers.java | 127 public final Bundle response; field in ActionTestHelpers.StubActionService.StubActionServiceCallLog 133 final Bundle response, in StubActionServiceCallLog() argument 138 this.response = response; in StubActionServiceCallLog() 161 final Bundle response) { in handleResponseFromBackgroundWorker() argument 162 mServiceCalls.add(new StubActionServiceCallLog(null, request, response, null, null)); in handleResponseFromBackgroundWorker()
|
D | ActionServiceSystemTest.java | 120 final Bundle response = new Bundle(); in testChatActionSucceeds() local 121 response.putString(TestChatAction.RESPONSE_TEST, processResponseResult); in testChatActionSucceeds() 129 service.handleResponseFromBackgroundWorker(request, response); in testChatActionSucceeds() 213 final Bundle response = new Bundle(); in testChatActionNoMonitor() local 214 response.putString(TestChatAction.RESPONSE_TEST, processResponseResult); in testChatActionNoMonitor() 217 service.handleResponseFromBackgroundWorker(request, response); in testChatActionNoMonitor() 259 final Bundle response = new Bundle(); in testChatActionUnregisterListener() local 267 service.handleResponseFromBackgroundWorker(request, response); in testChatActionUnregisterListener() 347 protected Object processBackgroundResponse(final Bundle response) { in processBackgroundResponse() argument 349 return response.get(RESPONSE_TEST); in processBackgroundResponse()
|
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/ |
D | ImapResponseParser.java | 144 ImapResponse response = null; in readResponse() local 146 response = parseResponse(); in readResponse() 148 Log.d(TAG, "<<< " + response.toString()); in readResponse() 161 if (response.is(0, ImapConstants.BYE)) { in readResponse() 163 response.destroy(); in readResponse() 166 mResponsesToDestroy.add(response); in readResponse() 167 return response; in readResponse()
|
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/ |
D | ImapResponseParser.java | 161 ImapResponse response = null; in readResponse() local 163 response = parseResponse(); in readResponse() 165 LogUtils.d(Logging.LOG_TAG, "<<< " + response.toString()); in readResponse() 179 if (response.is(0, ImapConstants.BYE)) { in readResponse() 181 response.destroy(); in readResponse() 184 mResponsesToDestroy.add(response); in readResponse() 185 return response; in readResponse()
|
/packages/services/Telephony/src/com/android/services/telephony/activation/ |
D | SimActivationActivity.java | 49 final PendingIntent response = in runActivation() local 52 Log.i(this, "Running activation w/ response " + response); in runActivation() 59 if (response != null) { in runActivation() 61 response.send(); in runActivation()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
D | MockRespondMatrixCursor.java | 44 final Bundle response = new Bundle(); in respond() local 49 return response; in respond() 60 response.putParcelable(key, (Parcelable)responseData); in respond() 64 return response; in respond()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | SyncMessagesAction.java | 247 final Bundle response = new Bundle(); in doBackgroundWork() local 257 response.putParcelableArrayList(BUNDLE_KEY_SMS_MESSAGES, smsToAdd); in doBackgroundWork() 258 response.putParcelableArrayList(BUNDLE_KEY_MMS_MESSAGES, mmsToAddList); in doBackgroundWork() 259 response.putParcelableArrayList(BUNDLE_KEY_MESSAGES_TO_DELETE, messagesToDelete); in doBackgroundWork() 261 response.putLong(BUNDLE_KEY_LAST_TIMESTAMP, lastTimestampMillis); in doBackgroundWork() 263 return response; in doBackgroundWork() 354 protected Object processBackgroundResponse(final Bundle response) { in processBackgroundResponse() argument 355 final long lastTimestampMillis = response.getLong(BUNDLE_KEY_LAST_TIMESTAMP); in processBackgroundResponse() 397 response.getParcelableArrayList(BUNDLE_KEY_SMS_MESSAGES); in processBackgroundResponse() 399 response.getParcelableArrayList(BUNDLE_KEY_MMS_MESSAGES); in processBackgroundResponse() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CreateConnectionProcessor.java | 102 Call call, ConnectionServiceRepository repository, CreateConnectionResponse response, in CreateConnectionProcessor() argument 107 mCallResponse = response; in CreateConnectionProcessor() 139 void continueProcessingIfPossible(CreateConnectionResponse response, in continueProcessingIfPossible() argument 142 mCallResponse = response; in continueProcessingIfPossible() 152 CreateConnectionResponse response = mCallResponse; in abort() local 161 if (response != null) { in abort() 162 response.handleCreateConnectionFailure(new DisconnectCause(DisconnectCause.LOCAL)); in abort()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | WebAddress.java | 141 public String response; field in WebAddress.ParseException 143 ParseException(String response) { in ParseException() argument 144 this.response = response; in ParseException()
|
/packages/apps/Email/provider_src/com/android/email/mail/internet/ |
D | OAuthAuthenticator.java | 141 final HttpResponse response; in doRequest() local 142 response = mClient.execute(post); in doRequest() 143 final int status = response.getStatusLine().getStatusCode(); in doRequest() 145 return parseResponse(response); in doRequest() 158 private AuthenticationResult parseResponse(HttpResponse response) throws IOException, in parseResponse() argument 161 response.getEntity().getContent(), "UTF-8")); in parseResponse()
|