Searched defs:collection (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
H A DStringUtilsTests.cpp25 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/av/services/audiopolicy/common/managerdefinitions/src/
H A DTypeConverter.cpp261 typename Traits::Collection &collection,
269 collection.add(value);
260 collectionFromString(const std::string &str, typename Traits::Collection &collection, const char *del) argument
/frameworks/base/tools/aapt2/link/
H A DTableMerger_test.cpp62 io::FileCollection collection; local
65 ASSERT_TRUE(merger.mergeAndMangle({}, u"com.app.b", tableB.get(), &collection));
129 io::FileCollection collection; local
130 collection.insertFile("res/xml/file.xml");
133 ASSERT_TRUE(merger.mergeAndMangle({}, u"com.app.b", tableB.get(), &collection));
H A DTableMerger.cpp38 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/minikin/tests/
H A DFontTestUtils.cpp75 android::FontCollection* collection = new android::FontCollection(families); local
76 collection->Ref();
80 return collection;
H A DFontCollectionItemizeTest.cpp59 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...]
/frameworks/base/tools/aapt2/io/
H A DFileSystem.cpp47 FileCollectionIterator::FileCollectionIterator(FileCollection* collection) : argument
48 mCurrent(collection->mFiles.begin()), mEnd(collection->mFiles.end()) {
H A DZipArchive.cpp59 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...]
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/
H A DGenericAdapter.java68 private static <T> void setText(TextView view, Collection<T> collection) { argument
71 for (T val : collection) {
/frameworks/minikin/sample/
H A Dexample.cpp83 FontCollection *collection = makeFontCollection(); local
85 layout.setFontCollection(collection);
H A Dexample_skia.cpp115 FontCollection *collection = makeFontCollection(); local
117 layout.setFontCollection(collection);
/frameworks/support/v4/java/android/support/v4/util/
H A DArrayMap.java124 * 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...]
/frameworks/base/media/mca/filterfw/native/base/
H A Dutilities.h75 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 Dutilities.h75 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/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsCollectionTest.java72 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/data-binding/extensions/library/src/main/java/android/databinding/
H A DObservableArrayList.java56 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 DObservableArrayMap.java59 public boolean removeAll(Collection<?> collection) { argument
61 for (Object key : collection) {
72 public boolean retainAll(Collection<?> collection) { argument
76 if (!collection.contains(key)) {
/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DEngine.cpp119 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/base/core/java/android/hardware/input/
H A DKeyboardLayout.java52 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DAssertHelpers.java217 private static <T> String formatCollection(Collection<T> collection, int maxLen) { argument
222 for (T elem : collection) {
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DTypeConverter.h86 static void collectionFromString(const std::string &str, typename Traits::Collection &collection, argument
93 collection.add(value);
108 typename Traits::Collection &collection,
/frameworks/base/core/java/android/util/
H A DArrayMap.java750 // specialized collection APIs.
806 * Determine if the array map contains all of the keys in the given collection.
807 * @param collection The collection whose contents are to be checked against.
809 * in <var>collection</var>, else returns false.
811 public boolean containsAll(Collection<?> collection) { argument
812 return MapCollections.containsAllHelper(this, collection);
828 * Remove all keys in the array map that exist in the given collection.
829 * @param collection The collection whos
832 removeAll(Collection<?> collection) argument
842 retainAll(Collection<?> collection) argument
[all...]
H A DArraySet.java518 // collection pass into a new array. This avoids binary searches and excessive memcpy.
641 // specialized collection APIs.
709 * Determine if the array set contains all of the values in the given collection.
710 * @param collection The collection whose contents are to be checked against.
712 * in <var>collection</var>, else returns false.
715 public boolean containsAll(Collection<?> collection) { argument
716 Iterator<?> it = collection.iterator();
726 * Perform an {@link #add(Object)} of all values in <var>collection</var>
727 * @param collection Th
730 addAll(Collection<? extends E> collection) argument
745 removeAll(Collection<?> collection) argument
760 retainAll(Collection<?> collection) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DArrayAdapter.java206 * @param collection The Collection to add at the end of the array.
210 * collection prevents it from being added to this list
211 * @throws NullPointerException if the specified collection contains one
213 * elements, or if the specified collection is null
215 * specified collection prevents it from being added to this list
217 public void addAll(@NonNull Collection<? extends T> collection) { argument
220 mOriginalValues.addAll(collection);
222 mObjects.addAll(collection);
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java500 * elements in the collection. This should only be used if order is not important.
501 * @param collection The ArrayList from which to remove elements.
505 public static <T> int unstableRemoveIf(@Nullable ArrayList<T> collection, argument
507 if (collection == null) {
511 final int size = collection.size();
516 while (leftIdx < size && !predicate.test(collection.get(leftIdx))) {
521 while (rightIdx > leftIdx && predicate.test(collection.get(rightIdx))) {
530 Collections.swap(collection, leftIdx, rightIdx);
537 collection.remove(i);

Completed in 1375 milliseconds

12