/external/webkit/Source/WebCore/editing/ |
H A D | RemoveFormatCommand.cpp | 48 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, elements, ()); 49 if (elements.isEmpty()) { 50 elements.add(acronymTag); 51 elements.add(bTag); 52 elements.add(bdoTag); 53 elements.add(bigTag); 54 elements.add(citeTag); 55 elements.add(codeTag); 56 elements.add(dfnTag); 57 elements [all...] |
/external/v8/test/mjsunit/ |
H A D | 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, elements [all...] |
/external/clang/test/SemaCXX/ |
H A D | for-range-unused.cpp | 10 for (auto& e : elements) 14 T elements[10]; member in struct:Vector
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/ |
H A D | IntArrayList.java | 39 protected int[] elements = null; field in class:IntArrayList 46 elements = new int[initialCapacity]; 54 int v = elements[i]; 55 elements[i] = newValue; 60 if ( n>=elements.length ) { 63 elements[n] = o; 69 if ( newSize>=elements.length ) { 76 ensureCapacity((elements.length * 3)/2 + 1); 81 int element = elements[i]; 90 int oldCapacity = elements 106 public int[] elements() { method in class:IntArrayList [all...] |
H A D | OrderedHashSet.java | 35 /** A HashMap that remembers the order that the elements were added. 41 /** Track the elements as they are added to the set */ 42 protected List<T> elements = new ArrayList<T>(); field in class:OrderedHashSet 45 return elements.get(i); 52 T oldElement = elements.get(i); 53 elements.set(i,value); // update list 66 elements.add((T)value); 74 elements.remove(o); 80 elements.clear(); 84 /** Return the List holding list of table elements 87 public List<T> elements() { method in class:OrderedHashSet [all...] |
/external/webkit/LayoutTests/fast/dom/getElementsByClassName/resources/ |
H A D | common.js | 2 function t(collection, elements) { 9 if(collection.length != elements.length) { 11 log += "Got " + collection.length + " elements, expected " + elements.length + ". " 13 for(var i = 0, max = collection.length > elements.length ? elements.length : collection.length; i < max; i++) { 14 if(collection[i] != elements[i]) { 17 log += ", expected element `" + elements[i].tagName + "` (" + elements[i].namespaceURI + "). "
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
H A D | RemoteDebugEventSocketListener.cs | 337 string[] elements = GetEventElements(line); 338 if (elements == null || elements[0] == null) { 342 if (elements[0].Equals("enterRule")) { 343 listener.EnterRule(elements[1], elements[2]); 344 } else if (elements[0].Equals("exitRule")) { 345 listener.ExitRule(elements[1], elements[2]); 346 } else if (elements[ 494 DeserializeNode(string[] elements, int offset) argument 505 DeserializeToken(string[] elements, int offset) argument [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
H A D | RemoteDebugEventSocketListener.cs | 420 string[] elements = GetEventElements( line ); 421 if ( elements == null || elements[0] == null ) 426 if ( elements[0].Equals( "enterRule" ) ) 428 listener.EnterRule( elements[1], elements[2] ); 430 else if ( elements[0].Equals( "exitRule" ) ) 432 listener.ExitRule( elements[1], elements[2] ); 434 else if ( elements[ 642 DeserializeNode( string[] elements, int offset ) argument 654 DeserializeToken( string[] elements, int offset ) argument [all...] |
/external/javassist/src/main/javassist/bytecode/ |
H A D | LongVector.java | 23 private int elements; field in class:LongVector 27 elements = 0; 33 elements = 0; 36 public int size() { return elements; } 41 if (i < 0 || elements <= i) 48 int nth = elements >> ABITS; 49 int offset = elements & (ASIZE - 1); 61 elements++;
|
/external/flac/libFLAC/include/private/ |
H A D | memory.h | 48 FLAC__bool FLAC__memory_alloc_aligned_int32_array(unsigned elements, FLAC__int32 **unaligned_pointer, FLAC__int32 **aligned_pointer); 49 FLAC__bool FLAC__memory_alloc_aligned_uint32_array(unsigned elements, FLAC__uint32 **unaligned_pointer, FLAC__uint32 **aligned_pointer); 50 FLAC__bool FLAC__memory_alloc_aligned_uint64_array(unsigned elements, FLAC__uint64 **unaligned_pointer, FLAC__uint64 **aligned_pointer); 51 FLAC__bool FLAC__memory_alloc_aligned_unsigned_array(unsigned elements, unsigned **unaligned_pointer, unsigned **aligned_pointer); 53 FLAC__bool FLAC__memory_alloc_aligned_real_array(unsigned elements, FLAC__real **unaligned_pointer, FLAC__real **aligned_pointer);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
H A D | AbstractContainerTester.java | 27 * and {@link java.util.Map Map}) that contain elements. 84 * @param elements expected contents of {@link #container} 86 protected final void expectContents(E... elements) { argument 87 expectContents(Arrays.asList(elements)); 91 * Asserts that the collection under test contains exactly the given elements, 117 * Asserts that the collection under test contains exactly the elements it was 118 * initialized with plus the given elements, according to 122 * created, and the number of occurrences of all other elements has not 136 * @param elements expected additional contents of {@link #container} 138 protected final void expectAdded(E... elements) { argument 144 expectAdded(int index, E... elements) argument 148 expectAdded(int index, Collection<E> elements) argument 160 expectMissing(E... elements) argument 174 public final E[] elements; field in class:AbstractContainerTester.ArrayWithDuplicate 177 ArrayWithDuplicate(E[] elements, E duplicate) argument [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
H A D | 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) argument 101 this.elements = elements; 106 * not consumed any of its elements. Elements themselves are untouched. 121 if (elements ! [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
H A D | 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. 129 if ( elements ! [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
H A D | RewriteRuleElementStream.java | 33 /** A generic list of elements tracked in an alternative to be used in 38 * Once you start next()ing, do not try to add more elements. It will 48 * which bumps it to 1 meaning no more elements. 52 /** Track single elements w/o creating a list. Upon 2nd add, alloc list */ 56 protected List elements; field in class:RewriteRuleElementStream 94 List elements) 98 this.elements = elements; 102 * not consumed any of its elements. Elements themselves are untouched. 116 if ( elements! 92 RewriteRuleElementStream(TreeAdaptor adaptor, String elementDescription, List elements) argument [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
H A D | ListGenerators.java | 43 @Override protected List<String> create(String[] elements) { argument 44 return ImmutableList.copyOf(elements); 49 @Override protected List<String> create(String[] elements) { argument 51 for (String element : elements) { 60 @Override protected List<String> create(String[] elements) { argument 62 .addAll(asList(elements)) 69 @Override protected List<String> create(String[] elements) { argument 70 List<String> list = asList(elements); 78 @Override protected List<String> create(String[] elements) { argument 80 String[] all = new String[elements 90 create(String[] elements) argument 102 create(String[] elements) argument 124 create(UnhashableObject[] elements) argument [all...] |
/external/stlport/test/unit/ |
H A D | count_test.cpp | 49 int elements = count(numbers.begin(), numbers.end(), 2); local 50 CPPUNIT_ASSERT(elements==33); 52 elements = 0; 53 count(numbers.begin(), numbers.end(), 2, elements); 54 CPPUNIT_ASSERT(elements==33); 62 int elements = count_if(numbers.begin(), numbers.end(), odd); local 63 CPPUNIT_ASSERT(elements==33); 65 elements = 0; 66 count_if(numbers.begin(), numbers.end(), odd, elements); 67 CPPUNIT_ASSERT(elements [all...] |
/external/webkit/Source/WebCore/bindings/v8/custom/ |
H A D | V8HTMLFormElementCustom.cpp | 49 RefPtr<Node> formElement = form->elements()->item(index); 65 Vector<RefPtr<Node> > elements; local 66 imp->getNamedElements(v, elements); 67 if (elements.isEmpty()) 73 Vector<RefPtr<Node> > elements; local 74 imp->getNamedElements(v, elements); 75 ASSERT(!elements.isEmpty()); 77 if (elements.size() == 1) 78 return toV8(elements.at(0).release()); 80 return toV8(V8NamedNodesCollection::create(elements)); [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
H A D | RemoteDebugEventSocketListener.java | 254 String[] elements = getEventElements(line); 255 if ( elements==null || elements[0]==null ) { 259 if ( elements[0].equals("enterRule") ) { 260 listener.enterRule(elements[1], elements[2]); 262 else if ( elements[0].equals("exitRule") ) { 263 listener.exitRule(elements[1], elements[2]); 265 else if ( elements[ 433 deserializeNode(String[] elements, int offset) argument 444 deserializeToken(String[] elements, int offset) argument [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/ |
H A D | RewriteRuleElementStream.as | 30 /** A generic list of elements tracked in an alternative to be used in 35 * Once you start next()ing, do not try to add more elements. It will 45 * which bumps it to 1 meaning no more elements. 49 /** Track single elements w/o creating a list. Upon 2nd add, alloc list */ 53 protected var elements:Array; 78 this.elements = element as Array; 88 * not consumed any of its elements. Elements themselves are untouched. 102 if ( elements!=null ) { // if in list, just add 103 elements.push(el); 106 if ( singleElement == null ) { // no elements ye [all...] |
/external/guava/guava/src/com/google/common/collect/ |
H A D | 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) { argument 222 this.elements = elements; 227 return elements.length; 235 return Iterators.forArray(elements); 239 return elements 253 final Object[] elements; field in class:ImmutableCollection.SerializedForm 254 SerializedForm(Object[] elements) argument 303 add(E... elements) argument 322 addAll(Iterable<? extends E> elements) argument 341 addAll(Iterator<? extends E> elements) argument [all...] |
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...] |
/external/icu4c/common/ |
H A D | uvector.cpp | 32 elements(0), 42 elements(0), 52 elements(0), 62 elements(0), 77 elements = (UHashTok *)uprv_malloc(sizeof(UHashTok)*initialCapacity); 78 if (elements == 0) { 87 uprv_free(elements); 88 elements = 0; 100 if (elements[i].pointer != 0 && deleter != 0) { 101 (*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...] |
/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/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...] |