Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java324 ArrayList<Object> collection = null; in testUnstableRemoveIf() local
325 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
327 collection = new ArrayList<>(); in testUnstableRemoveIf()
328 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
330 collection = new ArrayList<>(Collections.singletonList(a)); in testUnstableRemoveIf()
331 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
332 assertEquals(1, collection.size()); in testUnstableRemoveIf()
333 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
335 collection = new ArrayList<>(Collections.singletonList(null)); in testUnstableRemoveIf()
336 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
[all …]
/frameworks/minikin/tests/unittest/
DFontCollectionItemizeTest.cpp66 std::vector<Run> itemize(const std::shared_ptr<FontCollection>& collection, const char* str, in itemize() argument
74 auto result = collection->itemize(U16StringPiece(buf, len), style, localeListId, in itemize()
79 auto resultWithRunMax = collection->itemize(U16StringPiece(buf, len), style, localeListId, in itemize()
91 {collection->getBestFont(U16StringPiece(buf, len), r, style), r.start, r.end}); in itemize()
97 std::vector<Run> itemize(const std::shared_ptr<FontCollection>& collection, const char* str, in itemize() argument
99 return itemize(collection, str, FontStyle(), localeList); in itemize()
103 std::vector<Run> itemize(const std::shared_ptr<FontCollection>& collection, const char* str, in itemize() argument
105 return itemize(collection, str, style, ""); in itemize()
109 std::vector<Run> itemize(const std::shared_ptr<FontCollection>& collection, const char* str) { in itemize() argument
110 return itemize(collection, str, FontStyle(), ""); in itemize()
[all …]
DLayoutCacheTest.cpp143 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local
144 MinikinPaint paint1(collection); in TEST()
148 MinikinPaint paint2(collection); in TEST()
156 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local
157 MinikinPaint paint1(collection); in TEST()
161 MinikinPaint paint2(collection); in TEST()
169 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local
170 MinikinPaint paint1(collection); in TEST()
174 MinikinPaint paint2(collection); in TEST()
182 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local
[all …]
DFontCollectionTest.cpp82 auto collection = buildFontCollectionFromXml(kEmojiXmlFile); in TEST() local
85 EXPECT_TRUE(collection->hasVariationSelector(0x2623, 0xFE0E)); in TEST()
86 EXPECT_TRUE(collection->hasVariationSelector(0x2623, 0xFE0F)); in TEST()
90 EXPECT_TRUE(collection->hasVariationSelector(0x2626, 0xFE0E)); in TEST()
91 EXPECT_FALSE(collection->hasVariationSelector(0x2626, 0xFE0F)); in TEST()
95 EXPECT_TRUE(collection->hasVariationSelector(0x262A, 0xFE0E)); in TEST()
96 EXPECT_TRUE(collection->hasVariationSelector(0x262A, 0xFE0F)); in TEST()
99 EXPECT_TRUE(collection->hasVariationSelector(0x262E, 0xFE0E)); in TEST()
100 EXPECT_FALSE(collection->hasVariationSelector(0x262E, 0xFE0F)); in TEST()
103 EXPECT_FALSE(collection->hasVariationSelector(0x1F3FD, 0xFE0E)); in TEST()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifPipeline.kt16 package com.android.systemui.statusbar.notification.collection
19 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderEntryListener
20 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderGroupListener
21 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderListListener
22 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeFinalizeFilterLis…
23 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeRenderListListener
24 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeSortListener
25 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeTransformGroupsLi…
26 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.Invalidator
27 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifComparator
[all …]
/frameworks/base/libs/hwui/tests/unit/
DStringUtilsTests.cpp25 auto collection = StringUtils::split("a b c"); in TEST() local
27 EXPECT_TRUE(collection.has("a")); in TEST()
28 EXPECT_TRUE(collection.has("b")); in TEST()
29 EXPECT_TRUE(collection.has("c")); in TEST()
30 EXPECT_FALSE(collection.has("d")); in TEST()
34 auto collection = StringUtils::split("GL_ext1 GL_ext2 GL_ext3"); in TEST() local
36 EXPECT_TRUE(collection.has("GL_ext1")); in TEST()
37 EXPECT_FALSE(collection.has("GL_ext")); // string present, but not in list in TEST()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDataStoreCoordinator.kt17 package com.android.systemui.statusbar.notification.collection.coordinator in <lambda>()
19 import com.android.systemui.statusbar.notification.collection.GroupEntry in <lambda>()
20 import com.android.systemui.statusbar.notification.collection.ListEntry in <lambda>()
21 import com.android.systemui.statusbar.notification.collection.NotifLiveDataStoreImpl in <lambda>()
22 import com.android.systemui.statusbar.notification.collection.NotifPipeline in <lambda>()
23 import com.android.systemui.statusbar.notification.collection.NotificationEntry in <lambda>()
24 import com.android.systemui.statusbar.notification.collection.PipelineDumper in <lambda>()
25 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope in <lambda>()
26 import com.android.systemui.statusbar.notification.collection.render.requireSummary in <lambda>()
DHideLocallyDismissedNotifsCoordinator.java17 package com.android.systemui.statusbar.notification.collection.coordinator;
19 import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState…
21 import com.android.systemui.statusbar.notification.collection.NotifPipeline;
22 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
23 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope;
24 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifFilter;
DDebugModeCoordinator.kt17 package com.android.systemui.statusbar.notification.collection.coordinator
19 import com.android.systemui.statusbar.notification.collection.NotifPipeline
20 import com.android.systemui.statusbar.notification.collection.NotificationEntry
21 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope
22 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifFilter
23 import com.android.systemui.statusbar.notification.collection.provider.DebugModeFilterProvider
DRowAlertTimeCoordinator.kt16 package com.android.systemui.statusbar.notification.collection.coordinator in <lambda>()
19 import com.android.systemui.statusbar.notification.collection.GroupEntry in <lambda>()
20 import com.android.systemui.statusbar.notification.collection.ListEntry in <lambda>()
21 import com.android.systemui.statusbar.notification.collection.NotifPipeline in <lambda>()
22 import com.android.systemui.statusbar.notification.collection.NotificationEntry in <lambda>()
23 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope in <lambda>()
24 import com.android.systemui.statusbar.notification.collection.render.NotifRowController in <lambda>()
DRowAppearanceCoordinator.kt17 package com.android.systemui.statusbar.notification.collection.coordinator in <lambda>()
22 import com.android.systemui.statusbar.notification.collection.ListEntry in <lambda>()
23 import com.android.systemui.statusbar.notification.collection.NotifPipeline in <lambda>()
24 import com.android.systemui.statusbar.notification.collection.NotificationEntry in <lambda>()
25 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope in <lambda>()
26 import com.android.systemui.statusbar.notification.collection.provider.SectionStyleProvider in <lambda>()
27 import com.android.systemui.statusbar.notification.collection.render.NotifRowController in <lambda>()
DConversationCoordinator.kt17 package com.android.systemui.statusbar.notification.collection.coordinator in <lambda>()
19 import com.android.systemui.statusbar.notification.collection.ListEntry in <lambda>()
20 import com.android.systemui.statusbar.notification.collection.NotifPipeline in <lambda>()
21 import com.android.systemui.statusbar.notification.collection.NotificationEntry in <lambda>()
22 import com.android.systemui.statusbar.notification.collection.SortBySectionTimeFlag in <lambda>()
23 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope in <lambda>()
24 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeRenderListListener in <lambda>()
25 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifComparator in <lambda>()
26 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifPromoter in <lambda>()
27 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifSectioner in <lambda>()
[all …]
DGroupCountCoordinator.kt17 package com.android.systemui.statusbar.notification.collection.coordinator in <lambda>()
20 import com.android.systemui.statusbar.notification.collection.GroupEntry in <lambda>()
21 import com.android.systemui.statusbar.notification.collection.ListEntry in <lambda>()
22 import com.android.systemui.statusbar.notification.collection.NotifPipeline in <lambda>()
23 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope in <lambda>()
24 import com.android.systemui.statusbar.notification.collection.render.NotifGroupController in <lambda>()
DGutsCoordinator.kt16 package com.android.systemui.statusbar.notification.collection.coordinator
21 import com.android.systemui.statusbar.notification.collection.ListEntry
22 import com.android.systemui.statusbar.notification.collection.NotifPipeline
23 import com.android.systemui.statusbar.notification.collection.NotificationEntry
24 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorScope
25 import com.android.systemui.statusbar.notification.collection.notifcollection.NotifLifetimeExtender
26 import com.android.systemui.statusbar.notification.collection.notifcollection.NotifLifetimeExtender…
27 import com.android.systemui.statusbar.notification.collection.render.NotifGutsViewListener
28 import com.android.systemui.statusbar.notification.collection.render.NotifGutsViewManager
/frameworks/base/media/mca/filterfw/native/base/
Dutilities.h63 FindOrNull(const Collection& collection, in FindOrNull() argument
65 typename Collection::const_iterator it = collection.find(key); in FindOrNull()
66 if (it == collection.end()) { in FindOrNull()
117 FindPtrOrNull(const Collection& collection, in FindPtrOrNull() argument
119 typename Collection::const_iterator it = collection.find(key); in FindPtrOrNull()
120 if (it == collection.end()) { in FindPtrOrNull()
129 bool ContainsKey(const Collection& collection, const Key& key) { in ContainsKey() argument
130 return collection.find(key) != collection.end(); in ContainsKey()
138 bool InsertIfNotPresent(Collection * const collection, in InsertIfNotPresent() argument
141 collection->insert(typename Collection::value_type(key, value)); in InsertIfNotPresent()
/frameworks/base/media/mca/filterpacks/native/base/
Dutilities.h75 FindOrNull(const Collection& collection, in FindOrNull() argument
77 typename Collection::const_iterator it = collection.find(key); in FindOrNull()
78 if (it == collection.end()) { in FindOrNull()
129 FindPtrOrNull(const Collection& collection, in FindPtrOrNull() argument
131 typename Collection::const_iterator it = collection.find(key); in FindPtrOrNull()
132 if (it == collection.end()) { in FindPtrOrNull()
141 bool ContainsKey(const Collection& collection, const Key& key) { in ContainsKey() argument
142 return collection.find(key) != collection.end(); in ContainsKey()
150 bool InsertIfNotPresent(Collection * const collection, in InsertIfNotPresent() argument
153 collection->insert(typename Collection::value_type(key, value)); in InsertIfNotPresent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/init/
DNotifPipelineInitializer.java17 package com.android.systemui.statusbar.notification.collection.init;
27 import com.android.systemui.statusbar.notification.collection.NotifCollection;
28 import com.android.systemui.statusbar.notification.collection.NotifInflaterImpl;
29 import com.android.systemui.statusbar.notification.collection.NotifPipeline;
30 import com.android.systemui.statusbar.notification.collection.PipelineDumpable;
31 import com.android.systemui.statusbar.notification.collection.PipelineDumper;
32 import com.android.systemui.statusbar.notification.collection.ShadeListBuilder;
33 import com.android.systemui.statusbar.notification.collection.coalescer.GroupCoalescer;
34 import com.android.systemui.statusbar.notification.collection.coordinator.NotifCoordinators;
35 import com.android.systemui.statusbar.notification.collection.inflation.NotificationRowBinderImpl;
[all …]
/frameworks/base/core/java/android/util/
DMapCollections.java177 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() argument
179 for (Map.Entry<K, V> entry : collection) { in addAll()
204 public boolean containsAll(Collection<?> collection) { in containsAll() argument
205 Iterator<?> it = collection.iterator(); in containsAll()
230 public boolean removeAll(Collection<?> collection) { in removeAll() argument
235 public boolean retainAll(Collection<?> collection) { in retainAll() argument
280 public boolean addAll(Collection<? extends K> collection) { in addAll() argument
295 public boolean containsAll(Collection<?> collection) { in containsAll() argument
296 return containsAllHelper(colGetMap(), collection); in containsAll()
320 public boolean removeAll(Collection<?> collection) { in removeAll() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/dagger/
DNotificationsModule.java36 import com.android.systemui.statusbar.notification.collection.NotifInflaterImpl;
37 import com.android.systemui.statusbar.notification.collection.NotifLiveDataStore;
38 import com.android.systemui.statusbar.notification.collection.NotifLiveDataStoreImpl;
39 import com.android.systemui.statusbar.notification.collection.NotifPipeline;
40 import com.android.systemui.statusbar.notification.collection.NotifPipelineChoreographerModule;
41 import com.android.systemui.statusbar.notification.collection.coordinator.ShadeEventCoordinator;
42 import com.android.systemui.statusbar.notification.collection.coordinator.dagger.CoordinatorsModule;
43 import com.android.systemui.statusbar.notification.collection.inflation.BindEventManager;
44 import com.android.systemui.statusbar.notification.collection.inflation.BindEventManagerImpl;
45 import com.android.systemui.statusbar.notification.collection.inflation.NotifInflater;
[all …]
/frameworks/base/tools/aapt2/io/
DZipArchive.cpp87 ZipFileCollection* collection) in ZipFileCollectionIterator() argument
88 : current_(collection->files_.begin()), end_(collection->files_.end()) {} in ZipFileCollectionIterator()
107 std::unique_ptr<ZipFileCollection> collection = in Create() local
110 int32_t result = OpenArchive(path.data(), &collection->handle_); in Create()
116 return collection; in Create()
124 result = StartIteration(collection->handle_, &cookie); in Create()
141 std::unique_ptr<IFile> file = util::make_unique<ZipFile>(collection->handle_, zip_data, in Create()
143 collection->files_by_name_[zip_entry_path] = file.get(); in Create()
144 collection->files_.push_back(std::move(file)); in Create()
152 return collection; in Create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/
DRenderStageManager.kt17 package com.android.systemui.statusbar.notification.collection.render in <lambda>()
20 import com.android.systemui.statusbar.notification.collection.GroupEntry in <lambda>()
21 import com.android.systemui.statusbar.notification.collection.ListEntry in <lambda>()
22 import com.android.systemui.statusbar.notification.collection.NotificationEntry in <lambda>()
23 import com.android.systemui.statusbar.notification.collection.PipelineDumpable in <lambda>()
24 import com.android.systemui.statusbar.notification.collection.PipelineDumper in <lambda>()
25 import com.android.systemui.statusbar.notification.collection.ShadeListBuilder in <lambda>()
26 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderEntryListener in <lambda>()
27 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderGroupListener in <lambda>()
28 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderListListener in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DNotifSection.kt17 package com.android.systemui.statusbar.notification.collection.listbuilder
19 import com.android.systemui.statusbar.notification.collection.PipelineDumpable
20 import com.android.systemui.statusbar.notification.collection.PipelineDumper
21 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifComparator
22 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifSectioner
23 import com.android.systemui.statusbar.notification.collection.render.NodeController
DShadeListBuilderLogger.kt17 package com.android.systemui.statusbar.notification.collection.listbuilder
25 import com.android.systemui.statusbar.notification.collection.GroupEntry
26 import com.android.systemui.statusbar.notification.collection.ListEntry
27 import com.android.systemui.statusbar.notification.collection.NotificationEntry
28 import com.android.systemui.statusbar.notification.collection.listbuilder.PipelineState.StateName
29 import com.android.systemui.statusbar.notification.collection.listbuilder.PipelineState.getStateName
30 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.Invalidator
31 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifComparator
32 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifFilter
33 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifPromoter
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DGroupCountCoordinatorTest.kt16 package com.android.systemui.statusbar.notification.collection.coordinator
22 import com.android.systemui.statusbar.notification.collection.GroupEntryBuilder
23 import com.android.systemui.statusbar.notification.collection.NotifPipeline
24 import com.android.systemui.statusbar.notification.collection.NotificationEntry
25 import com.android.systemui.statusbar.notification.collection.NotificationEntryBuilder
26 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderGroupListener
27 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeFinalizeFilterLis…
28 import com.android.systemui.statusbar.notification.collection.render.NotifGroupController
DDataStoreCoordinatorTest.kt16 package com.android.systemui.statusbar.notification.collection.coordinator
22 import com.android.systemui.statusbar.notification.collection.GroupEntryBuilder
23 import com.android.systemui.statusbar.notification.collection.NotifLiveDataStoreImpl
24 import com.android.systemui.statusbar.notification.collection.NotifPipeline
25 import com.android.systemui.statusbar.notification.collection.NotificationEntry
26 import com.android.systemui.statusbar.notification.collection.NotificationEntryBuilder
27 import com.android.systemui.statusbar.notification.collection.listbuilder.NotifSection
28 import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderListListener
29 import com.android.systemui.statusbar.notification.collection.render.NotifStackController

12345678910>>...22