Home
last modified time | relevance | path

Searched refs:unfiltered (Results 1 – 25 of 54) sorted by relevance

123

/external/guava/android/guava-tests/test/com/google/common/collect/
DFilteredMultimapTest.java42 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 …]
DFilteredCollectionsTest.java75 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 …]
DCollections2Test.java95 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 …]
DMultimapsFilterEntriesAsMapTest.java45 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()
DMapsTest.java1349 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPut() local
1350 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPut()
1363 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPutAll() local
1364 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPutAll()
1379 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysFilteredReflectsBackingChanges() local
1380 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysFilteredReflectsBackingChanges()
1381 unfiltered.put("two", 2); in testFilteredKeysFilteredReflectsBackingChanges()
1382 unfiltered.put("three", 3); in testFilteredKeysFilteredReflectsBackingChanges()
1383 unfiltered.put("four", 4); in testFilteredKeysFilteredReflectsBackingChanges()
1384 assertEquals(ImmutableMap.of("two", 2, "three", 3, "four", 4), unfiltered); in testFilteredKeysFilteredReflectsBackingChanges()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DFilteredMultimapTest.java42 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 …]
DFilteredCollectionsTest.java76 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 …]
DCollections2Test.java95 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 …]
DMultimapsFilterEntriesAsMapTest.java45 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()
DMapsTest.java1349 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPut() local
1350 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPut()
1363 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPutAll() local
1364 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPutAll()
1379 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysFilteredReflectsBackingChanges() local
1380 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysFilteredReflectsBackingChanges()
1381 unfiltered.put("two", 2); in testFilteredKeysFilteredReflectsBackingChanges()
1382 unfiltered.put("three", 3); in testFilteredKeysFilteredReflectsBackingChanges()
1383 unfiltered.put("four", 4); in testFilteredKeysFilteredReflectsBackingChanges()
1384 assertEquals(ImmutableMap.of("two", 2, "three", 3, "four", 4), unfiltered); in testFilteredKeysFilteredReflectsBackingChanges()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DFilteredKeyMultimap.java40 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 …]
DCollections2.java84 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 …]
DSets.java953 public static <E> Set<E> filter(Set<E> unfiltered, Predicate<? super E> predicate) {
954 if (unfiltered instanceof SortedSet) {
955 return filter((SortedSet<E>) unfiltered, predicate);
957 if (unfiltered instanceof FilteredSet) {
960 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered;
962 return new FilteredSet<E>((Set<E>) filtered.unfiltered, combinedPredicate);
965 return new FilteredSet<E>(checkNotNull(unfiltered), checkNotNull(predicate));
992 public static <E> SortedSet<E> filter(SortedSet<E> unfiltered, Predicate<? super E> predicate) {
993 if (unfiltered instanceof FilteredSet) {
996 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered;
[all …]
DFilteredEntryMultimap.java46 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 …]
DMaps.java2142 Map<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2145 return (unfiltered instanceof AbstractFilteredMap)
2146 ? filterFiltered((AbstractFilteredMap<K, V>) unfiltered, entryPredicate)
2147 : new FilteredKeyMap<K, V>(checkNotNull(unfiltered), keyPredicate, entryPredicate);
2177 SortedMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2180 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
2211 NavigableMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2214 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
2242 BiMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2244 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
[all …]
DFilteredEntrySetMultimap.java33 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()
DMultimaps.java1811 Multimap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
1812 if (unfiltered instanceof SetMultimap) {
1813 return filterKeys((SetMultimap<K, V>) unfiltered, keyPredicate);
1814 } else if (unfiltered instanceof ListMultimap) {
1815 return filterKeys((ListMultimap<K, V>) unfiltered, keyPredicate);
1816 } else if (unfiltered instanceof FilteredKeyMultimap) {
1817 FilteredKeyMultimap<K, V> prev = (FilteredKeyMultimap<K, V>) unfiltered;
1819 prev.unfiltered, Predicates.<K>and(prev.keyPredicate, keyPredicate));
1820 } else if (unfiltered instanceof FilteredMultimap) {
1821 FilteredMultimap<K, V> prev = (FilteredMultimap<K, V>) unfiltered;
[all …]
/external/guava/guava/src/com/google/common/collect/
DFilteredKeyMultimap.java40 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 …]
DCollections2.java86 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 …]
DFilteredEntryMultimap.java46 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 …]
DSets.java1046 public static <E> Set<E> filter(Set<E> unfiltered, Predicate<? super E> predicate) {
1047 if (unfiltered instanceof SortedSet) {
1048 return filter((SortedSet<E>) unfiltered, predicate);
1050 if (unfiltered instanceof FilteredSet) {
1053 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered;
1055 return new FilteredSet<E>((Set<E>) filtered.unfiltered, combinedPredicate);
1058 return new FilteredSet<E>(checkNotNull(unfiltered), checkNotNull(predicate));
1085 public static <E> SortedSet<E> filter(SortedSet<E> unfiltered, Predicate<? super E> predicate) {
1086 if (unfiltered instanceof FilteredSet) {
1089 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered;
[all …]
DFilteredEntrySetMultimap.java33 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()
DMaps.java2286 Map<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2289 return (unfiltered instanceof AbstractFilteredMap)
2290 ? filterFiltered((AbstractFilteredMap<K, V>) unfiltered, entryPredicate)
2291 : new FilteredKeyMap<K, V>(checkNotNull(unfiltered), keyPredicate, entryPredicate);
2321 SortedMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2324 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
2355 NavigableMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2358 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
2386 BiMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2388 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
[all …]
/external/xz-java/src/org/tukaani/xz/
DSimpleInputStream.java25 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 …]
DSimpleOutputStream.java23 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()

123