Searched defs:list (Results 1 - 25 of 46) sorted by relevance

12

/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/
H A DStringUtils.java31 * 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/libcore/prefs/src/main/java/java/util/prefs/
H A DNodeSet.java15 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/support/src/test/java/tests/support/
H A DSupport_ListTest.java30 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 DHeaderSection.java29 /** {@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;
H A DStatistics.java56 * Adds the given list of items to the statistics.
58 * @param list {@code non-null;} the list of items to add
60 public void addAll(Section list) { argument
61 Collection<? extends Item> items = list.items();
H A DTypeListItem.java27 * 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 DAnnotationsDirectoryItem.java40 /** write size of a list element, in bytes */
186 * @param list {@code non-null;} associated list of annotation sets to add
189 AnnotationsList list) {
194 parameterAnnotations.add(new ParameterAnnotationStruct(method, list));
339 * Gets the list size of the given list, or {@code 0} if given
342 * @param list {@code null-ok;} the list in question
345 private static int listSize(ArrayList<?> list) { argument
188 addParameterAnnotations(CstMethodRef method, AnnotationsList list) argument
[all...]
H A DClassDataItem.java47 /** {@code non-null;} list of static fields */
50 /** {@code non-null;} list of initial values for static fields */
53 /** {@code non-null;} list of instance fields */
56 /** {@code non-null;} list of direct methods */
59 /** {@code non-null;} list of virtual methods */
62 /** {@code null-ok;} static initializer list; set in {@link #addContents} */
177 * Gets all the methods in this class. The returned list is not linked
179 * the objects contained in the list are shared.
181 * @return {@code non-null;} list of all methods
311 CstArray.List list
395 encodeList(DexFile file, AnnotatedOutput out, String label, ArrayList<? extends EncodedMember> list) argument
[all...]
H A DClassDefItem.java60 /** {@code null-ok;} list of implemented interfaces */
86 * @param interfaces {@code non-null;} list of implemented interfaces
198 TypeList list = interfaces.getList();
199 int sz = list.size();
201 out.annotate(0, " " + list.getType(i).toHuman());
252 * Gets the list of interfaces implemented.
254 * @return {@code non-null;} the interfaces list
311 * Gets all the methods in this class. The returned list is not linked
313 * the objects contained in the list are shared.
315 * @return {@code non-null;} list o
360 addParameterAnnotations(CstMethodRef method, AnnotationsList list) argument
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/
H A DNodeListImpl.java43 NodeListImpl(List<NodeImpl> list) { argument
44 children = list;
H A DNamedNodeMapImpl.java41 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...]
/dalvik/dx/src/com/android/dx/cf/direct/
H A DAttributeListParser.java36 /** 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...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/
H A DListOfTypes.java25 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/dx/src/com/android/dx/dex/code/
H A DDalvInsnList.java47 * identical to the ones in the given list, in the same order.
49 * @param list {@code non-null;} the list to use for elements
55 public static DalvInsnList makeImmutable(ArrayList<DalvInsn> list, argument
57 int size = list.size();
61 result.set(i, list.get(i));
71 * @param size the size of the list
H A DInsnFormat.java161 * Helper method to return a register list string.
163 * @param list {@code non-null;} the list of registers
166 protected static String regListString(RegisterSpecList list) { argument
167 int sz = list.size();
176 sb.append(list.get(i).regString());
/dalvik/dx/src/com/android/dx/rop/cst/
H A DCstArray.java27 /** {@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/libcore/archive/src/main/java/java/util/jar/
H A DJarEntry.java158 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/libcore/luni/src/main/java/java/lang/
H A DVMClassLoader.java61 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/luni/src/main/native/
H A Djava_net_NetworkInterface.cpp42 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/security/src/main/java/java/security/
H A DCodeSource.java222 ArrayList<Certificate> list = new ArrayList<Certificate>(certs.length);
244 list.add(x509);
250 CertPath cpath = makeCertPath(list);
255 list.clear();
258 list.add(x509);
261 if (!list.isEmpty()) {
262 CertPath cpath = makeCertPath(list);
279 // @param list
281 private CertPath makeCertPath(List<? extends Certificate> list) { argument
291 return factory.generateCertPath(list);
[all...]
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyCertificateFactorySpi.java47 // 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/vm/compiler/
H A DRalloc.c28 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/dalvik/src/main/java/dalvik/system/
H A DPathClassLoader.java36 * Provides a simple {@link ClassLoader} implementation that operates on a list
57 * Creates a {@code PathClassLoader} that operates on a given list of files
63 * the list of files and directories
74 * files and directories. The entries of the first list should be one of the
81 * The entries of the second list should be directories containing native
86 * the list of files and directories containing classes and
90 * the list of directories containing native libraries
484 EnumerateListArray(ArrayList list) { argument
485 mList = list;
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DObjectInputStreamTest.java158 assertTrue("should construct super", A.list.contains(b));
159 assertFalse("should not construct self", B.list.contains(b));
210 static final ArrayList<A> list = new ArrayList<A>(); field in class:ObjectInputStreamTest.A
215 list.add(this);
221 static final ArrayList<A> list = new ArrayList<A>(); field in class:ObjectInputStreamTest.B
225 list.add(this);
/dalvik/vm/
H A DPointerSet.c22 * 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...]

Completed in 2022 milliseconds

12