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

/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...]
H A DMapCollections.java26 * Helper for writing standard Java collection interfaces to a data
170 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { argument
172 for (Map.Entry<K, V> entry : collection) {
197 public boolean containsAll(Collection<?> collection) { argument
198 Iterator<?> it = collection.iterator();
223 public boolean removeAll(Collection<?> collection) { argument
228 public boolean retainAll(Collection<?> collection) { argument
273 public boolean addAll(Collection<? extends K> collection) { argument
288 public boolean containsAll(Collection<?> collection) { argument
289 return containsAllHelper(colGetMap(), collection);
313 removeAll(Collection<?> collection) argument
318 retainAll(Collection<?> collection) argument
361 addAll(Collection<? extends V> collection) argument
376 containsAll(Collection<?> collection) argument
407 removeAll(Collection<?> collection) argument
423 retainAll(Collection<?> collection) argument
454 containsAllHelper(Map<K, V> map, Collection<?> collection) argument
464 removeAllHelper(Map<K, V> map, Collection<?> collection) argument
473 retainAllHelper(Map<K, V> map, Collection<?> collection) argument
[all...]
/frameworks/base/core/java/android/hardware/input/
H A DKeyboardLayout.java44 public KeyboardLayout(String descriptor, String label, String collection, int priority) { argument
47 mCollection = collection;
78 * Gets the name of the collection to which the keyboard layout belongs. This is
80 * @return The keyboard layout collection name.
/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.java66 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS);
67 collection.readLegacyNetwork(testFile);
70 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI),
75 collection.write(new DataOutputStream(bos));
78 collection.reset();
79 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI),
83 collection.read(new ByteArrayInputStream(bos.toByteArray()));
84 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI),
92 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS);
93 collection
172 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
179 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
[all...]
/frameworks/minikin/sample/
H A Dexample.cpp83 FontCollection *collection = makeFontCollection(); local
85 layout.setFontCollection(collection);
H A Dexample_skia.cpp117 FontCollection *collection = makeFontCollection(); local
119 layout.setFontCollection(collection);
/frameworks/base/core/java/android/util/
H A DArrayMap.java745 // specialized collection APIs.
801 * Determine if the array map contains all of the keys in the given collection.
802 * @param collection The collection whose contents are to be checked against.
804 * in <var>collection</var>, else returns false.
806 public boolean containsAll(Collection<?> collection) { argument
807 return MapCollections.containsAllHelper(this, collection);
823 * Remove all keys in the array map that exist in the given collection.
824 * @param collection The collection whos
827 removeAll(Collection<?> collection) argument
837 retainAll(Collection<?> collection) argument
[all...]
H A DArraySet.java588 // specialized collection APIs.
649 public boolean containsAll(Collection<?> collection) { argument
650 Iterator<?> it = collection.iterator();
660 public boolean addAll(Collection<? extends E> collection) { argument
661 ensureCapacity(mSize + collection.size());
663 for (E value : collection) {
670 public boolean removeAll(Collection<?> collection) { argument
672 for (Object value : collection) {
679 public boolean retainAll(Collection<?> collection) { argument
682 if (!collection
[all...]
H A DMapCollections.java28 * Helper for writing standard Java collection interfaces to a data
172 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { argument
174 for (Map.Entry<K, V> entry : collection) {
199 public boolean containsAll(Collection<?> collection) { argument
200 Iterator<?> it = collection.iterator();
225 public boolean removeAll(Collection<?> collection) { argument
230 public boolean retainAll(Collection<?> collection) { argument
275 public boolean addAll(Collection<? extends K> collection) { argument
290 public boolean containsAll(Collection<?> collection) { argument
291 return containsAllHelper(colGetMap(), collection);
315 removeAll(Collection<?> collection) argument
320 retainAll(Collection<?> collection) argument
363 addAll(Collection<? extends V> collection) argument
378 containsAll(Collection<?> collection) argument
409 removeAll(Collection<?> collection) argument
425 retainAll(Collection<?> collection) argument
456 containsAllHelper(Map<K, V> map, Collection<?> collection) argument
466 removeAllHelper(Map<K, V> map, Collection<?> collection) argument
475 retainAllHelper(Map<K, V> map, Collection<?> collection) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DArrayAdapter.java188 * @param collection The Collection to add at the end of the array.
190 public void addAll(Collection<? extends T> collection) { argument
193 mOriginalValues.addAll(collection);
195 mObjects.addAll(collection);
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsRecorder.java292 public CombiningRewriter(NetworkStatsCollection collection) { argument
293 mCollection = checkNotNull(collection, "missing NetworkStatsCollection");
358 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration);
359 collection.readLegacyNetwork(file);
361 final long startMillis = collection.getStartMillis();
362 final long endMillis = collection.getEndMillis();
364 if (!collection.isEmpty()) {
367 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis);
376 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration);
377 collection
[all...]
/frameworks/minikin/libs/minikin/
H A DLayout.cpp76 LayoutCacheKey(const FontCollection* collection, const MinikinPaint& paint, FontStyle style, argument
78 : mStart(start), mCount(count), mId(collection->getId()), mStyle(style),
97 void doLayout(Layout* layout, LayoutContext* ctx, const FontCollection* collection) const {
98 layout->setFontCollection(collection);
109 uint32_t mId; // for the font collection
131 Layout* get(LayoutCacheKey& key, LayoutContext* ctx, const FontCollection* collection) { argument
136 key.doLayout(layout, ctx, collection);
282 void Layout::setFontCollection(const FontCollection* collection) { argument
283 mCollection = collection;
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java826 String collection, int keyboardLayoutResId, int priority) {
860 String collection, int keyboardLayoutResId, int priority) {
861 list.add(new KeyboardLayout(descriptor, label, collection, priority));
877 String label, String collection, int keyboardLayoutResId, int priority) {
878 result[0] = new KeyboardLayout(descriptor, label, collection, priority);
929 String collection = receiverLabel != null ? receiverLabel.toString() : "";
970 label, collection, keyboardLayoutResId, priority);
1578 String collection, int keyboardLayoutResId, int priority) {
1727 String collection, int keyboardLayoutResId, int priority);
1726 visitKeyboardLayout(Resources resources, String descriptor, String label, String collection, int keyboardLayoutResId, int priority) argument

Completed in 261 milliseconds