HomeSort by relevance Sort by last modified time
    Searched refs:elements (Results 51 - 75 of 466) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/guava/src/com/google/common/collect/
ImmutableMultiset.java 35 * An immutable hash-based multiset. Does not permit null elements.
37 * <p>Its iterator orders elements according to the first appearance of the
60 * Returns an immutable multiset containing the given elements.
64 * elements in the order {@code 2, 3, 3, 1}.
66 * @throws NullPointerException if any of {@code elements} is null
68 public static <E> ImmutableMultiset<E> of(E... elements) {
69 return copyOf(Arrays.asList(elements));
73 * Returns an immutable multiset containing the given elements.
77 * a multiset with elements in the order {@code 2, 3, 3, 1}.
86 * <p><b>Note:</b> Despite what the method name suggests, if {@code elements}
    [all...]
RegularImmutableSet.java 24 * Implementation of {@link ImmutableSet} with two or more elements.
31 // the same elements in hashed positions (plus nulls)
38 Object[] elements, int hashCode, Object[] table, int mask) {
39 super(elements);
HashMultiset.java 47 * number of distinct elements.
49 * @param distinctElements the expected number of distinct elements
57 * Creates a new {@code HashMultiset} containing the specified elements.
59 * @param elements the elements that the multiset should contain
61 public static <E> HashMultiset<E> create(Iterable<? extends E> elements) {
63 create(Multisets.inferDistinctElements(elements));
64 Iterables.addAll(multiset, elements);
77 * @serialData the number of distinct elements, the first element, its count,
LinkedHashMultiset.java 29 * iterator orders elements according to when the first occurrence of the
53 * number of distinct elements.
55 * @param distinctElements the expected number of distinct elements
63 * Creates a new {@code LinkedHashMultiset} containing the specified elements.
65 * @param elements the elements that the multiset should contain
68 Iterable<? extends E> elements) {
70 create(Multisets.inferDistinctElements(elements));
71 Iterables.addAll(multiset, elements);
85 * @serialData the number of distinct elements, the first element, its count
    [all...]
Lists.java 71 * elements.
73 * <p><b>Note:</b> if mutability is not required and the elements are
76 * @param elements the elements that the list should contain, in order
77 * @return a new {@code ArrayList} containing those elements
80 public static <E> ArrayList<E> newArrayList(E... elements) {
81 checkNotNull(elements); // for GWT
83 int capacity = computeArrayListCapacity(elements.length);
85 Collections.addAll(list, elements);
98 * elements
    [all...]
EnumMultiset.java 44 * Creates a new {@code EnumMultiset} containing the specified elements.
46 * @param elements the elements that the multiset should contain
47 * @throws IllegalArgumentException if {@code elements} is empty
50 Iterable<E> elements) {
51 Iterator<E> iterator = elements.iterator();
56 Iterables.addAll(multiset, elements);
76 * elements, the first element, its count, the second element, its count,
  /dalvik/dx/src/junit/framework/
TestResult.java 35 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
45 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
71 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
85 return fErrors.elements();
97 return fFailures.elements();
150 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
  /external/junit/src/junit/framework/
TestResult.java 35 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
45 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
71 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
85 return fErrors.elements();
97 return fFailures.elements();
150 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
  /libcore/junit/src/main/java/junit/framework/
TestResult.java 35 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
45 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
71 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
85 return fErrors.elements();
97 return fFailures.elements();
150 for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/
android.widget.LinearLayout.groovy 29 DropFeedback onDropEnter(INode targetNode, IDragElement[] elements) {
31 if (elements.length == 0) {
77 drawFeedback(gc, node, elements, feedback);
83 IDragElement[] elements,
128 Rect be = elements[0].getBounds();
132 // for all dropped elements with valid bounds, offset at
139 Rect pb = elements[0].getParentBounds();
148 for (element in elements) {
156 IDragElement[] elements,
205 void onDropLeave(INode targetNode, IDragElement[] elements, DropFeedback feedback)
    [all...]
  /libcore/luni/src/main/java/java/io/
FilePermissionCollection.java 71 * @see java.security.PermissionCollection#elements()
74 public Enumeration<Permission> elements() { method in class:FilePermissionCollection
75 return permissions.elements();
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyPermissionCollection.java 37 public Enumeration<Permission> elements() { method in class:MyPermissionCollection
  /system/core/nexus/
VpnController.h 32 int elements);
44 int elements);
56 int elements);
Property.cpp 37 StringProperty::StringProperty(const char *name, bool ro, int elements) :
38 Property(name, ro, Property::Type_STRING, elements) {
88 IntegerProperty::IntegerProperty(const char *name, bool ro, int elements) :
89 Property(name, ro, Property::Type_INTEGER, elements) {
139 IPV4AddressProperty::IPV4AddressProperty(const char *name, bool ro, int elements) :
140 Property(name, ro, Property::Type_IPV4, elements) {
Property.h 37 Property(const char *name, bool ro, int type, int elements);
56 StringProperty(const char *name, bool ro, int elements);
80 IntegerProperty(const char *name, bool ro, int elements);
102 IPV4AddressProperty(const char *name, bool ro, int elements);
  /frameworks/base/tests/CoreTests/android/core/
HashtableTest.java 250 Enumeration<Integer> elements; local
252 elements = hTable.elements();
253 elements = hTable.elements();
254 elements = hTable.elements();
255 elements = hTable.elements();
256 elements = hTable.elements()
    [all...]
  /external/chromium/third_party/icu/source/common/
uvectr32.h 67 int32_t* elements; member in class:UVector32
84 * equal if they are of the same size and all elements are equal,
137 * elements for i >= newSize. If newSize is larger, grow the
147 * Returns true if this vector contains none of the elements
157 * The current elements are assumed to be sorted already.
170 * Units are vector elements (32 bits each), not bytes.
222 return (0 <= index && index < count) ? elements[index] : 0;
228 elements[count] = elem;
237 int32_t *rp = elements+count;
248 return elements+count-size
    [all...]
  /external/chromium/third_party/icu/source/i18n/
ucol_cnt.cpp 60 tbl->elements = (ContractionTable **)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
61 if(tbl->elements == NULL) {
67 uprv_memset(tbl->elements, 0, INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
98 table->elements[table->size] = el;
100 //uhash_put(table->elements, (void *)table->size, el, status);
107 /* table->elements = (ContractionTable **)realloc(table->elements, table->capacity*2*sizeof(ContractionTable *));*/
113 ContractionTable **oldElements = table->elements;
117 table->elements = newElements;
151 table->position += table->elements[i]->position
    [all...]
  /external/icu4c/common/
uvectr32.h 67 int32_t* elements; member in class:UVector32
84 * equal if they are of the same size and all elements are equal,
137 * elements for i >= newSize. If newSize is larger, grow the
147 * Returns true if this vector contains none of the elements
157 * The current elements are assumed to be sorted already.
170 * Units are vector elements (32 bits each), not bytes.
222 return (0 <= index && index < count) ? elements[index] : 0;
228 elements[count] = elem;
237 int32_t *rp = elements+count;
248 return elements+count-size
    [all...]
  /external/icu4c/i18n/
ucol_cnt.cpp 60 tbl->elements = (ContractionTable **)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
61 if(tbl->elements == NULL) {
67 uprv_memset(tbl->elements, 0, INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
98 table->elements[table->size] = el;
100 //uhash_put(table->elements, (void *)table->size, el, status);
107 /* table->elements = (ContractionTable **)realloc(table->elements, table->capacity*2*sizeof(ContractionTable *));*/
113 ContractionTable **oldElements = table->elements;
117 table->elements = newElements;
151 table->position += table->elements[i]->position
    [all...]
  /external/proguard/src/proguard/gui/
ListPanel.java 89 // Remove the selected elements.
109 // Move the selected elements up.
130 // Move the selected elements down.
159 // Remove the selected elements from this panel.
162 // Add the elements to the other panel.
209 protected void addElements(Object[] elements)
211 // Add the elements one by one.
212 for (int index = 0; index < elements.length; index++)
214 listModel.addElement(elements[index]);
218 int[] selectedIndices = new int[elements.length]
    [all...]
  /libcore/luni/src/main/java/org/apache/xalan/processor/
XSLTElementDef.java 32 * mapping between Xalan classes and the markup elements in the XSLT instance.
33 * This actually represents both text nodes and elements.
50 * @param elements An array of allowed child element defs, or null.
56 XSLTElementDef[] elements, XSLTAttributeDef[] attributes,
59 build(namespace, name, nameAlias, elements, attributes, contentHandler,
78 * @param elements An array of allowed child element defs, or null.
82 * @param has_required true if this element has required elements by the XSLT specification.
85 XSLTElementDef[] elements, XSLTAttributeDef[] attributes,
89 build(namespace, name, nameAlias, elements, attributes, contentHandler,
109 * @param elements An array of allowed child element defs, or null
    [all...]
  /libcore/luni/src/main/java/java/util/
PropertyPermissionCollection.java 56 public Enumeration<Permission> elements() { method in class:PropertyPermissionCollection
57 return permissions.elements();
62 Enumeration<Permission> elemEnum = elements();
  /libcore/luni/src/test/java/tests/api/java/util/
AbstractQueueTest.java 45 private Object[] elements = new Object[CAPACITY]; field in class:AbstractQueueTest.MockAbstractQueue
61 return (E) elements[currentIndex];
69 elements[i] = elements[i + 1];
89 elements[size++] = o;
97 E e = (E) elements[0];
99 elements[i] = elements[i + 1];
109 return (E) elements[0];
  /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) {

Completed in 318 milliseconds

1 23 4 5 6 7 8 91011>>