/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/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 72 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 73 collection.readLegacyNetwork(testFile); 76 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 81 collection.write(new DataOutputStream(bos)); 84 collection.reset(); 85 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 89 collection.read(new ByteArrayInputStream(bos.toByteArray())); 90 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 98 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 99 collection 238 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, @NetworkStatsAccess.Level int accessLevel) argument 247 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument [all...] |
/frameworks/minikin/tests/ |
H A D | FontCollectionTest.cpp | 82 MinikinAutoUnref<FontCollection> collection(getFontCollection(kTestFontDir, kEmojiXmlFile)); 85 EXPECT_TRUE(collection->hasVariationSelector(0x2623, 0xFE0E)); 86 EXPECT_TRUE(collection->hasVariationSelector(0x2623, 0xFE0F)); 90 EXPECT_TRUE(collection->hasVariationSelector(0x2626, 0xFE0E)); 91 EXPECT_FALSE(collection->hasVariationSelector(0x2626, 0xFE0F)); 95 EXPECT_TRUE(collection->hasVariationSelector(0x262A, 0xFE0E)); 96 EXPECT_TRUE(collection->hasVariationSelector(0x262A, 0xFE0F)); 99 EXPECT_TRUE(collection->hasVariationSelector(0x262E, 0xFE0E)); 100 EXPECT_FALSE(collection->hasVariationSelector(0x262E, 0xFE0F)); 103 EXPECT_FALSE(collection [all...] |
H A D | FontCollectionItemizeTest.cpp | 59 void itemize(FontCollection* collection, const char* str, FontStyle style, argument 68 collection->itemize(buf, len, style, result); 84 MinikinAutoUnref<FontCollection> collection(getFontCollection(kTestFontDir, kItemizeFontXml)); 92 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kRegularStyle, &runs); 100 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kItalicStyle, &runs); 108 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kBoldStyle, &runs); 116 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kBoldItalicStyle, &runs); 126 itemize(collection.get(), "'a' ',' '-' 'd' '!'", kRegularStyle, &runs); 134 itemize(collection.get(), "'a' ',' '-' 'd' '!'", kRegularStyle, &runs); 144 itemize(collection [all...] |
H A D | FontTestUtils.cpp | 75 android::FontCollection* collection = new android::FontCollection(families); local 76 collection->Ref(); 80 return collection;
|
/frameworks/base/media/mca/filterfw/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/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/v4/java/android/support/v4/util/ |
H A D | ArrayMap.java | 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 whose contents are to be used to remove keys. 150 public boolean removeAll(Collection<?> collection) { argument 160 retainAll(Collection<?> collection) argument [all...] |
H A D | MapCollections.java | 26 * Helper for writing standard Java collection interfaces to a data 170 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { argument 172 for (Map.Entry<K, V> entry : collection) { 197 public boolean containsAll(Collection<?> collection) { argument 198 Iterator<?> it = collection.iterator(); 223 public boolean removeAll(Collection<?> collection) { argument 228 public boolean retainAll(Collection<?> collection) { argument 273 public boolean addAll(Collection<? extends K> collection) { argument 288 public boolean containsAll(Collection<?> collection) { argument 289 return containsAllHelper(colGetMap(), collection); 313 removeAll(Collection<?> collection) argument 318 retainAll(Collection<?> collection) argument 361 addAll(Collection<? extends V> collection) argument 376 containsAll(Collection<?> collection) argument 407 removeAll(Collection<?> collection) argument 423 retainAll(Collection<?> collection) argument 454 containsAllHelper(Map<K, V> map, Collection<?> collection) argument 464 removeAllHelper(Map<K, V> map, Collection<?> collection) argument 473 retainAllHelper(Map<K, V> map, Collection<?> collection) argument [all...] |
/frameworks/base/tools/aapt2/link/ |
H A D | TableMerger.h | 71 io::IFileCollection* collection = nullptr); 78 io::IFileCollection* collection = nullptr); 85 io::IFileCollection* collection); 111 bool mergeImpl(const Source& src, ResourceTable* srcTable, io::IFileCollection* collection,
|
H A D | TableMerger.cpp | 38 io::IFileCollection* collection) { 39 return mergeImpl(src, table, collection, false /* overlay */, true /* allow new */); 43 io::IFileCollection* collection) { 44 return mergeImpl(src, table, collection, true /* overlay */, mOptions.autoAddOverlay); 51 io::IFileCollection* collection, 66 if (collection) { 70 io::IFile* f = collection->findFile(util::utf16ToUtf8(*oldFile->path)); 99 ResourceTable* table, io::IFileCollection* collection) { 115 io::IFile* f = collection->findFile(util::utf16ToUtf8(*oldFile->path)); 37 merge(const Source& src, ResourceTable* table, io::IFileCollection* collection) argument 42 mergeOverlay(const Source& src, ResourceTable* table, io::IFileCollection* collection) argument 50 mergeImpl(const Source& src, ResourceTable* table, io::IFileCollection* collection, bool overlay, bool allowNew) argument 98 mergeAndMangle(const Source& src, const StringPiece16& packageName, ResourceTable* table, io::IFileCollection* collection) argument
|
/frameworks/base/tools/aapt2/io/ |
H A D | ZipArchive.cpp | 59 ZipFileCollectionIterator::ZipFileCollectionIterator(ZipFileCollection* collection) : argument 60 mCurrent(collection->mFiles.begin()), mEnd(collection->mFiles.end()) { 80 std::unique_ptr<ZipFileCollection> collection = std::unique_ptr<ZipFileCollection>( local 83 int32_t result = OpenArchive(path.data(), &collection->mHandle); 88 return collection; 96 result = StartIteration(collection->mHandle, &cookie, nullptr, nullptr); 111 collection->mFiles[zipEntryPath] = util::make_unique<ZipFile>(collection->mHandle, 120 return collection; [all...] |
H A D | FileSystem.cpp | 47 FileCollectionIterator::FileCollectionIterator(FileCollection* collection) : argument 48 mCurrent(collection->mFiles.begin()), mEnd(collection->mFiles.end()) {
|
H A D | FileSystem.h | 45 FileCollectionIterator(FileCollection* collection);
|
/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/base/core/java/android/util/ |
H A D | MapCollections.java | 28 * 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 291 return containsAllHelper(colGetMap(), collection); 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/minikin/include/minikin/ |
H A D | Layout.h | 91 void setFontCollection(const FontCollection* collection); 98 const FontCollection* collection, float* advances); 140 const FontCollection* collection, Layout* layout, float* advances); 144 bool isRtl, LayoutContext* ctx, size_t bufStart, const FontCollection* collection,
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsRecorder.java | 353 public CombiningRewriter(NetworkStatsCollection collection) { argument 354 mCollection = checkNotNull(collection, "missing NetworkStatsCollection"); 421 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); 422 collection.readLegacyNetwork(file); 424 final long startMillis = collection.getStartMillis(); 425 final long endMillis = collection.getEndMillis(); 427 if (!collection.isEmpty()) { 430 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis); 441 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); 442 collection [all...] |
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
H A D | Engine.cpp | 119 const Collection<Key> collection = getCollection<Key>(); local 120 return collection.get(key); 126 Collection<Key> &collection = getCollection<Key>(); local 127 return collection.add(name, key); 135 ALOGE("%s: Element not found within collection", __FUNCTION__); 195 ALOGE("%s: Element not found within collection", __FUNCTION__);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
H A D | GenericAdapter.java | 68 private static <T> void setText(TextView view, Collection<T> collection) { argument 71 for (T val : collection) {
|
/frameworks/minikin/sample/ |
H A D | example.cpp | 83 FontCollection *collection = makeFontCollection(); local 85 layout.setFontCollection(collection);
|
/frameworks/base/core/java/android/hardware/input/ |
H A D | KeyboardLayout.java | 52 public KeyboardLayout(String descriptor, String label, String collection, int priority, argument 56 mCollection = collection; 93 * Gets the name of the collection to which the keyboard layout belongs. This is 95 * @return The keyboard layout collection name.
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | UsbHid.java | 66 byte[] collection = new byte[] { 92 buffer.put(collection);
|