Home
last modified time | relevance | path

Searched refs:collection (Results 1 – 14 of 14) sorted by relevance

/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorCtsHelper.java57 Collection<TValue> collection, float lowPecentile, float highPercentile) { in getPercentileValue() argument
58 validateCollection(collection); in getPercentileValue()
64 List<TValue> arrayCopy = new ArrayList<TValue>(collection); in getPercentileValue()
88 public static <TValue extends Number> double getMean(Collection<TValue> collection) { in getMean() argument
89 validateCollection(collection); in getMean()
92 for(TValue value : collection) { in getMean()
95 return sum / collection.size(); in getMean()
103 public static <TValue extends Number> double getVariance(Collection<TValue> collection) { in getVariance() argument
104 validateCollection(collection); in getVariance()
106 double mean = getMean(collection); in getVariance()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DCertBlacklistTest.java92 Collection<? extends Certificate> collection = factory.generateCertificates(is); in loadCertificates() local
93 X509Certificate[] certs = new X509Certificate[collection.size()]; in loadCertificates()
95 for (Certificate cert : collection) { in loadCertificates()
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DListQueryHelper.java82 for (H collection : collections) { in containsAll()
83 Iterator<F> iterator = collection.iterator(); in containsAll()
93 for (H collection : collections) { in doesNotContainAny()
94 Iterator<F> iterator = collection.iterator(); in doesNotContainAny()
DSetQueryHelper.java94 for (H collection : collections) { in containsAll()
95 Iterator<F> iterator = collection.iterator(); in containsAll()
105 for (H collection : collections) { in doesNotContainAny()
106 Iterator<F> iterator = collection.iterator(); in doesNotContainAny()
DListQuery.java68 <H extends Collection<F>> E containsAll(H... collection); in containsAll() argument
/cts/tests/tests/view/src/android/view/inspector/cts/
DIntFlagMappingTest.java96 private static void assertEmpty(Collection collection) { in assertEmpty() argument
97 assertTrue(collection.isEmpty()); in assertEmpty()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageStatsManagerTest.java130 Collection<CrateInfo> collection = mStorageStatsManager.queryCratesForUid(mUuid, in queryCratesForUid_noCratedFolder_shouldBeEmpty() local
133 assertThat(collection.size()).isEqualTo(0); in queryCratesForUid_noCratedFolder_shouldBeEmpty()
154 Collection<CrateInfo> collection = queryCratesForUser(true, mUuid, in queryCratesForUser_noCratedFolder_shouldBeEmpty() local
157 assertThat(collection.size()).isEqualTo(0); in queryCratesForUser_noCratedFolder_shouldBeEmpty()
163 Collection<CrateInfo> collection = mStorageStatsManager.queryCratesForPackage(mUuid, in queryCratesForPackage_noCratedFolder_shouldBeEmpty() local
166 assertThat(collection.size()).isEqualTo(0); in queryCratesForPackage_noCratedFolder_shouldBeEmpty()
/cts/tests/tests/util/src/android/util/cts/
DTimeUtilsTest.java234 private static <T> void assertCollectionContains(Collection<? super T> collection, T value) { in assertCollectionContains() argument
235 assertTrue(collection + " should contain " + value, collection.contains(value)); in assertCollectionContains()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DAssertHelpers.java211 private static <T> String formatCollection(Collection<T> collection, int maxLen) { in formatCollection() argument
216 for (T elem : collection) { in formatCollection()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java176 private void doMediaNone(Uri collection, Callable<Uri> create) throws Exception { in doMediaNone() argument
185 try (Cursor c = mContentResolver.query(collection, in doMediaNone()
267 private void doMediaRead(Uri collection, Callable<Uri> create) throws Exception { in doMediaRead() argument
275 try (Cursor c = mContentResolver.query(collection, in doMediaRead()
302 private void doMediaWrite(Uri collection, Callable<Uri> create) throws Exception { in doMediaWrite() argument
310 try (Cursor c = mContentResolver.query(collection, in doMediaWrite()
/cts/hostsidetests/library/
DAndroid.bp54 // These are collection of tools and libraries that are required to build
/cts/tests/security/src/android/keystore/cts/
DAuthorizationList.java516 private static String joinStrings(Collection<String> collection) { in joinStrings() argument
519 .append(Joiner.on(", ").join(collection)) in joinStrings()
/cts/hostsidetests/theme/
DREADME86 A complete collection of reference images for a given API revision must include
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DActivityMetricsLoggerTests.java77 import org.hamcrest.collection.IsIn;