/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | ArrayUtilsTest.java | 40 ArrayList<Object> collection = null; 41 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); 43 collection = new ArrayList<>(); 44 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); 46 collection = new ArrayList<>(Collections.singletonList(a)); 47 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); 48 assertEquals(1, collection.size()); 49 assertTrue(collection.contains(a)); 51 collection = new ArrayList<>(Collections.singletonList(null)); 52 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNul [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
H A D | StringUtilsTests.cpp | 25 auto collection = StringUtils::split("a b c"); local 27 EXPECT_TRUE(collection.has("a")); 28 EXPECT_TRUE(collection.has("b")); 29 EXPECT_TRUE(collection.has("c")); 30 EXPECT_FALSE(collection.has("d")); 34 auto collection = StringUtils::split("GL_ext1 GL_ext2 GL_ext3"); local 36 EXPECT_TRUE(collection.has("GL_ext1")); 37 EXPECT_FALSE(collection.has("GL_ext")); // string present, but not in list
|
/frameworks/base/core/java/android/view/autofill/ |
H A D | Helper.java | 66 * @param collection The collection. 69 public static @NonNull AutofillId[] toArray(Collection<AutofillId> collection) { argument 70 if (collection == null) { 73 final AutofillId[] array = new AutofillId[collection.size()]; 74 collection.toArray(array);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
H A D | AbstractCollection.java | 60 public boolean containsAll(Collection<?> collection) { argument 65 public boolean addAll(Collection<? extends T> collection) { argument 70 public boolean removeAll(Collection<?> collection) { argument 75 public boolean retainAll(Collection<?> collection) { argument
|
H A D | TrackedCollections.java | 40 public synchronized void track(Collection<?> collection, String tag) { argument 41 CollectionState collectionState = mCollections.get(collection); 46 mCollections.put(collection, collectionState); 52 collectionState.lastCount = collection.size(); 59 /** The number of elements in the collection at startUptime + HALFWAY_DELAY */ 61 /** The number of elements in the collection at lastUptime */ 66 * Dump statistics about the tracked collection: 72 * - the current size of the collection
|
H A D | TrackedObjects.java | 51 public static boolean isTrackedObject(Collection<?> collection) { argument 52 return collection instanceof TrackedClass;
|
/frameworks/base/media/mca/filterfw/native/base/ |
H A D | utilities.h | 63 FindOrNull(const Collection& collection, argument 65 typename Collection::const_iterator it = collection.find(key); 66 if (it == collection.end()) { 117 FindPtrOrNull(const Collection& collection, argument 119 typename Collection::const_iterator it = collection.find(key); 120 if (it == collection.end()) { 127 // Returns true if the key is in the collection. 129 bool ContainsKey(const Collection& collection, const Key& key) { argument 130 return collection.find(key) != collection 138 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | utilities.h | 75 FindOrNull(const Collection& collection, argument 77 typename Collection::const_iterator it = collection.find(key); 78 if (it == collection.end()) { 129 FindPtrOrNull(const Collection& collection, argument 131 typename Collection::const_iterator it = collection.find(key); 132 if (it == collection.end()) { 139 // Returns true if the key is in the collection. 141 bool ContainsKey(const Collection& collection, const Key& key) { argument 142 return collection.find(key) != collection 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/support/transition/src/main/java/androidx/transition/ |
H A D | TransitionValuesMaps.java | 22 import androidx.collection.ArrayMap; 23 import androidx.collection.LongSparseArray;
|
/frameworks/minikin/tests/unittest/ |
H A D | FontCollectionItemizeTest.cpp | 57 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, FontStyle style, argument 66 MinikinPaint paint(collection); 69 collection->itemize(buf, len, paint, result); 73 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, argument 75 itemize(collection, str, FontStyle(), localeList, result); 79 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, FontStyle style, argument 81 itemize(collection, str, style, "", result); 85 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, argument 87 itemize(collection, str, FontStyle(), "", result); 103 auto collection local 175 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 216 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 277 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 362 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 399 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 536 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 659 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 683 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 743 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 1263 auto collection = buildFontCollectionFromXml(kItemizeFontXml); local 1277 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); local 1357 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); local 1437 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); local 1474 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); local 1492 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); local 1567 auto collection = std::make_shared<FontCollection>(families); local [all...] |
H A D | FontCollectionTest.cpp | 80 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); local 83 EXPECT_TRUE(collection->hasVariationSelector(0x2623, 0xFE0E)); 84 EXPECT_TRUE(collection->hasVariationSelector(0x2623, 0xFE0F)); 88 EXPECT_TRUE(collection->hasVariationSelector(0x2626, 0xFE0E)); 89 EXPECT_FALSE(collection->hasVariationSelector(0x2626, 0xFE0F)); 93 EXPECT_TRUE(collection->hasVariationSelector(0x262A, 0xFE0E)); 94 EXPECT_TRUE(collection->hasVariationSelector(0x262A, 0xFE0F)); 97 EXPECT_TRUE(collection->hasVariationSelector(0x262E, 0xFE0E)); 98 EXPECT_FALSE(collection->hasVariationSelector(0x262E, 0xFE0F)); 101 EXPECT_FALSE(collection 112 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); local [all...] |
H A D | LayoutCacheTest.cpp | 123 SCOPED_TRACE("Different collection"); 134 auto collection = buildFontCollection("Ascii.ttf"); local 135 MinikinPaint paint1(collection); 139 MinikinPaint paint2(collection); 147 auto collection = buildFontCollection("Ascii.ttf"); local 148 MinikinPaint paint1(collection); 152 MinikinPaint paint2(collection); 160 auto collection = buildFontCollection("Ascii.ttf"); local 161 MinikinPaint paint1(collection); 165 MinikinPaint paint2(collection); 173 auto collection = buildFontCollection("Ascii.ttf"); local 186 auto collection = buildFontCollection("Ascii.ttf"); local 199 auto collection = buildFontCollection("Ascii.ttf"); local 212 auto collection = buildFontCollection("Ascii.ttf"); local 225 auto collection = buildFontCollection("Ascii.ttf"); local 238 auto collection = buildFontCollection("Ascii.ttf"); local [all...] |
/frameworks/support/collection/src/main/java/androidx/collection/ |
H A D | ArrayMap.java | 17 package androidx.collection; 124 * Determine if the array map contains all of the keys in the given collection. 125 * @param collection The collection whose contents are to be checked against. 127 * in <var>collection</var>, else returns false. 129 public boolean containsAll(Collection<?> collection) { argument 130 return MapCollections.containsAllHelper(this, collection); 146 * Remove all keys in the array map that exist in the given collection. 147 * @param collection The collection whos 150 removeAll(Collection<?> collection) argument 160 retainAll(Collection<?> collection) argument [all...] |
H A D | MapCollections.java | 17 package androidx.collection; 27 * Helper for writing standard Java collection interfaces to a data 172 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { argument 174 for (Map.Entry<K, V> entry : collection) { 199 public boolean containsAll(Collection<?> collection) { argument 200 Iterator<?> it = collection.iterator(); 225 public boolean removeAll(Collection<?> collection) { argument 230 public boolean retainAll(Collection<?> collection) { argument 275 public boolean addAll(Collection<? extends K> collection) { argument 290 public boolean containsAll(Collection<?> collection) { argument 315 removeAll(Collection<?> collection) argument 320 retainAll(Collection<?> collection) argument 363 addAll(Collection<? extends V> collection) argument 378 containsAll(Collection<?> collection) argument 409 removeAll(Collection<?> collection) argument 425 retainAll(Collection<?> collection) argument 456 containsAllHelper(Map<K, V> map, Collection<?> collection) argument 466 removeAllHelper(Map<K, V> map, Collection<?> collection) argument 475 retainAllHelper(Map<K, V> map, Collection<?> collection) argument [all...] |
/frameworks/base/tools/aapt2/io/ |
H A D | ZipArchive.cpp | 73 ZipFileCollection* collection) 74 : current_(collection->files_.begin()), end_(collection->files_.end()) {} 92 std::unique_ptr<ZipFileCollection> collection = local 95 int32_t result = OpenArchive(path.data(), &collection->handle_); 101 return collection; 109 result = StartIteration(collection->handle_, &cookie, nullptr, nullptr); 126 util::make_unique<ZipFile>(collection->handle_, zip_data, Source(nested_path)); 127 collection->files_by_name_[zip_entry_path] = file.get(); 128 collection 72 ZipFileCollectionIterator( ZipFileCollection* collection) argument [all...] |
H A D | FileSystem.cpp | 54 FileCollectionIterator::FileCollectionIterator(FileCollection* collection) argument 55 : current_(collection->files_.begin()), end_(collection->files_.end()) {}
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
H A D | ObservableArrayList.java | 56 public boolean addAll(Collection<? extends T> collection) { argument 58 boolean added = super.addAll(collection); 66 public boolean addAll(int index, Collection<? extends T> collection) { argument 67 boolean added = super.addAll(index, collection); 69 notifyAdd(index, collection.size());
|
H A D | ObservableArrayMap.java | 59 public boolean removeAll(Collection<?> collection) { argument 61 for (Object key : collection) { 72 public boolean retainAll(Collection<?> collection) { argument 76 if (!collection.contains(key)) {
|
/frameworks/minikin/tests/perftests/ |
H A D | FontCollection.cpp | 45 auto collection = local 56 collection->hasVariationSelector(baseCp, vsCp); 82 auto collection = local 93 MinikinPaint paint(collection); 98 collection->itemize(buffer, utf16_length, paint, &result);
|
/frameworks/base/core/java/android/util/ |
H A D | MapCollections.java | 28 * Helper for writing standard Java collection interfaces to a data 174 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { argument 176 for (Map.Entry<K, V> entry : collection) { 201 public boolean containsAll(Collection<?> collection) { argument 202 Iterator<?> it = collection.iterator(); 227 public boolean removeAll(Collection<?> collection) { argument 232 public boolean retainAll(Collection<?> collection) { argument 277 public boolean addAll(Collection<? extends K> collection) { argument 292 public boolean containsAll(Collection<?> collection) { argument 293 return containsAllHelper(colGetMap(), collection); 317 removeAll(Collection<?> collection) argument 322 retainAll(Collection<?> collection) argument 365 addAll(Collection<? extends V> collection) argument 380 containsAll(Collection<?> collection) argument 411 removeAll(Collection<?> collection) argument 427 retainAll(Collection<?> collection) argument 458 containsAllHelper(Map<K, V> map, Collection<?> collection) argument 468 removeAllHelper(Map<K, V> map, Collection<?> collection) argument 477 retainAllHelper(Map<K, V> map, Collection<?> collection) argument [all...] |
/frameworks/base/tests/net/java/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 114 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 115 collection.readLegacyNetwork(testFile); 118 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 123 collection.write(new DataOutputStream(bos)); 126 collection.reset(); 127 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 131 collection.read(new ByteArrayInputStream(bos.toByteArray())); 132 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 142 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 143 collection 542 getHistory(NetworkStatsCollection collection, SubscriptionPlan augmentPlan, long start, long end) argument 548 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, @NetworkStatsAccess.Level int accessLevel) argument 557 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument [all...] |
/frameworks/support/collection/ktx/src/main/java/androidx/collection/ |
H A D | ArraySet.kt | 19 package androidx.collection
|
H A D | ArrayMap.kt | 19 package androidx.collection
|
/frameworks/support/collection/ktx/src/test/java/androidx/collection/ |
H A D | ArraySetTest.kt | 17 package androidx.collection
|
/frameworks/support/collection/src/test/java/androidx/collection/ |
H A D | ArraySetCompatTest.java | 16 package androidx.collection;
|