/frameworks/base/core/java/android/net/http/ |
D | AndroidHttpClientConnection.java | 33 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 …]
|
D | AndroidHttpClient.java | 28 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 …]
|
D | Request.java | 27 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()
|
D | Connection.java | 463 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/ |
D | BackupData.cpp | 262 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/ |
D | GpsXtraDownloader.java | 137 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/ |
D | HurlStack.java | 27 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()
|
D | HttpClientStack.java | 29 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()
|
D | BasicNetwork.java | 201 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/ |
D | android_backup_BackupDataInput.cpp | 50 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/ |
D | FsUtils.java | 166 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/ |
D | ExportTestProvider.java | 47 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/ |
D | MockHttpClient.java | 40 public void setResponseData(HttpEntity entity) { in setResponseData() argument 42 mResponseEntity = entity; in setResponseData()
|
/frameworks/base/core/java/com/android/internal/backup/ |
D | LocalTransport.java | 121 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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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/ |
D | NOTICE | 25 "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
|