Home
last modified time | relevance | path

Searched refs:entity (Results 1 – 9 of 9) 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()
36 diff = Integer.compare(otherEntity.getMemberSize(), entity.getMemberSize()); in compare()
40 return entity.getName().compareTo(otherEntity.getName()); in compare()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DTable.java35 protected Table(String name, Entity<E> entity) { in Table() argument
37 mEntity = entity; in Table()
53 public abstract ContentValues buildContentValues(E entity); in buildContentValues() argument
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java39 import org.apache.http.entity.ByteArrayEntity;
40 import org.apache.http.entity.FileEntity;
41 import org.apache.http.entity.InputStreamEntity;
42 import org.apache.http.entity.StringEntity;
608 ByteArrayEntity entity = new ByteArrayEntity(new byte[length]); in getResponse() local
609 entity.setContentType(mimeType); in getResponse()
611 response.setEntity(entity); in getResponse()
639 InputStreamEntity entity = new InputStreamEntity(in, in.available()); in getResponse() local
645 entity.setContentType(mimeType); in getResponse()
646 response.setEntity(entity); in getResponse()
[all …]
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()
/cts/tests/tests/view/src/android/view/textclassifier/cts/
DTextClassificationManagerTest.java244 final String entity = selection.getEntity(i); in assertValidResult() local
245 assertNotNull(entity); in assertValidResult()
246 final float confidenceScore = selection.getConfidenceScore(entity); in assertValidResult()
256 final String entity = classification.getEntity(i); in assertValidResult() local
257 assertNotNull(entity); in assertValidResult()
258 final float confidenceScore = classification.getConfidenceScore(entity); in assertValidResult()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageReportingTest.java355 private void assertAppOrTokenUsed(String entity, boolean expected) throws Exception { in assertAppOrTokenUsed() argument
358 failMessage = entity + " not found in list of active activities and tokens"; in assertAppOrTokenUsed()
360 failMessage = entity + " found in list of active activities and tokens"; in assertAppOrTokenUsed()
370 if (active.equals(entity)) { in assertAppOrTokenUsed()
DUsageStatsTest.java1224 private void assertAppOrTokenUsed(String entity, boolean expected) throws IOException { in assertAppOrTokenUsed() argument
1231 if (active.equals(entity)) { in assertAppOrTokenUsed()
1237 assertTrue(entity + " not found in list of active activities and tokens\n" in assertAppOrTokenUsed()
1240 assertFalse(entity + " found in list of active activities and tokens\n" in assertAppOrTokenUsed()
/cts/tests/tests/provider/src/android/provider/cts/
DCalendarTest.java1073 Entity entity = ei.next(); in testEventsEntityQuery() local
1074 ContentValues values = entity.getEntityValues(); in testEventsEntityQuery()
1075 ArrayList<Entity.NamedContentValues> subvalues = entity.getSubValues(); in testEventsEntityQuery()
1111 Entity entity = ei.next(); in testEventsEntityQuery() local
1153 Entity entity = ei.next(); in testCalendarEntityQuery() local
1789 final Entity entity = iterator.next(); in testEventColors() local
1790 final ContentValues values = entity.getEntityValues(); in testEventColors()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java378 HttpEntity entity = ((HttpEntityEnclosingRequest) request).getEntity(); in testPostUrlWithNetworkUrl() local
379 String entityString = EntityUtils.toString(entity); in testPostUrlWithNetworkUrl()