/frameworks/support/v4/java/android/support/v4/util/ |
H A D | ArrayMap.java | 124 * 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 D | MapCollections.java | 26 * 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 D | KeyboardLayout.java | 43 public KeyboardLayout(String descriptor, String label, String collection) { argument 46 mCollection = collection; 75 * Gets the name of the collection to which the keyboard layout belongs. This is 77 * @return The keyboard layout collection name.
|
/frameworks/base/media/mca/filterfw/native/base/ |
H A D | utilities.h | 75 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 D | utilities.h | 75 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 D | NetworkStatsCollectionTest.java | 66 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/base/core/java/android/util/ |
H A D | ArrayMap.java | 692 // specialized collection APIs. 748 * Determine if the array map contains all of the keys in the given collection. 749 * @param collection The collection whose contents are to be checked against. 751 * in <var>collection</var>, else returns false. 753 public boolean containsAll(Collection<?> collection) { argument 754 return MapCollections.containsAllHelper(this, collection); 770 * Remove all keys in the array map that exist in the given collection. 771 * @param collection The collection whos 774 removeAll(Collection<?> collection) argument 784 retainAll(Collection<?> collection) argument [all...] |
H A D | ArraySet.java | 569 // specialized collection APIs. 630 public boolean containsAll(Collection<?> collection) { argument 631 Iterator<?> it = collection.iterator(); 641 public boolean addAll(Collection<? extends E> collection) { argument 642 ensureCapacity(mSize + collection.size()); 644 for (E value : collection) { 651 public boolean removeAll(Collection<?> collection) { argument 653 for (Object value : collection) { 660 public boolean retainAll(Collection<?> collection) { argument 663 if (!collection [all...] |
H A D | MapCollections.java | 28 * 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 D | ArrayAdapter.java | 188 * @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/java/com/android/server/net/ |
H A D | NetworkStatsRecorder.java | 278 public CombiningRewriter(NetworkStatsCollection collection) { argument 279 mCollection = checkNotNull(collection, "missing NetworkStatsCollection"); 344 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); 345 collection.readLegacyNetwork(file); 347 final long startMillis = collection.getStartMillis(); 348 final long endMillis = collection.getEndMillis(); 350 if (!collection.isEmpty()) { 353 mRotator.rewriteActive(new CombiningRewriter(collection), startMillis); 362 final NetworkStatsCollection collection = new NetworkStatsCollection(mBucketDuration); 363 collection [all...] |
/frameworks/base/services/java/com/android/server/input/ |
H A D | InputManagerService.java | 740 String descriptor, String label, String collection, int keyboardLayoutResId) { 774 String descriptor, String label, String collection, int keyboardLayoutResId) { 775 list.add(new KeyboardLayout(descriptor, label, collection)); 791 String descriptor, String label, String collection, int keyboardLayoutResId) { 792 result[0] = new KeyboardLayout(descriptor, label, collection); 841 String collection = receiverLabel != null ? receiverLabel.toString() : ""; 876 label, collection, keyboardLayoutResId); 1444 String descriptor, String label, String collection, int keyboardLayoutResId) { 1590 String descriptor, String label, String collection, int keyboardLayoutResId); 1589 visitKeyboardLayout(Resources resources, String descriptor, String label, String collection, int keyboardLayoutResId) argument
|