/external/chromium_org/third_party/icu/source/common/ |
H A D | ucharstriebuilder.cpp | 87 : elements(NULL), elementsCapacity(0), elementsLength(0), 91 delete[] elements; 101 // Cannot add elements after building. 118 uprv_memcpy(newElements, elements, elementsLength*sizeof(UCharsTrieElement)); 120 delete[] elements; 121 elements=newElements; 124 elements[elementsLength++].setTo(s, value, strings, errorCode); 187 uprv_sortArray(elements, elementsLength, (int32_t)sizeof(UCharsTrieElement), 195 UnicodeString prev=elements[0].getString(strings); 197 UnicodeString current=elements[ [all...] |
H A D | 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 (index >= 0 && count > 0 && count - index > 0) ? elements[index] : 0; 228 elements[count] = elem; 237 int32_t *rp = elements+count; 248 return elements [all...] |
H A D | uvectr64.h | 66 int64_t* elements; member in class:UVector64 83 * equal if they are of the same size and all elements are equal, 136 * elements for i >= newSize. If newSize is larger, grow the 159 * Units are vector elements (64 bits each), not bytes. 211 return (0 <= index && index < count) ? elements[index] : 0; 217 elements[count] = elem; 226 int64_t *rp = elements+count; 237 return elements+count-size; 255 return elements; 270 result = elements[coun [all...] |
/external/guava/guava/src/com/google/common/collect/ |
H A D | ImmutableSortedMultiset.java | 31 * An immutable {@code SortedMultiset} that stores its elements in a sorted array. Some instances 33 * elements. Either way, null elements are not supported. 49 * {@code ImmutableSortedMultiset} doesn't use {@link Object#equals} to determine if two elements 51 * elements {@code x} and {@code y} are equivalent: 57 * With natural ordering of elements, the following relation determines whether two elements are 101 * Returns an immutable sorted multiset containing the given elements sorted by their natural 112 * Returns an immutable sorted multiset containing the given elements sorted by their natural 123 * Returns an immutable sorted multiset containing the given elements sorte 174 copyOf(E[] elements) argument 200 copyOf(Iterable<? extends E> elements) argument 218 copyOf(Iterator<? extends E> elements) argument 232 copyOf( Comparator<? super E> comparator, Iterator<? extends E> elements) argument 248 copyOf( Comparator<? super E> comparator, Iterable<? extends E> elements) argument 532 add(E... elements) argument 545 addAll(Iterable<? extends E> elements) argument 558 addAll(Iterator<? extends E> elements) argument 575 Object[] elements; field in class:ImmutableSortedMultiset.SerializedForm [all...] |
H A D | Constraints.java | 70 * constraint. Any operations that add new elements to the collection will 72 * existing elements satisfy the constraint. 77 * @param constraint the constraint that validates added elements 102 @Override public boolean addAll(Collection<? extends E> elements) { argument 103 return delegate.addAll(checkElements(elements, constraint)); 109 * constraint. Any operations that add new elements to the set will call the 111 * elements satisfy the constraint. 116 * @param constraint the constraint that validates added elements 140 @Override public boolean addAll(Collection<? extends E> elements) { argument 141 return delegate.addAll(checkElements(elements, constrain 189 addAll(Collection<? extends E> elements) argument 236 addAll(Collection<? extends E> elements) argument 239 addAll(int index, Collection<? extends E> elements) argument 352 addAll(Collection<? extends E> elements) argument 374 checkElements( Collection<E> elements, Constraint<? super E> constraint) argument [all...] |
/external/icu/icu4c/source/common/ |
H A D | bytestriebuilder.cpp | 128 : strings(NULL), elements(NULL), elementsCapacity(0), elementsLength(0), 141 delete[] elements; 151 // Cannot add elements after building. 168 uprv_memcpy(newElements, elements, elementsLength*sizeof(BytesTrieElement)); 170 delete[] elements; 171 elements=newElements; 174 elements[elementsLength++].setTo(s, value, *strings, errorCode); 230 uprv_sortArray(elements, elementsLength, (int32_t)sizeof(BytesTrieElement), 238 StringPiece prev=elements[0].getString(*strings); 240 StringPiece current=elements[ [all...] |
H A D | ucharstriebuilder.cpp | 87 : elements(NULL), elementsCapacity(0), elementsLength(0), 91 delete[] elements; 101 // Cannot add elements after building. 118 uprv_memcpy(newElements, elements, elementsLength*sizeof(UCharsTrieElement)); 120 delete[] elements; 121 elements=newElements; 124 elements[elementsLength++].setTo(s, value, strings, errorCode); 187 uprv_sortArray(elements, elementsLength, (int32_t)sizeof(UCharsTrieElement), 195 UnicodeString prev=elements[0].getString(strings); 197 UnicodeString current=elements[ [all...] |
H A D | 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 (index >= 0 && count > 0 && count - index > 0) ? elements[index] : 0; 228 elements[count] = elem; 237 int32_t *rp = elements+count; 248 return elements [all...] |
H A D | uvectr64.h | 66 int64_t* elements; member in class:UVector64 83 * equal if they are of the same size and all elements are equal, 136 * elements for i >= newSize. If newSize is larger, grow the 159 * Units are vector elements (64 bits each), not bytes. 211 return (0 <= index && index < count) ? elements[index] : 0; 217 elements[count] = elem; 226 int64_t *rp = elements+count; 237 return elements+count-size; 255 return elements; 270 result = elements[coun [all...] |
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
H A D | TestTreeWizard.java | 131 final List elements = new ArrayList(); 134 elements.add(t); 137 String found = elements.toString(); 145 final List elements = new ArrayList(); 149 elements.add(t); 152 String found = elements.toString(); 160 final List elements = new ArrayList(); 164 elements.add(t); 167 String found = elements.toString(); 175 final List elements [all...] |
/external/javassist/src/main/javassist/bytecode/annotation/ |
H A D | ArrayMemberValue.java | 45 * @param t the type of the array elements. 58 "no array elements found: " + method.getName()); 87 * Obtains the type of the elements. 96 * Obtains the elements of the array. 103 * Sets the elements of the array. 105 public void setValue(MemberValue[] elements) { argument 106 values = elements; 107 if (elements != null && elements.length > 0) 108 type = elements[ [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | 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[ [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
H A D | test-tree-wizard.rb | 253 elements = [] 255 elements << node.to_s 258 assert_equal( %w(B), elements ) 265 elements = [] 267 elements << node.to_s 270 assert_equal(%w(C), elements) 277 elements = [] 279 elements << node.to_s 282 assert_equal(%w(B B B), elements) 289 elements [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | TableCollectionTest.java | 121 @Override protected Set<String> create(String[] elements) { 124 ImmutableList.copyOf(elements), ImmutableList.of(1, 2)); 125 populateForRowKeySet(table, elements); 137 @Override protected Set<String> create(String[] elements) { 139 populateForRowKeySet(table, elements); 148 @Override protected Set<String> create(String[] elements) { 150 populateForRowKeySet(table, elements); 164 @Override protected Set<String> create(String[] elements) { 167 populateForRowKeySet(table, elements); 182 @Override protected Set<String> create(String[] elements) { 638 populateForRowKeySet( Table<String, Integer, Character> table, String[] elements) argument 646 populateForColumnKeySet( Table<Integer, String, Character> table, String[] elements) argument 654 populateForValues( Table<Integer, Character, String> table, String[] elements) argument 674 create( Object... elements) argument [all...] |
H A D | ListsTest.java | 107 @Override protected List<String> create(String[] elements) { 108 String[] rest = new String[elements.length - 1]; 109 Platform.unsafeArrayCopy(elements, 1, rest, 0, elements.length - 1); 110 return Lists.asList(elements[0], rest); 119 @Override protected List<String> create(String[] elements) { 120 String[] rest = new String[elements.length - 2]; 121 Platform.unsafeArrayCopy(elements, 2, rest, 0, elements.length - 2); 122 return Lists.asList(elements[ [all...] |
H A D | MinMaxPriorityQueueTest.java | 190 * this map would contain the same exact elements as the MinMaxHeap; the 522 @Override protected void verify(List<T> elements) { 523 assertEquals(Sets.newHashSet(elements), 581 ArrayList<Integer> elements = createOrderedList(size); 582 List<Integer> expected = ImmutableList.copyOf(elements); 584 long seed = insertRandomly(elements, q); 586 elements.add(q.pollFirst()); 588 assertEquals("Using seed " + seed, expected, elements); 596 ArrayList<Integer> elements = createOrderedList(size); 597 List<Integer> expected = ImmutableList.copyOf(elements); 716 insertRandomly(ArrayList<Integer> elements, MinMaxPriorityQueue<Integer> q) argument 724 insertRandomly(ArrayList<Integer> elements, MinMaxPriorityQueue<Integer> q, Random random) argument [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
H A D | SortedMapGenerators.java | 59 @Override protected Set<String> create(String[] elements) { argument 61 for (String key : elements) { 81 public Collection<String> create(Object... elements) { argument 83 for (int i = 0; i < elements.length; i++) { 84 builder.put(i, toStringOrNull(elements[i])); 128 @Override protected Set<String> create(String[] elements) { argument 131 for (String key : elements) { 152 public Collection<String> create(Object... elements) { argument 155 for (int i = 0; i < elements.length; i++) { 156 builder.put(i, toStringOrNull(elements[ [all...] |
/external/proguard/src/proguard/gui/ |
H A D | 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) argument 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 247 insertElementsAt(Object[] elements, int[] indices) argument 268 setElementsAt(Object[] elements, int[] indices) argument [all...] |
/external/libvorbis/vq/ |
H A D | vqgen.c | 57 #define vN(data,i) (data+v->elements*i) 62 int el=v->elements; 79 memcpy(_now(v,i),_point(v,i),sizeof(float)*v->elements); 179 for(k=0;k<v->elements;k++){ 201 for(k=0;k<v->elements;k++){ 231 for(k=0;k<v->elements;k++){ 240 void vqgen_init(vqgen *v,int elements,int aux,int entries,float mindist, argument 246 v->elements=elements; 250 v->pointlist=_ogg_malloc(v->allocated*(v->elements [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/processor/ |
H A D | 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 A 55 XSLTElementDef(XSLTSchema schema, String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject) argument 84 XSLTElementDef(XSLTSchema schema, String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject, boolean has_required) argument 116 XSLTElementDef(XSLTSchema schema, String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject, boolean has_required, boolean required) argument 142 XSLTElementDef(XSLTSchema schema, String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject, boolean has_required, boolean required, int order, boolean multiAllowed) argument 171 XSLTElementDef(XSLTSchema schema, String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject, boolean has_required, boolean required, boolean has_order, int order, boolean multiAllowed) argument 199 XSLTElementDef(XSLTSchema schema, String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject, boolean has_order, int order, boolean multiAllowed) argument 224 XSLTElementDef(XSLTSchema schema, String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject, int order, boolean multiAllowed) argument 263 build(String namespace, String name, String nameAlias, XSLTElementDef[] elements, XSLTAttributeDef[] attributes, XSLTElementProcessor contentHandler, Class classObject) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/mapi/glapi/gen/ |
H A D | typeexpr.py | 37 # If elements is set to non-zero, then field is an array. 38 self.elements = 0 217 tn.elements = count 243 if tn.elements: 244 return tn.elements * tn.size 251 return tn.elements 257 if tn.elements or tn.pointer:
|
/external/chromium_org/ui/webui/resources/js/chromeos/ |
H A D | ui_account_tweaks.js | 60 * Disables or hides some elements in specified type of session in ChromeOS. 61 * All elements within given document with *sessionType*-visibility 71 var elements = document.querySelectorAll('['+ sessionType +'-visibility]'); 72 for (var i = 0; i < elements.length; i++) { 73 var element = elements[i]; 83 * Updates specific visibility of elements for Guest session in ChromeOS. 95 * Updates specific visibility of elements for Public account session in 107 * Disables and marks page elements for specified session type. 108 * Adds #-disabled css class to all elements within given subtree, 109 * disables interactive elements (inpu [all...] |
/external/mesa3d/src/mapi/glapi/gen/ |
H A D | typeexpr.py | 37 # If elements is set to non-zero, then field is an array. 38 self.elements = 0 217 tn.elements = count 243 if tn.elements: 244 return tn.elements * tn.size 251 return tn.elements 257 if tn.elements or tn.pointer:
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/ |
H A D | EncodedValueWriter.java | 69 Collection<? extends AnnotationElement> elements) throws IOException { 72 writer.writeUleb128(elements.size()); 73 for (AnnotationElement element: elements) { 79 public void writeArray(Collection<? extends EncodedValue> elements) throws IOException { argument 81 writer.writeUleb128(elements.size()); 82 for (EncodedValue element: elements) { 68 writeAnnotation(TypeKey annotationType, Collection<? extends AnnotationElement> elements) argument
|
/external/chromium_org/mojo/system/ |
H A D | local_data_pipe_unittest.cc | 114 int32_t elements[10] = {0}; local 118 num_bytes = static_cast<uint32_t>(arraysize(elements) * sizeof(elements[0])); 122 UserPointer<void>(elements), MakeUserPointer(&num_bytes), false)); 130 num_bytes = static_cast<uint32_t>(5u * sizeof(elements[0])); 135 num_bytes = sizeof(elements[0]) + 1; 139 UserPointer<void>(elements), MakeUserPointer(&num_bytes), false)); 141 // Write two elements. 142 elements[0] = 123; 143 elements[ 245 int32_t elements[2] = {123, 456}; local 404 int32_t elements[2] = {123, 456}; local 515 int32_t* elements = nullptr; local 1937 char elements[2] = {'a', 'b'}; local [all...] |