Searched refs:entity (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/core/java/android/net/http/
H A DAndroidHttpClientConnection.java30 import org.apache.http.entity.BasicHttpEntity;
31 import org.apache.http.entity.ContentLengthStrategy;
33 import org.apache.http.impl.entity.EntitySerializer;
34 import org.apache.http.impl.entity.StrictContentLengthStrategy;
261 * Sends the request entity over the connection.
262 * @param request the request whose entity to send.
377 * Return the next response entity.
378 * @param headers contains values for parsing entity
383 BasicHttpEntity entity = new BasicHttpEntity();
387 entity
[all...]
H A DAndroidHttpClient.java39 import org.apache.http.entity.AbstractHttpEntity;
40 import org.apache.http.entity.ByteArrayEntity;
230 * Gets the input stream from a response entity. If the entity is gzipped
233 * @param entity the entity whose content should be read
237 public static InputStream getUngzippedContent(HttpEntity entity) argument
239 InputStream responseStream = entity.getContent();
241 Header header = entity.getContentEncoding();
321 AbstractHttpEntity entity;
[all...]
H A DRequest.java27 import org.apache.http.entity.InputStreamEntity;
124 // it is ok to have null entity for BasicHttpEntityEnclosingRequest.
262 HttpEntity entity = null;
266 entity = httpClientConnection.receiveResponseEntity(header);
273 if (entity != null) {
274 InputStream is = entity.getContent();
277 Header contentEncoding = entity.getContentEncoding();
349 mConnection.setCanPersist(entity, statusLine.getProtocolVersion(),
460 * Decide whether a response comes with an entity.
463 * indicate responses with an entity
[all...]
H A DConnection.java462 private boolean keepAlive(HttpEntity entity, argument
471 if (entity != null) {
472 if (entity.getContentLength() < 0) {
473 if (!entity.isChunked() || ver.lessEquals(HttpVersion.HTTP_1_0)) {
490 void setCanPersist(HttpEntity entity, ProtocolVersion ver, int connType) { argument
491 mCanPersist = keepAlive(entity, ver, connType, mHttpContext);
H A DHeaders.java24 import org.apache.http.entity.ContentLengthStrategy;
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsXtraDownloader.java149 HttpEntity entity = response.getEntity();
151 if (entity != null) {
153 if (entity.getContentLength() > 0) {
154 body = new byte[(int) entity.getContentLength()];
155 DataInputStream dis = new DataInputStream(entity.getContent());
167 if (entity != null) {
168 entity.consumeContent();
/frameworks/base/libs/androidfw/
H A DBackupData.cpp129 if (DEBUG) ALOGI("writing entity header, %zu bytes", sizeof(entity_header_v1));
137 if (DEBUG) ALOGI("writing entity header key, %zd bytes", keyLen+1);
264 m_header.entity.keyLen = fromlel(m_header.entity.keyLen);
265 if (m_header.entity.keyLen <= 0) {
267 (int)m_header.entity.keyLen);
270 m_header.entity.dataSize = fromlel(m_header.entity.dataSize);
274 size_t size = m_header.entity.keyLen;
285 m_dataEndPos = m_pos + m_header.entity
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DHurlStack.java28 import org.apache.http.entity.BasicHttpEntity;
134 BasicHttpEntity entity = new BasicHttpEntity();
141 entity.setContent(inputStream);
142 entity.setContentLength(connection.getContentLength());
143 entity.setContentEncoding(connection.getContentEncoding());
144 entity.setContentType(connection.getContentType());
145 return entity;
H A DHttpClientStack.java36 import org.apache.http.entity.ByteArrayEntity;
105 HttpEntity entity;
106 entity = new ByteArrayEntity(postBody);
107 postRequest.setEntity(entity);
150 HttpEntity entity = new ByteArrayEntity(body);
151 httpRequest.setEntity(entity);
H A DBasicNetwork.java210 private byte[] entityToBytes(HttpEntity entity) throws IOException, ServerError { argument
212 new PoolingByteArrayOutputStream(mPool, (int) entity.getContentLength());
215 InputStream in = entity.getContent();
228 entity.consumeContent();
230 // This can happen if there was an exception above that left the entity in
/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataInput.cpp50 readNextHeader_native(JNIEnv* env, jobject clazz, jlong r, jobject entity) argument
76 // TODO: Set the fields in the entity object
78 env->SetObjectField(entity, s_keyField, keyStr);
79 env->SetIntField(entity, s_dataSizeField, dataSize);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DExportTestProvider.java47 Entity entity = new Entity(new ContentValues());
49 entity.addSubValue(Data.CONTENT_URI, contentValues);
51 mEntityList.add(entity);
/frameworks/volley/tests/src/com/android/volley/mock/
H A DMockHttpClient.java40 public void setResponseData(HttpEntity entity) { argument
42 mResponseEntity = entity;
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInput.java31 * onBackup()} implementation. An entity is composed of a descriptive header plus a
34 * The agent must consume every entity in the data stream, otherwise the
51 * data.readEntityData(buffer, 0, dataSize); // reads the entire entity at once
95 * Extract the next entity header from the restore stream. After this method
97 * be used to inspect the entity that is now available for processing.
99 * @return <code>true</code> when there is an entity ready for consumption from the
121 * Report the key associated with the current entity in the restore stream
122 * @return the current entity's key string
134 * Report the size in bytes of the data associated with the current entity in the
152 * must be read in a single call. Once all of the raw data for the current entity
195 readNextHeader_native(long mBackupReader, EntityHeader entity) argument
[all...]
/frameworks/base/include/androidfw/
H A DBackupHelpers.h77 * entity-structured. If the implementation here is changed, either this
129 entity_header_v1 entity; member in union:android::BackupDataReader::__anon890
/frameworks/volley/tests/src/com/android/volley/toolbox/
H A DBasicNetworkTest.java25 import org.apache.http.entity.StringEntity;
/frameworks/base/core/java/com/android/internal/http/multipart/
H A DMultipartEntity.java41 import org.apache.http.entity.AbstractHttpEntity;
50 * Implements a request entity suitable for an HTTP multipart POST method.
65 * <p>This entity is designed to be used in conjunction with the
133 * Creates a new multipart entity containing the given parts.
135 * @param params The params of the HttpMethod using this entity.
164 * @return The boundary string of this entity in ASCII encoding.
/frameworks/base/core/java/android/provider/
H A DCalendarContract.java502 * Creates an entity iterator for the given cursor. It assumes the
574 Entity entity = new Entity(cv);
580 return entity;
1289 * @return an EntityIterator containing one entity per event in the
1301 * @return an EntityIterator containing one entity per event in the
1431 Entity entity = new Entity(cv);
1449 entity.addSubValue(Reminders.CONTENT_URI, reminderValues);
1483 entity.addSubValue(Attendees.CONTENT_URI, attendeeValues);
1509 entity.addSubValue(ExtendedProperties.CONTENT_URI, extendedValues);
1516 return entity;
[all...]
/frameworks/base/core/java/com/android/internal/backup/
H A DLocalTransport.java198 FileOutputStream entity = new FileOutputStream(entityFile);
208 Log.v(TAG, " read entity data; new pos=" + cur);
217 entity.write(buf, 0, dataSize);
222 entity.close();
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardComposer.java462 // The resolver may return the entity iterator with no data. It is possible.
501 Entity entity = entityIterator.next();
502 for (NamedContentValues namedContentValues : entity.getSubValues()) {
614 * @return true when there's no entity to be built. The return value is undefined

Completed in 1778 milliseconds