Home
last modified time | relevance | path

Searched refs:entity (Results 1 – 25 of 160) sorted by relevance

1234567

/frameworks/base/core/java/android/net/http/
DAndroidHttpClientConnection.java33 import org.apache.http.entity.BasicHttpEntity;
34 import org.apache.http.entity.ContentLengthStrategy;
37 import org.apache.http.impl.entity.EntitySerializer;
38 import org.apache.http.impl.entity.StrictContentLengthStrategy;
387 BasicHttpEntity entity = new BasicHttpEntity(); in receiveResponseEntity() local
391 entity.setChunked(true); in receiveResponseEntity()
392 entity.setContentLength(-1); in receiveResponseEntity()
393 entity.setContent(new ChunkedInputStream(inbuffer)); in receiveResponseEntity()
395 entity.setChunked(false); in receiveResponseEntity()
396 entity.setContentLength(-1); in receiveResponseEntity()
[all …]
DAndroidHttpClient.java39 import org.apache.http.entity.AbstractHttpEntity;
40 import org.apache.http.entity.ByteArrayEntity;
219 public static InputStream getUngzippedContent(HttpEntity entity) in getUngzippedContent() argument
221 InputStream responseStream = entity.getContent(); in getUngzippedContent()
223 Header header = entity.getContentEncoding(); in getUngzippedContent()
303 AbstractHttpEntity entity; in getCompressedEntity() local
305 entity = new ByteArrayEntity(data); in getCompressedEntity()
311 entity = new ByteArrayEntity(arr.toByteArray()); in getCompressedEntity()
312 entity.setContentEncoding("gzip"); in getCompressedEntity()
314 return entity; in getCompressedEntity()
[all …]
DRequest.java27 import org.apache.http.entity.InputStreamEntity;
265 HttpEntity entity = null; in readResponse() local
269 entity = httpClientConnection.receiveResponseEntity(header); in readResponse()
276 if (entity != null) { in readResponse()
277 InputStream is = entity.getContent(); in readResponse()
280 Header contentEncoding = entity.getContentEncoding(); in readResponse()
352 mConnection.setCanPersist(entity, statusLine.getProtocolVersion(), in readResponse()
DConnection.java463 private boolean keepAlive(HttpEntity entity, in keepAlive() argument
472 if (entity != null) { in keepAlive()
473 if (entity.getContentLength() < 0) { in keepAlive()
474 if (!entity.isChunked() || ver.lessEquals(HttpVersion.HTTP_1_0)) { in keepAlive()
491 void setCanPersist(HttpEntity entity, ProtocolVersion ver, int connType) { in setCanPersist() argument
492 mCanPersist = keepAlive(entity, ver, connType, mHttpContext); in setCanPersist()
/frameworks/base/libs/androidfw/
DBackupData.cpp262 m_header.entity.keyLen = fromlel(m_header.entity.keyLen); in ReadNextHeader()
263 if (m_header.entity.keyLen <= 0) { in ReadNextHeader()
265 (int)m_header.entity.keyLen); in ReadNextHeader()
268 m_header.entity.dataSize = fromlel(m_header.entity.dataSize); in ReadNextHeader()
272 size_t size = m_header.entity.keyLen; in ReadNextHeader()
283 m_dataEndPos = m_pos + m_header.entity.dataSize; in ReadNextHeader()
312 *dataSize = m_header.entity.dataSize; in ReadEntityHeader()
325 if (m_header.entity.dataSize > 0) { in SkipEntityData()
/frameworks/base/services/java/com/android/server/location/
DGpsXtraDownloader.java137 HttpEntity entity = response.getEntity(); in doDownload() local
139 if (entity != null) { in doDownload()
141 if (entity.getContentLength() > 0) { in doDownload()
142 body = new byte[(int) entity.getContentLength()]; in doDownload()
143 DataInputStream dis = new DataInputStream(entity.getContent()); in doDownload()
155 if (entity != null) { in doDownload()
156 entity.consumeContent(); in doDownload()
/frameworks/volley/src/com/android/volley/toolbox/
DHttpClientStack.java33 import org.apache.http.entity.ByteArrayEntity;
101 HttpEntity entity; in createHttpRequest() local
102 entity = new ByteArrayEntity(postBody); in createHttpRequest()
103 postRequest.setEntity(entity); in createHttpRequest()
134 HttpEntity entity = new ByteArrayEntity(body); in setEntityIfNonEmptyBody() local
135 httpRequest.setEntity(entity); in setEntityIfNonEmptyBody()
DHurlStack.java28 import org.apache.http.entity.BasicHttpEntity;
134 BasicHttpEntity entity = new BasicHttpEntity(); in entityFromConnection() local
141 entity.setContent(inputStream); in entityFromConnection()
142 entity.setContentLength(connection.getContentLength()); in entityFromConnection()
143 entity.setContentEncoding(connection.getContentEncoding()); in entityFromConnection()
144 entity.setContentType(connection.getContentType()); in entityFromConnection()
145 return entity; in entityFromConnection()
DBasicNetwork.java201 private byte[] entityToBytes(HttpEntity entity) throws IOException, ServerError { in entityToBytes() argument
203 new PoolingByteArrayOutputStream(mPool, (int) entity.getContentLength()); in entityToBytes()
206 InputStream in = entity.getContent(); in entityToBytes()
219 entity.consumeContent(); in entityToBytes()
/frameworks/base/core/jni/
Dandroid_backup_BackupDataInput.cpp50 readNextHeader_native(JNIEnv* env, jobject clazz, int r, jobject entity) in readNextHeader_native() argument
78 env->SetObjectField(entity, s_keyField, keyStr); in readNextHeader_native()
79 env->SetIntField(entity, s_dataSizeField, dataSize); in readNextHeader_native()
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DFsUtils.java166 HttpEntity entity = response.getEntity(); in run()
167 return (entity == null ? null : EntityUtils.toByteArray(entity)); in run()
232 HttpEntity entity = response.getEntity(); in getLayoutTestsDirContents()
233 if (entity == null) { in getLayoutTestsDirContents()
238 new BufferedReader(new InputStreamReader(entity.getContent())); in getLayoutTestsDirContents()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DExportTestProvider.java47 Entity entity = new Entity(new ContentValues()); in MockEntityIterator() local
49 entity.addSubValue(Data.CONTENT_URI, contentValues); in MockEntityIterator()
51 mEntityList.add(entity); in MockEntityIterator()
/frameworks/volley/tests/src/com/android/volley/mock/
DMockHttpClient.java40 public void setResponseData(HttpEntity entity) { in setResponseData() argument
42 mResponseEntity = entity; in setResponseData()
/frameworks/base/core/java/com/android/internal/backup/
DLocalTransport.java126 FileOutputStream entity = new FileOutputStream(entityFile); in performBackup() local
136 entity.write(buf, 0, dataSize); in performBackup()
141 entity.close(); in performBackup()
/frameworks/base/core/java/android/app/backup/
DBackupDataInput.java191 private native int readNextHeader_native(int mBackupReader, EntityHeader entity); in readNextHeader_native() argument
/frameworks/av/drm/common/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/base/libs/storage/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/av/media/libstagefright/codecs/raw/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/base/media/jni/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/av/libvideoeditor/vss/video_filters/src/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/av/media/libmediaplayerservice/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/av/media/libeffects/downmix/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a
/frameworks/av/media/common_time/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a

1234567