Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 1724) sorted by relevance

12345678910>>...69

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DRemoteDebugEventSocketListener.cs337 string[] elements = GetEventElements(line); in Dispatch()
338 if (elements == null || elements[0] == null) { in Dispatch()
342 if (elements[0].Equals("enterRule")) { in Dispatch()
343 listener.EnterRule(elements[1], elements[2]); in Dispatch()
344 } else if (elements[0].Equals("exitRule")) { in Dispatch()
345 listener.ExitRule(elements[1], elements[2]); in Dispatch()
346 } else if (elements[0].Equals("enterAlt")) { in Dispatch()
347 listener.EnterAlt(int.Parse(elements[1])); in Dispatch()
348 } else if (elements[0].Equals("enterSubRule")) { in Dispatch()
349 listener.EnterSubRule(int.Parse(elements[1])); in Dispatch()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DRemoteDebugEventSocketListener.cs420 string[] elements = GetEventElements( line ); in Dispatch()
421 if ( elements == null || elements[0] == null ) in Dispatch()
426 if ( elements[0].Equals( "enterRule" ) ) in Dispatch()
428 listener.EnterRule( elements[1], elements[2] ); in Dispatch()
430 else if ( elements[0].Equals( "exitRule" ) ) in Dispatch()
432 listener.ExitRule( elements[1], elements[2] ); in Dispatch()
434 else if ( elements[0].Equals( "enterAlt" ) ) in Dispatch()
436 listener.EnterAlt( int.Parse( elements[1] ) ); in Dispatch()
438 else if ( elements[0].Equals( "enterSubRule" ) ) in Dispatch()
440 listener.EnterSubRule( int.Parse( elements[1] ) ); in Dispatch()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DRemoteDebugEventSocketListener.java254 String[] elements = getEventElements(line); in dispatch() local
255 if ( elements==null || elements[0]==null ) { in dispatch()
259 if ( elements[0].equals("enterRule") ) { in dispatch()
260 listener.enterRule(elements[1], elements[2]); in dispatch()
262 else if ( elements[0].equals("exitRule") ) { in dispatch()
263 listener.exitRule(elements[1], elements[2]); in dispatch()
265 else if ( elements[0].equals("enterAlt") ) { in dispatch()
266 listener.enterAlt(Integer.parseInt(elements[1])); in dispatch()
268 else if ( elements[0].equals("enterSubRule") ) { in dispatch()
269 listener.enterSubRule(Integer.parseInt(elements[1])); in dispatch()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationRootElements.java27 elements = rootElements; in CollationRootElements()
83 return ((int)elements[IX_SEC_TER_BOUNDARIES] << 8) & 0xff00; in getTertiaryBoundary()
90 return elements[(int)elements[IX_FIRST_TERTIARY_INDEX]] & ~SEC_TER_DELTA_FLAG; in getFirstTertiaryCE()
97 return elements[(int)elements[IX_FIRST_SECONDARY_INDEX] - 1] & ~SEC_TER_DELTA_FLAG; in getLastTertiaryCE()
105 return ((int)elements[IX_SEC_TER_BOUNDARIES] >> 16) & 0xff00; in getLastCommonSecondary()
115 return ((int)elements[IX_SEC_TER_BOUNDARIES] >> 8) & 0xff00; in getSecondaryBoundary()
122 return elements[(int)elements[IX_FIRST_SECONDARY_INDEX]] & ~SEC_TER_DELTA_FLAG; in getFirstSecondaryCE()
129 return elements[(int)elements[IX_FIRST_PRIMARY_INDEX] - 1] & ~SEC_TER_DELTA_FLAG; in getLastSecondaryCE()
136 return elements[(int)elements[IX_FIRST_PRIMARY_INDEX]]; // step=0: cannot be a range end in getFirstPrimary()
152 assert(p > elements[(int)elements[IX_FIRST_PRIMARY_INDEX]]); in lastCEWithPrimaryBefore()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationRootElements.java25 elements = rootElements; in CollationRootElements()
81 return ((int)elements[IX_SEC_TER_BOUNDARIES] << 8) & 0xff00; in getTertiaryBoundary()
88 return elements[(int)elements[IX_FIRST_TERTIARY_INDEX]] & ~SEC_TER_DELTA_FLAG; in getFirstTertiaryCE()
95 return elements[(int)elements[IX_FIRST_SECONDARY_INDEX] - 1] & ~SEC_TER_DELTA_FLAG; in getLastTertiaryCE()
103 return ((int)elements[IX_SEC_TER_BOUNDARIES] >> 16) & 0xff00; in getLastCommonSecondary()
113 return ((int)elements[IX_SEC_TER_BOUNDARIES] >> 8) & 0xff00; in getSecondaryBoundary()
120 return elements[(int)elements[IX_FIRST_SECONDARY_INDEX]] & ~SEC_TER_DELTA_FLAG; in getFirstSecondaryCE()
127 return elements[(int)elements[IX_FIRST_PRIMARY_INDEX] - 1] & ~SEC_TER_DELTA_FLAG; in getLastSecondaryCE()
134 return elements[(int)elements[IX_FIRST_PRIMARY_INDEX]]; // step=0: cannot be a range end in getFirstPrimary()
150 assert(p > elements[(int)elements[IX_FIRST_PRIMARY_INDEX]]); in lastCEWithPrimaryBefore()
[all …]
/external/guava/guava/src/com/google/common/collect/
DImmutableSet.java152 Object[] elements = new Object[paramCount + others.length]; in of() local
153 elements[0] = e1; in of()
154 elements[1] = e2; in of()
155 elements[2] = e3; in of()
156 elements[3] = e4; in of()
157 elements[4] = e5; in of()
158 elements[5] = e6; in of()
159 System.arraycopy(others, 0, elements, paramCount, others.length); in of()
160 return construct(elements.length, elements); in of()
178 private static <E> ImmutableSet<E> construct(int n, Object... elements) { in construct() argument
[all …]
DQueues.java71 public static <E> ArrayDeque<E> newArrayDeque(Iterable<? extends E> elements) { in newArrayDeque() argument
72 if (elements instanceof Collection) { in newArrayDeque()
73 return new ArrayDeque<E>(Collections2.cast(elements)); in newArrayDeque()
76 Iterables.addAll(deque, elements); in newArrayDeque()
94 Iterable<? extends E> elements) { in newConcurrentLinkedQueue() argument
95 if (elements instanceof Collection) { in newConcurrentLinkedQueue()
96 return new ConcurrentLinkedQueue<E>(Collections2.cast(elements)); in newConcurrentLinkedQueue()
99 Iterables.addAll(queue, elements); in newConcurrentLinkedQueue()
131 public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(Iterable<? extends E> elements) { in newLinkedBlockingDeque() argument
132 if (elements instanceof Collection) { in newLinkedBlockingDeque()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSetGenerators.java66 @Override protected Set<String> create(String[] elements) { in create() argument
67 return ImmutableSet.copyOf(elements); in create()
78 public Set<Object> create(Object... elements) { in create() argument
79 return ImmutableSet.copyOf(elements); in create()
88 @Override protected Set<String> create(String[] elements) { in create() argument
90 ImmutableSet.of(elements[0], elements[0]); in create()
96 @Override protected SortedSet<String> create(String[] elements) { in create() argument
97 return ImmutableSortedSet.copyOf(elements); in create()
103 @Override protected SortedSet<String> create(String[] elements) { in create() argument
104 List<String> list = Lists.newArrayList(elements); in create()
[all …]
DListGenerators.java46 @Override protected List<String> create(String[] elements) { in create() argument
47 return ImmutableList.copyOf(elements); in create()
52 @Override protected List<String> create(String[] elements) { in create() argument
54 for (String element : elements) { in create()
63 @Override protected List<String> create(String[] elements) { in create() argument
65 .addAll(asList(elements)) in create()
72 @Override protected List<String> create(String[] elements) { in create() argument
73 List<String> list = asList(elements); in create()
81 @Override protected List<String> create(String[] elements) { in create() argument
83 String[] all = new String[elements.length + suffix.length]; in create()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DSetGenerators.java65 @Override protected Set<String> create(String[] elements) { in create() argument
66 return ImmutableSet.copyOf(elements); in create()
77 public Set<Object> create(Object... elements) { in create() argument
78 return ImmutableSet.copyOf(elements); in create()
87 @Override protected Set<String> create(String[] elements) { in create() argument
89 ImmutableSet.of(elements[0], elements[0]); in create()
95 @Override protected SortedSet<String> create(String[] elements) { in create() argument
96 return ImmutableSortedSet.copyOf(elements); in create()
102 @Override protected SortedSet<String> create(String[] elements) { in create() argument
103 List<String> list = Lists.newArrayList(elements); in create()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
DIntArrayList.java39 protected int[] elements = null; field in IntArrayList
46 elements = new int[initialCapacity]; in IntArrayList()
54 int v = elements[i]; in set()
55 elements[i] = newValue; in set()
60 if ( n>=elements.length ) { in add()
63 elements[n] = o; in add()
69 if ( newSize>=elements.length ) { in setSize()
76 ensureCapacity((elements.length * 3)/2 + 1); in grow()
81 int element = elements[i]; in contains()
90 int oldCapacity = elements.length; in ensureCapacity()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationrootelements.cpp27 U_ASSERT(p > elements[elements[IX_FIRST_PRIMARY_INDEX]]); in lastCEWithPrimaryBefore()
29 uint32_t q = elements[index]; in lastCEWithPrimaryBefore()
35 secTer = elements[index - 1]; in lastCEWithPrimaryBefore()
44 p = elements[index]; in lastCEWithPrimaryBefore()
58 q = elements[++index]; in lastCEWithPrimaryBefore()
74 if(p != (elements[index] & 0xffffff00)) { in firstCEWithPrimaryAtLeast()
76 p = elements[++index]; in firstCEWithPrimaryAtLeast()
92 uint32_t q = elements[index]; in getPrimaryBefore()
100 p = elements[--index]; in getPrimaryBefore()
106 uint32_t nextElement = elements[index + 1]; in getPrimaryBefore()
[all …]
Dcollationrootelements.h36 : elements(rootElements), length(rootElementsLength) {} in CollationRootElements()
93 return (elements[IX_SEC_TER_BOUNDARIES] << 8) & 0xff00; in getTertiaryBoundary()
100 return elements[elements[IX_FIRST_TERTIARY_INDEX]] & ~SEC_TER_DELTA_FLAG; in getFirstTertiaryCE()
107 return elements[elements[IX_FIRST_SECONDARY_INDEX] - 1] & ~SEC_TER_DELTA_FLAG; in getLastTertiaryCE()
115 return (elements[IX_SEC_TER_BOUNDARIES] >> 16) & 0xff00; in getLastCommonSecondary()
125 return (elements[IX_SEC_TER_BOUNDARIES] >> 8) & 0xff00; in getSecondaryBoundary()
132 return elements[elements[IX_FIRST_SECONDARY_INDEX]] & ~SEC_TER_DELTA_FLAG; in getFirstSecondaryCE()
139 return elements[elements[IX_FIRST_PRIMARY_INDEX] - 1] & ~SEC_TER_DELTA_FLAG; in getLastSecondaryCE()
146 return elements[elements[IX_FIRST_PRIMARY_INDEX]]; // step=0: cannot be a range end in getFirstPrimary()
269 const uint32_t *elements; variable
/external/icu/icu4c/source/common/
Duvector.cpp35 elements(0), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
45 elements(0), in UVector()
55 elements(0), in UVector()
65 elements(0), in UVector()
80 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init()
81 if (elements == 0) { in _init()
90 uprv_free(elements); in ~UVector()
91 elements = 0; in ~UVector()
103 if (elements[i].pointer != 0 && deleter != 0) { in assign()
104 (*deleter)(elements[i].pointer); in assign()
[all …]
Duvectr32.cpp33 elements(NULL) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
42 elements(0) in UVector32()
60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
61 if (elements == 0) { in _init()
69 uprv_free(elements); in ~UVector32()
70 elements = 0; in ~UVector32()
80 elements[i] = other.elements[i]; in assign()
90 if (elements[i] != other.elements[i]) { in operator ==()
100 elements[index] = elem; in setElementAt()
109 elements[i] = elements[i-1]; in insertElementAt()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSet.java82 public static <E> ImmutableSet<E> copyOf(E[] elements) { in copyOf() argument
83 checkNotNull(elements); in copyOf()
84 switch (elements.length) { in copyOf()
88 return of(elements[0]); in copyOf()
90 return create(elements); in copyOf()
94 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) { in copyOf() argument
95 Iterable<? extends E> iterable = elements; in copyOf()
99 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) { in copyOf() argument
100 if (elements instanceof ImmutableSet && !(elements instanceof ImmutableSortedSet)) { in copyOf()
102 ImmutableSet<E> set = (ImmutableSet<E>) elements; in copyOf()
[all …]
/external/skia/tests/
DLListTest.cpp31 ListElement elements[4]) { in check_list()
37 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0])); in check_list()
38 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1])); in check_list()
39 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2])); in check_list()
40 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3])); in check_list()
46 ListElement elements[4] = { in test_tinternallist() local
54 check_list(list, reporter, true, 0, false, false, false, false, elements); in test_tinternallist()
56 list.addToHead(&elements[0]); in test_tinternallist()
58 check_list(list, reporter, false, 1, true, false, false, false, elements); in test_tinternallist()
60 list.addToHead(&elements[1]); in test_tinternallist()
[all …]
/external/flac/libFLAC/
Dmemory.c62 FLAC__bool FLAC__memory_alloc_aligned_int32_array(size_t elements, FLAC__int32 **unaligned_pointer,… in FLAC__memory_alloc_aligned_int32_array() argument
70 FLAC__ASSERT(elements > 0); in FLAC__memory_alloc_aligned_int32_array()
75 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_int32_array()
78 pu = FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); in FLAC__memory_alloc_aligned_int32_array()
91 FLAC__bool FLAC__memory_alloc_aligned_uint32_array(size_t elements, FLAC__uint32 **unaligned_pointe… in FLAC__memory_alloc_aligned_uint32_array() argument
99 FLAC__ASSERT(elements > 0); in FLAC__memory_alloc_aligned_uint32_array()
104 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_uint32_array()
107 pu = FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); in FLAC__memory_alloc_aligned_uint32_array()
120 FLAC__bool FLAC__memory_alloc_aligned_uint64_array(size_t elements, FLAC__uint64 **unaligned_pointe… in FLAC__memory_alloc_aligned_uint64_array() argument
128 FLAC__ASSERT(elements > 0); in FLAC__memory_alloc_aligned_uint64_array()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DAbstractContainerTester.java87 protected final void expectContents(E... elements) { in expectContents() argument
88 expectContents(Arrays.asList(elements)); in expectContents()
139 protected final void expectAdded(E... elements) { in expectAdded() argument
141 expected.addAll(Arrays.asList(elements)); in expectAdded()
145 protected final void expectAdded(int index, E... elements) { in expectAdded() argument
146 expectAdded(index, Arrays.asList(elements)); in expectAdded()
149 protected final void expectAdded(int index, Collection<E> elements) { in expectAdded() argument
151 expected.addAll(index, elements); in expectAdded()
161 protected void expectMissing(E... elements) { in expectMissing() argument
162 for (E element : elements) { in expectMissing()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMultisetsCollectionTest.java103 @Override protected Multiset<String> create(String[] elements) { in unmodifiableMultisetGenerator()
105 LinkedHashMultiset.create(asList(elements))); in unmodifiableMultisetGenerator()
124 @Override protected Multiset<String> create(String[] elements) {
126 TreeMultiset.create(asList(elements)));
138 protected Multiset<String> create(String[] elements) {
141 for (int i = 0; i < elements.length; i++) {
142 String element = elements[i];
149 multiset1.add(elements[i]);
151 multiset2.add(elements[i]);
161 @Override protected Multiset<String> create(String[] elements) {
[all …]
DSetOperationsTest.java49 @Override protected Set<String> create(String[] elements) { in suite()
60 @Override protected Set<String> create(String[] elements) { in suite()
61 checkArgument(elements.length == 1); in suite()
63 Sets.<String>newHashSet(elements), Sets.newHashSet(elements)); in suite()
71 @Override protected Set<String> create(String[] elements) { in suite()
73 Sets.<String>newHashSet(), Sets.newHashSet(elements)); in suite()
82 @Override protected Set<String> create(String[] elements) { in suite()
84 Sets.newHashSet(elements), Sets.<String>newHashSet()); in suite()
93 @Override protected Set<String> create(String[] elements) { in suite()
94 checkArgument(elements.length == 3); in suite()
[all …]
/external/libmojo/mojo/edk/system/
Ddata_pipe_unittest.cc59 MojoResult WriteData(const void* elements, in WriteData() argument
62 return MojoWriteData(producer_, elements, num_bytes, in WriteData()
67 MojoResult ReadData(void* elements, in ReadData() argument
76 return MojoReadData(consumer_, elements, num_bytes, flags); in ReadData()
91 MojoResult BeginReadData(const void** elements, in BeginReadData() argument
97 return MojoBeginReadData(consumer_, elements, num_bytes, flags); in BeginReadData()
104 MojoResult BeginWriteData(void** elements, in BeginWriteData() argument
110 return MojoBeginWriteData(producer_, elements, num_bytes, flags); in BeginWriteData()
146 int32_t elements[10] = {}; in TEST_F() local
150 static_cast<uint32_t>(arraysize(elements) * sizeof(elements[0])); in TEST_F()
[all …]
/external/vogar/src/vogar/
DClasspath.java31 private final List<File> elements = new ArrayList<File>(); field in Classpath
39 result.elements.addAll(files); in of()
43 public void addAll(File... elements) { in addAll() argument
44 addAll(Arrays.asList(elements)); in addAll()
47 public void addAll(Collection<File> elements) { in addAll() argument
48 this.elements.addAll(elements); in addAll()
52 this.elements.addAll(anotherClasspath.elements); in addAll()
56 return elements; in getElements()
60 return elements.isEmpty(); in isEmpty()
64 return elements.contains(file); in contains()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DRewriteRuleElementStream.cs69 protected IList elements; field in Antlr.Runtime.Tree.RewriteRuleElementStream
102 … public RewriteRuleElementStream( ITreeAdaptor adaptor, string elementDescription, IList elements ) in RewriteRuleElementStream() argument
106 this.elements = elements; in RewriteRuleElementStream()
129 if ( elements != null ) in Add()
131 elements.Add( el ); in Add()
140 elements = new List<object>( 5 ); in Add()
141 elements.Add( singleElement ); in Add()
143 elements.Add( el ); in Add()
198 object o = ToTree( elements[cursor] ); in NextCore()
227 ( elements != null && cursor < elements.Count );
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DRewriteRuleElementStream.cs67 protected IList elements; field in Antlr.Runtime.Tree.RewriteRuleElementStream
98 … public RewriteRuleElementStream(ITreeAdaptor adaptor, string elementDescription, IList elements) in RewriteRuleElementStream() argument
101 this.elements = elements; in RewriteRuleElementStream()
121 if (elements != null) { // if in list, just add in Add()
122 elements.Add(el); in Add()
130 elements = new List<object>(5); in Add()
131 elements.Add(singleElement); in Add()
133 elements.Add(el); in Add()
181 object o = ToTree(elements[cursor]); in NextCore()
207 (elements != null && cursor < elements.Count);
[all …]

12345678910>>...69