/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | FilteredMultimapTest.java | 42 Multimap<String, Integer> unfiltered = HashMultimap.create(); in create() local 43 unfiltered.put("foo", 55556); in create() 44 unfiltered.put("badkey", 1); in create() 45 return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE); in create() 57 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterKeys() local 58 unfiltered.put("foo", 55556); in testFilterKeys() 59 unfiltered.put("badkey", 1); in testFilterKeys() 60 Multimap<String, Integer> filtered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE); in testFilterKeys() 74 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterValues() local 75 unfiltered.put("foo", 55556); in testFilterValues() [all …]
|
D | FilteredCollectionsTest.java | 75 C unfiltered = createUnfiltered(contents); in testIterationOrderPreserved() local 76 C filtered = filter(unfiltered, EVEN); in testIterationOrderPreserved() 79 for (Integer i : unfiltered) { in testIterationOrderPreserved() 95 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd() local 96 C filterThenAdd = filter(unfiltered, EVEN); in testReadsThroughAdd() 97 unfiltered.add(4); in testReadsThroughAdd() 167 C unfiltered = createUnfiltered(contents); in testAddToFilterFiltered() local 168 C filtered1 = filter(unfiltered, EVEN); in testAddToFilterFiltered() 189 C unfiltered = createUnfiltered(contents); in testClearFilterFiltered() local 190 C filtered1 = filter(unfiltered, EVEN); in testClearFilterFiltered() [all …]
|
D | Collections2Test.java | 95 List<String> unfiltered = newArrayList(); in testsForFilter() 96 unfiltered.add("yyy"); in testsForFilter() 97 Collections.addAll(unfiltered, elements); in testsForFilter() 98 unfiltered.add("zzz"); in testsForFilter() 99 return Collections2.filter(unfiltered, NOT_YYY_ZZZ); in testsForFilter() 118 List<String> unfiltered = newArrayList(); 119 Collections.addAll(unfiltered, elements); 120 return Collections2.filter(unfiltered, NOT_YYY_ZZZ); 139 List<String> unfiltered = newLinkedList(); 140 unfiltered.add("yyy"); [all …]
|
D | MultimapsFilterEntriesAsMapTest.java | 45 Multimap<String, Integer> unfiltered = HashMultimap.create(); in createMultimap() local 46 unfiltered.put("zero", 55556); in createMultimap() 47 unfiltered.put("one", 55556); in createMultimap() 48 unfiltered.put("badkey", 1); in createMultimap() 49 return Multimaps.filterEntries(unfiltered, PREDICATE); in createMultimap()
|
D | MapsTest.java | 1346 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPut() local 1347 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPut() 1360 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPutAll() local 1361 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPutAll() 1376 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysFilteredReflectsBackingChanges() local 1377 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysFilteredReflectsBackingChanges() 1378 unfiltered.put("two", 2); in testFilteredKeysFilteredReflectsBackingChanges() 1379 unfiltered.put("three", 3); in testFilteredKeysFilteredReflectsBackingChanges() 1380 unfiltered.put("four", 4); in testFilteredKeysFilteredReflectsBackingChanges() 1381 assertEquals(ImmutableMap.of("two", 2, "three", 3, "four", 4), unfiltered); in testFilteredKeysFilteredReflectsBackingChanges() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | FilteredMultimapTest.java | 42 Multimap<String, Integer> unfiltered = HashMultimap.create(); in create() local 43 unfiltered.put("foo", 55556); in create() 44 unfiltered.put("badkey", 1); in create() 45 return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE); in create() 57 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterKeys() local 58 unfiltered.put("foo", 55556); in testFilterKeys() 59 unfiltered.put("badkey", 1); in testFilterKeys() 60 Multimap<String, Integer> filtered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE); in testFilterKeys() 74 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterValues() local 75 unfiltered.put("foo", 55556); in testFilterValues() [all …]
|
D | FilteredCollectionsTest.java | 76 C unfiltered = createUnfiltered(contents); in testIterationOrderPreserved() local 77 C filtered = filter(unfiltered, EVEN); in testIterationOrderPreserved() 80 for (Integer i : unfiltered) { in testIterationOrderPreserved() 92 C unfiltered = createUnfiltered(contents); in testForEach() local 93 C filtered = filter(unfiltered, EVEN); in testForEach() 110 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd() local 111 C filterThenAdd = filter(unfiltered, EVEN); in testReadsThroughAdd() 112 unfiltered.add(4); in testReadsThroughAdd() 182 C unfiltered = createUnfiltered(contents); in testAddToFilterFiltered() local 183 C filtered1 = filter(unfiltered, EVEN); in testAddToFilterFiltered() [all …]
|
D | Collections2Test.java | 95 List<String> unfiltered = newArrayList(); in testsForFilter() 96 unfiltered.add("yyy"); in testsForFilter() 97 Collections.addAll(unfiltered, elements); in testsForFilter() 98 unfiltered.add("zzz"); in testsForFilter() 99 return Collections2.filter(unfiltered, NOT_YYY_ZZZ); in testsForFilter() 118 List<String> unfiltered = newArrayList(); 119 Collections.addAll(unfiltered, elements); 120 return Collections2.filter(unfiltered, NOT_YYY_ZZZ); 139 List<String> unfiltered = newLinkedList(); 140 unfiltered.add("yyy"); [all …]
|
D | MultimapsFilterEntriesAsMapTest.java | 45 Multimap<String, Integer> unfiltered = HashMultimap.create(); in createMultimap() local 46 unfiltered.put("zero", 55556); in createMultimap() 47 unfiltered.put("one", 55556); in createMultimap() 48 unfiltered.put("badkey", 1); in createMultimap() 49 return Multimaps.filterEntries(unfiltered, PREDICATE); in createMultimap()
|
D | MapsTest.java | 1346 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPut() local 1347 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPut() 1360 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPutAll() local 1361 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPutAll() 1376 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysFilteredReflectsBackingChanges() local 1377 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysFilteredReflectsBackingChanges() 1378 unfiltered.put("two", 2); in testFilteredKeysFilteredReflectsBackingChanges() 1379 unfiltered.put("three", 3); in testFilteredKeysFilteredReflectsBackingChanges() 1380 unfiltered.put("four", 4); in testFilteredKeysFilteredReflectsBackingChanges() 1381 assertEquals(ImmutableMap.of("two", 2, "three", 3, "four", 4), unfiltered); in testFilteredKeysFilteredReflectsBackingChanges() [all …]
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | FilteredKeyMultimap.java | 40 final Multimap<K, V> unfiltered; field in FilteredKeyMultimap 43 FilteredKeyMultimap(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) { in FilteredKeyMultimap() argument 44 this.unfiltered = checkNotNull(unfiltered); in FilteredKeyMultimap() 49 public Multimap<K, V> unfiltered() { in unfiltered() method in FilteredKeyMultimap 50 return unfiltered; in unfiltered() 69 if (unfiltered.containsKey(key)) { in containsKey() 79 return containsKey(key) ? unfiltered.removeAll(key) : unmodifiableEmptyCollection(); in removeAll() 83 if (unfiltered instanceof SetMultimap) { in unmodifiableEmptyCollection() 97 return Sets.filter(unfiltered.keySet(), keyPredicate); in createKeySet() 103 return unfiltered.get(key); in get() [all …]
|
D | Collections2.java | 84 public static <E> Collection<E> filter(Collection<E> unfiltered, Predicate<? super E> predicate) { in filter() argument 85 if (unfiltered instanceof FilteredCollection) { in filter() 88 return ((FilteredCollection<E>) unfiltered).createCombined(predicate); in filter() 91 return new FilteredCollection<E>(checkNotNull(unfiltered), checkNotNull(predicate)); in filter() 121 final Collection<E> unfiltered; field in Collections2.FilteredCollection 124 FilteredCollection(Collection<E> unfiltered, Predicate<? super E> predicate) { in FilteredCollection() argument 125 this.unfiltered = unfiltered; in FilteredCollection() 130 return new FilteredCollection<E>(unfiltered, Predicates.<E>and(predicate, newPredicate)); in createCombined() 137 return unfiltered.add(element); in add() 145 return unfiltered.addAll(collection); in addAll() [all …]
|
D | Sets.java | 954 public static <E> Set<E> filter(Set<E> unfiltered, Predicate<? super E> predicate) { 955 if (unfiltered instanceof SortedSet) { 956 return filter((SortedSet<E>) unfiltered, predicate); 958 if (unfiltered instanceof FilteredSet) { 961 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered; 963 return new FilteredSet<E>((Set<E>) filtered.unfiltered, combinedPredicate); 966 return new FilteredSet<E>(checkNotNull(unfiltered), checkNotNull(predicate)); 993 public static <E> SortedSet<E> filter(SortedSet<E> unfiltered, Predicate<? super E> predicate) { 994 if (unfiltered instanceof FilteredSet) { 997 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered; [all …]
|
D | FilteredEntryMultimap.java | 46 final Multimap<K, V> unfiltered; field in FilteredEntryMultimap 49 FilteredEntryMultimap(Multimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) { in FilteredEntryMultimap() argument 50 this.unfiltered = checkNotNull(unfiltered); in FilteredEntryMultimap() 55 public Multimap<K, V> unfiltered() { in unfiltered() method in FilteredEntryMultimap 56 return unfiltered; in unfiltered() 107 return (unfiltered instanceof SetMultimap) in unmodifiableEmptyCollection() 119 return filterCollection(unfiltered.get(key), new ValuePredicate(key)); in get() 124 return filterCollection(unfiltered.entries(), predicate); in createEntries() 148 Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator(); in removeEntriesIf() 180 Collection<V> result = unfiltered.asMap().get(key); in get() [all …]
|
D | FilteredEntrySetMultimap.java | 33 FilteredEntrySetMultimap(SetMultimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) { in FilteredEntrySetMultimap() argument 34 super(unfiltered, predicate); in FilteredEntrySetMultimap() 38 public SetMultimap<K, V> unfiltered() { in unfiltered() method in FilteredEntrySetMultimap 39 return (SetMultimap<K, V>) unfiltered; in unfiltered() 59 return Sets.filter(unfiltered().entries(), entryPredicate()); in createEntries()
|
D | Maps.java | 2143 Map<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2146 return (unfiltered instanceof AbstractFilteredMap) 2147 ? filterFiltered((AbstractFilteredMap<K, V>) unfiltered, entryPredicate) 2148 : new FilteredKeyMap<K, V>(checkNotNull(unfiltered), keyPredicate, entryPredicate); 2178 SortedMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2181 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate)); 2212 NavigableMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2215 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate)); 2243 BiMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2245 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate)); [all …]
|
D | Multimaps.java | 1812 Multimap<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 1813 if (unfiltered instanceof SetMultimap) { 1814 return filterKeys((SetMultimap<K, V>) unfiltered, keyPredicate); 1815 } else if (unfiltered instanceof ListMultimap) { 1816 return filterKeys((ListMultimap<K, V>) unfiltered, keyPredicate); 1817 } else if (unfiltered instanceof FilteredKeyMultimap) { 1818 FilteredKeyMultimap<K, V> prev = (FilteredKeyMultimap<K, V>) unfiltered; 1820 prev.unfiltered, Predicates.<K>and(prev.keyPredicate, keyPredicate)); 1821 } else if (unfiltered instanceof FilteredMultimap) { 1822 FilteredMultimap<K, V> prev = (FilteredMultimap<K, V>) unfiltered; [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | FilteredKeyMultimap.java | 40 final Multimap<K, V> unfiltered; field in FilteredKeyMultimap 43 FilteredKeyMultimap(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) { in FilteredKeyMultimap() argument 44 this.unfiltered = checkNotNull(unfiltered); in FilteredKeyMultimap() 49 public Multimap<K, V> unfiltered() { in unfiltered() method in FilteredKeyMultimap 50 return unfiltered; in unfiltered() 69 if (unfiltered.containsKey(key)) { in containsKey() 79 return containsKey(key) ? unfiltered.removeAll(key) : unmodifiableEmptyCollection(); in removeAll() 83 if (unfiltered instanceof SetMultimap) { in unmodifiableEmptyCollection() 97 return Sets.filter(unfiltered.keySet(), keyPredicate); in createKeySet() 103 return unfiltered.get(key); in get() [all …]
|
D | Collections2.java | 86 public static <E> Collection<E> filter(Collection<E> unfiltered, Predicate<? super E> predicate) { in filter() argument 87 if (unfiltered instanceof FilteredCollection) { in filter() 90 return ((FilteredCollection<E>) unfiltered).createCombined(predicate); in filter() 93 return new FilteredCollection<E>(checkNotNull(unfiltered), checkNotNull(predicate)); in filter() 123 final Collection<E> unfiltered; field in Collections2.FilteredCollection 126 FilteredCollection(Collection<E> unfiltered, Predicate<? super E> predicate) { in FilteredCollection() argument 127 this.unfiltered = unfiltered; in FilteredCollection() 132 return new FilteredCollection<E>(unfiltered, Predicates.<E>and(predicate, newPredicate)); in createCombined() 139 return unfiltered.add(element); in add() 147 return unfiltered.addAll(collection); in addAll() [all …]
|
D | FilteredEntryMultimap.java | 46 final Multimap<K, V> unfiltered; field in FilteredEntryMultimap 49 FilteredEntryMultimap(Multimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) { in FilteredEntryMultimap() argument 50 this.unfiltered = checkNotNull(unfiltered); in FilteredEntryMultimap() 55 public Multimap<K, V> unfiltered() { in unfiltered() method in FilteredEntryMultimap 56 return unfiltered; in unfiltered() 107 return (unfiltered instanceof SetMultimap) in unmodifiableEmptyCollection() 119 return filterCollection(unfiltered.get(key), new ValuePredicate(key)); in get() 124 return filterCollection(unfiltered.entries(), predicate); in createEntries() 148 Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator(); in removeEntriesIf() 180 Collection<V> result = unfiltered.asMap().get(key); in get() [all …]
|
D | Sets.java | 1047 public static <E> Set<E> filter(Set<E> unfiltered, Predicate<? super E> predicate) { 1048 if (unfiltered instanceof SortedSet) { 1049 return filter((SortedSet<E>) unfiltered, predicate); 1051 if (unfiltered instanceof FilteredSet) { 1054 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered; 1056 return new FilteredSet<E>((Set<E>) filtered.unfiltered, combinedPredicate); 1059 return new FilteredSet<E>(checkNotNull(unfiltered), checkNotNull(predicate)); 1086 public static <E> SortedSet<E> filter(SortedSet<E> unfiltered, Predicate<? super E> predicate) { 1087 if (unfiltered instanceof FilteredSet) { 1090 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered; [all …]
|
D | FilteredEntrySetMultimap.java | 33 FilteredEntrySetMultimap(SetMultimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) { in FilteredEntrySetMultimap() argument 34 super(unfiltered, predicate); in FilteredEntrySetMultimap() 38 public SetMultimap<K, V> unfiltered() { in unfiltered() method in FilteredEntrySetMultimap 39 return (SetMultimap<K, V>) unfiltered; in unfiltered() 59 return Sets.filter(unfiltered().entries(), entryPredicate()); in createEntries()
|
D | Maps.java | 2287 Map<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2290 return (unfiltered instanceof AbstractFilteredMap) 2291 ? filterFiltered((AbstractFilteredMap<K, V>) unfiltered, entryPredicate) 2292 : new FilteredKeyMap<K, V>(checkNotNull(unfiltered), keyPredicate, entryPredicate); 2322 SortedMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2325 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate)); 2356 NavigableMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2359 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate)); 2387 BiMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) { 2389 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate)); [all …]
|
/external/xz-java/src/org/tukaani/xz/ |
D | SimpleInputStream.java | 25 private int unfiltered = 0; field in SimpleInputStream 83 if (pos + filtered + unfiltered == FILTER_BUF_SIZE) { in read() 85 filtered + unfiltered); in read() 95 int inSize = FILTER_BUF_SIZE - (pos + filtered + unfiltered); in read() 96 inSize = in.read(filterBuf, pos + filtered + unfiltered, in read() 103 filtered = unfiltered; in read() 104 unfiltered = 0; in read() 107 unfiltered += inSize; in read() 108 filtered = simpleFilter.code(filterBuf, pos, unfiltered); in read() 109 assert filtered <= unfiltered; in read() [all …]
|
D | SimpleOutputStream.java | 23 private int unfiltered = 0; field in SimpleOutputStream 60 int copySize = Math.min(len, FILTER_BUF_SIZE - (pos + unfiltered)); in write() 61 System.arraycopy(buf, off, filterBuf, pos + unfiltered, copySize); in write() 64 unfiltered += copySize; in write() 67 int filtered = simpleFilter.code(filterBuf, pos, unfiltered); in write() 68 assert filtered <= unfiltered; in write() 69 unfiltered -= filtered; in write() 84 if (pos + unfiltered == FILTER_BUF_SIZE) { in write() 85 System.arraycopy(filterBuf, pos, filterBuf, 0, unfiltered); in write() 98 out.write(filterBuf, pos, unfiltered); in writePending()
|