Home
last modified time | relevance | path

Searched refs:setHeader (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/
DAvrcpBipObexServerTest.java195 mRequest.setHeader(HeaderSet.TARGET, BLUETOOTH_UUID_AVRCP_COVER_ART); in testConnectWithValidUuidHeader()
206 mRequest.setHeader(HeaderSet.TARGET, NOT_BLUETOOTH_UUID_AVRCP_COVER_ART); in testConnectWithInvalidUuidHeader()
245 mRequest.setHeader(HeaderSet.TYPE, TYPE_BAD); in testOnGetBadType()
256 mRequest.setHeader(HeaderSet.TYPE, null); in testOnGetNoType()
267 mRequest.setHeader(HeaderSet.TYPE, TYPE_GET_LINKED_THUMBNAIL); in testGetLinkedThumbnailWithValidHandle()
268 mRequest.setHeader(HEADER_ID_IMG_HANDLE, IMAGE_HANDLE_1); in testGetLinkedThumbnailWithValidHandle()
280 mRequest.setHeader(HeaderSet.TYPE, TYPE_GET_LINKED_THUMBNAIL); in testGetLinkedThumbnailWithValidUnstoredHandle()
281 mRequest.setHeader(HEADER_ID_IMG_HANDLE, IMAGE_HANDLE_UNSTORED); in testGetLinkedThumbnailWithValidUnstoredHandle()
293 mRequest.setHeader(HeaderSet.TYPE, TYPE_GET_LINKED_THUMBNAIL); in testGetLinkedThumbnailWithInvalidHandle()
294 mRequest.setHeader(HEADER_ID_IMG_HANDLE, IMAGE_HANDLE_INVALID); in testGetLinkedThumbnailWithInvalidHandle()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sip/
DSipUtils.java148 request.setHeader(sessionExpires); in buildInvite()
151 request.setHeader(generateContactHeader(configuration)); in buildInvite()
155 request.setHeader( in buildInvite()
160 request.setHeader( in buildInvite()
170 request.setHeader(sHeaderFactory.createHeader(CONVERSATION_ID_HEADER_NAME, conversationId)); in buildInvite()
171 request.setHeader( in buildInvite()
176 request.setHeader(sHeaderFactory.createHeader(ACCEPT_CONTACT_HEADER_NAME, acceptContact)); in buildInvite()
177 request.setHeader(sHeaderFactory.createSupportedHeader(SUPPORTED_TIMER_TAG)); in buildInvite()
178 request.setHeader(sHeaderFactory.createHeader(PPreferredIdentityHeader.NAME, preferredUri)); in buildInvite()
179 request.setHeader( in buildInvite()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java197 setHeader("Date", DATE_FORMAT.format(sentDate)); in setSentDate()
295 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), toLength)); in setRecipients()
303 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), ccLength)); in setRecipients()
311 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), bccLength)); in setRecipients()
328 setHeader("Subject", MimeUtility.foldAndEncode2(subject, headerNameLength)); in setSubject()
347 setHeader("From", MimeUtility.fold(from.toHeader(), fromLength)); in setFrom()
369 setHeader("Reply-to", MimeUtility.fold(Address.toHeader(replyTo), replyToLength)); in setReplyTo()
382 setHeader("Message-ID", messageId); in setMessageId()
418 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
419 setHeader("MIME-Version", "1.0"); in setBody()
[all …]
DMimeBodyPart.java50 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in MimeBodyPart()
65 public void setHeader(String name, String value) throws MessagingException { in setHeader() method in MimeBodyPart
66 header.setHeader(name, value); in setHeader()
91 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
98 setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType); in setBody()
99 setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in setBody()
171 extendedHeader.setHeader(name, END_OF_LINE.matcher(value).replaceAll("")); in setExtendedHeader()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DRequestGetImage.java47 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestGetImage()
48 mHeaderSet.setHeader(HEADER_ID_IMG_HANDLE, mImageHandle); in RequestGetImage()
50 mHeaderSet.setHeader(HEADER_ID_IMG_DESCRIPTOR, mImageDescriptor.serialize()); in RequestGetImage()
52 mHeaderSet.setHeader(HEADER_ID_IMG_DESCRIPTOR, null); in RequestGetImage()
DRequestGetImageProperties.java44 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestGetImageProperties()
45 mHeaderSet.setHeader(HEADER_ID_IMG_HANDLE, mImageHandle); in RequestGetImageProperties()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java148 .setHeader("Content-type", "text/plain") in testExtremelyLarge()
230 .setHeader("Content-length", isFirstResponse ? totalLength : (end - start)) in buildPartialResponse()
231 .setHeader("Etag", ETAG); in buildPartialResponse()
233 response.setHeader( in buildPartialResponse()
246 .setHeader("Content-length", contentLength) in buildContinuingResponse()
247 .setHeader("Etag", ETAG) in buildContinuingResponse()
427 .setHeader("Location", mServer.getUrl("/" + i).toString())); in testRunawayRedirect()
441 buildEmptyResponse(HTTP_UNAVAILABLE).setHeader("Retry-after", RETRY_DELAY)); in testRunawayUnavailable()
465 .setHeader("Content-length", A.length()) in testEtagChanged()
466 .setHeader("Etag", A)); in testEtagChanged()
[all …]
DAbstractDownloadProviderFunctionalTest.java277 .setHeader("Content-type", "text/plain") in buildResponse()
283 .setHeader("Content-type", "text/plain") in buildResponse()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestGetMessagesListing.java52 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestGetMessagesListing()
55 mHeaderSet.setHeader(HeaderSet.NAME, ""); in RequestGetMessagesListing()
57 mHeaderSet.setHeader(HeaderSet.NAME, folderName); in RequestGetMessagesListing()
DRequestSetMessageStatus.java34 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestSetMessageStatus()
35 mHeaderSet.setHeader(HeaderSet.NAME, handle); in RequestSetMessageStatus()
DRequestPushMessage.java38 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestPushMessage()
42 mHeaderSet.setHeader(HeaderSet.NAME, folder); in RequestPushMessage()
DRequestGetMessage.java47 mHeaderSet.setHeader(HeaderSet.NAME, handle); in RequestGetMessage()
49 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestGetMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapRequestPullPhoneBookSize.java34 mHeaderSet.setHeader(HeaderSet.NAME, pbName); in BluetoothPbapRequestPullPhoneBookSize()
36 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullPhoneBookSize()
DBluetoothPbapRequestPullPhoneBook.java57 mHeaderSet.setHeader(HeaderSet.NAME, pbName); in BluetoothPbapRequestPullPhoneBook()
59 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullPhoneBook()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java286 hs.setHeader(HeaderSet.COUNT, (long) numShares); in connect()
398 request.setHeader(HeaderSet.NAME, fileInfo.mFileName); in sendFile()
399 request.setHeader(HeaderSet.TYPE, fileInfo.mMimetype); in sendFile()
405 request.setHeader(HeaderSet.LENGTH, fileInfo.mLength); in sendFile()
689 request.setHeader(HeaderSet.NAME, newFilename); in applyRemoteDeviceQuirks()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogAdapter.java222 ((HeaderViewHolder) viewHolder).setHeader(R.string.new_call_log_header_today); in onBindViewHolder()
225 ((HeaderViewHolder) viewHolder).setHeader(R.string.new_call_log_header_yesterday); in onBindViewHolder()
228 ((HeaderViewHolder) viewHolder).setHeader(R.string.new_call_log_header_older); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialActivity.java216 launchedCDC = builder.setHeader(mTitle) // Show the title in the header location in onCreate()
366 launched = builder.setHeader(mTitle) in showConfirmCredentials()
375 launched = builder.setHeader(mTitle) // Show the title string in the header area in showConfirmCredentials()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java575 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure()
630 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, contentDisposition.toString()); in parseBodyStructure()
638 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding.getString()); in parseBodyStructure()
645 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure()
657 part.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, id); in parseBodyStructure()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java260 reply.setHeader(HeaderSet.WHO, uuid); in onConnect()
272 reply.setHeader(HeaderSet.TARGET, remote); in onConnect()
1023 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
1063 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
1081 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
1092 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
1103 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java390 hs.setHeader(HeaderSet.TARGET, mnsTarget); in connect()
456 request.setHeader(HeaderSet.TYPE, TYPE_EVENT); in sendEventHandler()
457 request.setHeader(HeaderSet.APPLICATION_PARAMETER, appParams.encodeParams()); in sendEventHandler()
DBluetoothMapObexServer.java367 reply.setHeader(HeaderSet.WHO, uuid); in onConnect()
379 reply.setHeader(HeaderSet.TARGET, remote); in onConnect()
386 reply.setHeader(THREADED_MAIL_HEADER_ID, THREAD_MAIL_KEY); in onConnect()
737 replyHeaders.setHeader(HeaderSet.NAME, handleStr); in pushMessage()
1231 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, outAppParams.encodeParams()); in sendMessageListingRsp()
1417 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, outAppParams.encodeParams()); in sendConvoListingRsp()
1537 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, outAppParams.encodeParams()); in sendFolderListingRsp()
1741 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, in sendGetMessageRsp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockSettingsHelperTest.java45 .setHeader("header") in testLaunchConfirmationActivityWithExternal()
75 .setHeader("header") in testLaunchConfirmationActivityInternal()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java264 headerSet.setHeader(HeaderSet.TARGET, BLUETOOTH_UUID_AVRCP_COVER_ART); in connect()
301 headerSet.setHeader(HeaderSet.TARGET, BLUETOOTH_UUID_AVRCP_COVER_ART); in refreshObexSession()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpBipObexServer.java114 reply.setHeader(HeaderSet.WHO, BLUETOOTH_UUID_AVRCP_COVER_ART); in onConnect()
313 replyHeaders.setHeader(HeaderSet.LENGTH, null); // Section 4.5.8, Required, null is fine in handleGetImage()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/filetransfer/
DFileUploadController.java176 emptyPost.setHeader("User-Agent", getUserAgent()); in sendEmptyPost()
195 postRequest.setHeader("User-Agent", getUserAgent()); in executeAuthenticatedPost()

123