Searched defs:elements (Results 176 - 200 of 607) sorted by relevance

1234567891011>>

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DObjectArrays.java54 * @param array the array of elements to append
57 * elements of {@code array} occupying the remaining elements.
69 * @param array the array of elements to prepend
90 * Returns an array containing all of the elements in the specified
97 * the array has more elements than the collection), the element in the array
100 * the caller knows that the collection does not contain any null elements.
102 * <p>This method returns the elements in the order they are returned by the
107 * @param c the collection for which to return an array of elements
108 * @param array the array in which to place the collection elements
169 copyAsObjectArray(Object[] elements, int offset, int length) argument
179 fillArray(Iterable<?> elements, Object[] array) argument
[all...]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
H A DSetGenerators.java65 @Override protected Set<String> create(String[] elements) { argument
66 return ImmutableSet.copyOf(elements);
77 public Set<Object> create(Object... elements) { argument
78 return ImmutableSet.copyOf(elements);
87 @Override protected Set<String> create(String[] elements) { argument
89 ImmutableSet.of(elements[0], elements[0]);
95 @Override protected SortedSet<String> create(String[] elements) { argument
96 return ImmutableSortedSet.copyOf(elements);
102 @Override protected SortedSet<String> create(String[] elements) { argument
112 create(String[] elements) argument
122 create(String[] elements) argument
137 create(String[] elements) argument
155 create(String[] elements) argument
170 create(String[] elements) argument
184 create( UnhashableObject[] elements) argument
192 create(String[] elements) argument
199 create(String[] elements) argument
209 create(String[] elements) argument
223 create(String[] elements) argument
236 create(String[] elements) argument
256 createExplicitComparator( String[] elements) argument
281 nullCheckedTreeSet(E[] elements) argument
291 create(Integer[] elements) argument
297 create(Integer[] elements) argument
306 create(Integer[] elements) argument
315 create(Integer[] elements) argument
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DAbstractContainerTester.java29 * and {@link java.util.Map Map}) that contain elements.
85 * @param elements expected contents of {@link #container}
87 protected final void expectContents(E... elements) { argument
88 expectContents(Arrays.asList(elements));
92 * Asserts that the collection under test contains exactly the given elements,
118 * Asserts that the collection under test contains exactly the elements it was
119 * initialized with plus the given elements, according to
123 * created, and the number of occurrences of all other elements has not
137 * @param elements expected additional contents of {@link #container}
139 protected final void expectAdded(E... elements) { argument
145 expectAdded(int index, E... elements) argument
149 expectAdded(int index, Collection<E> elements) argument
161 expectMissing(E... elements) argument
181 public final E[] elements; field in class:AbstractContainerTester.ArrayWithDuplicate
184 ArrayWithDuplicate(E[] elements, E duplicate) argument
[all...]
H A DMapTestSuiteBuilder.java258 public Map<K, V> create(Object... elements) { argument
259 return SerializableTester.reserialize(mapGenerator.create(elements));
H A DNavigableMapTestSuiteBuilder.java172 public Map<K, V> create(Object... elements) { argument
173 return delegate.create(elements);
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DMultisetTestSuiteBuilder.java177 public Set<E> create(Object... elements) { argument
178 Object[] duplicated = new Object[elements.length * 2];
179 for (int i = 0; i < elements.length; i++) {
180 duplicated[i] = elements[i];
181 duplicated[i + elements.length] = elements[i];
218 Set<E> elements = new HashSet<E>();
222 checkArgument(elements.add(entry.getElement()),
269 public Multiset<E> create(Object... elements) { argument
270 return (Multiset<E>) SerializableTester.reserialize(gen.create(elements));
[all...]
H A DSortedMultisetTestSuiteBuilder.java230 * Returns an array of four bogus elements that will always be too high or too
325 public Multiset<E> create(Object... elements) { argument
326 return delegate.create(elements);
/external/guava/guava-testlib/test/com/google/common/collect/testing/
H A DIteratorTesterTest.java188 @Override protected void verify(List<Integer> elements) { argument
190 super.verify(elements);
213 @Override protected void verify(List<Integer> elements) {
/external/guava/guava-tests/test/com/google/common/collect/
H A DEnumMultisetTest.java67 @Override protected Multiset<AnEnum> create(AnEnum[] elements) {
68 return (elements.length == 0)
70 : EnumMultiset.create(asList(elements));
152 public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { argument
153 return EnumMultiset.create(elements);
H A DImmutableRangeSetTest.java72 public Set<Integer> create(Object... elements) { argument
74 for (Object o : elements) {
105 public Set<BigInteger> create(Object... elements) { argument
107 for (Object o : elements) {
H A DImmutableSetTest.java121 @Override protected Set<String> copyOf(String[] elements) { argument
122 return ImmutableSet.copyOf(elements);
125 @Override protected Set<String> copyOf(Collection<String> elements) { argument
126 return ImmutableSet.copyOf(elements);
129 @Override protected Set<String> copyOf(Iterable<String> elements) { argument
130 return ImmutableSet.copyOf(elements);
133 @Override protected Set<String> copyOf(Iterator<String> elements) { argument
134 return ImmutableSet.copyOf(elements);
H A DPeekingIteratorTest.java47 * a given collection of elements (used as the reference iterator)
53 * same elements as the reference's iterator {@code #remove()}.
70 @Override protected void verify(List<T> elements) { argument
72 assertEquals(elements, targetList);
188 * This Iterator claims to have more elements than the underlying
189 * iterable, but when you try to fetch the extra elements, it throws
220 * If the PeekingIterator is caching elements too aggressively,
H A DQueuesTest.java94 int elements = drain(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS, interruptibly);
95 assertEquals(100, elements);
138 // asking to drain zero elements
163 int elements = Queues.drain(q, buf, -1, Long.MAX_VALUE, TimeUnit.NANOSECONDS);
164 assertEquals(elements, 0);
203 int elements =
205 // so when this drains all elements, we know the thread has also been interrupted in between
207 assertEquals(100, elements);
279 final int elements; field in class:QueuesTest.Producer
281 Producer(BlockingQueue<Object> q, int elements) { argument
[all...]
/external/guice/core/src/com/google/inject/internal/
H A DAbstractBindingBuilder.java49 protected List<Element> elements; field in class:AbstractBindingBuilder
54 public AbstractBindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key) { argument
56 this.elements = elements;
57 this.position = elements.size();
59 elements.add(position, this.binding);
68 elements.set(position, binding);
H A DInjectorShell.java54 private final List<Element> elements; field in class:InjectorShell
57 private InjectorShell(Builder builder, List<Element> elements, InjectorImpl injector) { argument
58 this.elements = elements;
67 return elements;
71 private final List<Element> elements = Lists.newArrayList(); field in class:InjectorShell.Builder
99 this.elements.addAll(privateElements.getElements());
138 elements.addAll(Elements.getElements(stage, modules));
142 optionsProcessor.process(null, elements);
157 new MessageProcessor(errors).process(injector, elements);
[all...]
/external/icu/icu4c/source/common/
H A Duhash.h26 * storage space. As elements are added to it, it grows to accomodate
27 * them. By default, the table never shrinks, even if all elements
97 /* Reorder these elements to pack nicely if necessary */
141 UHashElement *elements; member in struct:UHashtable
276 * before any elements are added to the hashtable and should not be
289 * once before any elements are added to the hashtable and should not
501 * Iterate through the elements of a UHashtable. The caller must not
H A Duvectr32.h69 int32_t* elements; member in class:UVector32
86 * equal if they are of the same size and all elements are equal,
139 * elements for i >= newSize. If newSize is larger, grow the
149 * Returns true if this vector contains none of the elements
159 * The current elements are assumed to be sorted already.
172 * Units are vector elements (32 bits each), not bytes.
224 return (index >= 0 && count > 0 && count - index > 0) ? elements[index] : 0;
230 elements[count] = elem;
239 int32_t *rp = elements+count;
250 return elements
[all...]
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/
H A DHandleMock.java101 public ResultAnd<Integer> readData(ByteBuffer elements, DataPipe.ReadFlags flags) { argument
128 public ResultAnd<Integer> writeData(ByteBuffer elements, DataPipe.WriteFlags flags) { argument
/external/libmojo/mojo/public/cpp/bindings/lib/
H A Darray_internal.h123 const ElementType* elements,
136 if (!validate_params->validate_enum_func(elements[i], validation_context))
148 const ElementType* elements,
156 !IsHandleOrInterfaceValid(elements[i])) {
171 if (!ValidateHandleOrInterface(elements[i], validation_context))
183 const ElementType* elements,
187 if (!validate_params->element_is_nullable && !elements[i].offset) {
196 if (!ValidateCaller<T>::Run(elements[i], validation_context,
234 const ElementType* elements,
238 if (!validate_params->element_is_nullable && elements[
122 ValidateElements(const ArrayHeader* header, const ElementType* elements, ValidationContext* validation_context, const ContainerValidateParams* validate_params) argument
147 ValidateElements(const ArrayHeader* header, const ElementType* elements, ValidationContext* validation_context, const ContainerValidateParams* validate_params) argument
182 ValidateElements(const ArrayHeader* header, const ElementType* elements, ValidationContext* validation_context, const ContainerValidateParams* validate_params) argument
233 ValidateElements(const ArrayHeader* header, const ElementType* elements, ValidationContext* validation_context, const ContainerValidateParams* validate_params) argument
[all...]
/external/libmojo/mojo/public/cpp/system/
H A Ddata_pipe.h82 const void* elements,
85 return MojoWriteData(data_pipe_producer.value(), elements, num_bytes, flags);
107 void* elements,
110 return MojoReadData(data_pipe_consumer.value(), elements, num_bytes, flags);
81 WriteDataRaw(DataPipeProducerHandle data_pipe_producer, const void* elements, uint32_t* num_bytes, MojoWriteDataFlags flags) argument
106 ReadDataRaw(DataPipeConsumerHandle data_pipe_consumer, void* elements, uint32_t* num_bytes, MojoReadDataFlags flags) argument
/external/libtextclassifier/common/
H A Dembedding-network-params.h56 // Pointer to matrix elements, in row-major order
58 const void *elements; member in struct:libtextclassifier::nlp_core::EmbeddingNetworkParams::Matrix
83 matrix.elements = embeddings_weights(i);
120 matrix.elements = hidden_weights(i);
137 matrix.elements = hidden_bias_weights(i);
162 matrix.elements = softmax_weights(0);
179 matrix.elements = softmax_bias_weights(0);
232 // Returns pointer to elements of transpose(proto.embeddings(i)), in row-major
271 // Returns pointer to elements of proto.hidden_bias(i), in row-major order.
285 // Returns pointer to elements o
[all...]
/external/libvorbis/vq/
H A Dvqgen.h26 int elements; member in struct:vqgen
58 return v->pointlist+((v->elements+v->aux)*ptr);
66 return v->entrylist+(v->elements*ptr);
70 int elements,int aux,int entries,float mindist,
/external/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_vertex_buffers.c145 vl_vb_element_helper(struct pipe_vertex_element* elements, unsigned num_elements, argument
150 assert(elements && num_elements);
153 elements[i].src_offset = offset;
154 elements[i].instance_divisor = 1;
155 elements[i].vertex_buffer_index = vertex_buffer_index;
156 offset += util_format_get_blocksize(elements[i].src_format);
/external/mesa3d/src/mesa/vbo/
H A Dvbo_primitive_restart.c74 * Scan the elements array to find restart indexes. Return an array
79 find_sub_primitives(const void *elements, unsigned element_size, argument
101 #define IB_INDEX_READ(TYPE, INDEX) (((const GL##TYPE *) elements)[INDEX])
/external/owasp/sanitizer/src/main/org/owasp/html/
H A DTrie.java51 * @param elements not empty, non null.
53 public Trie(Map<String, Integer> elements) { argument
54 this(sortedUniqEntries(elements), 0);
57 private Trie(List<Map.Entry<String, Integer>> elements, int depth) { argument
58 this(elements, depth, 0, elements.size());
62 * @param elements not empty, non null. Not modified.
70 List<Map.Entry<String, Integer>> elements, int depth,
72 this.terminal = depth == elements.get(start).getKey().length();
74 this.value = elements
69 Trie( List<Map.Entry<String, Integer>> elements, int depth, int start, int end) argument
[all...]

Completed in 491 milliseconds

1234567891011>>