Searched defs:method (Results 1 - 25 of 39) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/net/
H A DProgressMeteringPolicy.java39 public boolean shouldMeterInput(URL url, String method); argument
H A DProgressEvent.java41 // method associated with URL
42 private String method; field in class:ProgressEvent
53 public ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, long progress, long expected) { argument
56 this.method = method;
72 * Return method associated with URL.
76 return method;
110 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state
H A DProgressMonitor.java97 public boolean shouldMeterInput(URL url, String method) { argument
98 return meteringPolicy.shouldMeterInput(url, method);
243 public boolean shouldMeterInput(URL url, String method) argument
H A DProgressSource.java40 // URL method
41 private String method; field in class:ProgressSource
62 public ProgressSource(URL url, String method) { argument
63 this(url, method, -1);
69 public ProgressSource(URL url, String method, long expected) { argument
71 this.method = method;
105 * Return method of URL.
108 return method;
207 return getClass().getName() + "[url=" + url + ", method
[all...]
/libcore/ojluni/src/main/java/java/lang/reflect/
H A DInvocationHandler.java33 * When a method is invoked on a proxy instance, the method
35 * method of its invocation handler.
44 * Processes a method invocation on a proxy instance and returns
45 * the result. This method will be invoked on an invocation handler
46 * when a method is invoked on a proxy instance that it is
49 * @param proxy the proxy instance that the method was invoked on
51 * @param method the {@code Method} instance corresponding to
52 * the interface method invoked on the proxy instance. The declaring
54 * the method wa
93 invoke(Object proxy, Method method, Object[] args) argument
[all...]
H A DProxy.java86 * A method invocation on a proxy instance through one of its proxy
88 * invoke} method of the instance's invocation handler, passing the proxy
90 * the method that was invoked, and an array of type {@code Object}
92 * encoded method invocation as appropriate and the result that it
93 * returns will be returned as the result of the method invocation on
131 * <li>The {@link Proxy#isProxyClass Proxy.isProxyClass} method will
148 * Proxy.newProxyInstance} method, which combines the actions of calling
170 * {@link Proxy#getInvocationHandler Proxy.getInvocationHandler} method
174 * <li>An interface method invocation on a proxy instance will be
176 * InvocationHandler#invoke invoke} method a
1004 invoke(Proxy proxy, Method method, Object[] args) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DMissingClassesTest.java56 loadableClass.getDeclaredMethod("method", Unloadable.class);
72 void method(Unloadable unloadable) {} method in class:MissingClassesTest.Loadable
H A DMethodOverridesTest.java30 Method method = StringBuilder.class.getMethod("append", char.class);
31 assertEquals("append", method.getName());
35 Method method = StringBuilder.class.getMethod("append", char.class);
37 Arrays.asList(method.getParameterTypes()));
41 Method method = StringBuilder.class.getMethod("append", char.class);
42 assertEquals(StringBuilder.class, method.getDeclaringClass());
46 Method method = StringBuilder.class.getMethod("append", char.class);
47 assertEquals(StringBuilder.class, method.getReturnType());
51 Method method = StringBuilder.class.getMethod("append", char.class);
52 assertEquals(Collections.<Class<?>>emptyList(), Arrays.asList(method
160 signature(Method method) argument
[all...]
H A DClassLoaderReflectionTest.java115 Method method = fClass.getDeclaredMethod("method", bClass, List.class);
116 assertParameterizedType(method.getGenericReturnType(), bClass, String.class);
120 Method method = fClass.getDeclaredMethod("method", bClass, List.class);
121 Type[] types = method.getGenericParameterTypes();
164 B<String> method(B<String> parameter, List<A> anotherParameter) { method in class:ClassLoaderReflectionTest.F
H A DOldAndroidClassTest.java55 Method method = helloClass.getDeclaredMethod("method", (Class[]) null);
56 method.invoke(new OldAndroidClassTest(), (Object[]) null);
61 Method method = helloClass.getDeclaredMethod("methodWithArgs", Object.class);
65 Object ret = method.invoke(new OldAndroidClassTest(), invokeArgs);
71 Method method = helloClass.getDeclaredMethod("privateMethod", (Class[]) null);
72 method.invoke(new OldAndroidClassTest(), (Object[]) null);
101 helloClass.getMethod("method", (Class[]) null);
105 helloClass.getMethod("method", argTypes);
128 public void method() { method in class:OldAndroidClassTest
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DGenericReflectionTestsBase.java27 * Returns the type parameter of the declaring method.
29 * @param method
30 * the declaring method
31 * @return the type parameter of the method
33 public TypeVariable<Method> getTypeParameter(Method method) { argument
34 TypeVariable<Method>[] typeParameters = method.getTypeParameters();
43 * @param method
44 * the declaring method.
45 * @return the type parameter of the method.
H A DBoundedGenericMethodsTests.java47 * @param method
48 * the declaring method
50 private void checkBoundedTypeParameter(Method method) { argument
51 TypeVariable<Method> typeParameter = getTypeParameter(method);
53 assertEquals(method, typeParameter.getGenericDeclaration());
62 * Tests whether the specified method declares a parameter with the type of
65 * @param method
66 * the declaring method
68 private void parameterType(Method method) { argument
69 TypeVariable<Method> typeParameter = getTypeParameter(method);
84 checkReturnType(Method method) argument
[all...]
H A DGenericMethodsTests.java52 * Tests whether the specified method declares a type parameter T.
53 * @param method the method
55 private void checkTypeParameter(Method method) { argument
56 TypeVariable<Method> typeParameter = getTypeParameter(method);
58 assertEquals(method, typeParameter.getGenericDeclaration());
62 * Tests whether the specified method declares a parameter with the
64 * @param method the method
66 private void checkParameterType(Method method) { argument
79 checkReturnType(Method method) argument
[all...]
H A DWildcardTypeTest.java55 * @param method the declaring method
57 private void checkBoundedTypeParameter(Method method) { argument
58 TypeVariable<Method> typeParameter = getTypeParameter(method);
60 assertEquals(method, typeParameter.getGenericDeclaration());
68 private void checkLowerBoundedParameter(Method method) { argument
69 Type genericParameterType = method.getGenericParameterTypes()[0];
85 assertEquals(getTypeParameter(method), lowerBound);
91 private void checkUpperBoundedParameter(Method method) { argument
92 assertLenghtOne(method
113 checkReturnType(Method method) argument
[all...]
H A DProxyTest.java36 * When multiple interfaces define the same method, the list of thrown
38 * other method:
51 public float method(float _number0, float _number1); method in interface:ProxyTest.Broken1
55 public Object invoke(Object proxy, Method method, Object[] args) argument
104 public Object invoke(Object proxy, Method method, Object[] args)
122 public Object invoke(Object proxy, Method method, Object[] args)
124 if (method.getName().equals("equals"))
126 if (method.getName().equals("array"))
128 if (method.getName().equals("string")) {
178 float brokenResult = proxyObject.method(2.
303 invoke(Object object, Method method, Object[] args) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMethodLogger.java23 * A simple helper class that logs method calls by storing method names and
39 * Adds a method call with a variable list of arguments.
41 public void add(String method, Object ... args) { argument
45 methods.add(method);
50 * Returns the number of method invoked so far.
57 * Returns the method name stored at the given index.
64 * Returns the name of the last method that was invoked. Returns null if no
65 * method calls have been logged so far.
80 * Returns the argument array of the last method tha
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationFactory.java103 * New instances should not be created directly, use factory method
269 * Processes a method invocation request to this annotation instance.
273 * @throws IllegalArgumentException If the specified method is none of the above
276 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { argument
277 String name = method.getName();
278 Class[] params = method.getParameterTypes();
296 if (element == null || !method.equals(element.definingMethod)) {
297 throw new IllegalArgumentException(method.toString());
308 throw new IllegalArgumentException("Invalid method for annotation type: " + method);
[all...]
/libcore/luni/src/main/native/
H A Djava_util_regex_Pattern.cpp62 static jmethodID method = env->GetMethodID(JniConstants::patternSyntaxExceptionClass, local
66 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset);
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DMethodTest.java38 public void method(String parameter1, String parameter2) {} method in class:MethodTest.Type
42 Method method = Type.class.getMethod("method", String.class, String.class);
43 checkAnnotatedElementPresentMethods(method, AnnotationB.class, AnnotationC.class);
89 Method method = c.getDeclaredMethod(methodName);
92 assertIsAnnotationPresent(method, annotationType, expectedAnnotationString != null);
95 assertGetDeclaredAnnotation(method, annotationType, expectedAnnotationString);
125 Method method = c.getDeclaredMethod(methodName);
127 method, annotationType, expectedAnnotationStrings);
157 Method method
[all...]
/libcore/ojluni/src/main/java/jdk/net/
H A DSockets.java47 * The {@link #supportedOptions(Class)} method can be called to determine
112 Method method, Object socket,
116 method.invoke(null, socket, option, value);
131 Method method, Object socket, SocketOption<T> option) throws IOException
134 return (T)method.invoke(null, socket, option);
111 invokeSet( Method method, Object socket, SocketOption<T> option, T value) argument
130 invokeGet( Method method, Object socket, SocketOption<T> option) argument
/libcore/ojluni/src/main/java/java/net/
H A DSocksSocketImpl.java138 private boolean authenticate(byte method, InputStream in, argument
140 return authenticate(method, in, out, 0L);
143 private boolean authenticate(byte method, InputStream in, argument
147 if (method == NO_AUTH)
154 if (method == USER_PASSW) {
209 // if (method == GSSAPI) {
/libcore/benchmarks/src/benchmarks/regression/
H A DAnnotatedElementBenchmark.java29 private Method method; field in class:AnnotatedElementBenchmark
35 method = Type.class.getMethod("method", String.class);
39 // get annotations by member type and method
55 method.getAnnotations();
61 method.getParameterAnnotations();
79 method.getAnnotation(Marker.class);
97 method.isAnnotationPresent(Marker.class);
215 @Marker public void method(@Marker String parameter) {} method in class:AnnotatedElementBenchmark.Type
/libcore/luni/src/test/java/libcore/java/io/
H A DSerializationTest.java404 public Object invoke(Object proxy, Method method, Object[] args) { argument
436 public Object invoke(Object proxy, Method method, Object[] args) { argument
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileIOInterruptTest.java189 private void testChannelRead_exceptionWhenAlreadyClosed(ChannelReader.Method method) argument
199 if (method == ChannelReader.Method.READ) {
221 private void testChannelRead_exceptionWhenAlreadyInterrupted(ChannelReader.Method method) argument
232 if (method == ChannelReader.Method.READ) {
258 private void testChannelRead_exceptionOnCloseWhenBlocked(ChannelReader.Method method) argument
265 ChannelReader channelReader = new ChannelReader(fileInputChannel, method);
291 private void testChannelRead_exceptionOnInterrupt(ChannelReader.Method method) throws Exception { argument
296 ChannelReader channelReader = new ChannelReader(fileChannel, method);
322 private void testChannelWrite_exceptionWhenAlreadyClosed(ChannelWriter.Method method) argument
331 if (method
353 testChannelWrite_exceptionWhenAlreadyInterrupted(ChannelWriter.Method method) argument
390 testChannelWrite_exceptionOnCloseWhenBlocked(ChannelWriter.Method method) argument
432 testChannelWrite_exceptionOnInterrupt(ChannelWriter.Method method) argument
539 private final Method method; field in class:FileIOInterruptTest.ChannelReader
544 ChannelReader(FileChannel channel, Method method) argument
584 private final Method method; field in class:FileIOInterruptTest.ChannelWriter
589 ChannelWriter(FileChannel channel, Method method) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipEntry.java56 int method = -1; // compression method field in class:ZipEntry
64 * Compression method for uncompressed entries.
69 * Compression method for compressed (deflated) entries.
87 this.method = compressionMethod;
151 method = e.method;
180 * output stream the last modification time set by this method will
233 * the last modification time set by this method will be stored into
431 * Sets the compression method fo
439 setMethod(int method) argument
[all...]

Completed in 674 milliseconds

12