Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 30) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleImpl.java71 private final MethodHandle handle; field in MethodHandleImpl.HandleInfo
73 HandleInfo(Member member, MethodHandle handle) { in HandleInfo() argument
75 this.handle = handle; in HandleInfo()
80 switch (handle.getHandleKind()) { in getReferenceKind()
110 throw new AssertionError("Unexpected handle kind: " + handle.getHandleKind()); in getReferenceKind()
132 MethodType handleType = handle.type(); in getMethodType()
146 switch (handle.getHandleKind()) { in getMethodType()
DMethodHandles.java1560 MethodHandle handle = findVirtual(receiver.getClass(), name, type); in bind() local
1561 MethodHandle adapter = handle.bindTo(receiver); in bind()
1563 if (handle.isVarargsCollector()) { in bind()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandlesTest.java89 MethodHandle handle = defaultLookup.findStatic(String.class, "valueOf", in test_findStatic() local
91 assertNotNull(handle); in test_findStatic()
93 assertEquals(String.class, handle.type().returnType()); in test_findStatic()
94 assertEquals(1, handle.type().parameterCount()); in test_findStatic()
95 assertEquals(char[].class, handle.type().parameterArray()[0]); in test_findStatic()
96 assertEquals(MethodHandle.INVOKE_STATIC, handle.getHandleKind()); in test_findStatic()
147 MethodHandle handle = defaultLookup.findConstructor(String.class, in test_findConstructor() local
149 assertNotNull(handle); in test_findConstructor()
151 assertEquals(String.class, handle.type().returnType()); in test_findConstructor()
152 assertEquals(1, handle.type().parameterCount()); in test_findConstructor()
[all …]
DMethodHandleCombinersTest.java34 MethodHandle handle = MethodHandles.throwException(String.class, in testThrowException() local
37 if (handle.type().returnType() != String.class) { in testThrowException()
38 fail("Unexpected return type for handle: " + handle + in testThrowException()
39 " [ " + handle.type() + "]"); in testThrowException()
44 handle.invoke(iae); in testThrowException()
1212 MethodHandle handle = MethodHandles.lookup().findStatic( in testInvokeWithArguments() local
1215 Object ret = handle.invokeWithArguments(new Object[]{"a", "b", "c"}); in testInvokeWithArguments()
1217 ret = handle.invokeWithArguments(new String[]{"a", "b", "c"}); in testInvokeWithArguments()
1221 ret = handle.invokeWithArguments(Arrays.asList(new Object[] {"a", "b", "c"})); in testInvokeWithArguments()
1223 ret = handle.invokeWithArguments(Arrays.asList(new String[]{"a", "b", "c"})); in testInvokeWithArguments()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/callback/
DCallbackHandlerTest.java37 ch.handle(null); in test_CallbackHandler()
43 public void handle(Callback[] callbacks) { in handle() method in CallbackHandlerTest.CallbackHandlerImpl
/libcore/ojluni/src/main/native/
DFileDispatcherImpl.c124 handle(JNIEnv *env, jlong rv, char *msg) in handle() function
159 return handle(env, result, "Force failed"); in FileDispatcherImpl_force0()
166 return handle(env, in FileDispatcherImpl_truncate0()
178 return handle(env, -1, "Size failed"); in FileDispatcherImpl_size0()
184 return handle(env, -1, "Size failed"); in FileDispatcherImpl_size0()
DFileChannelImpl.c72 handle(JNIEnv *env, jlong rv, char *msg) in handle() function
117 return handle(env, -1, "Map failed"); in FileChannelImpl_map0()
129 return handle(env, in FileChannelImpl_unmap0()
147 return handle(env, result, "Position failed"); in FileChannelImpl_position0()
Djvm.h175 JVM_UnloadLibrary(void * handle);
178 JVM_FindLibraryEntry(void *handle, const char *name);
/libcore/ojluni/src/main/java/javax/security/auth/callback/
DCallbackHandler.java148 void handle(Callback[] callbacks) in handle() method
/libcore/ojluni/src/main/java/java/io/
DObjectInputStream.java3496 void markException(int handle, ClassNotFoundException ex) { in markException() argument
3497 switch (status[handle]) { in markException()
3499 status[handle] = STATUS_EXCEPTION; in markException()
3500 entries[handle] = ex; in markException()
3503 HandleList dlist = deps[handle]; in markException()
3509 deps[handle] = null; in markException()
3526 void finish(int handle) { in finish() argument
3530 end = handle + 1; in finish()
3531 } else if (lowDep >= handle) { in finish()
3541 for (int i = handle; i < end; i++) { in finish()
[all …]
DObjectOutputStream.java1047 int handle; in writeTypeString() local
1050 } else if ((handle = handles.lookup(str)) != -1) { in writeTypeString()
1051 writeHandle(handle); in writeTypeString()
1259 private void writeHandle(int handle) throws IOException { in writeHandle() argument
1261 bout.writeInt(baseWireHandle + handle); in writeHandle()
1279 int handle; in writeClassDesc() local
1282 } else if (!unshared && (handle = handles.lookup(desc)) != -1) { in writeClassDesc()
1283 writeHandle(handle); in writeClassDesc()
2422 private void insert(Object obj, int handle) { in insert() argument
2424 objs[handle] = obj; in insert()
[all …]
DFileDescriptor.java239 public void setHandle(FileDescriptor obj, long handle) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess()
/libcore/luni/src/main/java/org/w3c/dom/
DUserDataHandler.java66 public void handle(short operation, in handle() method
/libcore/ojluni/src/main/java/sun/misc/
DJavaIOFileDescriptorAccess.java38 public void setHandle(FileDescriptor obj, long handle); in setHandle() argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DtmpCallbackHandler.java37 public void handle(Callback[] callback) throws IOException, in handle() method in tmpCallbackHandler
/libcore/dom/src/test/java/org/w3c/domts/
DUserDataMonitor.java50 public void handle( in handle() method in UserDataMonitor
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSCallbackHandlerProtectionTest.java56 public void handle(Callback[] callbacks) throws IOException, in testCallbackHandlerProtection() method in KSCallbackHandlerProtectionTest.TestCallbackHandler
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectInputStream.java718 void markException(int handle, java.lang.ClassNotFoundException ex) { in markException() argument
722 void finish(int handle) { in finish() argument
726 void setObject(int handle, java.lang.Object obj) { in setObject() argument
730 java.lang.Object lookupObject(int handle) { in lookupObject() argument
734 java.lang.ClassNotFoundException lookupException(int handle) { in lookupException() argument
773 public void add(int handle) { in add() argument
DObjectOutputStream.java195 private void writeHandle(int handle) throws java.io.IOException { in writeHandle() argument
574 private void insert(java.lang.Object obj, int handle) { in insert() argument
/libcore/ojluni/src/main/java/java/security/
DKeyStoreSpi.java400 handler.handle(new Callback[] {callback}); in engineLoad()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCompletionStage.java716 public <U> CompletionStage<U> handle in handle() method
/libcore/luni/src/main/native/
Djava_math_NativeBN.cpp71 static int isValidHandle(JNIEnv* env, jlong handle, const char* message) { in isValidHandle() argument
72 if (handle == 0) { in isValidHandle()
Dlibcore_icu_NativeConverter.cpp555 static jfloat NativeConverter_getAveCharsPerByte(JNIEnv* env, jclass, jlong handle) { in NativeConverter_getAveCharsPerByte() argument
556 return (1 / (jfloat) NativeConverter_getMaxBytesPerChar(env, NULL, handle)); in NativeConverter_getAveCharsPerByte()
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java104 return f.handle((U u, Throwable t) -> t).join(); in exceptionalCompletion()
600 public <T,U> CompletableFuture<U> handle
603 return f.handle(a);
674 public <T,U> CompletableFuture<U> handle
747 public <T,U> CompletableFuture<U> handle
805 public abstract <T,U> CompletableFuture<U> handle
1067 final CompletableFuture<Integer> g = m.handle in testHandle_normalCompletion()
1096 final CompletableFuture<Integer> g = m.handle in testHandle_exceptionalCompletion()
1125 final CompletableFuture<Integer> g = m.handle in testHandle_sourceCancelled()
1154 final CompletableFuture<Integer> g = m.handle in testHandle_sourceCompletedNormallyActionFailed()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDocumentImpl.java543 userData.handler.handle( in notifyUserDataHandlers()

12