/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/ |
H A D | StringUtils.java | 31 * Combine a list of strings in an <code>Object[]</code> into a single 34 * @param list non-null; the strings to combine 37 public static String combineStrings(Object[] list) { argument 38 int listLength = list.length; 45 return (String) list[0]; 52 strLength += ((String) list[i]).length(); 58 sb.append(list[i]);
|
/dalvik/dx/src/com/android/dx/util/_tests/ |
H A D | _IntList.java | 32 IntList list = new IntList(sz); 34 list.add(i * 2); 37 boolean contains = list.contains(i); 44 assertFalse(label(sz, -1), list.contains(-1)); 45 assertFalse(label(sz, sz * 2), list.contains(sz * 2)); 50 IntList list = new IntList(2); 52 list.add(9); 53 list.add(12); 55 assertTrue(list.contains(9)); 56 assertTrue(list [all...] |
/dalvik/libcore/support/src/test/java/tests/support/ |
H A D | Support_ListTest.java | 30 List<Integer> list; // must contain the Integers 0 to 99 in order field in class:Support_ListTest 38 list = l; 46 elem = list.get(counter); 51 assertTrue("ListTest - hashCode failed", hashCode == list.hashCode()); 53 list.add(50, new Integer(1000)); 54 assertTrue("ListTest - a) add with index failed--did not insert", list 58 list.get(51).equals(new Integer(50))); 61 list.get(49).equals(new Integer(49))); 63 list.set(50, new Integer(2000)); 64 assertTrue("ListTest - a) set failed--did not set", list 131 t_listIterator(List<Integer> list) argument [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
H A D | TypeListItem.java | 27 * Representation of a list of class references. 39 /** {@code non-null;} the actual list */ 40 private final TypeList list; field in class:TypeListItem 45 * @param list {@code non-null;} the actual list 47 public TypeListItem(TypeList list) { argument 48 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE); 50 this.list = list; 56 return StdTypeList.hashContents(list); [all...] |
H A D | HeaderSection.java | 29 /** {@code non-null;} the list of the one item in the section */ 30 private final List<HeaderItem> list; field in class:HeaderSection 43 this.list = Collections.singletonList(item); 55 return list;
|
/dalvik/dx/src/com/android/dx/rop/cst/ |
H A D | CstArray.java | 27 /** {@code non-null;} the actual list of contents */ 28 private final List list; field in class:CstArray 33 * @param list {@code non-null;} the actual list of contents 35 public CstArray(List list) { argument 36 if (list == null) { 37 throw new NullPointerException("list == null"); 40 list.throwIfMutable(); 42 this.list = list; [all...] |
/dalvik/vm/ |
H A D | PointerSet.c | 22 * Sorted, expanding list of pointers. 27 const void** list; member in struct:PointerSet 39 const void* cur = pSet->list[i]; 59 pSet->list = malloc(sizeof(const void*) * initialSize); 60 if (pSet->list == NULL) { 79 if (pSet->list != NULL) { 80 free(pSet->list); 81 pSet->list = NULL; 95 * Get the number of pointers currently stored in the list. 103 * Get the Nth entry from the list [all...] |
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/ |
H A D | ListOfTypes.java | 25 ArrayList<Type> list; field in class:ListOfTypes 32 list.add(elem); 36 list = new ArrayList<Type>(capacity); 40 list = new ArrayList<Type>(); 42 list.add(t); 47 return list.size(); 54 for (Type t : list) { 64 resolvedTypes = new Type[list.size()]; 66 for (Type t : list) { 74 list [all...] |
/dalvik/libcore/prefs/src/main/java/java/util/prefs/ |
H A D | NodeSet.java | 15 ArrayList<Node> list = new ArrayList<Node>(); field in class:NodeSet 19 list.add(nodes.next()); 24 return list.size(); 30 result = list.get(index);
|
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/ |
H A D | NamedNodeMapImpl.java | 41 private List<NodeImpl> list; field in class:NamedNodeMapImpl 44 list = new ArrayList<NodeImpl>(); 48 NamedNodeMapImpl(List<NodeImpl> list, Class<?> type) { argument 49 this.list = list; 54 return list.size(); 58 for (int i = 0; i < list.size(); i++) { 59 NodeImpl node = list.get(i); 69 for (int i = 0; i < list.size(); i++) { 70 NodeImpl node = list [all...] |
H A D | NodeListImpl.java | 43 NodeListImpl(List<NodeImpl> list) { argument 44 children = list;
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
H A D | InformationObjectSet.java | 59 Entry[] list = pool[index]; 61 for (; list[i] != null; i++) { 64 if (Arrays.equals(oid, list[i].oid)) { 73 list[i] = new Entry(oid, object); 80 Entry[] list = pool[index]; 81 for (int i = 0; list[i] != null; i++) { 82 if (Arrays.equals(oid, list[i].oid)) { 83 return list[i].object;
|
/dalvik/tests/062-character-encodings/src/ |
H A D | Main.java | 17 ArrayList<String> list = new ArrayList<String>(aliases.size()); 18 list.addAll(aliases); 19 Collections.sort(list); 20 for (String s : list) {
|
/dalvik/libcore/luni/src/main/java/java/lang/ |
H A D | VMClassLoader.java | 61 ArrayList<URL> list = null; 68 if (list == null) 69 list = new ArrayList<URL>(); 72 list.add(new URL(urlStr)); 81 if (list == null) 84 return new EnumerateListArray<URL>(list); 127 EnumerateListArray(ArrayList list) { argument 128 mList = list;
|
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
H A D | MyCertificateFactorySpi.java | 47 // mode: false - list of encodings is empty 48 // mode: true - list of encodings consists of 2 elements 52 private Set<String> list; field in class:MyCertificateFactorySpi 57 list = new HashSet<String>(); 58 list.add("aa"); 59 list.add("bb"); 135 list.clear(); 137 return list.iterator();
|
/dalvik/libcore/regex/src/main/java/java/util/regex/ |
H A D | Pattern.java | 206 ArrayList<String> list = new ArrayList<String>(); 212 while(matcher.find() && list.size() + 1 < maxLength) { 213 list.add(input.substring(savedPos, matcher.start())); 218 if (list.size() < maxLength) { 220 list.add(input.substring(savedPos)); 222 list.add(""); 228 int i = list.size() - 1; 229 while (i >= 0 && "".equals(list.get(i))) { 230 list.remove(i); 235 return list [all...] |
/dalvik/libcore/xml/src/test/java/tests/xml/ |
H A D | SimpleBuilderTest.java | 83 NodeList list = root.getElementsByTagName("nestedStuff"); 84 assertNotNull(list); 85 assertEquals(list.getLength(), 4); 87 Element one = (Element) list.item(0); 88 Element two = (Element) list.item(1); 89 Element three = (Element) list.item(2); 90 Element four = (Element) list.item(3); 106 list = document.getChildNodes(); 107 assertNotNull(list); 112 for (int i = 0; i < list [all...] |
/dalvik/vm/compiler/ |
H A D | Ralloc.c | 28 int computeLiveRange(LiveRange *list, BasicBlock *bb, int seqNum) argument 43 list[reg].first = MIN(list[reg].first, seqNum); 44 list[reg].active = true; 48 list[reg].last = MAX(list[reg].last, seqNum + 1); 49 list[reg].active = true; 98 * helper functions and assumes free list, temp list and spill region. 111 * 3. Sort the live range list b [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | AbstractListTest.java | 72 List list = new ArrayList(); 73 list.add(new Integer(3)); 74 list.add(new Integer(15)); 75 list.add(new Integer(5)); 76 list.add(new Integer(1)); 77 list.add(new Integer(7)); 79 Iterator i = list.iterator(); 85 + " got: " + list.hashCode(), hashCode == list.hashCode()); 98 SimpleList list [all...] |
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
H A D | Header.java | 107 LinkedList<String> list = keyTable.get(key); 108 if (list == null) { 109 list = new LinkedList<String>(); 110 keyTable.put(key, list); 113 list.add(value); 132 LinkedList<String> list = keyTable.get(key); 133 if (list == null) { 136 list.clear(); 137 list.add(value); 231 * we add the status line to the list o [all...] |
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 38 * created. They are not updated to reflect subsequent changes to the list. In 172 * collection that are not yet part of the list. 177 * @return the number of elements actually added to this list. 207 * element is not yet part of the list. 307 * position in the list. 335 * a given position in the list and going backwards. 483 * Removes from the specified range of this list 520 * Retains only the elements in the specified range of this list 564 * Removes specified range from this list 705 * is out of the list bound 825 private final CopyOnWriteArrayList list; field in class:CopyOnWriteArrayList.SubList 838 SubList(CopyOnWriteArrayList list, int fromIdx, int toIdx) argument [all...] |
/dalvik/libcore/luni/src/main/native/ |
H A D | java_net_NetworkInterface.cpp | 42 ScopedInterfaceAddresses() : list(NULL) { 46 int rc = getifaddrs(&list); 51 freeifaddrs(list); 54 ifaddrs* list; member in class:ScopedInterfaceAddresses 88 // Get the list of interface addresses. 97 for (ifaddrs* ifa = addresses.list; ifa != NULL; ifa = ifa->ifa_next) { 113 for (ifaddrs* ifa = addresses.list; ifa != NULL; ifa = ifa->ifa_next) {
|
/dalvik/libcore/archive/src/main/java/java/util/jar/ |
H A D | JarEntry.java | 158 ArrayList<Certificate> list = new ArrayList<Certificate>(certs.length); 172 addCodeSigner(asigners, list); 174 list.clear(); 179 list.add(x509); 181 if (!list.isEmpty()) { 182 addCodeSigner(asigners, list); 196 List<Certificate> list) { 211 certPath = factory.generateCertPath(list); 195 addCodeSigner(ArrayList<CodeSigner> asigners, List<Certificate> list) argument
|
/dalvik/tests/061-out-of-memory/src/ |
H A D | Main.java | 57 * list afterwards. Even if we null out list when we're done, the conservative 64 LinkedList<Object> list = new LinkedList<Object>(); 73 list.add((Object)new byte[objSize]);
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
H A D | AttributeListParser.java | 36 /** offset in the byte array of the classfile to the start of the list */ 42 /** {@code non-null;} list of parsed attributes */ 43 private final StdAttributeList list; field in class:AttributeListParser 45 /** {@code >= -1;} the end offset of this list in the byte array of the 57 * @param offset offset in {@code bytes} to the start of the list 76 this.list = new StdAttributeList(size); 101 * Gets the parsed list. 103 * @return {@code non-null;} the list 107 return list; 123 int sz = list [all...] |