/external/guava/guava/src/com/google/common/collect/ |
H A D | ImmutableSet.java | 37 * iteration order. Does not permit null elements. 75 // Casting to any type is safe because the set will never hold any elements. 92 * Returns an immutable set containing the given elements, in order. Repeated 103 * Returns an immutable set containing the given elements, in order. Repeated 114 * Returns an immutable set containing the given elements, in order. Repeated 125 * Returns an immutable set containing the given elements, in order. Repeated 136 * Returns an immutable set containing the given elements, in order. Repeated 146 Object[] elements = new Object[paramCount + others.length]; 147 elements[0] = e1; 148 elements[ 160 construct(Object... elements) argument 240 copyOf(E[] elements) argument 270 copyOf(Iterable<? extends E> elements) argument 283 copyOf(Iterator<? extends E> elements) argument 320 copyOf(Collection<? extends E> elements) argument 379 final transient Object[] elements; field in class:ImmutableSet.ArrayImmutableSet 381 ArrayImmutableSet(Object[] elements) argument 513 final Object[] elements; field in class:ImmutableSet.SerializedForm 514 SerializedForm(Object[] elements) argument 584 add(E... elements) argument 599 addAll(Iterable<? extends E> elements) argument 617 addAll(Iterator<? extends E> elements) argument [all...] |
H A D | SortedIterables.java | 42 * Returns {@code true} if {@code elements} is a sorted collection using an ordering equivalent 45 public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements) { argument 47 checkNotNull(elements); 49 if (elements instanceof SortedSet) { 50 SortedSet<?> sortedSet = (SortedSet<?>) elements; 55 } else if (elements instanceof SortedIterable) { 56 comparator2 = ((SortedIterable<?>) elements).comparator(); 64 * Returns a sorted collection of the unique elements according to the specified comparator. Does 69 Comparator<? super E> comparator, Iterator<E> elements) { 71 Iterators.addAll(sortedSet, elements); 68 sortedUnique( Comparator<? super E> comparator, Iterator<E> elements) argument 80 sortedUnique( Comparator<? super E> comparator, Iterable<E> elements) argument 122 sortedCounts( Comparator<? super E> comparator, Iterator<E> elements) argument 133 sortedCounts( Comparator<? super E> comparator, Iterable<E> elements) argument [all...] |
H A D | Queues.java | 70 * Creates an {@code ConcurrentLinkedQueue} instance containing the given elements. 72 * @param elements the elements that the queue should contain, in order 73 * @return a new {@code ConcurrentLinkedQueue} containing those elements 76 Iterable<? extends E> elements) { 77 if (elements instanceof Collection) { 78 return new ConcurrentLinkedQueue<E>(Collections2.cast(elements)); 81 Iterables.addAll(queue, elements); 110 * Creates an {@code LinkedBlockingQueue} instance containing the given elements. 112 * @param elements th 75 newConcurrentLinkedQueue( Iterable<? extends E> elements) argument 115 newLinkedBlockingQueue(Iterable<? extends E> elements) argument 143 newPriorityBlockingQueue( Iterable<? extends E> elements) argument 170 newPriorityQueue(Iterable<? extends E> elements) argument [all...] |
/external/icu/icu4c/source/common/ |
H A D | uvector.cpp | 33 elements(0), 43 elements(0), 53 elements(0), 63 elements(0), 78 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); 79 if (elements == 0) { 88 uprv_free(elements); 89 elements = 0; 101 if (elements[i].pointer != 0 && deleter != 0) { 102 (*deleter)(elements[ [all...] |
H A D | uvectr32.cpp | 31 elements(NULL) 40 elements(0) 58 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); 59 if (elements == 0) { 67 uprv_free(elements); 68 elements = 0; 78 elements[i] = other.elements[i]; 88 if (elements[i] != other.elements[ [all...] |
H A D | uvectr64.cpp | 28 elements(NULL) 37 elements(0) 55 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); 56 if (elements == 0) { 64 uprv_free(elements); 65 elements = 0; 75 elements[i] = other.elements[i]; 85 if (elements[i] != other.elements[ [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/ |
H A D | RewriteRuleElementStream.js | 1 /** A generic list of elements tracked in an alternative to be used in 6 * Once you start next()ing, do not try to add more elements. It will 16 * which bumps it to 1 meaning no more elements. 35 this.elements = el; 44 * not consumed any of its elements. Elements themselves are untouched. 57 if ( this.elements ) { // if in list, just add 58 this.elements.push(el); 61 if ( !org.antlr.lang.isValue(this.singleElement) ) { // no elements yet, track w/o list 66 this.elements = []; 67 this.elements [all...] |
/external/chromium-trace/trace-viewer/src/ |
H A D | ui.js | 10 * Decorates elements as an instance of a class. 13 * elements to decorate. 18 var elements; 20 elements = base.doc.querySelectorAll(source); 22 elements = [source]; 24 for (var i = 0, el; el = elements[i]; i++) { 80 * You will need to call the parent elements decorate method from within
|
/external/chromium_org/components/bookmarks/browser/ |
H A D | bookmark_node_data_mac.cc | 17 WriteBookmarksToPasteboard(type, elements, profile_path_); 22 if (ReadBookmarksFromPasteboard(type, elements, &file_path)) {
|
H A D | bookmark_node_data_views.cc | 37 if (elements.size() == 1 && elements[0].is_url) { 38 if (elements[0].url.SchemeIs(kJavaScriptScheme)) { 39 data->SetString(base::UTF8ToUTF16(elements[0].url.spec())); 41 data->SetURL(elements[0].url, elements[0].title); 52 elements.clear();
|
/external/chromium_org/third_party/icu/source/common/ |
H A D | uvectr32.cpp | 31 elements(NULL) 40 elements(0) 58 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); 59 if (elements == 0) { 67 uprv_free(elements); 68 elements = 0; 78 elements[i] = other.elements[i]; 88 if (elements[i] != other.elements[ [all...] |
H A D | uvectr64.cpp | 28 elements(NULL) 37 elements(0) 55 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); 56 if (elements == 0) { 64 uprv_free(elements); 65 elements = 0; 75 elements[i] = other.elements[i]; 85 if (elements[i] != other.elements[ [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | ImmutableSet.java | 51 // Casting to any type is safe because the set will never hold any elements. 92 @Deprecated public static <E> ImmutableSet<E> of(E[] elements) { argument 93 return copyOf(elements); 96 public static <E> ImmutableSet<E> copyOf(E[] elements) { argument 97 checkNotNull(elements); 98 switch (elements.length) { 102 return of(elements[0]); 104 return create(elements); 108 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) { argument 109 Iterable<? extends E> iterable = elements; 113 copyOf(Iterable<? extends E> elements) argument 123 copyOf(Iterator<? extends E> elements) argument 155 create(E... elements) argument 196 add(E... elements) argument 203 addAll(Iterable<? extends E> elements) argument 212 addAll(Iterator<? extends E> elements) argument [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/value/ |
H A D | ImmutableAnnotationEncodedValue.java | 47 @Nonnull protected final ImmutableSet<? extends ImmutableAnnotationElement> elements; field in class:ImmutableAnnotationEncodedValue 50 @Nullable Collection<? extends AnnotationElement> elements) { 52 this.elements = ImmutableAnnotationElement.immutableSetOf(elements); 56 @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) { 58 this.elements = ImmutableUtils.nullToEmptySet(elements); 71 @Nonnull @Override public ImmutableSet<? extends ImmutableAnnotationElement> getElements() { return elements; } 49 ImmutableAnnotationEncodedValue(@onnull String type, @Nullable Collection<? extends AnnotationElement> elements) argument 55 ImmutableAnnotationEncodedValue(@onnull String type, @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) argument
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
H A D | SetGenerators.java | 57 @Override protected Set<String> create(String[] elements) { argument 58 return ImmutableSet.copyOf(elements); 69 public Set<Object> create(Object... elements) { argument 70 return ImmutableSet.copyOf(elements); 79 @Override protected Set<String> create(String[] elements) { argument 81 ImmutableSet.of(elements[0], elements[0]); 87 @Override protected SortedSet<String> create(String[] elements) { argument 88 return ImmutableSortedSet.copyOf(elements); 94 @Override protected SortedSet<String> create(String[] elements) { argument 104 create(String[] elements) argument 114 create(String[] elements) argument 129 create(String[] elements) argument 147 create(String[] elements) argument 162 create(String[] elements) argument 176 create( UnhashableObject[] elements) argument 184 create(String[] elements) argument 191 create(String[] elements) argument 201 create(String[] elements) argument 215 create(String[] elements) argument 228 create(String[] elements) argument 248 createExplicitComparator( String[] elements) argument [all...] |
/external/flac/libFLAC/ |
H A D | memory.c | 74 FLAC__bool FLAC__memory_alloc_aligned_int32_array(unsigned elements, FLAC__int32 **unaligned_pointer, FLAC__int32 **aligned_pointer) argument 82 FLAC__ASSERT(elements > 0); 87 if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ 90 pu = (FLAC__int32*)FLAC__memory_alloc_aligned(sizeof(*pu) * (size_t)elements, &u.pv); 103 FLAC__bool FLAC__memory_alloc_aligned_uint32_array(unsigned elements, FLAC__uint32 **unaligned_pointer, FLAC__uint32 **aligned_pointer) argument 111 FLAC__ASSERT(elements > 0); 116 if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ 119 pu = (FLAC__uint32*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); 132 FLAC__bool FLAC__memory_alloc_aligned_uint64_array(unsigned elements, FLAC__uint64 **unaligned_pointer, FLAC__uint64 **aligned_pointer) argument 140 FLAC__ASSERT(elements > 161 FLAC__memory_alloc_aligned_unsigned_array(unsigned elements, unsigned **unaligned_pointer, unsigned **aligned_pointer) argument 192 FLAC__memory_alloc_aligned_real_array(unsigned elements, FLAC__real **unaligned_pointer, FLAC__real **aligned_pointer) argument [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/ |
H A D | BuilderAnnotation.java | 43 @Nonnull final Set<? extends BuilderAnnotationElement> elements; field in class:BuilderAnnotation 47 @Nonnull Set<? extends BuilderAnnotationElement> elements) { 50 this.elements = elements; 62 return elements; 46 BuilderAnnotation(int visibility, @Nonnull BuilderTypeReference type, @Nonnull Set<? extends BuilderAnnotationElement> elements) argument
|
/external/chromium_org/chrome/browser/ui/webui/options/ |
H A D | settings_format_browsertest.js | 122 var elements = document.querySelectorAll(query); 123 assertTrue(elements.length > 0); 124 for (var i = 0; i < elements.length; i++) { 125 var element = elements[i]; 137 var elements = document.querySelectorAll(query); 138 for (var i = 0; i < elements.length; i++) { 139 var element = elements[i]; 149 var elements = document.querySelectorAll('input[type=radio]'); 150 for (var i = 0; i < elements.length; i++) { 151 var element = elements[ [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
H A D | SetEqualsTester.java | 39 "A Set should equal any other Set containing the same elements.", 45 Collection<E> elements = getSampleElements(getNumElements() - 1); 46 elements.add(getSubjectGenerator().samples().e3); 49 "A Set should not equal another Set containing different elements.", 50 getSet().equals(MinimalSet.from(elements)) 57 Collection<E> elements = getSampleElements(getNumElements() - 1); 58 elements.add(null); 60 collection = getSubjectGenerator().create(elements.toArray()); 61 assertTrue("A Set should equal any other Set containing the same elements," 62 + " even if some elements ar [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/ |
H A D | HTMLAllCollection.cpp | 54 if (WillBeHeapVector<RawPtrWillBeMember<Element> >* elements = cache.getElementsById(name)) { 55 if (index < elements->size()) 56 return elements->at(index); 57 index -= elements->size(); 60 if (WillBeHeapVector<RawPtrWillBeMember<Element> >* elements = cache.getElementsByName(name)) { 61 if (index < elements->size()) 62 return elements->at(index);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | MultisetCollectionTest.java | 69 protected Multiset<String> create(String[] elements) { 70 return TreeMultiset.create(Arrays.asList(elements)); 88 protected Multiset<String> create(String[] elements) { 90 result.addAll(Arrays.asList(elements)); 148 @Override protected Multiset<String> create(String[] elements) { 149 return HashMultiset.create(asList(elements)); 156 @Override protected Multiset<String> create(String[] elements) { 158 TreeMultiset.create(asList(elements))); 169 @Override protected Multiset<String> create(String[] elements) { 171 TreeMultiset.create(asList(elements))); [all...] |
/external/mockito/src/org/mockito/internal/util/collections/ |
H A D | Sets.java | 27 public static <T> Set<T> newSet(T ... elements) { argument 28 if (elements == null) { 29 throw new IllegalArgumentException("Expected an array of elements (or empty array) but received a null."); 31 return new LinkedHashSet<T>(asList(elements));
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
H A D | IntSet.java | 55 * Returns the count of unique elements in this set. 57 * @return {@code > = 0;} count of unique elements 59 int elements(); method in interface:IntSet
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
H A D | MinimalIterable.java | 53 * Returns an iterable whose iterator returns the given elements in order. 55 public static <E> MinimalIterable<E> of(E... elements) { argument 57 return new MinimalIterable<E>(Arrays.asList(elements).iterator()); 61 * Returns an iterable whose iterator returns the given elements in order. 62 * The elements are copied out of the source collection at the time this 66 public static <E> MinimalIterable<E> from(final Collection<E> elements) { argument 67 return (MinimalIterable) of(elements.toArray());
|
H A D | TestEnumSetGenerator.java | 39 public Set<AnEnum> create(Object... elements) { argument 40 AnEnum[] array = new AnEnum[elements.length]; 42 for (Object e : elements) { 48 protected abstract Set<AnEnum> create(AnEnum[] elements); argument
|