Home
last modified time | relevance | path

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

/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DHasCoverage.java28 public int compare(HasCoverage entity, HasCoverage otherEntity) { in compare() argument
29 int lhsPct = Math.round(entity.getCoveragePercentage()); in compare()
34 Integer.compare(otherEntity.getMemberSize(), entity.getMemberSize()); in compare()
/cts/libs/testserver/src/android/webkit/cts/
DTestWebServer.java21 import org.apache.http.entity.ByteArrayEntity;
428 ByteArrayEntity entity = createEntity(response.mResponseData); in getResponse() local
429 httpResponse.setEntity(entity); in getResponse()
430 httpResponse.setHeader("Content-Length", "" + entity.getContentLength()); in getResponse()
473 ByteArrayEntity entity = createEntity(buf.toString().getBytes()); in createResponse() local
474 response.setEntity(entity); in createResponse()
475 response.setHeader("Content-Length", "" + entity.getContentLength()); in createResponse()
484 ByteArrayEntity entity = new ByteArrayEntity(data); in createEntity() local
485 entity.setContentType("text/html"); in createEntity()
486 return entity; in createEntity()
DCtsTestServer.java30 import org.apache.http.entity.ByteArrayEntity;
31 import org.apache.http.entity.FileEntity;
32 import org.apache.http.entity.InputStreamEntity;
33 import org.apache.http.entity.StringEntity;
672 ByteArrayEntity entity = new ByteArrayEntity(new byte[length]); in getResponse() local
673 entity.setContentType(mimeType); in getResponse()
675 response.setEntity(entity); in getResponse()
703 InputStreamEntity entity = new InputStreamEntity(in, in.available()); in getResponse() local
709 entity.setContentType(mimeType); in getResponse()
710 response.setEntity(entity); in getResponse()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DBrowserTest.java191 for (HttpEntity entity : mWebServer.getRequestEntities()) { in testBrowserPrivateDataAccess()
192 len += entity.getContentLength(); in testBrowserPrivateDataAccess()
/cts/tests/tests/provider/src/android/provider/cts/
DCalendarTest.java1072 Entity entity = ei.next(); in testEventsEntityQuery() local
1073 ContentValues values = entity.getEntityValues(); in testEventsEntityQuery()
1074 ArrayList<Entity.NamedContentValues> subvalues = entity.getSubValues(); in testEventsEntityQuery()
1110 Entity entity = ei.next(); in testEventsEntityQuery() local
1152 Entity entity = ei.next(); in testCalendarEntityQuery() local
1788 final Entity entity = iterator.next(); in testEventColors() local
1789 final ContentValues values = entity.getEntityValues(); in testEventColors()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java489 HttpEntity entity = ((HttpEntityEnclosingRequest) request).getEntity();
490 String entityString = EntityUtils.toString(entity);