/external/guava/guava/src/com/google/common/collect/ |
ForwardingList.java | 70 public boolean addAll(int index, Collection<? extends E> elements) { 71 return delegate().addAll(index, elements); 144 int index, Iterable<? extends E> elements) { 145 return Lists.addAllImpl(this, index, elements);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
ListEqualsTester.java | 39 "A List should equal any other List containing the same elements.", 48 "A List should not equal another List containing different elements.", 64 ArrayList<E> elements = new ArrayList<E>(getSampleElements()); local 65 elements.set(elements.size() / 2, null); 66 collection = getSubjectGenerator().create(elements.toArray());
|
/external/jmonkeyengine/engine/src/test/jme3test/animation/ |
SubtitleTrack.java | 10 import de.lessvoid.nifty.elements.render.TextRenderer;
|
/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];
|
NoSuchElementExceptionTest.java | 35 v.elements().nextElement();
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
ImapTestUtils.java | 66 public static final ImapList buildList(ImapElement... elements) { 68 for (ImapElement e : elements) { 76 ImapElement... elements) { 78 for (ImapElement e : elements) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
HorizontalScrollViewRule.java | 69 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, 71 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); 84 IDragElement[] elements, 93 super.drawFeedback(gc, targetNode, elements, feedback);
|
IgnoredLayoutRule.java | 38 @Nullable IDragElement[] elements) {
|
ScrollViewRule.java | 69 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, 71 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); 84 IDragElement[] elements, 93 super.drawFeedback(gc, targetNode, elements, feedback);
|
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/wizards/newproject/ |
WorkingSetHelper.java | 87 List<?> elements = treeSelection.toList(); 88 if (elements.size() == 1) { 89 Object element= elements.get(0); 110 for (Iterator<?> iterator = elements.iterator(); iterator.hasNext();) {
|
/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)) {
|
/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...] |
/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/chromium_org/ppapi/cpp/dev/ |
resource_array_dev.cc | 36 const PP_Resource elements[], 40 instance.pp_instance(), elements, size));
|
/external/chromium_org/third_party/angle_dx11/src/libGLESv2/renderer/ |
InputLayoutCache.cpp | 108 ilKey.elements[ilKey.elementCount].SemanticName = semanticName; 109 ilKey.elements[ilKey.elementCount].SemanticIndex = sortedSemanticIndices[i]; 110 ilKey.elements[ilKey.elementCount].Format = attributes[i].attribute->mArrayEnabled ? vertexBuffer->getDXGIFormat(*attributes[i].attribute) : DXGI_FORMAT_R32G32B32A32_FLOAT; 111 ilKey.elements[ilKey.elementCount].InputSlot = i; 112 ilKey.elements[ilKey.elementCount].AlignedByteOffset = 0; 113 ilKey.elements[ilKey.elementCount].InputSlotClass = inputClass; 114 ilKey.elements[ilKey.elementCount].InstanceDataStepRate = attributes[i].divisor; 136 HRESULT result = mDevice->CreateInputLayout(ilKey.elements, ilKey.elementCount, shader->getFunction(), shader->getLength(), &inputLayout);
|
/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))
|