/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | Http.java | 55 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/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduParser.java | 263 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 …]
|
D | PduPersister.java | 321 final PduHeaders headers, final int mapColumn) { in setEncodedStringValueToHeaders() argument 328 headers.setEncodedStringValue(value, mapColumn); in setEncodedStringValueToHeaders() 334 final PduHeaders headers, final int mapColumn) { in setTextStringToHeaders() argument 337 headers.setTextString(getBytes(s), mapColumn); in setTextStringToHeaders() 343 final PduHeaders headers, final int mapColumn) throws InvalidHeaderValueException { in setOctetToHeaders() argument 346 headers.setOctet(b, mapColumn); in setOctetToHeaders() 352 final PduHeaders headers, final int mapColumn) { in setLongToHeaders() argument 355 headers.setLongInteger(l, mapColumn); in setLongToHeaders() 500 private void loadAddress(final long msgId, final PduHeaders headers) { in loadAddress() argument 514 headers.setEncodedStringValue( in loadAddress() [all …]
|
D | RetrieveConf.java | 44 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()
|
D | SendReq.java | 78 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()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduParser.java | 238 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 …]
|
D | RetrieveConf.java | 42 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()
|
D | SendReq.java | 75 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()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | AsyncRedirects.java | 64 Map<String, List<String>> headers, Flags flags, AsyncRegistration parentRegistration) { in configure() argument 70 FetcherUtil.parseRedirects(headers); in configure() 73 if (shouldRedirect302ToWellKnown(headers, flags, parentRegistration)) { in configure() 92 Map<String, List<String>> headers, Flags flags, AsyncRegistration parentRegistration) { in shouldRedirect302ToWellKnown() argument 99 || isRedirect302ToWellKnownPath(headers)); in shouldRedirect302ToWellKnown() 106 private static boolean isRedirect302ToWellKnownPath(Map<String, List<String>> headers) { in isRedirect302ToWellKnownPath() argument 107 if (!headers.containsKey(HEADER_ATTRIBUTION_REPORTING_REDIRECT_CONFIG)) { in isRedirect302ToWellKnownPath() 110 List<String> config = headers.get(HEADER_ATTRIBUTION_REPORTING_REDIRECT_CONFIG); in isRedirect302ToWellKnownPath()
|
D | FetcherUtil.java | 61 @NonNull Map<String, List<String>> headers) { in parseRedirects() argument 63 uriMap.put(AsyncRegistration.RedirectType.LOCATION, parseLocationRedirects(headers)); in parseRedirects() 64 uriMap.put(AsyncRegistration.RedirectType.LIST, parseListRedirects(headers)); in parseRedirects() 405 private static List<Uri> parseListRedirects(Map<String, List<String>> headers) { in parseListRedirects() argument 407 List<String> field = headers.get(AsyncRedirects.REDIRECT_LIST_HEADER_KEY); in parseListRedirects() 417 private static List<Uri> parseLocationRedirects(Map<String, List<String>> headers) { in parseLocationRedirects() argument 419 List<String> field = headers.get(AsyncRedirects.REDIRECT_LOCATION_HEADER_KEY); in parseLocationRedirects() 430 public static long calculateHeadersCharactersLength(Map<String, List<String>> headers) { in calculateHeadersCharactersLength() argument 432 for (String headerKey : headers.keySet()) { in calculateHeadersCharactersLength() 435 List<String> headerValues = headers.get(headerKey); in calculateHeadersCharactersLength()
|
D | AsyncTriggerFetcher.java | 119 Map<String, List<String>> headers, in parseTrigger() argument 150 headers.get(TriggerHeaderContract.HEADER_ATTRIBUTION_REPORTING_REGISTER_TRIGGER); in parseTrigger() 166 headers.get(TriggerHeaderContract.HEADER_ATTRIBUTION_REPORTING_INFO), in parseTrigger() 465 Map<String, List<String>> headers; in fetchTrigger() local 479 headers = urlConnection.getHeaderFields(); in fetchTrigger() 484 Optional<Map<String, List<String>>> odpHeader = getOdpTriggerHeader(headers); in fetchTrigger() 491 long headerSize = FetcherUtil.calculateHeadersCharactersLength(headers) - odpHeaderSize; in fetchTrigger() 525 asyncRedirects.configure(headers, mFlags, asyncRegistration); in fetchTrigger() 527 if (!isTriggerHeaderPresent(headers)) { in fetchTrigger() 544 return parseTrigger(asyncRegistration, enrollmentId.get(), headers, asyncFetchStatus); in fetchTrigger() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | DataVersionFetcher.java | 66 JSONObject headers; in getBuyerDataVersion() local 68 headers = in getBuyerDataVersion() 70 dataVersion = headers.getJSONArray(DATA_VERSION_HEADER_BIDDING_KEY).getInt(0); in getBuyerDataVersion() 77 LogUtil.v("Header object: " + headers + " does not conform to 8 bit requirements."); in getBuyerDataVersion() 92 public static int getSellerDataVersion(@NonNull Map<String, List<String>> headers) in getSellerDataVersion() argument 94 if (Objects.isNull(headers)) { in getSellerDataVersion() 99 dataVersion = Integer.parseInt(headers.get(DATA_VERSION_HEADER_SCORING_KEY).get(0)); in getSellerDataVersion()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | DisclaimersParam.java | 64 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/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/encryption/ |
D | FederatedComputeKeyFetchManagerTest.java | 116 Map<String, List<String>> headers = new HashMap<>(); in testGetTTL_fullInfo() local 117 headers.put("Cache-Control", List.of("public,max-age=3600")); in testGetTTL_fullInfo() 118 headers.put("Age", List.of("8")); in testGetTTL_fullInfo() 120 long ttl = FederatedComputeEncryptionKeyManager.getTTL(headers); in testGetTTL_fullInfo() 127 Map<String, List<String>> headers = new HashMap<>(); in testGetTTL_noCache() local 128 headers.put("Age", List.of("8")); in testGetTTL_noCache() 130 long ttl = FederatedComputeEncryptionKeyManager.getTTL(headers); in testGetTTL_noCache() 137 Map<String, List<String>> headers = new HashMap<>(); in testGetTTL_noAge() local 138 headers.put("Cache-Control", List.of("public,max-age=3600")); in testGetTTL_noAge() 140 long ttl = FederatedComputeEncryptionKeyManager.getTTL(headers); in testGetTTL_noAge() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 57 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/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateEncryptionKeyFetcher.java | 68 private static long getMaxAgeInSeconds(@NonNull Map<String, List<String>> headers) { in getMaxAgeInSeconds() argument 72 for (String key : headers.keySet()) { in getMaxAgeInSeconds() 75 List<String> field = headers.get(key); in getMaxAgeInSeconds() 81 List<String> field = headers.get(key); in getMaxAgeInSeconds() 122 @NonNull Map<String, List<String>> headers, in parseResponse() argument 125 long maxAge = getMaxAgeInSeconds(headers); in parseResponse() 186 Map<String, List<String>> headers = urlConnection.getHeaderFields(); in fetch() local 203 return parseResponse(responseBody.toString(), headers, eventTime, coordinatorOrigin); in fetch()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/ |
D | AuctionEncryptionKeyParser.java | 87 ImmutableMap<String, List<String>> headers = response.getResponseHeaders(); in getDbEncryptionKeys() local 88 long maxAge = getMaxAgeInSeconds(headers); in getDbEncryptionKeys() 154 private static long getMaxAgeInSeconds(@NonNull Map<String, List<String>> headers) { in getMaxAgeInSeconds() argument 155 Objects.requireNonNull(headers); in getMaxAgeInSeconds() 159 for (String key : headers.keySet()) { in getMaxAgeInSeconds() 162 List<String> field = headers.get(key); in getMaxAgeInSeconds() 168 List<String> field = headers.get(key); in getMaxAgeInSeconds()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | HttpHelper.kt | 43 var headers: MutableMap<String, String>? = null in get() variable in com.android.quicksearchbox.util.HttpHelper.GetRequest 65 if (headers == null) { in get() 66 headers = mutableMapOf() in get() 68 headers?.put(name, value) in get()
|
D | JavaNetHttpHelper.kt | 45 return get(request?.url, request?.headers) in get() 75 return post(request?.url, request?.headers, request?.content) in post() 109 private fun createConnection(url: String, headers: Map<String, String>?): HttpURLConnection { in createConnection() 113 if (headers != null) { in createConnection() 114 for (e in headers.entries) { in createConnection()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | TestHttpServer.kt | 60 headers: Map<String, String>? = null, in <lambda>() 65 statusCode, headers, content) in <lambda>() 74 headers: Map<String, String>? = null, in <lambda>() 78 headers?.forEach { in <lambda>()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
D | TranscriptionClientFactory.java | 171 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/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/registration/ |
D | MessageConverter.java | 54 StringBuilder headers = new StringBuilder(); in toPlatformMessage() local 60 headers.append(header); in toPlatformMessage() 64 headers in toPlatformMessage() 72 return new SipMessage(startLine, headers.toString(), rawContent); in toPlatformMessage()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/security/ |
D | AuthorizationContext.java | 135 Map<String, String> headers = new HashMap<>(); in generateAuthHeaders() local 140 headers.put(ODP_AUTHENTICATION_KEY, attestationArr.toString()); in generateAuthHeaders() 143 headers.put(ODP_AUTHORIZATION_KEY, authTokenUUID); in generateAuthHeaders() 177 headers.put( in generateAuthHeaders() 188 return headers; in generateAuthHeaders()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/grpc/impl/ |
D | ApiKeyClientInterceptor.java | 54 public void start(Listener<RespT> listener, Metadata headers) { in interceptCall() 60 headers.put(Metadata.Key.of(mApiKey.first, Metadata.ASCII_STRING_MARSHALLER), in interceptCall() 62 super.start(listener, headers); in interceptCall() argument
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/ |
D | FederatedComputeEncryptionKeyManager.java | 187 Map<String, List<String>> headers = keyFetchResponse.getHeaders(); in parseFetchEncryptionKeyPayload() local 188 long ttlInSeconds = getTTL(headers); in parseFetchEncryptionKeyPayload() 232 static long getTTL(Map<String, List<String>> headers) { in getTTL() argument 236 for (String key : headers.keySet()) { in getTTL() 240 List<String> field = headers.get(key); in getTTL() 248 List<String> field = headers.get(key); in getTTL()
|