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

12

/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/
H A DListOfTypes.java26 private final ArrayList<Type> types; field in class:ListOfTypes
30 types = new ArrayList<Type>(capacity);
33 ListOfTypes(Type[] types) { argument
34 this.types = new ArrayList<Type>(types.length);
35 for (Type type : types) {
36 this.types.add(type);
44 types.add(type);
48 return types.size();
53 return result != null ? result : (resolvedTypes = resolveTypes(types));
[all...]
H A DTypes.java23 public static Type[] getClonedTypeArray(ListOfTypes types) { argument
24 return types.getResolvedTypes().clone();
/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.java451 * Equivalent to {@code openConnection().getContent(types)}.
454 public final Object getContent(Class[] types) throws IOException { argument
455 return openConnection().getContent(types);
459 * 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);
752 // Check binary types
760 // Check text types
/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/java/java/lang/reflect/
H A DAccessibleObject.java148 * types. It is not suitable for printing.
177 * @param types
182 String toString(Class<?>[] types) { argument
185 if (types.length != 0) {
186 appendTypeName(result, types[0]);
187 for (int i = 1; i < types.length; i++) {
189 appendTypeName(result, types[i]);
254 * @param types array of classes to print the names
257 void appendArrayGenericType(StringBuilder sb, Type[] types) { argument
258 if (types
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DCertificateRequest.java35 * Requested certificate types
45 * Requested certificate types as Strings
48 private String[] types; field in class:CertificateRequest
144 * Returns requested certificate types as array of strings
147 if (types == null) {
148 types = new String[certificate_types.length];
149 for (int i = 0; i < types.length; i++) {
155 types[i] = type;
158 return types;
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DConstructorTest.java277 Class[] types = null;
281 types = ctor.getParameterTypes();
286 assertEquals("Incorrect parameter returned", 0, types.length);
294 types = ctor.getParameterTypes();
299 assertTrue("Incorrect parameter returned", types[0].equals(parms[0]));
304 Type[] types = null;
308 types = ctor.getGenericParameterTypes();
312 assertEquals("Incorrect parameter returned", 0, types.length);
319 types = ctor.getGenericParameterTypes();
323 assertTrue("Incorrect parameter returned", types[
[all...]
H A DFieldTest.java444 char types[] = { 'L', 'B', 'S', 'C', 'I', 'J', 'F', 'D' };
452 for (int i = 0; i < types.length; i++) {
453 char type = types[i];
501 for (int i = 0; i < types.length; i++) {
502 char type = types[i];
517 types = newTypes;
519 for (int i = 0; i < types.length; i++) {
520 char type = types[i];
562 for (int i = 0; i < types.length - 1; i++) {
563 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/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/libcore/sqlite/
H A DOldDatabaseTest.java520 + Arrays.toString(res.types));
628 assertTrue("double".equalsIgnoreCase(res.types[0]));
639 assertTrue("double".equalsIgnoreCase(res.types[0]));
1036 public void types(String[] types) {} argument
1065 public void types(String[] types) {} argument
1081 public void types(String[] types) {} argument
1106 public void types(Strin argument
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java56 ZoneInfo(String name, int[] transitions, byte[] types, int[] gmtOffsets, byte[] isDsts) { argument
58 mTypes = types;
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CertSelectorTest.java130 int[] types = { GeneralName.OTHER_NAME,
139 for (int i = 0; i < types.length; i++) {
141 new X509CertSelector().addSubjectAlternativeName(types[i],
143 fail("No expected NullPointerException for type: " + types[i]);
154 int[] types = { GeneralName.OTHER_NAME,
163 for (int i = 0; i < types.length; i++) {
165 new X509CertSelector().addSubjectAlternativeName(types[i],
167 fail("IOException expected for type: " + types[i]);
178 int[] types = { GeneralName.OTHER_NAME,
187 for (int i = 0; i < types
[all...]
/libcore/luni/src/main/native/
H A Dcbigint.h23 #include <sys/types.h>
H A Djava_io_File.cpp37 #include <sys/types.h>
H A Dlibcore_net_RawSocket.cpp28 #include <sys/types.h>
52 * variety of constructors for different socket types, then a generic
H A Djava_lang_ProcessManager.cpp20 #include <sys/types.h>
/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...]
/libcore/luni/src/main/java/libcore/net/http/
H A DHttpsURLConnectionImpl.java180 public Object getContent(Class[] types) throws IOException { argument
181 return delegate.getContent(types);
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetMetaDataTest.java176 int[] types = { Types.SMALLINT, Types.VARCHAR, Types.VARCHAR};
180 assertEquals(types[i], type);

Completed in 446 milliseconds

12