Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 25 of 54) sorted by relevance

123

/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java238 PduHeaders headers = new PduHeaders(); in parseHeaders() local
280 headers.setOctet(messageType, headerField); in parseHeaders()
327 headers.setOctet(value, headerField); in parseHeaders()
350 headers.setLongInteger(value, headerField); in parseHeaders()
369 headers.setLongInteger(value, headerField); in parseHeaders()
405 headers.setTextString(value, headerField); in parseHeaders()
434 headers.setEncodedStringValue(value, headerField); in parseHeaders()
473 headers.appendEncodedStringValue(value, headerField); in parseHeaders()
515 headers.setLongInteger(timeValue, headerField); in parseHeaders()
569 headers.setEncodedStringValue(from, PduHeaders.FROM); in parseHeaders()
[all …]
DRetrieveConf.java42 RetrieveConf(PduHeaders headers) { in RetrieveConf() argument
43 super(headers); in RetrieveConf()
52 RetrieveConf(PduHeaders headers, PduBody body) { in RetrieveConf() argument
53 super(headers, body); in RetrieveConf()
DSendReq.java75 SendReq(PduHeaders headers) { in SendReq() argument
76 super(headers); in SendReq()
85 SendReq(PduHeaders headers, PduBody body) { in SendReq() argument
86 super(headers, body); in SendReq()
DAcknowledgeInd.java46 AcknowledgeInd(PduHeaders headers) { in AcknowledgeInd() argument
47 super(headers); in AcknowledgeInd()
DSendConf.java39 SendConf(PduHeaders headers) { in SendConf() argument
40 super(headers); in SendConf()
DGenericPdu.java38 GenericPdu(PduHeaders headers) { in GenericPdu() argument
39 mPduHeaders = headers; in GenericPdu()
DNotifyRespInd.java49 NotifyRespInd(PduHeaders headers) { in NotifyRespInd() argument
50 super(headers); in NotifyRespInd()
DDeliveryInd.java42 DeliveryInd(PduHeaders headers) { in DeliveryInd() argument
43 super(headers); in DeliveryInd()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduParser.java263 PduHeaders headers = new PduHeaders(); in parseHeaders() local
305 headers.setOctet(messageType, headerField); in parseHeaders()
352 headers.setOctet(value, headerField); in parseHeaders()
375 headers.setLongInteger(value, headerField); in parseHeaders()
394 headers.setLongInteger(value, headerField); in parseHeaders()
431 headers.setTextString(value, headerField); in parseHeaders()
461 headers.setEncodedStringValue(value, headerField); in parseHeaders()
499 headers.appendEncodedStringValue(value, headerField); in parseHeaders()
541 headers.setLongInteger(timeValue, headerField); in parseHeaders()
596 headers.setEncodedStringValue(from, PduHeaders.FROM); in parseHeaders()
[all …]
DPduPersister.java320 final PduHeaders headers, final int mapColumn) { in setEncodedStringValueToHeaders() argument
327 headers.setEncodedStringValue(value, mapColumn); in setEncodedStringValueToHeaders()
333 final PduHeaders headers, final int mapColumn) { in setTextStringToHeaders() argument
336 headers.setTextString(getBytes(s), mapColumn); in setTextStringToHeaders()
342 final PduHeaders headers, final int mapColumn) throws InvalidHeaderValueException { in setOctetToHeaders() argument
345 headers.setOctet(b, mapColumn); in setOctetToHeaders()
351 final PduHeaders headers, final int mapColumn) { in setLongToHeaders() argument
354 headers.setLongInteger(l, mapColumn); in setLongToHeaders()
499 private void loadAddress(final long msgId, final PduHeaders headers) { in loadAddress() argument
513 headers.setEncodedStringValue( in loadAddress()
[all …]
DRetrieveConf.java44 RetrieveConf(PduHeaders headers) { in RetrieveConf() argument
45 super(headers); in RetrieveConf()
54 RetrieveConf(PduHeaders headers, PduBody body) { in RetrieveConf() argument
55 super(headers, body); in RetrieveConf()
DSendReq.java78 SendReq(PduHeaders headers) { in SendReq() argument
79 super(headers); in SendReq()
88 SendReq(PduHeaders headers, PduBody body) { in SendReq() argument
89 super(headers, body); in SendReq()
DAcknowledgeInd.java48 AcknowledgeInd(PduHeaders headers) { in AcknowledgeInd() argument
49 super(headers); in AcknowledgeInd()
DSendConf.java41 SendConf(PduHeaders headers) { in SendConf() argument
42 super(headers); in SendConf()
DGenericPdu.java40 GenericPdu(PduHeaders headers) { in GenericPdu() argument
41 mPduHeaders = headers; in GenericPdu()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DHttp.java55 public static @NonNull byte[] post(@NonNull String uri, @NonNull Headers headers) in post() argument
57 return post(uri, headers, EMPTY_DATA); in post()
67 public @NonNull static byte[] post(@NonNull String uri, @NonNull Headers headers, in post() argument
69 return getOrPost(uri, headers, data); in post()
78 public static @NonNull byte[] get(@NonNull String uri, @NonNull Headers headers) in get() argument
80 return getOrPost(uri, headers, null); in get()
83 private static byte[] getOrPost(String uri, Headers headers, byte[] data) throws IOException { in getOrPost() argument
89 return getOrPost(url, headers, data); in getOrPost()
120 private static byte[] getOrPost(URL url, Headers headers, byte[] data) throws IOException { in getOrPost() argument
128 headers.apply(connection); in getOrPost()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DDisclaimersParam.java64 String[] headers = bundle.getStringArray(HEADER_KEY); in createBuilderFromPersistableBundle() local
67 if (headers != null) { in createBuilderFromPersistableBundle()
69 Disclaimer[] disclaimers = new Disclaimer[headers.length]; in createBuilderFromPersistableBundle()
70 for (int i = 0; i < headers.length; i++) { in createBuilderFromPersistableBundle()
71 disclaimers[i] = new Disclaimer(headers[i], contentPaths[i]); in createBuilderFromPersistableBundle()
90 String[] headers = new String[mDisclaimers.length]; in toPersistableBundle() local
93 headers[i] = mDisclaimers[i].mHeader; in toPersistableBundle()
96 bundle.putStringArray(HEADER_KEY, headers); in toPersistableBundle()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java57 Context context, String urlString, String requestMethod, List<Pair<String, String>> headers) in sendRequestAsByteArray() argument
72 setMethodAndHeaders(conn, requestMethod, headers); in sendRequestAsByteArray()
119 Context context, String urlString, String requestMethod, List<Pair<String, String>> headers) in sendRequestAsInputStream() argument
132 setMethodAndHeaders(httpUrlConnection, requestMethod, headers); in sendRequestAsInputStream()
164 HttpURLConnection conn, String requestMethod, List<Pair<String, String>> headers) in setMethodAndHeaders() argument
167 if (headers != null) { in setMethodAndHeaders()
168 for (Pair<String, String> pair : headers) { in setMethodAndHeaders()
210 Context context, String urlString, String requestMethod, List<Pair<String, String>> headers) in getRequestAsString() argument
212 final byte[] byteArr = sendRequestAsByteArray(context, urlString, requestMethod, headers); in getRequestAsString()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
DTranscriptionClientFactory.java171 public void start(Listener<RespT> responseListener, Metadata headers) { in interceptCall()
176 headers.put(ANDROID_PACKAGE_HEADER, packageName); in interceptCall()
180 headers.put(ANDROID_CERT_HEADER, cert); in interceptCall()
184 headers.put(API_KEY_HEADER, apiKey); in interceptCall()
188 headers.put(AUTHORIZATION_HEADER, "Bearer " + authToken); in interceptCall()
190 super.start(responseListener, headers); in interceptCall()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DOpenHelper.java151 final Cursor headers = context.getContentResolver() in getRefererUri() local
154 while (headers.moveToNext()) { in getRefererUri()
155 final String header = getCursorString(headers, RequestHeaders.COLUMN_HEADER); in getRefererUri()
157 return getCursorUri(headers, RequestHeaders.COLUMN_VALUE); in getRefererUri()
161 headers.close(); in getRefererUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMime.java552 String[] headers = hdrPart.split("\r\n"); in parseMimeHeaders() local
554 Log.d(TAG, "Header count=" + headers.length); in parseMimeHeaders()
559 for (int i = 0, c = headers.length; i < c; i++) { in parseMimeHeaders()
560 header = headers[i]; in parseMimeHeaders()
577 remaining.append(headers[i]); in parseMimeHeaders()
655 String[] headers = parts[0].split("\r\n"); in parseMimePart() local
657 Log.d(TAG, "parseMimePart: headers count=" + headers.length); in parseMimePart()
663 for (String header : headers) { in parseMimePart()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java203 List<String> headers = takeRequest().getHeaders(); in testInterruptedDownload() local
204 assertTrue("No Range header: " + headers, in testInterruptedDownload()
205 headers.contains("Range: bytes=" + initialLength + "-")); in testInterruptedDownload()
206 assertTrue("No ETag header: " + headers, headers.contains("If-Match: " + ETAG)); in testInterruptedDownload()
379 List<String> headers = takeRequest().getHeaders(); in testRequestHeaders() local
380 assertTrue(headers.contains("Header1: value1")); in testRequestHeaders()
381 assertTrue(headers.contains("Header2: value2")); in testRequestHeaders()
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DDialerSettingsActivity.java55 private List<Header> headers; field in DialerSettingsActivity
67 if (headerToOpen != null && headers != null) { in onCreate()
68 for (Header header : headers) { in onCreate()
94 headers = target; in onBuildHeaders()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java127 private HttpURLConnection createConnection(String url, Map<String, String> headers) in createConnection() argument
132 if (headers != null) { in createConnection()
133 for (Map.Entry<String,String> e : headers.entrySet()) { in createConnection()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsAdapter.java56 private String[] headers = new String[0]; field in ContactsAdapter
71 headers = cursor.getExtras().getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES); in updateCursor()
218 return headers[index]; in getHeaderString()

123