/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 40 ArrayList<Object> collection = null; in testUnstableRemoveIf() local 41 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() 43 collection = new ArrayList<>(); in testUnstableRemoveIf() 44 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() 46 collection = new ArrayList<>(Collections.singletonList(a)); in testUnstableRemoveIf() 47 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() 48 assertEquals(1, collection.size()); in testUnstableRemoveIf() 49 assertTrue(collection.contains(a)); in testUnstableRemoveIf() 51 collection = new ArrayList<>(Collections.singletonList(null)); in testUnstableRemoveIf() 52 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 72 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyNetwork() local 73 collection.readLegacyNetwork(testFile); in testReadLegacyNetwork() 76 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), in testReadLegacyNetwork() 81 collection.write(new DataOutputStream(bos)); in testReadLegacyNetwork() 84 collection.reset(); in testReadLegacyNetwork() 85 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), in testReadLegacyNetwork() 89 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork() 90 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), in testReadLegacyNetwork() 98 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUid() local 99 collection.readLegacyUid(testFile, false); in testReadLegacyUid() [all …]
|
/frameworks/minikin/tests/ |
D | FontCollectionItemizeTest.cpp | 59 void itemize(FontCollection* collection, const char* str, FontStyle style, in itemize() argument 68 collection->itemize(buf, len, style, result); in itemize() 84 MinikinAutoUnref<FontCollection> collection(getFontCollection(kTestFontDir, kItemizeFontXml)); in TEST_F() local 92 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kRegularStyle, &runs); in TEST_F() 100 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kItalicStyle, &runs); in TEST_F() 108 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kBoldStyle, &runs); in TEST_F() 116 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kBoldItalicStyle, &runs); in TEST_F() 126 itemize(collection.get(), "'a' ',' '-' 'd' '!'", kRegularStyle, &runs); in TEST_F() 134 itemize(collection.get(), "'a' ',' '-' 'd' '!'", kRegularStyle, &runs); in TEST_F() 144 itemize(collection.get(), "'a' U+0301", kRegularStyle, &runs); in TEST_F() [all …]
|
D | FontCollectionTest.cpp | 82 MinikinAutoUnref<FontCollection> collection(getFontCollection(kTestFontDir, 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(0x262F, 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/support/v4/java/android/support/v4/util/ |
D | MapCollections.java | 170 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() argument 172 for (Map.Entry<K, V> entry : collection) { in addAll() 197 public boolean containsAll(Collection<?> collection) { in containsAll() argument 198 Iterator<?> it = collection.iterator(); in containsAll() 223 public boolean removeAll(Collection<?> collection) { in removeAll() argument 228 public boolean retainAll(Collection<?> collection) { in retainAll() argument 273 public boolean addAll(Collection<? extends K> collection) { in addAll() argument 288 public boolean containsAll(Collection<?> collection) { in containsAll() argument 289 return containsAllHelper(colGetMap(), collection); in containsAll() 313 public boolean removeAll(Collection<?> collection) { in removeAll() argument [all …]
|
D | ArrayMap.java | 129 public boolean containsAll(Collection<?> collection) { in containsAll() argument 130 return MapCollections.containsAllHelper(this, collection); in containsAll() 150 public boolean removeAll(Collection<?> collection) { in removeAll() argument 151 return MapCollections.removeAllHelper(this, collection); in removeAll() 160 public boolean retainAll(Collection<?> collection) { in retainAll() argument 161 return MapCollections.retainAllHelper(this, collection); in retainAll()
|
/frameworks/base/core/java/android/util/ |
D | MapCollections.java | 172 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() argument 174 for (Map.Entry<K, V> entry : collection) { in addAll() 199 public boolean containsAll(Collection<?> collection) { in containsAll() argument 200 Iterator<?> it = collection.iterator(); in containsAll() 225 public boolean removeAll(Collection<?> collection) { in removeAll() argument 230 public boolean retainAll(Collection<?> collection) { in retainAll() argument 275 public boolean addAll(Collection<? extends K> collection) { in addAll() argument 290 public boolean containsAll(Collection<?> collection) { in containsAll() argument 291 return containsAllHelper(colGetMap(), collection); in containsAll() 315 public boolean removeAll(Collection<?> collection) { in removeAll() argument [all …]
|
/frameworks/base/media/mca/filterfw/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/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/tools/aapt2/io/ |
D | ZipArchive.cpp | 59 ZipFileCollectionIterator::ZipFileCollectionIterator(ZipFileCollection* collection) : in ZipFileCollectionIterator() argument 60 mCurrent(collection->mFiles.begin()), mEnd(collection->mFiles.end()) { in ZipFileCollectionIterator() 80 std::unique_ptr<ZipFileCollection> collection = std::unique_ptr<ZipFileCollection>( in create() local 83 int32_t result = OpenArchive(path.data(), &collection->mHandle); in create() 88 return collection; in create() 96 result = StartIteration(collection->mHandle, &cookie, nullptr, nullptr); in create() 111 collection->mFiles[zipEntryPath] = util::make_unique<ZipFile>(collection->mHandle, in create() 120 return collection; in create()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsRecorder.java | 353 public CombiningRewriter(NetworkStatsCollection collection) { in CombiningRewriter() argument 354 mCollection = checkNotNull(collection, "missing NetworkStatsCollection"); in CombiningRewriter() 421 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); in importLegacyNetworkLocked() local 422 collection.readLegacyNetwork(file); in importLegacyNetworkLocked() 424 final long startMillis = collection.getStartMillis(); in importLegacyNetworkLocked() 425 final long endMillis = collection.getEndMillis(); in importLegacyNetworkLocked() 427 if (!collection.isEmpty()) { in importLegacyNetworkLocked() 430 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis); in importLegacyNetworkLocked() 441 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); in importLegacyUidLocked() local 442 collection.readLegacyUid(file, mOnlyTags); in importLegacyUidLocked() [all …]
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
D | ObservableArrayList.java | 56 public boolean addAll(Collection<? extends T> collection) { in addAll() argument 58 boolean added = super.addAll(collection); in addAll() 66 public boolean addAll(int index, Collection<? extends T> collection) { in addAll() argument 67 boolean added = super.addAll(index, collection); in addAll() 69 notifyAdd(index, collection.size()); in addAll()
|
D | ObservableArrayMap.java | 59 public boolean removeAll(Collection<?> collection) { in removeAll() argument 61 for (Object key : collection) { in removeAll() 72 public boolean retainAll(Collection<?> collection) { in retainAll() argument 76 if (!collection.contains(key)) { in retainAll()
|
/frameworks/base/docs/html/distribute/tools/ |
D | index.jd | 14 data-query="collection:distribute/tools/checklists" 21 data-query="collection:distribute/tools/promote" 28 data-query="collection:distribute/tools/support" 35 data-query="collection:distribute/tools/news" 42 data-query="collection:distribute/tools/more"
|
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/ |
D | resources.jd | 13 data-query="collection:overview/carousel/zhcn" 25 data-query="collection:overview/zhcn/1" 33 data-query="collection:overview/zhcn/2" 41 data-query="collection:overview/zhcn/3" 49 data-query="collection:overview/zhcn/4"
|
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/tools/ |
D | index.jd | 15 data-query="collection:distribute/tools/checklists/zhcn" 22 data-query="collection:distribute/tools/promote/zhcn" 29 data-query="collection:distribute/tools/support/zhcn" 36 data-query="collection:distribute/tools/news" 43 data-query="collection:distribute/tools/more/zhcn"
|
D | launch-checklist.jd | 90 "collection:distribute/toolsreference/launchchecklist/understanding" 113 "collection:distribute/toolsreference/launchchecklist/policies" data-sortorder= 152 "collection:distribute/toolsreference/launchchecklist/quality" data-sortorder= 208 "collection:distribute/toolsreference/launchchecklist/rating" data-sortorder= 273 "collection:distribute/toolsreference/launchchecklist/country" data-sortorder= 324 "collection:distribute/toolsreference/launchchecklist/size" data-sortorder= 370 "collection:distribute/toolsreference/launchchecklist/platform" data-sortorder= 427 "collection:distribute/toolsreference/launchchecklist/price" data-sortorder= 460 "collection:distribute/toolsreference/launchchecklist/purchasemethod" 490 "collection:distribute/toolsreference/launchchecklist/setprice" data-sortorder= [all …]
|
/frameworks/base/tools/aapt2/link/ |
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,
|
D | TableMerger.cpp | 38 io::IFileCollection* collection) { in merge() argument 39 return mergeImpl(src, table, collection, false /* overlay */, true /* allow new */); in merge() 43 io::IFileCollection* collection) { in mergeOverlay() argument 44 return mergeImpl(src, table, collection, true /* overlay */, mOptions.autoAddOverlay); in mergeOverlay() 51 io::IFileCollection* collection, in mergeImpl() argument 66 if (collection) { in mergeImpl() 70 io::IFile* f = collection->findFile(util::utf16ToUtf8(*oldFile->path)); in mergeImpl() 99 ResourceTable* table, io::IFileCollection* collection) { in mergeAndMangle() argument 115 io::IFile* f = collection->findFile(util::utf16ToUtf8(*oldFile->path)); in mergeAndMangle()
|
/frameworks/base/docs/html-intl/intl/zh-cn/ |
D | resources.jd | 20 data-query="collection:overview/zhcn/1" 28 data-query="collection:overview/zhcn/2" 36 data-query="collection:overview/zhcn/3" 44 data-query="collection:overview/zhcn/4"
|
/frameworks/base/docs/html/ |
D | resources.jd | 21 data-query="collection:overview/1" 29 data-query="collection:overview/2" 37 data-query="collection:overview/3" 45 data-query="collection:overview/4"
|
/frameworks/base/docs/html-intl/intl/ja/distribute/tools/ |
D | launch-checklist.jd | 72 "collection:distribute/toolsreference/launchchecklist/understanding" 92 "collection:distribute/toolsreference/launchchecklist/policies" data-sortorder= 119 "collection:distribute/toolsreference/launchchecklist/quality" data-sortorder= 168 "collection:distribute/toolsreference/launchchecklist/rating" data-sortorder= 225 "collection:distribute/toolsreference/launchchecklist/country" data-sortorder= 266 "collection:distribute/toolsreference/launchchecklist/size" data-sortorder= 297 "collection:distribute/toolsreference/launchchecklist/platform" data-sortorder= 342 "collection:distribute/toolsreference/launchchecklist/price" data-sortorder= 365 "collection:distribute/toolsreference/launchchecklist/purchasemethod" 389 "collection:distribute/toolsreference/launchchecklist/setprice" data-sortorder= [all …]
|
/frameworks/base/docs/html-intl/intl/ko/distribute/tools/ |
D | launch-checklist.jd | 90 "collection:distribute/toolsreference/launchchecklist/understanding" 113 "collection:distribute/toolsreference/launchchecklist/policies" data-sortorder= 152 "collection:distribute/toolsreference/launchchecklist/quality" data-sortorder= 208 "collection:distribute/toolsreference/launchchecklist/rating" data-sortorder= 273 "collection:distribute/toolsreference/launchchecklist/country" data-sortorder= 324 "collection:distribute/toolsreference/launchchecklist/size" data-sortorder= 370 "collection:distribute/toolsreference/launchchecklist/platform" data-sortorder= 427 "collection:distribute/toolsreference/launchchecklist/price" data-sortorder= 460 "collection:distribute/toolsreference/launchchecklist/purchasemethod" 490 "collection:distribute/toolsreference/launchchecklist/setprice" data-sortorder= [all …]
|
/frameworks/base/docs/html-intl/intl/ru/distribute/tools/ |
D | launch-checklist.jd | 90 "collection:distribute/toolsreference/launchchecklist/understanding" 113 "collection:distribute/toolsreference/launchchecklist/policies" data-sortorder= 152 "collection:distribute/toolsreference/launchchecklist/quality" data-sortorder= 208 "collection:distribute/toolsreference/launchchecklist/rating" data-sortorder= 273 "collection:distribute/toolsreference/launchchecklist/country" data-sortorder= 324 "collection:distribute/toolsreference/launchchecklist/size" data-sortorder= 370 "collection:distribute/toolsreference/launchchecklist/platform" data-sortorder= 427 "collection:distribute/toolsreference/launchchecklist/price" data-sortorder= 460 "collection:distribute/toolsreference/launchchecklist/purchasemethod" 490 "collection:distribute/toolsreference/launchchecklist/setprice" data-sortorder= [all …]
|