/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/unittest/ |
D | FontCollectionItemizeTest.cpp | 55 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, FontStyle style, in itemize() argument 64 collection->itemize(buf, len, style, result); in itemize() 80 std::shared_ptr<FontCollection> collection(getFontCollection(kTestFontDir, kItemizeFontXml)); in TEST_F() local 88 itemize(collection, "'a' 'b' 'c' 'd' 'e'", kRegularStyle, &runs); in TEST_F() 96 itemize(collection, "'a' 'b' 'c' 'd' 'e'", kItalicStyle, &runs); in TEST_F() 104 itemize(collection, "'a' 'b' 'c' 'd' 'e'", kBoldStyle, &runs); in TEST_F() 112 itemize(collection, "'a' 'b' 'c' 'd' 'e'", kBoldItalicStyle, &runs); in TEST_F() 122 itemize(collection, "'a' ',' '-' 'd' '!'", kRegularStyle, &runs); in TEST_F() 130 itemize(collection, "'a' ',' '-' 'd' '!'", kRegularStyle, &runs); in TEST_F() 140 itemize(collection, "'a' U+0301", kRegularStyle, &runs); in TEST_F() [all …]
|
D | FontCollectionTest.cpp | 82 std::shared_ptr<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(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/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 | 175 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() argument 177 for (Map.Entry<K, V> entry : collection) { in addAll() 202 public boolean containsAll(Collection<?> collection) { in containsAll() argument 203 Iterator<?> it = collection.iterator(); in containsAll() 228 public boolean removeAll(Collection<?> collection) { in removeAll() argument 233 public boolean retainAll(Collection<?> collection) { in retainAll() argument 278 public boolean addAll(Collection<? extends K> collection) { in addAll() argument 293 public boolean containsAll(Collection<?> collection) { in containsAll() argument 294 return containsAllHelper(colGetMap(), collection); in containsAll() 318 public boolean removeAll(Collection<?> collection) { in removeAll() argument [all …]
|
/frameworks/support/compat/java/android/support/v4/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 …]
|
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/tools/aapt2/io/ |
D | ZipArchive.cpp | 67 ZipFileCollection* collection) in ZipFileCollectionIterator() argument 68 : current_(collection->files_.begin()), end_(collection->files_.end()) {} in ZipFileCollectionIterator() 84 std::unique_ptr<ZipFileCollection> collection = in Create() local 87 int32_t result = OpenArchive(path.data(), &collection->handle_); in Create() 93 return collection; in Create() 101 result = StartIteration(collection->handle_, &cookie, nullptr, nullptr); in Create() 118 util::make_unique<ZipFile>(collection->handle_, zip_data, Source(nested_path)); in Create() 119 collection->files_by_name_[zip_entry_path] = file.get(); in Create() 120 collection->files_.push_back(std::move(file)); in Create() 127 return collection; in Create()
|
D | FileSystem.cpp | 47 FileCollectionIterator::FileCollectionIterator(FileCollection* collection) in FileCollectionIterator() argument 48 : current_(collection->files_.begin()), end_(collection->files_.end()) {} in FileCollectionIterator()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | AbstractCollection.java | 60 public boolean containsAll(Collection<?> collection) { in containsAll() argument 65 public boolean addAll(Collection<? extends T> collection) { in addAll() argument 70 public boolean removeAll(Collection<?> collection) { in removeAll() argument 75 public boolean retainAll(Collection<?> collection) { in retainAll() argument
|
D | TrackedCollections.java | 40 public synchronized void track(Collection<?> collection, String tag) { in track() argument 41 CollectionState collectionState = mCollections.get(collection); in track() 46 mCollections.put(collection, collectionState); in track() 52 collectionState.lastCount = collection.size(); in track()
|
/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/services/core/java/com/android/server/net/ |
D | NetworkStatsRecorder.java | 355 public CombiningRewriter(NetworkStatsCollection collection) { in CombiningRewriter() argument 356 mCollection = checkNotNull(collection, "missing NetworkStatsCollection"); in CombiningRewriter() 423 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); in importLegacyNetworkLocked() local 424 collection.readLegacyNetwork(file); in importLegacyNetworkLocked() 426 final long startMillis = collection.getStartMillis(); in importLegacyNetworkLocked() 427 final long endMillis = collection.getEndMillis(); in importLegacyNetworkLocked() 429 if (!collection.isEmpty()) { in importLegacyNetworkLocked() 432 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis); in importLegacyNetworkLocked() 443 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); in importLegacyUidLocked() local 444 collection.readLegacyUid(file, mOnlyTags); in importLegacyUidLocked() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | NumberKeyListener.java | 153 static boolean addDigits(@NonNull Collection<Character> collection, @Nullable Locale locale) { in addDigits() argument 162 collection.add(Character.valueOf(digits[i].charAt(0))); in addDigits() 174 @NonNull Collection<Character> collection, @Nullable Locale locale, in addFormatCharsFromSkeleton() 205 collection.add(Character.valueOf(ch)); in addFormatCharsFromSkeleton() 212 @NonNull Collection<Character> collection, @Nullable Locale locale, in addFormatCharsFromSkeletons() 216 collection, locale, skeletons[i], symbolsToIgnore); in addFormatCharsFromSkeletons() 226 static boolean addAmPmChars(@NonNull Collection<Character> collection, in addAmPmChars() argument 236 collection.add(Character.valueOf(ch)); in addAmPmChars()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 76 const std::shared_ptr<FontCollection>& collection); 80 const std::shared_ptr<FontCollection>& collection, float* advances); 119 const std::shared_ptr<FontCollection>& collection, Layout* layout, float* advances); 124 const std::shared_ptr<FontCollection>& collection, Layout* layout, float* advances); 128 bool isRtl, LayoutContext* ctx, const std::shared_ptr<FontCollection>& collection);
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.h | 83 io::IFileCollection* collection = nullptr); 91 io::IFileCollection* collection = nullptr); 100 io::IFileCollection* collection); 130 io::IFileCollection* collection, bool overlay, bool allow_new);
|
D | TableMerger.cpp | 41 io::IFileCollection* collection) { in Merge() argument 42 return MergeImpl(src, table, collection, false /* overlay */, true /* allow new */); in Merge() 46 io::IFileCollection* collection) { in MergeOverlay() argument 47 return MergeImpl(src, table, collection, true /* overlay */, options_.auto_add_overlay); in MergeOverlay() 54 io::IFileCollection* collection, bool overlay, in MergeImpl() argument 64 if (collection) { in MergeImpl() 69 io::IFile* f = collection->FindFile(*old_file->path); in MergeImpl() 99 io::IFileCollection* collection) { in MergeAndMangle() argument 116 io::IFile* f = collection->FindFile(*old_file->path); in MergeAndMangle()
|
/frameworks/minikin/tests/perftests/ |
D | FontCollection.cpp | 41 std::shared_ptr<FontCollection> collection( in BM_FontCollection_hasVariationSelector() local 52 collection->hasVariationSelector(baseCp, vsCp); in BM_FontCollection_hasVariationSelector() 77 std::shared_ptr<FontCollection> collection( in BM_FontCollection_itemize() local 93 collection->itemize(buffer, utf16_length, style, &result); in BM_FontCollection_itemize()
|
/frameworks/compile/slang/tests/P_reduce_general_result/ |
D | ScriptC_reduce_general_result.java.expect | 124 mOut = null; // make Java object eligible for garbage collection 130 mTempIns = null; // make Java objects eligible for garbage collection 160 mOut = null; // make Java object eligible for garbage collection 166 mTempIns = null; // make Java objects eligible for garbage collection 201 mOut = null; // make Java object eligible for garbage collection 207 mTempIns = null; // make Java objects eligible for garbage collection 242 mOut = null; // make Java object eligible for garbage collection 248 mTempIns = null; // make Java objects eligible for garbage collection 278 mOut = null; // make Java object eligible for garbage collection 284 mTempIns = null; // make Java objects eligible for garbage collection [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BaseWifiScannerImplTest.java | 93 ChannelCollection collection = mScanner.getChannelHelper().createChannelCollection(); in isAllChannelsScanned() local 94 collection.addBand(band); in isAllChannelsScanned() 95 return collection.isAllChannels(); in isAllChannelsScanned() 99 ChannelCollection collection = mScanner.getChannelHelper().createChannelCollection(); in expectedBandScanFreqs() local 100 collection.addBand(band); in expectedBandScanFreqs() 101 return collection.getScanFreqs(); in expectedBandScanFreqs() 105 ChannelCollection collection = mScanner.getChannelHelper().createChannelCollection(); in expectedBandAndChannelScanFreqs() local 106 collection.addBand(band); in expectedBandAndChannelScanFreqs() 108 collection.addChannel(channel); in expectedBandAndChannelScanFreqs() 110 return collection.getScanFreqs(); in expectedBandAndChannelScanFreqs()
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 70 LayoutCacheKey(const std::shared_ptr<FontCollection>& collection, const MinikinPaint& paint, in LayoutCacheKey() argument 74 mStart(start), mCount(count), mId(collection->getId()), mStyle(style), in LayoutCacheKey() 97 const std::shared_ptr<FontCollection>& collection) const { in doLayout() 100 layout->doLayoutRun(mChars, mStart, mCount, mNchars, mIsRtl, ctx, collection); in doLayout() 135 const std::shared_ptr<FontCollection>& collection) { in get() argument 140 key.doLayout(layout, ctx, collection); in get() 558 const std::shared_ptr<FontCollection>& collection) { in doLayout() argument 570 start, collection, this, NULL); in doLayout() 577 const std::shared_ptr<FontCollection>& collection, float* advances) { in measureText() argument 588 runInfo.mIsRtl, &ctx, 0, collection, NULL, advancesForRun); in measureText() [all …]
|