Home
last modified time | relevance | path

Searched refs:setRequestProperty (Results 1 – 25 of 29) sorted by relevance

12

/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java145 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); in execute()
147 connection.setRequestProperty( in execute()
152 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); in execute()
166 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); in execute()
174 connection.setRequestProperty(HEADER_CONNECTION, HEADER_CONNECTION_CLOSE); in execute()
187 connection.setRequestProperty(HEADER_CONTENT_TYPE, in execute()
190 connection.setRequestProperty(HEADER_CONTENT_TYPE, in execute()
383 connection.setRequestProperty(name, value); in addExtraHeaders()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnectionTest.java215 mHttpsServiceConnection.setRequestProperty(testName, testValue); in verifyNotUpdatingRequestPropertyForIgnorableProperty()
217 verify(mHttpsURLConnection, never()).setRequestProperty(any(String.class), in verifyNotUpdatingRequestPropertyForIgnorableProperty()
229 mHttpsServiceConnection.setRequestProperty(testName, testValue); in verifyCallingSetRequestPropertyForProperty()
231 verify(mHttpsURLConnection).setRequestProperty(any(String.class), in verifyCallingSetRequestPropertyForProperty()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java134 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); in execute()
136 connection.setRequestProperty( in execute()
140 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); in execute()
147 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); in execute()
162 connection.setRequestProperty(HEADER_CONTENT_TYPE, in execute()
165 connection.setRequestProperty(HEADER_CONTENT_TYPE, in execute()
359 connection.setRequestProperty(name, value); in addExtraHeaders()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/utils/
DFakeAdExchangeServer.java122 con.setRequestProperty("Content-Type", "application/json"); in makeHttpPostCall()
123 con.setRequestProperty("Accept", "application/json"); in makeHttpPostCall()
124 httpHeaders.forEach(con::setRequestProperty); in makeHttpPostCall()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DMeasurementReportSender.java100 urlConnection.setRequestProperty("Content-Type", "application/json"); in sendReportPostRequest()
101 urlConnection.setRequestProperty("Origin", "null"); in sendReportPostRequest()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java82 public void setRequestProperty(String propertyName, String value) { in setRequestProperty() method in HttpsServiceConnection
86 mConnection.setRequestProperty(propertyName, value); in setRequestProperty()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementHttpClient.java95 urlConnection.setRequestProperty("User-Agent", ""); in setup()
100 urlConnection.setRequestProperty("Version", version); in setup()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java208 urlConnection.setRequestProperty("Content-Type", "text/plain"); in setupPostConnectionWithPlainText()
390 urlConnection.setRequestProperty(entry.getKey(), entry.getValue()); in doFetchPayload()
677 urlConnection.setRequestProperty(entry.getKey(), entry.getValue()); in doPerformRequestAndGetResponse()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpClient.java139 urlConnection.setRequestProperty(entry.getKey(), entry.getValue()); in performRequest()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureTransfer.java244 connection.setRequestProperty("User-Agent", getUserAgent()); in prepareInitialPost()
262 connection.setRequestProperty("User-Agent", getUserAgent()); in prepareImageDownloadRequest()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/
DWidevineProvisioner.java191 con.setRequestProperty(prop.getKey(), prop.getValue()); in sendNetworkRequest()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.kt94 connection.setRequestProperty("User-Agent", USER_AGENT) in query()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt326 httpConnection.setRequestProperty("Accept-Encoding", "identity") in <lambda>()
329 httpConnection.setRequestProperty("Connection", "close") in <lambda>()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java169 conn.setRequestProperty(pair.first, pair.second); in setMethodAndHeaders()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java832 conn.setRequestProperty("Accept-Encoding", "identity"); in addRequestHeaders()
836 conn.setRequestProperty("Connection", "close"); in addRequestHeaders()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/
DRoboJarFetcherTask.kt314 conn.setRequestProperty("Range", "bytes=$currentPos-") in read()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DHttp.java198 connection.setRequestProperty(key, value); in apply()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/encryptionkey/
DEncryptionKeyFetcher.java148 urlConnection.setRequestProperty( in fetchEncryptionKeys()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncSourceFetcher.java907 urlConnection.setRequestProperty( in fetchSource()
914 urlConnection.setRequestProperty("Content-Type", "text/plain"); in fetchSource()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java310 connection.setRequestProperty("User-Agent", task.mUserAgent); in processDownload()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/
DEncryptionKeyFetcherTest.java392 verify(mURLConnection).setRequestProperty(any(), any()); in testRefetchEncryptionKeysReturnNewKeys()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java486 mServiceConnection.setRequestProperty("Accept-Encoding", "gzip"); in getCert()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java1242 connection.setRequestProperty("User-Agent", userAgent); in loadUriBasedPhotos()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java3150 conn.setRequestProperty("Connection", "close"); in makeProbeConnection()
3153 conn.setRequestProperty("User-Agent", mCaptivePortalUserAgent); in makeProbeConnection()
3288 conn.setRequestProperty(ACCEPT_HEADER, CAPPORT_API_CONTENT_TYPE); in sendCapportApiProbe()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsManagerTest.java235 urlc.setRequestProperty("Accept-Encoding", "identity"); in exerciseRemoteHost()

12