Home
last modified time | relevance | path

Searched refs:collection (Results 1 – 18 of 18) 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/hostsidetests/appcloning/test-apps/AppCloningTestApp/src/com/android/cts/appcloningtestapp/
DAppCloningDeviceTest.java115 Uri collection = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL); in testMediaStoreManager_verifyCrossUserImagesInSharedStorage() local
118 collection); in testMediaStoreManager_verifyCrossUserImagesInSharedStorage()
174 Uri collection = MediaStore.Images.Media.getContentUri(getPublicSdCardVol().toLowerCase()); in testMediaStoreManager_verifyCrossUserImagesInPublicSdCard() local
177 collection); in testMediaStoreManager_verifyCrossUserImagesInPublicSdCard()
259 Uri collection = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL); in testMediaStoreManager_verifyClonedUserImageSavedInOwnerUserOnly() local
262 collection); in testMediaStoreManager_verifyClonedUserImageSavedInOwnerUserOnly()
290 Uri collection = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL); in testMediaStoreManager_verifyOwnerUserImageSavedInClonedUserOnly() local
293 collection); in testMediaStoreManager_verifyOwnerUserImageSavedInClonedUserOnly()
DMediaStoreReadOperation.java33 public static List<Image> getImageFilesFromMediaStore(Context context, Uri collection) { in getImageFilesFromMediaStore() argument
43 try (Cursor cursor = context.getContentResolver().query(collection, projection, in getImageFilesFromMediaStore()
/cts/tests/tests/security/src/android/security/cts/
DCertBlocklistTest.java102 Collection<? extends Certificate> collection = factory.generateCertificates(is); in loadCertificates() local
103 X509Certificate[] certs = new X509Certificate[collection.size()]; in loadCertificates()
105 for (Certificate cert : collection) { in loadCertificates()
/cts/tests/tests/view/src/android/view/inspector/cts/
DIntFlagMappingTest.java98 private static void assertEmpty(Collection collection) { in assertEmpty() argument
99 assertTrue(collection.isEmpty()); in assertEmpty()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageStatsManagerTest.java131 Collection<CrateInfo> collection = mStorageStatsManager.queryCratesForUid(mUuid, in queryCratesForUid_noCratedFolder_shouldBeEmpty() local
134 assertThat(collection.size()).isEqualTo(0); in queryCratesForUid_noCratedFolder_shouldBeEmpty()
155 Collection<CrateInfo> collection = queryCratesForUser(true, mUuid, in queryCratesForUser_noCratedFolder_shouldBeEmpty() local
158 assertThat(collection.size()).isEqualTo(0); in queryCratesForUser_noCratedFolder_shouldBeEmpty()
164 Collection<CrateInfo> collection = mStorageStatsManager.queryCratesForPackage(mUuid, in queryCratesForPackage_noCratedFolder_shouldBeEmpty() local
167 assertThat(collection.size()).isEqualTo(0); in queryCratesForPackage_noCratedFolder_shouldBeEmpty()
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DSetQueryHelper.java133 for (H collection : collections) { in containsAll()
134 Iterator<F> iterator = collection.iterator(); in containsAll()
144 for (H collection : collections) { in doesNotContainAny()
145 Iterator<F> iterator = collection.iterator(); in doesNotContainAny()
DListQueryHelper.java115 for (H collection : collections) { in containsAll()
116 Iterator<F> iterator = collection.iterator(); in containsAll()
126 for (H collection : collections) { in doesNotContainAny()
127 Iterator<F> iterator = collection.iterator(); in doesNotContainAny()
DListQuery.java69 <H extends Collection<F>> E containsAll(H... collection); in containsAll() argument
/cts/tests/tests/util/src/android/util/cts/
DTimeUtilsTest.java240 private static <T> void assertCollectionContains(Collection<? super T> collection, T value) { in assertCollectionContains() argument
241 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/tests/tests/appenumeration/src/android/appenumeration/cts/
DAccountManagerEnumerationTest.java32 import static org.hamcrest.collection.IsMapContaining.hasEntry;
33 import static org.hamcrest.collection.IsMapWithSize.anEmptyMap;
/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()
473 private void doMediaRead(Uri collection, Callable<Uri> create) throws Exception { in doMediaRead() argument
481 try (Cursor c = mContentResolver.query(collection, in doMediaRead()
508 private void doMediaWrite(Uri collection, Callable<Uri> create) throws Exception { in doMediaWrite() argument
516 try (Cursor c = mContentResolver.query(collection, in doMediaWrite()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMixingRuleTest.java33 import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
34 import static org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder;
/cts/hostsidetests/library/
DAndroid.bp55 // These are collection of tools and libraries that are required to build
/cts/tests/security/src/android/keystore/cts/
DAuthorizationList.java534 private static String joinStrings(Collection<String> collection) { in joinStrings() argument
537 .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/activity/
DActivityMetricsLoggerTests.java81 import org.hamcrest.collection.IsIn;