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

12

/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...]
H A DAnnotationAccess.java279 short[] types = parametersList.getTypes();
280 int typesCount = types.length;
598 short[] types = dex.parameterTypeIndicesFromMethodIndex(methodIndex);
599 Class<?>[] parametersArray = new Class[types.length];
600 for (int i = 0; i < types.length; i++) {
601 parametersArray[i] = context.getDexCacheType(dex, types[i]);
/libcore/luni/src/main/java/java/net/
H A DContentHandler.java48 * @param types
49 * list of acceptable content types.
51 * content doesn't match one of the specified content types.
57 public Object getContent(URLConnection uConn, Class[] types) argument
60 for (int i = 0; i < types.length; i++) {
61 if (types[i].isInstance(content)) {
H A DURL.java459 * Equivalent to {@code openConnection().getContent(types)}.
462 public final Object getContent(Class[] types) throws IOException { argument
463 return openConnection().getContent(types);
467 * Equivalent to {@code openConnection().getInputStream(types)}.
H A DURLConnection.java77 * protocol types.
211 * the list {@code types}.
213 * @param types
214 * the list of acceptable content types.
216 * type does not match with one of the specified types.
222 public Object getContent(Class[] types) throws IOException { argument
233 return getContentHandler(contentType).getContent(this, types);
751 // Check binary types
759 // Check text types
/libcore/libart/src/main/java/java/lang/reflect/
H A DArtMethod.java139 short[] types = dex.parameterTypeIndicesFromMethodIndex(artMethod.getDexMethodIndex());
140 if (types.length != params.length) {
143 for (int i = 0; i < types.length; i++) {
144 if (artMethod.getDexCacheType(dex, types[i]) != params[i]) {
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] = getDexCacheType(dex, types[
[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/luni/src/main/native/
H A Djava_io_FileDescriptor.cpp22 #include <sys/types.h>
H A DPortability.h46 #include <sys/types.h>
H A Djava_io_File.cpp36 #include <sys/types.h>
H A Dcbigint.h23 #include <sys/types.h>
H A Djava_lang_ProcessManager.cpp25 #include <sys/types.h>
/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...]
H A DFieldTest.java429 char types[] = { 'L', 'B', 'S', 'C', 'I', 'J', 'F', 'D' };
437 for (int i = 0; i < types.length; i++) {
438 char type = types[i];
484 for (int i = 0; i < types.length; i++) {
485 char type = types[i];
500 types = newTypes;
502 for (int i = 0; i < types.length; i++) {
503 char type = types[i];
545 for (int i = 0; i < types.length - 1; i++) {
546 char type = types[
[all...]
/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.java433 Type [] types = ExtendTestClass1.class.getGenericInterfaces();
434 assertEquals(0, types.length);
438 types = PublicTestClass.class.getGenericInterfaces();
439 assertEquals(interfaces.length, types.length);
440 for(int i = 0; i < types.length; i++) {
441 assertEquals(interfaces[i], types[i]);
444 types = TestInterface.class.getGenericInterfaces();
445 assertEquals(0, types.length);
447 types = List.class.getGenericInterfaces();
448 assertEquals(1, types
[all...]
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CertSelectorTest.java126 int[] types = { GeneralName.OTHER_NAME,
135 for (int i = 0; i < types.length; i++) {
137 new X509CertSelector().addSubjectAlternativeName(types[i],
139 fail("No expected NullPointerException for type: " + types[i]);
150 int[] types = { GeneralName.OTHER_NAME,
159 for (int i = 0; i < types.length; i++) {
161 new X509CertSelector().addSubjectAlternativeName(types[i],
163 fail("IOException expected for type: " + types[i]);
174 int[] types = { GeneralName.OTHER_NAME,
183 for (int i = 0; i < types
[all...]
/libcore/luni/src/main/java/java/sql/
H A DDatabaseMetaData.java427 * SQL data types {@code LONGVARCHAR} and {@code LONGVARBINARY}.
462 * date types this value is the maximum number of characters. When referring
463 * to numeric types is is the precision.</li>
481 * <li>CHAR_OCTET_LENGTH - int - for {@code CHAR} types, the max number of
546 * For UDT types the name is fully qualified</li>
679 * types, max characters for {@code char} and {@code date} types)</li>
682 * <li>{@code NUM_PREC_RADIX} - int - the radix for numerical types</li>
1528 * <li>{@code SCALE} - short - the scale for numeric types</li>
1892 * @param types
1900 getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) argument
2035 getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) argument
[all...]

Completed in 441 milliseconds

12