Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 85) sorted by relevance

1234

/libcore/api/
Dcurrent.txt7 method @NonNull public java.io.IOException rethrowAsIOException() throws java.io.IOException;
8method @NonNull public java.net.SocketException rethrowAsSocketException() throws java.net.SocketE…
18method public static java.io.FileDescriptor accept(java.io.FileDescriptor, java.net.InetSocketAddr…
19 method public static boolean access(String, int) throws android.system.ErrnoException;
20method public static void bind(java.io.FileDescriptor, java.net.InetAddress, int) throws android.s…
21method public static void bind(@NonNull java.io.FileDescriptor, @NonNull java.net.SocketAddress) t…
22 method public static void chmod(String, int) throws android.system.ErrnoException;
23 method public static void chown(String, int, int) throws android.system.ErrnoException;
24 method public static void close(java.io.FileDescriptor) throws android.system.ErrnoException;
25method public static void connect(java.io.FileDescriptor, java.net.InetAddress, int) throws androi…
[all …]
Dmodule-lib-current.txt5 method public static void clearBehaviorChangeDelegate();
6 method public static void clearOverrides();
7 method public static boolean isChangeEnabled(long);
8 method public static void reportUnconditionalChange(long);
9method public static void setBehaviorChangeDelegate(android.compat.Compatibility.BehaviorChangeDel…
10 method public static void setOverrides(android.compat.Compatibility.ChangeConfig);
14 method public default boolean isChangeEnabled(long);
15 method public default void onChangeReported(long);
20 method @NonNull public long[] getDisabledChangesArray();
21 method @NonNull public java.util.Set<java.lang.Long> getDisabledSet();
[all …]
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent.txt5 method public static void clearBehaviorChangeDelegate();
6 method public static void clearOverrides();
7 method public static boolean isChangeEnabled(long);
8 method public static void reportUnconditionalChange(long);
9method public static void setBehaviorChangeDelegate(android.compat.Compatibility.BehaviorChangeDel…
10 method public static void setOverrides(android.compat.Compatibility.ChangeConfig);
14 method public default boolean isChangeEnabled(long);
15 method public default void onChangeReported(long);
20 method @NonNull public long[] getDisabledChangesArray();
21 method @NonNull public java.util.Set<java.lang.Long> getDisabledSet();
[all …]
/libcore/mmodules/core_platform_api/api/stable_platform/
Dcurrent.txt5 method public static void clearBehaviorChangeDelegate();
6 method public static void clearOverrides();
7 method public static boolean isChangeEnabled(long);
8 method public static void reportUnconditionalChange(long);
9method public static void setBehaviorChangeDelegate(android.compat.Compatibility.BehaviorChangeDel…
10 method public static void setOverrides(android.compat.Compatibility.ChangeConfig);
14 method public default boolean isChangeEnabled(long);
15 method public default void onChangeReported(long);
20 method @NonNull public long[] getDisabledChangesArray();
21 method @NonNull public java.util.Set<java.lang.Long> getDisabledSet();
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodOverridesTest.java30 Method method = StringBuilder.class.getMethod("append", char.class); in testName() local
31 assertEquals("append", method.getName()); in testName()
35 Method method = StringBuilder.class.getMethod("append", char.class); in testParameterTypes() local
37 Arrays.asList(method.getParameterTypes())); in testParameterTypes()
41 Method method = StringBuilder.class.getMethod("append", char.class); in testDeclaringClass() local
42 assertEquals(StringBuilder.class, method.getDeclaringClass()); in testDeclaringClass()
46 Method method = StringBuilder.class.getMethod("append", char.class); in testReturnType() local
47 assertEquals(StringBuilder.class, method.getReturnType()); in testReturnType()
51 Method method = StringBuilder.class.getMethod("append", char.class); in testThrownExceptions() local
52 assertEquals(Collections.<Class<?>>emptyList(), Arrays.asList(method.getExceptionTypes())); in testThrownExceptions()
[all …]
DMethodTest.java33 Method method = MethodTestHelper.class.getMethod("m1", new Class[0]); in test_getExceptionTypes() local
34 Class[] exceptions = method.getExceptionTypes(); in test_getExceptionTypes()
39 exceptions = method.getExceptionTypes(); in test_getExceptionTypes()
46 Method method = MethodTestHelper.class.getMethod("m1", expectedParameters); in test_getParameterTypes() local
47 assertEquals(0, method.getParameterTypes().length); in test_getParameterTypes()
50 method = MethodTestHelper.class.getMethod("m2", expectedParameters); in test_getParameterTypes()
51 Class[] parameters = method.getParameterTypes(); in test_getParameterTypes()
56 parameters = method.getParameterTypes(); in test_getParameterTypes()
63 Method method = MethodTestHelper.class.getMethod("m1", expectedParameters); in test_getParameterCount() local
64 assertEquals(0, method.getParameterCount()); in test_getParameterCount()
[all …]
DParameterTest.java114 Method method = SingleParameter.class.getDeclaredMethod("oneParameter", String.class); in testSingleParameterMethod() local
115 checkSingleStringParameter(method); in testSingleParameterMethod()
138 Method method = clazz.getDeclaredMethod("oneParameter", String.class); in testSingleParameterMethod_withMetadata() local
139 checkSingleStringParameter_withMetadata(method); in testSingleParameterMethod_withMetadata()
170 Method method = GenericParameter.class.getDeclaredMethod( in testGenericParameterMethod() local
172 checkGenericParameter(method); in testGenericParameterMethod()
197 Method method = clazz.getDeclaredMethod("genericParameter", Function.class); in testGenericParameterMethod_withMetadata() local
198 checkGenericParameter_withMetadata(method); in testGenericParameterMethod_withMetadata()
231 Method method = TwoParameters.class.getDeclaredMethod( in testTwoParameterMethod() local
233 checkTwoParameters(method); in testTwoParameterMethod()
[all …]
DGenericExceptionsTest.java31 Method method = Thrower.class.getMethod("parameterizedMethod"); in testGenericExceptionsOfMethodsWithTypeParameters() local
33 Arrays.asList(method.getGenericExceptionTypes())); in testGenericExceptionsOfMethodsWithTypeParameters()
37 Method method = Thrower.class.getMethod("genericParameters", List.class); in testGenericExceptionsOfMethodsWithGenericParameters() local
39 Arrays.asList(method.getGenericExceptionTypes())); in testGenericExceptionsOfMethodsWithGenericParameters()
63 Method method = ThrowerT.class.getMethod("throwsTypeVariable"); in testMethodThrowingTypeVariable() local
64 TypeVariable typeVariable = getOnlyValue(method.getGenericExceptionTypes(), in testMethodThrowingTypeVariable()
71 Method method = ThrowerT.class.getMethod("throwsMethodTypeParameter"); in testThrowingMethodTypeParameter() local
72 TypeVariable typeVariable = getOnlyValue(method.getGenericExceptionTypes(), in testThrowingMethodTypeParameter()
79 Method method = ThrowerT.class.getMethod("throwsEverything"); in testThrowingMethodThrowsEverything() local
80 Type[] exceptions = method.getGenericExceptionTypes(); in testThrowingMethodThrowsEverything()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericMethodsTests.java55 private void checkTypeParameter(Method method) { in checkTypeParameter() argument
56 TypeVariable<Method> typeParameter = getTypeParameter(method); in checkTypeParameter()
58 assertEquals(method, typeParameter.getGenericDeclaration()); in checkTypeParameter()
66 private void checkParameterType(Method method) { in checkParameterType() argument
67 TypeVariable<Method> typeParameter = getTypeParameter(method); in checkParameterType()
68 assertLenghtOne(method.getGenericParameterTypes()); in checkParameterType()
69 Type genericParameterType = method.getGenericParameterTypes()[0]; in checkParameterType()
72 assertEquals(method, ((TypeVariable<?>) genericParameterType).getGenericDeclaration()); in checkParameterType()
79 private void checkReturnType(Method method) { in checkReturnType() argument
80 TypeVariable<Method> typeParameter = getTypeParameter(method); in checkReturnType()
[all …]
DBoundedGenericMethodsTests.java50 private void checkBoundedTypeParameter(Method method) { in checkBoundedTypeParameter() argument
51 TypeVariable<Method> typeParameter = getTypeParameter(method); in checkBoundedTypeParameter()
53 assertEquals(method, typeParameter.getGenericDeclaration()); in checkBoundedTypeParameter()
68 private void parameterType(Method method) { in parameterType() argument
69 TypeVariable<Method> typeParameter = getTypeParameter(method); in parameterType()
70 assertLenghtOne(method.getGenericParameterTypes()); in parameterType()
71 Type genericParameterType = method.getGenericParameterTypes()[0]; in parameterType()
75 assertEquals(method, typeVariable.getGenericDeclaration()); in parameterType()
84 private void checkReturnType(Method method) { in checkReturnType() argument
85 Type genericReturnType = method.getGenericReturnType(); in checkReturnType()
[all …]
DWildcardTypeTest.java57 private void checkBoundedTypeParameter(Method method) { in checkBoundedTypeParameter() argument
58 TypeVariable<Method> typeParameter = getTypeParameter(method); in checkBoundedTypeParameter()
60 assertEquals(method, typeParameter.getGenericDeclaration()); in checkBoundedTypeParameter()
68 private void checkLowerBoundedParameter(Method method) { in checkLowerBoundedParameter() argument
69 Type genericParameterType = method.getGenericParameterTypes()[0]; in checkLowerBoundedParameter()
85 assertEquals(getTypeParameter(method), lowerBound); in checkLowerBoundedParameter()
91 private void checkUpperBoundedParameter(Method method) { in checkUpperBoundedParameter() argument
92 assertLenghtOne(method.getGenericParameterTypes()); in checkUpperBoundedParameter()
93 Type genericParameterType = method.getGenericParameterTypes()[0]; in checkUpperBoundedParameter()
109 assertEquals(getTypeParameter(method), upperBound); in checkUpperBoundedParameter()
[all …]
DProxyTest.java51 public float method(float _number0, float _number1); in method() method
55 public Object invoke(Object proxy, Method method, Object[] args) in invoke() argument
104 public Object invoke(Object proxy, Method method, Object[] args) in test_ProxyLjava_lang_reflect_InvocationHandler()
122 public Object invoke(Object proxy, Method method, Object[] args) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
124 if (method.getName().equals("equals")) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
126 if (method.getName().equals("array")) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
128 if (method.getName().equals("string")) { in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
178 float brokenResult = proxyObject.method(2.1f, 5.8f); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
196 public Object invoke(Object proxy, Method method, Object[] args) in test_isProxyClassLjava_lang_Class()
221 public Object invoke(Object proxy, Method method, Object[] args) in test_getInvocationHandlerLjava_lang_Object()
[all …]
/libcore/ojluni/src/main/java/sun/net/
DProgressSource.java41 private String method; field in ProgressSource
62 public ProgressSource(URL url, String method) { in ProgressSource() argument
63 this(url, method, -1); in ProgressSource()
69 public ProgressSource(URL url, String method, long expected) { in ProgressSource() argument
71 this.method = method; in ProgressSource()
108 return method; in getMethod()
207 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state in toString()
DProgressEvent.java42 private String method; field in ProgressEvent
53 …public ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSo… in ProgressEvent() argument
56 this.method = method; in ProgressEvent()
76 return method; in getMethod()
110 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state in toString()
/libcore/mmodules/intracoreapi/api/intra/
Dcurrent.txt5method @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @libcore.api…
6method @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @libcore.api…
11method @NonNull @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @li…
12method @NonNull @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @li…
13method @NonNull @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @li…
14method @NonNull @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @li…
15method @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @libcore.api…
16method @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @libcore.api…
17method @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @libcore.api…
25method @Nullable @libcore.api.CorePlatformApi(status=libcore.api.CorePlatformApi.Status.STABLE) @l…
[all …]
Dlast-api.txt13method @NonNull @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public static dalvik.system…
17 method @libcore.api.IntraCoreApi public void onNetwork();
21 method @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public void close();
22method @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public static dalvik.system.CloseGua…
23 method @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public void open(String);
24 method @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public void warnIfOpen();
32 method public java.io.FileDescriptor getFileDescriptor$();
40 method public String getCurveName();
41 method public void setCurveName(String);
59method @libcore.api.IntraCoreApi public static void signalBlockedThreads(java.io.FileDescriptor);
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/
DMetadataVariations.smali24 .method public abstract badAccessModifier(Ljava/lang/String;)V
33 .end method
35 .method public abstract badlyFormedAnnotation(Ljava/lang/String;)V
41 .end method
43 .method public abstract emptyMethodParametersAnnotation()V
48 .end method
50 .method public abstract emptyName(Ljava/lang/String;)V
59 .end method
61 .method public abstract manyParameters(IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII…
668 .end method
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DAccessDescription.java103 String method = null; in toString() local
105 method = "caIssuers"; in toString()
107 method = "caRepository"; in toString()
109 method = "timeStamping"; in toString()
111 method = "ocsp"; in toString()
113 method = accessMethod.toString(); in toString()
115 return ("\n accessMethod: " + method + in toString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationTestClass.java240 public void method() { in method() method in SerializationTestClass.TestMethodPublic
246 private void method() { in method() method in SerializationTestClass.TestMethodPrivate
251 protected void method() { in method() method in SerializationTestClass.TestMethodProtected
256 strictfp void method() { in method() method in SerializationTestClass.TestMethodStrict
261 static void method() { in method() method in SerializationTestClass.TestMethodStatic
266 final void method() { in method() method in SerializationTestClass.TestMethodFinal
271 synchronized void method() { in method() method in SerializationTestClass.TestMethodSynchronized
276 native void method(); in method() method in SerializationTestClass.TestMethodNative
281 abstract void method(); in method() method in SerializationTestClass.TestMethodAbstractHelper
287 void method() { in method() method in SerializationTestClass.TestMethodAbstract
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTestHelper.smali34 # so that no debug info is generated for that method and three nops were
42 .method public constructor <init>()V
50 .end method
52 .method static createStackTrace()[Ljava/lang/StackTraceElement;
66 .end method
68 .method public static debugInfo()[Ljava/lang/StackTraceElement;
78 .end method
80 .method public static noDebugInfo()[Ljava/lang/StackTraceElement;
83 # Removed so this method doesn't have debug info
96 .end method
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java189 private void testChannelRead_exceptionWhenAlreadyClosed(ChannelReader.Method method) in testChannelRead_exceptionWhenAlreadyClosed() argument
199 if (method == ChannelReader.Method.READ) { in testChannelRead_exceptionWhenAlreadyClosed()
221 private void testChannelRead_exceptionWhenAlreadyInterrupted(ChannelReader.Method method) in testChannelRead_exceptionWhenAlreadyInterrupted() argument
232 if (method == ChannelReader.Method.READ) { in testChannelRead_exceptionWhenAlreadyInterrupted()
258 private void testChannelRead_exceptionOnCloseWhenBlocked(ChannelReader.Method method) in testChannelRead_exceptionOnCloseWhenBlocked() argument
265 ChannelReader channelReader = new ChannelReader(fileInputChannel, method); in testChannelRead_exceptionOnCloseWhenBlocked()
291 private void testChannelRead_exceptionOnInterrupt(ChannelReader.Method method) throws Exception { in testChannelRead_exceptionOnInterrupt() argument
296 ChannelReader channelReader = new ChannelReader(fileChannel, method); in testChannelRead_exceptionOnInterrupt()
322 private void testChannelWrite_exceptionWhenAlreadyClosed(ChannelWriter.Method method) in testChannelWrite_exceptionWhenAlreadyClosed() argument
331 if (method == ChannelWriter.Method.WRITE) { in testChannelWrite_exceptionWhenAlreadyClosed()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DMethodTest.java38 public void method(String parameter1, String parameter2) {} in method() method in MethodTest.Type
42 Method method = Type.class.getMethod("method", String.class, String.class); in testMethodAnnotations() local
43 checkAnnotatedElementPresentMethods(method, AnnotationB.class, AnnotationC.class); in testMethodAnnotations()
89 Method method = c.getDeclaredMethod(methodName); in checkDeclaredAnnotation() local
92 assertIsAnnotationPresent(method, annotationType, expectedAnnotationString != null); in checkDeclaredAnnotation()
95 assertGetDeclaredAnnotation(method, annotationType, expectedAnnotationString); in checkDeclaredAnnotation()
125 Method method = c.getDeclaredMethod(methodName); in assertGetDeclaredAnnotationsByType() local
127 method, annotationType, expectedAnnotationStrings); in assertGetDeclaredAnnotationsByType()
157 Method method = c.getDeclaredMethod(methodName); in assertGetAnnotationsByType() local
159 method, annotationType, expectedAnnotationStrings); in assertGetAnnotationsByType()
/libcore/luni/src/test/java/libcore/build/
DDuplicateBridgeMethodsTest.java46 Method method = IoTracker.Mode.class.getMethod("compareTo", in testSubclassHasNoBridgeMethod() local
48 assertTrue(method.isBridge()); in testSubclassHasNoBridgeMethod()
49 assertTrue(method.isSynthetic()); in testSubclassHasNoBridgeMethod()
53 method.getDeclaringClass(), java.lang.Enum.class); in testSubclassHasNoBridgeMethod()
/libcore/ojluni/src/main/java/java/net/
DHttpURLConnection.java281 protected String method = "GET"; field in HttpURLConnection
625 public void setRequestMethod(String method) throws ProtocolException { in setRequestMethod() argument
635 if (methods[i].equals(method)) { in setRequestMethod()
636 if (method.equals("TRACE")) { in setRequestMethod()
642 this.method = method; in setRequestMethod()
646 throw new ProtocolException("Invalid HTTP method: " + method); in setRequestMethod()
655 return method; in getRequestMethod()
/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java54 int method = -1; // compression method field in ZipEntry
106 this.method = compressionMethod; in ZipEntry()
154 method = e.method; in ZipEntry()
443 public void setMethod(int method) { in setMethod() argument
444 if (method != STORED && method != DEFLATED) { in setMethod()
447 this.method = method; in setMethod()
457 return method; in getMethod()

1234