Home
last modified time | relevance | path

Searched refs:entity (Results 1 – 25 of 157) 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.java28 import org.apache.http.entity.AbstractHttpEntity;
29 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/support/volley/src/com/android/volley/toolbox/
DHurlStack.java27 import org.apache.http.entity.BasicHttpEntity;
118 BasicHttpEntity entity = new BasicHttpEntity(); in entityFromConnection() local
125 entity.setContent(inputStream); in entityFromConnection()
126 entity.setContentLength(connection.getContentLength()); in entityFromConnection()
127 entity.setContentEncoding(connection.getContentEncoding()); in entityFromConnection()
128 entity.setContentType(connection.getContentType()); in entityFromConnection()
129 return entity; in entityFromConnection()
DHttpClientStack.java29 import org.apache.http.entity.ByteArrayEntity;
72 HttpEntity entity; in performRequest() local
73 entity = new ByteArrayEntity(postBody); in performRequest()
74 postRequest.setEntity(entity); in performRequest()
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()
/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/support/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.java121 FileOutputStream entity = new FileOutputStream(entityFile); in performBackup() local
131 entity.write(buf, 0, dataSize); in performBackup()
136 entity.close(); in performBackup()
/frameworks/av/media/libstagefright/codecs/amrwb/
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/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/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/mtp/
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/packages/FakeOemFeatures/
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/native/libs/utils/
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/lvm/wrapper/
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/mp3dec/
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/cmds/content/
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/native/cmds/dumpsys/
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/cmds/input/
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