/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 42 ArrayList<Object> collection = null; in testUnstableRemoveIf() local 43 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() 45 collection = new ArrayList<>(); in testUnstableRemoveIf() 46 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() 48 collection = new ArrayList<>(Collections.singletonList(a)); in testUnstableRemoveIf() 49 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() 50 assertEquals(1, collection.size()); in testUnstableRemoveIf() 51 assertTrue(collection.contains(a)); in testUnstableRemoveIf() 53 collection = new ArrayList<>(Collections.singletonList(null)); in testUnstableRemoveIf() 54 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionItemizeTest.cpp | 66 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 …]
|
D | LayoutCacheTest.cpp | 135 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local 136 MinikinPaint paint1(collection); in TEST() 140 MinikinPaint paint2(collection); in TEST() 148 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local 149 MinikinPaint paint1(collection); in TEST() 153 MinikinPaint paint2(collection); in TEST() 161 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local 162 MinikinPaint paint1(collection); in TEST() 166 MinikinPaint paint2(collection); in TEST() 174 auto collection = buildFontCollection("Ascii.ttf"); in TEST() local [all …]
|
D | FontCollectionTest.cpp | 82 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/libs/hwui/tests/unit/ |
D | StringUtilsTests.cpp | 25 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/ |
D | NotifPipeline.java | 17 package com.android.systemui.statusbar.notification.collection; 22 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeFinalizeFilterLis… 23 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeRenderListListene… 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.NotifComparator; 27 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifFilter; 28 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifPromoter; 29 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifSectioner; 30 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifStabilityM… [all …]
|
D | TargetSdkResolver.kt | 17 package com.android.systemui.statusbar.notification.collection 24 import com.android.systemui.statusbar.notification.collection.notifcollection.CommonNotifCollection 25 import com.android.systemui.statusbar.notification.collection.notifcollection.NotifCollectionListen… 33 fun initialize(collection: CommonNotifCollection) { in initialize() 34 collection.addCollectionListener(object : NotifCollectionListener { in initialize()
|
/frameworks/base/media/mca/filterfw/native/base/ |
D | utilities.h | 63 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/ |
D | utilities.h | 75 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/core/java/android/util/ |
D | MapCollections.java | 176 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() argument 178 for (Map.Entry<K, V> entry : collection) { in addAll() 203 public boolean containsAll(Collection<?> collection) { in containsAll() argument 204 Iterator<?> it = collection.iterator(); in containsAll() 229 public boolean removeAll(Collection<?> collection) { in removeAll() argument 234 public boolean retainAll(Collection<?> collection) { in retainAll() argument 279 public boolean addAll(Collection<? extends K> collection) { in addAll() argument 294 public boolean containsAll(Collection<?> collection) { in containsAll() argument 295 return containsAllHelper(colGetMap(), collection); in containsAll() 319 public boolean removeAll(Collection<?> collection) { in removeAll() argument [all …]
|
/frameworks/base/tools/aapt2/io/ |
D | ZipArchive.cpp | 80 ZipFileCollection* collection) in ZipFileCollectionIterator() argument 81 : current_(collection->files_.begin()), end_(collection->files_.end()) {} in ZipFileCollectionIterator() 100 std::unique_ptr<ZipFileCollection> collection = in Create() local 103 int32_t result = OpenArchive(path.data(), &collection->handle_); in Create() 109 return collection; in Create() 117 result = StartIteration(collection->handle_, &cookie); in Create() 134 std::unique_ptr<IFile> file = util::make_unique<ZipFile>(collection->handle_, zip_data, in Create() 136 collection->files_by_name_[zip_entry_path] = file.get(); in Create() 137 collection->files_.push_back(std::move(file)); in Create() 145 return collection; in Create()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | ConversationCoordinator.kt | 17 package com.android.systemui.statusbar.notification.collection.coordinator 20 import com.android.systemui.statusbar.notification.collection.ListEntry 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.listbuilder.pluggable.NotifPromoter 24 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifSectioner 25 import com.android.systemui.statusbar.notification.collection.render.NodeController
|
D | HideLocallyDismissedNotifsCoordinator.java | 17 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.listbuilder.pluggable.NotifFilter;
|
D | RankingCoordinator.java | 17 package com.android.systemui.statusbar.notification.collection.coordinator; 23 import com.android.systemui.statusbar.notification.collection.ListEntry; 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.listbuilder.pluggable.NotifFilter; 27 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifSectioner; 28 import com.android.systemui.statusbar.notification.collection.provider.HighPriorityProvider; 29 import com.android.systemui.statusbar.notification.collection.render.NodeController;
|
D | AppOpsCoordinator.java | 17 package com.android.systemui.statusbar.notification.collection.coordinator; 28 import com.android.systemui.statusbar.notification.collection.ListEntry; 29 import com.android.systemui.statusbar.notification.collection.NotifPipeline; 30 import com.android.systemui.statusbar.notification.collection.NotificationEntry; 31 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifFilter; 32 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifSectioner;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/init/ |
D | NotifPipelineInitializer.java | 17 package com.android.systemui.statusbar.notification.collection.init; 26 import com.android.systemui.statusbar.notification.collection.NotifCollection; 27 import com.android.systemui.statusbar.notification.collection.NotifInflaterImpl; 28 import com.android.systemui.statusbar.notification.collection.NotifPipeline; 29 import com.android.systemui.statusbar.notification.collection.ShadeListBuilder; 30 import com.android.systemui.statusbar.notification.collection.coalescer.GroupCoalescer; 31 import com.android.systemui.statusbar.notification.collection.coordinator.NotifCoordinators; 32 import com.android.systemui.statusbar.notification.collection.inflation.NotificationRowBinderImpl; 33 import com.android.systemui.statusbar.notification.collection.render.ShadeViewManagerFactory;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/pluggable/ |
D | NotifSectioner.java | 17 package com.android.systemui.statusbar.notification.collection.listbuilder.pluggable; 21 import com.android.systemui.statusbar.notification.collection.ListEntry; 22 import com.android.systemui.statusbar.notification.collection.ShadeListBuilder; 23 import com.android.systemui.statusbar.notification.collection.render.NodeController; 24 import com.android.systemui.statusbar.notification.collection.render.NodeSpec;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ |
D | GroupExpansionManagerImpl.java | 17 package com.android.systemui.statusbar.notification.collection.render; 19 import com.android.systemui.statusbar.notification.collection.GroupEntry; 20 import com.android.systemui.statusbar.notification.collection.ListEntry; 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.Coordinator; 24 import com.android.systemui.statusbar.notification.collection.listbuilder.OnBeforeRenderListListene…
|
D | GroupMembershipManagerImpl.java | 17 package com.android.systemui.statusbar.notification.collection.render; 19 import static com.android.systemui.statusbar.notification.collection.GroupEntry.ROOT_ENTRY; 23 import com.android.systemui.statusbar.notification.collection.GroupEntry; 24 import com.android.systemui.statusbar.notification.collection.ListEntry; 25 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/dagger/ |
D | NotificationsModule.java | 44 import com.android.systemui.statusbar.notification.collection.NotifCollection; 45 import com.android.systemui.statusbar.notification.collection.NotifInflaterImpl; 46 import com.android.systemui.statusbar.notification.collection.NotifPipeline; 47 import com.android.systemui.statusbar.notification.collection.coordinator.VisualStabilityCoordinato… 48 import com.android.systemui.statusbar.notification.collection.inflation.NotifInflater; 49 import com.android.systemui.statusbar.notification.collection.inflation.NotificationRowBinder; 50 import com.android.systemui.statusbar.notification.collection.inflation.OnUserInteractionCallbackIm… 51 import com.android.systemui.statusbar.notification.collection.legacy.NotificationGroupManagerLegacy; 52 import com.android.systemui.statusbar.notification.collection.legacy.OnUserInteractionCallbackImplL… 53 import com.android.systemui.statusbar.notification.collection.legacy.VisualStabilityManager; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/ |
D | OnBeforeTransformGroupsListener.java | 17 package com.android.systemui.statusbar.notification.collection.listbuilder; 19 import com.android.systemui.statusbar.notification.collection.ListEntry; 20 import com.android.systemui.statusbar.notification.collection.NotifPipeline; 21 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifPromoter;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | ConversationCoordinatorTest.kt | 17 package com.android.systemui.statusbar.notification.collection.coordinator 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.pluggable.NotifPromoter 28 import com.android.systemui.statusbar.notification.collection.listbuilder.pluggable.NotifSectioner 29 import com.android.systemui.statusbar.notification.collection.render.NodeController
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotifRemoteViewCacheImplTest.java | 35 import com.android.systemui.statusbar.notification.collection.NotificationEntry; 36 import com.android.systemui.statusbar.notification.collection.NotificationEntryBuilder; 37 import com.android.systemui.statusbar.notification.collection.notifcollection.CommonNotifCollection; 38 import com.android.systemui.statusbar.notification.collection.notifcollection.NotifCollectionListen… 61 CommonNotifCollection collection = mock(CommonNotifCollection.class); in setUp() local 62 mNotifRemoteViewCache = new NotifRemoteViewCacheImpl(collection); in setUp() 65 verify(collection).addCollectionListener(entryListenerCaptor.capture()); in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/ |
D | NotifLifetimeExtender.java | 17 package com.android.systemui.statusbar.notification.collection.notifcollection; 19 import com.android.systemui.statusbar.notification.collection.NotifCollection; 20 import com.android.systemui.statusbar.notification.collection.NotifCollection.CancellationReason; 21 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/ |
D | OnUserInteractionCallbackImpl.java | 17 package com.android.systemui.statusbar.notification.collection.inflation; 28 import com.android.systemui.statusbar.notification.collection.NotifCollection; 29 import com.android.systemui.statusbar.notification.collection.NotifPipeline; 30 import com.android.systemui.statusbar.notification.collection.NotificationEntry; 31 import com.android.systemui.statusbar.notification.collection.coordinator.VisualStabilityCoordinato… 32 import com.android.systemui.statusbar.notification.collection.notifcollection.DismissedByUserStats; 33 import com.android.systemui.statusbar.notification.collection.render.GroupMembershipManager;
|