Searched refs:types (Results 1 - 25 of 54) sorted by relevance

123

/libcore/dex/src/main/java/com/android/dex/
H A DTypeList.java26 private final short[] types; field in class:TypeList
28 public TypeList(Dex dex, short[] types) { argument
30 this.types = types;
34 return types;
38 for (int i = 0; i < types.length && i < other.types.length; i++) {
39 if (types[i] != other.types[i]) {
40 return Unsigned.compare(types[
[all...]
H A DDex.java429 short[] types = new short[size];
431 types[i] = data.getShort(position);
434 return types;
486 * Look up interface types indices from a return type index from a method index. Cheaper than:
505 short[] types = new short[size];
507 types[i] = data.getShort(position);
510 return types;
579 short[] types = readShortArray(size);
581 return new TypeList(Dex.this, types);
867 short[] types
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DListOfTypes.java27 private final ArrayList<Type> types; field in class:ListOfTypes
31 types = new ArrayList<Type>(capacity);
34 ListOfTypes(Type[] types) { argument
35 this.types = new ArrayList<Type>(types.length);
36 for (Type type : types) {
37 this.types.add(type);
45 types.add(type);
49 return types.size();
55 result = resolveTypes(types);
[all...]
H A DTypes.java46 public static Type[] getTypeArray(ListOfTypes types, boolean clone) { argument
47 if (types.length() == 0) {
50 Type[] result = types.getResolvedTypes();
77 * Returns the names of {@code types} separated by commas.
79 public static String toString(Class<?>[] types) { argument
80 if (types.length == 0) {
84 appendTypeName(result, types[0]);
85 for (int i = 1; i < types.length; i++) {
87 appendTypeName(result, types[i]);
112 * Appends names of the {@code types} t
114 appendArrayGenericType(StringBuilder out, Type[] types) argument
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAuthenticatorRequestorTypeTest.java42 Authenticator.RequestorType[] types = Authenticator.RequestorType.values();
43 assertEquals(expectedTypes.length, types.length);
46 assertEquals(expectedTypes[i], types[i]);
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DAttributeListImpl.java142 types.add(type);
165 types.remove(i);
183 types.clear();
233 if (i < 0 || i >= types.size()) {
236 return types.get(i);
290 private ArrayList<String> types = new ArrayList<String>();
287 private ArrayList<String> types = new ArrayList<String>(); field in class:AttributeListImpl
/libcore/luni/src/test/java/tests/support/
H A DMockCallback.java41 public void types(String[] types) { argument
/libcore/libart/src/main/java/java/lang/reflect/
H A DAbstractMethod.java154 * Returns an array of {@code Class} objects associated with the parameter types of this
158 * @return the parameter types
162 short[] types = dex.parameterTypeIndicesFromMethodIndex(dexMethodIndex);
163 if (types.length == 0) {
166 Class<?>[] parametersArray = new Class[types.length];
167 for (int i = 0; i < types.length; i++) {
168 // Note, in the case of a Proxy the dex cache types are equal.
169 parametersArray[i] = declaringClassOfOverriddenMethod.getDexCacheType(dex, types[i]);
296 short[] types = dex.parameterTypeIndicesFromMethodIndex(dexMethodIndex);
297 if (types
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DConstructorTest.java276 Class[] types = null;
280 types = ctor.getParameterTypes();
285 assertEquals("Incorrect parameter returned", 0, types.length);
293 types = ctor.getParameterTypes();
298 assertTrue("Incorrect parameter returned", types[0].equals(parms[0]));
303 Type[] types = null;
307 types = ctor.getGenericParameterTypes();
311 assertEquals("Incorrect parameter returned", 0, types.length);
318 types = ctor.getGenericParameterTypes();
322 assertTrue("Incorrect parameter returned", types[
[all...]
/libcore/ojluni/src/main/native/
H A Dnio_util.h31 #include <sys/types.h>
H A Djvm_md.h64 #include <sys/types.h>
H A DFileDescriptor_md.c26 #include <sys/types.h>
H A DNativeThread.c26 #include <sys/types.h>
H A DServerSocketChannelImpl.c28 #include <sys/types.h>
H A DSocketChannelImpl.c27 #include <sys/types.h>
H A DSocketInputStream.c29 #include <sys/types.h>
H A DSocketOutputStream.c29 #include <sys/types.h>
H A DFileInputStream.c27 #include <sys/types.h>
94 // types. For regular files, this is specified to return the difference
113 // Raise an exception for all other error types.
H A DFileSystemPreferences.c31 #include <sys/types.h>
H A Dnet_util_md.h30 #include <sys/types.h>
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DClassLoaderReflectionTest.java93 Type[] types = eClass.getGenericInterfaces();
94 assertEquals(2, types.length);
96 assertParameterizedType(types[0], Callable.class, aClass);
97 assertParameterizedType(types[1], dClass, aClass);
121 Type[] types = method.getGenericParameterTypes();
122 assertEquals(2, types.length);
123 assertParameterizedType(types[0], bClass, String.class);
124 assertParameterizedType(types[1], List.class, aClass);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyRepTypeTest.java62 KeyRep.Type[] types = new KeyRep.Type[] { KeyRep.Type.SECRET,
65 assertTrue(Arrays.equals(types, KeyRep.Type.values()));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DProxyTest.java231 Proxy.Type types[] = Proxy.Type.values();
232 assertEquals(3, types.length);
233 assertEquals(Proxy.Type.DIRECT, types[0]);
234 assertEquals(Proxy.Type.HTTP, types[1]);
235 assertEquals(Proxy.Type.SOCKS, types[2]);
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java428 Type [] types = ExtendTestClass1.class.getGenericInterfaces();
429 assertEquals(0, types.length);
433 types = PublicTestClass.class.getGenericInterfaces();
434 assertEquals(interfaces.length, types.length);
435 for(int i = 0; i < types.length; i++) {
436 assertEquals(interfaces[i], types[i]);
439 types = TestInterface.class.getGenericInterfaces();
440 assertEquals(0, types.length);
442 types = List.class.getGenericInterfaces();
443 assertEquals(1, types
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DMimeTable.java55 System.getProperty("content.types.temp.file.template",
74 private static final String filePreamble = "sun.net.www MIME content-types table";
236 System.getProperty("content.types.user.table");
245 "content-types.properties");
254 "content-types.properties");
278 Enumeration<?> types = entries.propertyNames();
279 while (types.hasMoreElements()) {
280 String type = (String)types.nextElement();
393 "content-types.properties");

Completed in 419 milliseconds

123