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

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/tests/api/java/util/
AbstractQueueTest.java 39 private Object[] elements = new Object[CAPACITY]; field in class:AbstractQueueTest.MockAbstractQueue
55 return (E) elements[currentIndex];
63 elements[i] = elements[i + 1];
83 elements[size++] = o;
91 E e = (E) elements[0];
93 elements[i] = elements[i + 1];
103 return (E) elements[0];
  /external/smack/src/org/apache/harmony/javax/security/auth/
Subject.java 527 private LinkedList<SST> elements; field in class:Subject.SecureSet
562 elements = new LinkedList<SST>();
566 // all collection elements are verified before adding
578 if (trust || !elements.contains(o)) {
579 elements.add(o);
607 if (!elements.contains(o)) {
608 elements.add(o);
623 return new SecureIterator(elements.iterator()) {
637 return new SecureIterator(elements.iterator());
651 return elements.size()
    [all...]
  /libcore/luni/src/main/java/javax/security/auth/
Subject.java 502 private LinkedList<SST> elements; field in class:Subject.SecureSet
537 elements = new LinkedList<SST>();
541 // all collection elements are verified before adding
551 if (trust || !elements.contains(o)) {
552 elements.add(o);
579 if (!elements.contains(o)) {
580 elements.add(o);
595 return new SecureIterator(elements.iterator()) {
607 return new SecureIterator(elements.iterator());
621 return elements.size()
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
QueuesTest.java 94 int elements = drain(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS, interruptibly); local
95 assertEquals(100, elements);
138 // asking to drain zero elements
163 int elements = Queues.drain(q, buf, -1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); local
164 assertEquals(elements, 0);
203 int elements = local
205 // so when this drains all elements, we know the thread has also been interrupted in between
207 assertEquals(100, elements);
268 final int elements; field in class:QueuesTest.Producer
270 Producer(BlockingQueue<Object> q, int elements) {
    [all...]
ImmutableSetTest.java 73 @Override protected Set<String> copyOf(String[] elements) {
74 return ImmutableSet.copyOf(elements);
77 @Override protected Set<String> copyOf(Collection<String> elements) {
78 return ImmutableSet.copyOf(elements);
81 @Override protected Set<String> copyOf(Iterable<String> elements) {
82 return ImmutableSet.copyOf(elements);
85 @Override protected Set<String> copyOf(Iterator<String> elements) {
86 return ImmutableSet.copyOf(elements);
TransformedImmutableListTest.java 38 @Override protected List<String> create(String[] elements) {
40 ImmutableList.copyOf(elements)) {
SetsTest.java 117 @Override protected Set<String> create(String[] elements) {
118 int size = elements.length;
122 Arrays.asList(elements).subList(0, size - 1))
123 : Sets.newHashSet(elements);
127 Arrays.asList(elements).subList(1, size))
137 @Override protected Set<String> create(String[] elements) {
138 Set<String> set1 = Sets.newHashSet(elements);
140 Set<String> set2 = Sets.newHashSet(elements);
150 @Override protected Set<String> create(String[] elements) {
151 Set<String> set1 = Sets.newHashSet(elements);
    [all...]
ImmutableSetCollectionTest.java 71 @Override protected Set<String> create(String[] elements) {
72 Set<String> set = ImmutableSet.copyOf(elements);
103 @Override protected SortedSet<String> create(String[] elements) {
104 SortedSet<String> set = ImmutableSortedSet.copyOf(elements);
136 @Override protected SortedSet<String> create(String[] elements) {
137 List<String> list = Lists.newArrayList(elements);
151 @Override protected SortedSet<String> create(String[] elements) {
152 List<String> list = Lists.newArrayList(elements);
166 @Override protected SortedSet<String> create(String[] elements) {
167 List<String> list = Lists.newArrayList(elements);
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
AbsoluteLayoutRule.java 62 final @Nullable IDragElement[] elements) {
64 if (elements.length == 0) {
74 drawFeedback(gc, node, elements, feedback);
84 IDragElement[] elements,
105 Rect be = elements[0].getBounds();
109 // for all dropped elements with valid bounds, offset at
114 for (IDragElement element : elements) {
118 // We don't have bounds for new elements. In this case
134 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements,
144 public void onDropLeave(@NonNull INode targetNode, @NonNull IDragElement[] elements,
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
SimpleElement.java 29 * Represents an XML element with a name, attributes and inner elements.
165 static SimpleElement findPrimary(SimpleElement[] elements, SelectionItem primary) {
166 if (elements == null || elements.length == 0) {
170 if (elements.length == 1 || primary == null) {
171 return elements[0];
174 for (SimpleElement element : elements) {
180 return elements[0];
211 /** Parses a string containing one or more elements. */
213 ArrayList<SimpleElement> elements = new ArrayList<SimpleElement>() local
    [all...]
GlobalCanvasDragInfo.java 65 * Registers the XML elements being dragged.
67 * @param elements The elements being dragged
68 * @param primary the "primary" element among the elements; when there is a
81 @NonNull SimpleElement[] elements,
85 mCurrentElements = elements;
91 /** Unregisters elements being dragged. */
104 /** Returns the elements being dragged. */
SelectionItem.java 166 * Returns elements representing the given selection of canvas items.
168 * @param items Items to wrap in elements
169 * @return An array of wrapper elements. Never null.
177 * Returns elements representing the given selection of canvas items.
179 * @param items Items to wrap in elements
181 * @return An array of wrapper elements. Never null.
187 List<SimpleElement> elements = new ArrayList<SimpleElement>(); local
193 elements.add(e);
205 elements.add(e);
208 return elements.toArray(new SimpleElement[elements.size()])
    [all...]
MoveGesture.java 65 * The elements currently being dragged. This will always be non-null for a valid
178 // Get the dragged elements.
314 SimpleElement[] elements = null; local
320 elements = (SimpleElement[]) event.data;
324 if (elements == null || elements.length < 1) {
329 if (mCurrentDragElements != null && Arrays.equals(elements, mCurrentDragElements)) {
330 elements = mCurrentDragElements;
338 createDocumentRoot(elements);
347 final SimpleElement[] elementsFinal = elements;
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
RewriteRuleSubtreeStream.cs 48 public RewriteRuleSubtreeStream(ITreeAdaptor adaptor, string elementDescription, IList elements)
49 : base(adaptor, elementDescription, elements) {
70 //System.Console.WriteLine("nextNode: elements={0}, singleElement={1}", elements, ((ITree)singleElement).ToStringTree());
73 // if out of elements and size is 1, dup (at most a single node
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
RewriteRuleSubtreeStream.cs 52 public RewriteRuleSubtreeStream( ITreeAdaptor adaptor, string elementDescription, IList elements )
53 : base( adaptor, elementDescription, elements )
76 //System.Console.WriteLine("nextNode: elements={0}, singleElement={1}", elements, ((ITree)singleElement).ToStringTree());
80 // if out of elements and size is 1, dup (at most a single node
  /external/apache-http/src/org/apache/http/client/methods/
HttpOptions.java 97 HeaderElement[] elements = header.getElements(); local
98 for (HeaderElement element : elements) {
  /external/guava/guava-testlib/src/com/google/common/collect/testing/
ReserializingTestCollectionGenerator.java 48 public Collection<E> create(Object... elements) {
49 return reserialize(delegate.create(elements));
  /external/mockito/src/org/mockito/
AdditionalAnswers.java 175 * Returns elements of the collection. Keeps returning the last element forever.
176 * Might be useful on occasion when you have a collection of elements to return.
186 * @param elements The collection of elements to return.
191 public static <T> Answer<T> returnsElementsOf(Collection<?> elements) {
192 return (Answer<T>) new ReturnsElementsOf(elements);
  /external/openssh/
gss-genr.c 54 memcmp(ctx->oid->elements, data, len) == 0);
62 xfree(ctx->oid->elements);
67 ctx->oid->elements = xmalloc(len);
68 memcpy(ctx->oid->elements, data, len);
75 ssh_gssapi_set_oid_data(ctx, oid->elements, oid->length);
167 xfree((*ctx)->oid->elements);
260 (memcmp(oid->elements, spnego_oid.elements, oid->length) == 0))
  /external/v8/src/
liveobjectlist-inl.h 91 // Iterates the elements in every lol and returns the one that matches the
98 Element* elements = lol->elements_; local
100 Element* element = &elements[i];
  /external/webkit/Source/WebCore/html/
HTMLFormElement.idl 27 readonly attribute HTMLCollection elements;
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
ZoomControlsRuleTest.java 29 IDragElement[] elements = TestDragElement.create(TestDragElement.create( local
46 DropFeedback feedback = rule.onDropEnter(layout, null/*targetView*/, elements);
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/generators/
VersionTrackerTask.java 35 private Hashtable elements; field in class:VersionTrackerTask
66 elements = new Hashtable();
136 elements.put(element,element+"_"+version);
146 Enumeration keys = elements.keys();
150 writer.println(key.toString()+"="+elements.get(key).toString());
  /external/antlr/antlr-3.4/runtime/C/src/
antlr3collections.c 402 /* Now we can free the elements and the entry in order
426 /* Now we can free the elements and the entry in order
793 /* There was one more bucket, see if it has any elements in it
1095 vector->elements = (pANTLR3_VECTOR_ELEMENT)ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_VECTOR_ELEMENT) * initialSize));
1099 vector->elements = vector->internal;
1102 if (vector->elements == NULL)
    [all...]
  /external/expat/amiga/
Makefile 27 clib2: clib2/libexpat.a clib2/xmlwf clib2/elements clib2/outline clib2/runtests clib2/benchmark
29 newlib: newlib/libexpat.a newlib/xmlwf newlib/elements newlib/outline newlib/runtests newlib/benchmark
31 library: libs/expat.library libs/xmlwf libs/elements libs/outline libs/runtests libs/benchmark
33 so: so/libexpat.so so/xmlwf so/elements so/outline so/runtests so/benchmark
119 clib2/elements: clib2/elements.o
123 clib2/elements.o: elements.c
183 newlib/elements: newlib/elements.
    [all...]

Completed in 7700 milliseconds

1 2 3 4 5 6 7 8 91011>>