/external/guava/guava-tests/test/com/google/common/primitives/ |
FloatArrayAsListTest.java | 85 @Override protected List<Float> create(Float[] elements) { 86 return asList(elements); 91 @Override protected List<Float> create(Float[] elements) { 93 Float[] all = concat(elements, suffix); 94 return asList(all).subList(0, elements.length); 99 @Override protected List<Float> create(Float[] elements) { 101 Float[] all = concat(prefix, elements); 102 return asList(all).subList(2, elements.length + 2); 107 @Override protected List<Float> create(Float[] elements) { 110 Float[] all = concat(concat(prefix, elements), suffix) [all...] |
IntArrayAsListTest.java | 86 @Override protected List<Integer> create(Integer[] elements) { 87 return asList(elements); 92 @Override protected List<Integer> create(Integer[] elements) { 94 Integer[] all = concat(elements, suffix); 95 return asList(all).subList(0, elements.length); 100 @Override protected List<Integer> create(Integer[] elements) { 102 Integer[] all = concat(prefix, elements); 103 return asList(all).subList(2, elements.length + 2); 108 @Override protected List<Integer> create(Integer[] elements) { 111 Integer[] all = concat(concat(prefix, elements), suffix) [all...] |
LongArrayAsListTest.java | 85 @Override protected List<Long> create(Long[] elements) { 86 return asList(elements); 91 @Override protected List<Long> create(Long[] elements) { 93 Long[] all = concat(elements, suffix); 94 return asList(all).subList(0, elements.length); 99 @Override protected List<Long> create(Long[] elements) { 101 Long[] all = concat(prefix, elements); 102 return asList(all).subList(2, elements.length + 2); 107 @Override protected List<Long> create(Long[] elements) { 110 Long[] all = concat(concat(prefix, elements), suffix) [all...] |
ShortArrayAsListTest.java | 85 @Override protected List<Short> create(Short[] elements) { 86 return asList(elements); 91 @Override protected List<Short> create(Short[] elements) { 93 Short[] all = concat(elements, suffix); 94 return asList(all).subList(0, elements.length); 99 @Override protected List<Short> create(Short[] elements) { 101 Short[] all = concat(prefix, elements); 102 return asList(all).subList(2, elements.length + 2); 107 @Override protected List<Short> create(Short[] elements) { 110 Short[] all = concat(concat(prefix, elements), suffix) [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableCollection.java | 147 public Builder<E> add(E... elements) { 148 checkNotNull(elements); // for GWT 149 for (E element : elements) { 155 public Builder<E> addAll(Iterable<? extends E> elements) { 156 checkNotNull(elements); // for GWT 157 for (E element : elements) { 163 public Builder<E> addAll(Iterator<? extends E> elements) { 164 checkNotNull(elements); // for GWT 165 while (elements.hasNext()) { 166 add(checkNotNull(elements.next())) [all...] |
ImmutableSortedSet.java | 119 E[] elements) { 120 return copyOf(elements); 124 Comparator<? super E> comparator, E... elements) { 125 checkNotNull(elements); 126 switch (elements.length) { 131 for (E element : elements) { 140 Collection<? extends E> elements) { 141 return copyOfInternal(Ordering.natural(), elements, false); 145 Iterable<? extends E> elements) { 146 return copyOfInternal(Ordering.natural(), elements, false) [all...] |
/hardware/invensense/mlsdk/mllite/ |
mlFIFO.h | 34 /* Elements */ 87 inv_error_t inv_send_gyro(uint_fast16_t elements, uint_fast16_t accuracy); 88 inv_error_t inv_send_accel(uint_fast16_t elements, uint_fast16_t accuracy); 89 inv_error_t inv_send_linear_accel(uint_fast16_t elements, 91 inv_error_t inv_send_linear_accel_in_world(uint_fast16_t elements, 93 inv_error_t inv_send_cntrl_data(uint_fast16_t elements, 95 inv_error_t inv_send_sensor_data(uint_fast16_t elements, 97 inv_error_t inv_send_external_sensor_data(uint_fast16_t elements, 99 inv_error_t inv_send_gravity(uint_fast16_t elements, 102 inv_error_t inv_send_quantized_accel(uint_fast16_t elements, [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
WnnSentence.java | 30 public ArrayList<WnnClause> elements; field in class:WnnSentence 47 this.elements = clauses; 90 this.elements = new ArrayList<WnnClause>(); 91 this.elements.add(clause); 108 this.elements = new ArrayList<WnnClause>(); 109 this.elements.addAll(prev.elements); 110 this.elements.add(clause); 128 this.elements = new ArrayList<WnnClause>(); 129 this.elements.add(head) [all...] |
/external/guava/guava/src/com/google/common/collect/ |
RegularImmutableSortedSet.java | 39 * An immutable sorted set with one or more elements. TODO(jlevy): Consider 49 private transient final ImmutableList<E> elements; field in class:RegularImmutableSortedSet 52 ImmutableList<E> elements, Comparator<? super E> comparator) { 54 this.elements = elements; 55 checkArgument(!elements.isEmpty()); 59 return elements.iterator(); 68 return elements.size(); 139 return Collections.binarySearch(elements, key, unsafeComparator); 143 return elements.isPartialView() [all...] |
ImmutableList.java | 38 * Does not permit null elements. 65 // Casting to any type is safe because the list will never hold any elements. 84 * Returns an immutable list containing the given elements, in order. 93 * Returns an immutable list containing the given elements, in order. 102 * Returns an immutable list containing the given elements, in order. 111 * Returns an immutable list containing the given elements, in order. 120 * Returns an immutable list containing the given elements, in order. 129 * Returns an immutable list containing the given elements, in order. 139 * Returns an immutable list containing the given elements, in order. 149 * Returns an immutable list containing the given elements, in order 278 Object[] elements = collection.toArray(); local [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
MultimapCollectionTest.java | 132 Multimap<Integer, String> multimap, String[] elements) { 134 for (String element : elements) { 140 Multimap<String, Integer> multimap, String[] elements) { 141 for (String element : elements) { 148 Multimap<Integer, String> multimap, String[] elements) { 149 for (int i = 0; i < elements.length; i++) { 150 multimap.put(i % 2, elements[i]); 155 Multimap<String, Integer> multimap, String[] elements) { 156 for (int i = 0; i < elements.length; i++) { 157 multimap.put(elements[i], i) [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/builderTemplate/tests/tools/ |
TestVersionTracker.java | 27 private Hashtable elements; field in class:TestVersionTracker 39 public TestVersionTracker(String install, Hashtable elements) { 49 // instantiate hashtable that will hold directory names with versions for elements 50 this.elements = elements; 81 elements.put(element,element+"_"+version); 83 elements.put(element+"-feature",element+"_"+version); 87 TestVersionTracker recurseTracker = new TestVersionTracker(installDirectory, elements); 97 Enumeration keys = elements.keys(); 101 writer.println(key.toString()+"="+elements.get(key).toString()) [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
TestsForListsInJavaUtil.java | 99 @Override public List<String> create(String[] elements) { 114 @Override public List<String> create(String[] elements) { 115 return Collections.singletonList(elements[0]); 130 @Override public List<String> create(String[] elements) { 131 return Arrays.asList(elements.clone()); 146 @Override public List<String> create(String[] elements) { 147 return new ArrayList<String>(MinimalCollection.of(elements)); 162 @Override public List<String> create(String[] elements) { 163 return new LinkedList<String>(MinimalCollection.of(elements)); 178 @Override public List<String> create(String[] elements) { [all...] |
TestsForSetsInJavaUtil.java | 107 @Override public Set<String> create(String[] elements) { 122 @Override public Set<String> create(String[] elements) { 123 return Collections.singleton(elements[0]); 138 @Override public Set<String> create(String[] elements) { 139 return new HashSet<String>(MinimalCollection.of(elements)); 154 @Override public Set<String> create(String[] elements) { 155 return new LinkedHashSet<String>(MinimalCollection.of(elements)); 171 @Override public Set<AnEnum> create(AnEnum[] elements) { 172 return (elements.length == 0) 174 : EnumSet.copyOf(MinimalCollection.of(elements)); [all...] |
/external/qemu-pc-bios/bochs/bios/ |
usage.cc | 45 double elements, ratio; local 85 elements = (1.0 + double(offset) - double(last_org)); 89 elements = 0.0; 91 elements = 1.0; 94 ratio = elements / (double(org) - double(last_org));
|
/external/chromium/chrome/browser/bookmarks/ |
bookmark_node_data.cc | 101 elements.push_back(Element(node)); 120 elements.push_back(Element(nodes[i])); 136 elements.push_back(element); 147 if (elements.size() == 1 && elements[0].is_url) { 148 const string16& title = elements[0].title; 149 const std::string url = elements[0].url.spec(); 187 elements.clear(); 188 elements.push_back(element); 201 bookmark_pasteboard_helper_mac::WriteToClipboard(elements, profile_path_) [all...] |
bookmark_node_data_unittest.cc | 65 ASSERT_EQ(1, drag_data.elements.size()); 66 EXPECT_TRUE(drag_data.elements[0].is_url); 67 EXPECT_EQ(url, drag_data.elements[0].url); 68 EXPECT_EQ(title, drag_data.elements[0].title); 69 EXPECT_EQ(0, drag_data.elements[0].children.size()); 85 ASSERT_EQ(1, drag_data.elements.size()); 86 EXPECT_TRUE(drag_data.elements[0].is_url); 87 EXPECT_EQ(url, drag_data.elements[0].url); 88 EXPECT_EQ(title, WideToUTF16Hack(drag_data.elements[0].title)); 97 ASSERT_EQ(1, read_data.elements.size()) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/ |
AnnotationFactory.java | 90 * @param elements name-value pairs representing elements of the annotation 95 AnnotationMember[] elements) 97 AnnotationFactory antn = new AnnotationFactory(annotationType, elements); 103 private AnnotationMember[] elements; field in class:AnnotationFactory 117 elements = defs; 120 elements = new AnnotationMember[defs.length]; 121 next: for (int i = elements.length - 1; i >= 0; i-- ){ 124 elements[i] = val.setDefinition(defs[i]); 128 elements[i] = defs[i] [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/ |
Annotation.java | 51 private final TreeMap<CstUtf8, NameValuePair> elements; field in class:Annotation 54 * Construct an instance. It initially contains no elements. 70 this.elements = new TreeMap<CstUtf8, NameValuePair>(); 87 return elements.equals(otherAnnotation.elements); 93 hash = (hash * 31) + elements.hashCode(); 112 Iterator<NameValuePair> thisIter = elements.values().iterator(); 113 Iterator<NameValuePair> otherIter = other.elements.values().iterator(); 150 for (NameValuePair pair : elements.values()) { 197 elements.put(pair.getName(), pair) [all...] |
/dalvik/dx/src/com/android/dx/rop/annotation/ |
Annotation.java | 43 private final TreeMap<CstString, NameValuePair> elements; field in class:Annotation 46 * Construct an instance. It initially contains no elements. 62 this.elements = new TreeMap<CstString, NameValuePair>(); 79 return elements.equals(otherAnnotation.elements); 85 hash = (hash * 31) + elements.hashCode(); 104 Iterator<NameValuePair> thisIter = elements.values().iterator(); 105 Iterator<NameValuePair> otherIter = other.elements.values().iterator(); 142 for (NameValuePair pair : elements.values()) { 189 elements.put(pair.getName(), pair) [all...] |
/external/chromium/net/base/ |
upload_data_stream.cc | 59 std::vector<UploadData::Element>& elements = *data_->elements(); local 61 while (buf_len_ < kBufSize && next_element_ < elements.size()) { 64 UploadData::Element& element = elements[next_element_]; 155 if (next_element_ == elements.size() && !buf_len_) { 157 (!elements.empty() && elements.back().is_last_chunk())) { 166 const std::vector<UploadData::Element>& elements = *data_->elements(); local 169 (!elements.empty() & [all...] |
/external/dexmaker/src/dx/java/com/android/dx/rop/annotation/ |
Annotation.java | 43 private final TreeMap<CstString, NameValuePair> elements; field in class:Annotation 46 * Construct an instance. It initially contains no elements. 62 this.elements = new TreeMap<CstString, NameValuePair>(); 79 return elements.equals(otherAnnotation.elements); 85 hash = (hash * 31) + elements.hashCode(); 104 Iterator<NameValuePair> thisIter = elements.values().iterator(); 105 Iterator<NameValuePair> otherIter = other.elements.values().iterator(); 142 for (NameValuePair pair : elements.values()) { 189 elements.put(pair.getName(), pair) [all...] |
/external/guava/guava-gwt/src/com/google/common/collect/ |
RegularImmutableList_CustomFieldSerializer.java | 41 List<Object> elements = new ArrayList<Object>(); local 42 Collection_CustomFieldSerializerBase.deserialize(reader, elements); 46 * always have one or more elements, ImmutableList.copyOf always return 49 return (RegularImmutableList<Object>) ImmutableList.copyOf(elements);
|
RegularImmutableMultiset_CustomFieldSerializer.java | 38 List<Object> elements = Lists.newArrayList(); local 39 Collection_CustomFieldSerializerBase.deserialize(reader, elements); 43 * RegularImmutableMultiset always have one or more elements, 47 .copyOf(elements);
|
RegularImmutableSet_CustomFieldSerializer.java | 39 List<Object> elements = Lists.newArrayList(); local 40 Collection_CustomFieldSerializerBase.deserialize(reader, elements); 44 * always have two or more elements, ImmutableSet.copyOf always return 47 return (RegularImmutableSet<Object>) ImmutableSet.copyOf(elements);
|