HomeSort by relevance Sort by last modified time
    Searched refs:elements (Results 26 - 50 of 1272) sorted by null

12 3 4 5 6 7 8 91011>>

  /libcore/luni/src/main/java/java/util/
PriorityQueue.java 24 * A PriorityQueue holds elements on a priority heap, which orders the elements
26 * construction time. If the queue uses natural ordering, only elements that are
49 private transient E[] elements; field in class:PriorityQueue
87 elements = newElementArray(initialCapacity);
92 * Constructs a priority queue that contains the elements of a collection.
95 * elements.
98 * the collection whose elements will be added to the priority
101 * if any of the elements in the collection are not comparable.
103 * if any of the elements in the collection are null
    [all...]
  /external/guava/guava/src/com/google/common/collect/
ImmutableCollection.java 28 * An immutable collection. Does not permit null elements.
31 * #asList()} method, which returns a list view of the collection's elements.
50 * Returns an unmodifiable iterator across the elements in this collection.
219 private final E[] elements; field in class:ImmutableCollection.ArrayImmutableCollection
221 ArrayImmutableCollection(E[] elements) {
222 this.elements = elements;
227 return elements.length;
235 return Iterators.forArray(elements);
239 return elements.length == 1 ? new SingletonImmutableList<E>(elements[0]
253 final Object[] elements; field in class:ImmutableCollection.SerializedForm
    [all...]
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]; local
147 elements[0] = e1;
148 elements[1] = e2
    [all...]
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) {
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);
    [all...]
  /external/icu4c/common/
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[i].pointer)
    [all...]
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[i])
    [all...]
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[i])
    [all...]
  /external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
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 = []
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
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) {
93 return copyOf(elements);
96 public static <E> ImmutableSet<E> copyOf(E[] elements) {
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) {
109 Iterable<? extends E> iterable = elements;
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
RewriteRuleElementStream.cs 38 * A generic list of elements tracked in an alternative to be used in
45 * Once you start next()ing, do not try to add more elements. It will
58 * which bumps it to 1 meaning no more elements.
63 /** <summary>Track single elements w/o creating a list. Upon 2nd add, alloc list */
67 protected IList elements; field in class:Antlr.Runtime.Tree.RewriteRuleElementStream
98 public RewriteRuleElementStream(ITreeAdaptor adaptor, string elementDescription, IList elements)
101 this.elements = elements;
106 * not consumed any of its elements. Elements themselves are untouched
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
RewriteRuleElementStream.cs 39 * A generic list of elements tracked in an alternative to be used in
46 * Once you start next()ing, do not try to add more elements. It will
60 * which bumps it to 1 meaning no more elements.
65 /** <summary>Track single elements w/o creating a list. Upon 2nd add, alloc list */
69 protected IList elements; field in class:Antlr.Runtime.Tree.RewriteRuleElementStream
102 public RewriteRuleElementStream( ITreeAdaptor adaptor, string elementDescription, IList elements )
106 this.elements = elements;
111 * not consumed any of its elements. Elements themselves are untouched
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
SetGenerators.java 57 @Override protected Set<String> create(String[] elements) {
58 return ImmutableSet.copyOf(elements);
69 public Set<Object> create(Object... elements) {
70 return ImmutableSet.copyOf(elements);
79 @Override protected Set<String> create(String[] elements) {
81 ImmutableSet.of(elements[0], elements[0]);
87 @Override protected SortedSet<String> create(String[] elements) {
88 return ImmutableSortedSet.copyOf(elements);
94 @Override protected SortedSet<String> create(String[] elements) {
    [all...]
  /external/flac/libFLAC/
memory.c 74 FLAC__bool FLAC__memory_alloc_aligned_int32_array(unsigned elements, FLAC__int32 **unaligned_pointer, FLAC__int32 **aligned_pointer)
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)
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)
140 FLAC__ASSERT(elements > 0)
    [all...]
  /external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
ArrayUtils.java 36 * Utility method to sort two related arrays - that is, two arrays where the elements are related to each other
39 * array is sorted by it's related item in the first array, so that the same elements are still related to each
58 element[] elements = new element[firstArray.length]; local
60 Arrays.sort(elements, new Comparator<element>(){
66 for (int i=0; i<elements.length; i++) {
67 firstArray[i] = elements[i].first;
68 secondArray[i] = elements[i].second;
  /external/webkit/LayoutTests/fast/dom/HTMLFormElement/script-tests/
elements-not-in-document.js 1 description('Test the elements collection when the form is not a descendant of the document. This test case failed in an early version of Acid3.');
15 shouldBe("f.elements.length", "1");
16 shouldBe("f.elements[0]", "i");
17 shouldBe("f.elements.first", "i");
19 f.elements.second;
25 shouldBe("f.elements.second", "i");
32 shouldBe("f.elements.length", "1");
33 shouldBe("f.elements[0]", "i");
34 shouldBe("f.elements.first", "undefined");
35 shouldBe("f.elements.second", "i")
    [all...]
  /frameworks/base/core/java/com/google/android/collect/
Sets.java 48 * Creates a {@code HashSet} instance containing the given elements.
60 * @param elements the elements that the set should contain
61 * @return a newly-created {@code HashSet} containing those elements (minus
64 public static <E> HashSet<E> newHashSet(E... elements) {
65 int capacity = elements.length * 4 / 3 + 1;
67 Collections.addAll(set, elements);
81 * Creates a {@code SortedSet} instance containing the given elements.
83 * @param elements the elements that the set should contai
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
SetEqualsTester.java 39 "A Set should equal any other Set containing the same elements.",
45 Collection<E> elements = getSampleElements(getNumElements() - 1); local
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); local
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 are null."
68 Collection<E> elements = getSampleElements(getNumElements() - 1); local
    [all...]
  /external/v8/test/mjsunit/
for-in-special-cases.js 75 var elements = Accumulate("abcd");
76 // We do not assume that for-in enumerates elements in order.
77 assertTrue(-1 != elements.indexOf("0"));
78 assertTrue(-1 != elements.indexOf("1"));
79 assertTrue(-1 != elements.indexOf("2"));
80 assertTrue(-1 != elements.indexOf("3"));
81 assertEquals(4, elements.length);
97 var elements = Accumulate(y);
99 // If for-in returns elements in a different order on multiple calls, this
101 assertEquals(elements, elements1, "For-in elements not the same both times.")
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
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/webkit/Source/WebCore/platform/network/curl/
FormDataStreamCurl.cpp 52 Vector<FormDataElement> elements;
54 elements = m_resourceHandle->firstRequest().httpBody()->elements();
56 if (m_formDataElementIndex >= elements.size())
59 FormDataElement element = elements[m_formDataElementIndex];
106 Vector<FormDataElement> elements; local
108 elements = m_resourceHandle->firstRequest().httpBody()->elements();
110 return m_formDataElementIndex < elements.size();
  /packages/apps/Tag/src/com/android/apps/tag/message/
NdefMessageParser.java 52 List<ParsedNdefRecord> elements = new ArrayList<ParsedNdefRecord>(); local
55 elements.add(SmartPoster.parse(record));
57 elements.add(UriRecord.parse(record));
59 elements.add(TextRecord.parse(record));
61 elements.add(ImageRecord.parse(record));
63 elements.add(VCardRecord.parse(record));
65 elements.add(MimeRecord.parse(record));
67 elements.add(new UnknownRecord());
70 return elements;
  /dalvik/vm/native/
java_lang_Throwable.cpp 48 ArrayObject* elements = NULL; local
55 elements = dvmGetStackTrace(stackState);
56 RETURN_PTR(elements);
  /external/libffi/testsuite/libffi.call/
pyobjc-tc.c 50 point_type.elements = malloc(3 * sizeof(ffi_type*));
51 point_type.elements[0] = &ffi_type_float;
52 point_type.elements[1] = &ffi_type_float;
53 point_type.elements[2] = NULL;
58 size_type.elements = malloc(3 * sizeof(ffi_type*));
59 size_type.elements[0] = &ffi_type_float;
60 size_type.elements[1] = &ffi_type_float;
61 size_type.elements[2] = NULL;
66 rect_type.elements = malloc(3 * sizeof(ffi_type*));
67 rect_type.elements[0] = &point_type
    [all...]
  /external/mockito/src/org/mockito/internal/util/collections/
Sets.java 27 public static <T> Set<T> newSet(T ... elements) {
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));
  /dalvik/dexgen/src/com/android/dexgen/util/
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

Completed in 867 milliseconds

12 3 4 5 6 7 8 91011>>